Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(x/accounts): lockup account document, Tx and InitGenesis #23397

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: lockup-account document
Senna46 committed Jan 14, 2025
commit e8cbdda0b81c4637ecf5d3704a80950f9dc1fcab
8 changes: 4 additions & 4 deletions x/accounts/README.md
Original file line number Diff line number Diff line change
@@ -545,12 +545,12 @@ For example, given the following `genesis.json` file:
"init_account_msgs": [
{
"sender": "account_creator_address",
"account_type": "lockup",
"account_type": "lockup_account_type",
"message": {
"@type": "cosmos.accounts.defaults.lockup.MsgInitLockupAccount",
"@type": "/cosmos.accounts.defaults.lockup.v1.MsgInitLockupAccount",
"owner": "some_owner",
"end_time": "..",
"start_time": ".."
"end_time": "2026-01-01T00:00:00Z",
"start_time": "2025-01-01T00:00:00Z"
},
"funds": [
{
14 changes: 7 additions & 7 deletions x/accounts/defaults/lockup/TUTORIAL.md
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ Whereas `execute-msg-type-url` and `msgcontents` corresponds to lockup account

### Delegate

The execute message type url for this execution is `cosmos.accounts.defaults.lockup.MsgDelegate`.
The execute message type url for this execution is `cosmos.accounts.defaults.lockup.v1.MsgDelegate`.

Example of json file:

@@ -125,7 +125,7 @@ The `sender` field are the address of the owner of the lockup account. If the se

### Undelegate

The execute message type url for this execution is `cosmos.accounts.defaults.lockup.MsgUndelegate`.
The execute message type url for this execution is `cosmos.accounts.defaults.lockup.v1.MsgUndelegate`.

Example of json file:

@@ -146,7 +146,7 @@ The `sender` field are the address of the owner of the lockup account. If the se

### Withdraw reward

The execute message type url for this execution is `cosmos.accounts.defaults.lockup.MsgWithdrawReward`.
The execute message type url for this execution is `cosmos.accounts.defaults.lockup.v1.MsgWithdrawReward`.

Example of json file:

@@ -163,7 +163,7 @@ The `sender` field are the address of the owner of the lockup account. If the se

### Withdraw unlocked token

The execute message type url for this execution is `cosmos.accounts.defaults.lockup.MsgWithdraw`.
The execute message type url for this execution is `cosmos.accounts.defaults.lockup.v1.MsgWithdraw`.

Example of json file:

@@ -183,7 +183,7 @@ The `withdrawer` field are the address of the owner of the lockup account. If th

### Send coins

The execute message type url for this execution is `cosmos.accounts.defaults.lockup.MsgSend`.
The execute message type url for this execution is `cosmos.accounts.defaults.lockup.v1.MsgSend`.

Example of json file:

@@ -213,7 +213,7 @@ simd tx accounts query <account_address> <query-request-type-url> $querycontents

### Query account info

The query request type url for this query is `cosmos.accounts.defaults.lockup.QueryLockupAccountInfoRequest`. And query json file can be an empty object since `QueryLockupAccountInfoRequest` does not required an input.
The query request type url for this query is `cosmos.accounts.defaults.lockup.v1.QueryLockupAccountInfoRequest`. And query json file can be an empty object since `QueryLockupAccountInfoRequest` does not required an input.

Account information including:

@@ -235,7 +235,7 @@ Account information including:
Note, can only be queried from a periodic lockup account
:::

The query request type url for this query is `cosmos.accounts.defaults.lockup.QueryLockingPeriodsRequest`. And query json file can be an empty object since `QueryLockingPeriodsRequest` does not required an input.
The query request type url for this query is `cosmos.accounts.defaults.lockup.v1.QueryLockingPeriodsRequest`. And query json file can be an empty object since `QueryLockingPeriodsRequest` does not required an input.

Locking periods including: