feat!: periodic vesting msg (#9596)
Closes: #9595 Enables creating a periodic vesting account on a running chain. I have... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [x] provided a link to the relevant issue or specification - [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [x] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [x] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
This commit is contained in:
+94
-62
@@ -652,12 +652,6 @@
|
||||
|
||||
- [Query](#cosmos.upgrade.v1beta1.Query)
|
||||
|
||||
- [cosmos/vesting/v1beta1/tx.proto](#cosmos/vesting/v1beta1/tx.proto)
|
||||
- [MsgCreateVestingAccount](#cosmos.vesting.v1beta1.MsgCreateVestingAccount)
|
||||
- [MsgCreateVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse)
|
||||
|
||||
- [Msg](#cosmos.vesting.v1beta1.Msg)
|
||||
|
||||
- [cosmos/vesting/v1beta1/vesting.proto](#cosmos/vesting/v1beta1/vesting.proto)
|
||||
- [BaseVestingAccount](#cosmos.vesting.v1beta1.BaseVestingAccount)
|
||||
- [ContinuousVestingAccount](#cosmos.vesting.v1beta1.ContinuousVestingAccount)
|
||||
@@ -666,6 +660,14 @@
|
||||
- [PeriodicVestingAccount](#cosmos.vesting.v1beta1.PeriodicVestingAccount)
|
||||
- [PermanentLockedAccount](#cosmos.vesting.v1beta1.PermanentLockedAccount)
|
||||
|
||||
- [cosmos/vesting/v1beta1/tx.proto](#cosmos/vesting/v1beta1/tx.proto)
|
||||
- [MsgCreatePeriodicVestingAccount](#cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount)
|
||||
- [MsgCreatePeriodicVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse)
|
||||
- [MsgCreateVestingAccount](#cosmos.vesting.v1beta1.MsgCreateVestingAccount)
|
||||
- [MsgCreateVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse)
|
||||
|
||||
- [Msg](#cosmos.vesting.v1beta1.Msg)
|
||||
|
||||
- [Scalar Value Types](#scalar-value-types)
|
||||
|
||||
|
||||
@@ -9322,62 +9324,6 @@ Query defines the gRPC upgrade querier service.
|
||||
|
||||
|
||||
|
||||
<a name="cosmos/vesting/v1beta1/tx.proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
## cosmos/vesting/v1beta1/tx.proto
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreateVestingAccount"></a>
|
||||
|
||||
### MsgCreateVestingAccount
|
||||
MsgCreateVestingAccount defines a message that enables creating a vesting
|
||||
account.
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `from_address` | [string](#string) | | |
|
||||
| `to_address` | [string](#string) | | |
|
||||
| `amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
|
||||
| `end_time` | [int64](#int64) | | |
|
||||
| `delayed` | [bool](#bool) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"></a>
|
||||
|
||||
### MsgCreateVestingAccountResponse
|
||||
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- end messages -->
|
||||
|
||||
<!-- end enums -->
|
||||
|
||||
<!-- end HasExtensions -->
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.Msg"></a>
|
||||
|
||||
### Msg
|
||||
Msg defines the bank Msg service.
|
||||
|
||||
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
|
||||
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
|
||||
| `CreateVestingAccount` | [MsgCreateVestingAccount](#cosmos.vesting.v1beta1.MsgCreateVestingAccount) | [MsgCreateVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) | CreateVestingAccount defines a method that enables creating a vesting account. | |
|
||||
|
||||
<!-- end services -->
|
||||
|
||||
|
||||
|
||||
<a name="cosmos/vesting/v1beta1/vesting.proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
@@ -9499,6 +9445,92 @@ still be used for delegating and for governance votes even while locked.
|
||||
|
||||
|
||||
|
||||
<a name="cosmos/vesting/v1beta1/tx.proto"></a>
|
||||
<p align="right"><a href="#top">Top</a></p>
|
||||
|
||||
## cosmos/vesting/v1beta1/tx.proto
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"></a>
|
||||
|
||||
### MsgCreatePeriodicVestingAccount
|
||||
MsgCreateVestingAccount defines a message that enables creating a vesting
|
||||
account.
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `from_address` | [string](#string) | | |
|
||||
| `to_address` | [string](#string) | | |
|
||||
| `start_time` | [int64](#int64) | | |
|
||||
| `vesting_periods` | [Period](#cosmos.vesting.v1beta1.Period) | repeated | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"></a>
|
||||
|
||||
### MsgCreatePeriodicVestingAccountResponse
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreateVestingAccount"></a>
|
||||
|
||||
### MsgCreateVestingAccount
|
||||
MsgCreateVestingAccount defines a message that enables creating a vesting
|
||||
account.
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `from_address` | [string](#string) | | |
|
||||
| `to_address` | [string](#string) | | |
|
||||
| `amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
|
||||
| `end_time` | [int64](#int64) | | |
|
||||
| `delayed` | [bool](#bool) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"></a>
|
||||
|
||||
### MsgCreateVestingAccountResponse
|
||||
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- end messages -->
|
||||
|
||||
<!-- end enums -->
|
||||
|
||||
<!-- end HasExtensions -->
|
||||
|
||||
|
||||
<a name="cosmos.vesting.v1beta1.Msg"></a>
|
||||
|
||||
### Msg
|
||||
Msg defines the bank Msg service.
|
||||
|
||||
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
|
||||
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
|
||||
| `CreateVestingAccount` | [MsgCreateVestingAccount](#cosmos.vesting.v1beta1.MsgCreateVestingAccount) | [MsgCreateVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) | CreateVestingAccount defines a method that enables creating a vesting account. | |
|
||||
| `CreatePeriodicVestingAccount` | [MsgCreatePeriodicVestingAccount](#cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount) | [MsgCreatePeriodicVestingAccountResponse](#cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse) | CreatePeriodicVestingAccount defines a method that enables creating a periodic vesting account. | |
|
||||
|
||||
<!-- end services -->
|
||||
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
|
||||
|
||||
Reference in New Issue
Block a user