-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add spec files, tx short description
- Loading branch information
Showing
4 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# State | ||
|
||
## Authority | ||
|
||
The authority field is of type bytes, specifically a Noble address, stored via an [`collections.Item`][item]. | ||
It is used to store the current underlying authority address of this module. | ||
|
||
```go | ||
var AuthorityKey = []byte("authority") | ||
``` | ||
|
||
It is updated by the following messages: | ||
|
||
- [`noble.authority.v1.UpdateAuthority`](./02_messages.md#update-authority) | ||
|
||
[item]: https://docs.cosmos.network/main/build/packages/collections#item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Messages | ||
|
||
## Execute | ||
|
||
`noble.authority.v1.MsgExecute` | ||
|
||
A message to execute arbitrary messages on behalf of the `x/authority` module. | ||
If other module authorities are configured to this module, this can be used to | ||
execute admin messages such as updating params, software ugprades, etc. | ||
|
||
```shell | ||
auth_info: | ||
fee: | ||
amount: [] | ||
gas_limit: "200000" | ||
granter: "" | ||
payer: "" | ||
signer_infos: [] | ||
tip: null | ||
body: | ||
extension_options: [] | ||
memo: "" | ||
messages: | ||
- '@type': /noble.authority.v1.MsgExecute | ||
messages: [...] | ||
signer: noble1authority | ||
non_critical_extension_options: [] | ||
timeout_height: "0" | ||
signatures: [] | ||
``` | ||
|
||
### Arguments | ||
|
||
- `messages` — An array of encoded messages to execute. | ||
|
||
### Requirements | ||
|
||
- Signer must be the current underlying [`authority`](./01_state.md#authority). | ||
|
||
### State Changes | ||
|
||
This message doesn't affect any `x/authority` state. | ||
|
||
However, the executed messages may contain state changes. | ||
|
||
### Events Emitted | ||
|
||
This message emits no events. | ||
|
||
## Update Authority | ||
|
||
`noble.authority.v1.MsgUpdateAuthority` | ||
|
||
A message that updates the underlying authority of this module. | ||
|
||
```shell | ||
auth_info: | ||
fee: | ||
amount: [] | ||
gas_limit: "200000" | ||
granter: "" | ||
payer: "" | ||
signer_infos: [] | ||
tip: null | ||
body: | ||
extension_options: [] | ||
memo: "" | ||
messages: | ||
- '@type': /noble.authority.v1.MsgUpdateAuthority | ||
new_authority: noble1demo | ||
signer: noble1authority | ||
non_critical_extension_options: [] | ||
timeout_height: "0" | ||
signatures: [] | ||
``` | ||
|
||
### Arguments | ||
|
||
- `new_authority` — The Noble address to transfer underlying authority to. | ||
|
||
### Requirements | ||
|
||
- Signer must be the current underlying [`authority`](./01_state.md#authority). | ||
|
||
### State Changes | ||
|
||
- [`authority`](./01_state.md#authority) | ||
|
||
### Events Emitted | ||
|
||
This message emits no events. |