-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update module and OpenAPI specs from the node repo (#483)
Co-authored-by: fadeev <[email protected]>
- Loading branch information
1 parent
746cde4
commit 16cc608
Showing
12 changed files
with
15,423 additions
and
36 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Messages | ||
|
||
## MsgUpdatePolicies | ||
|
||
UpdatePolicies updates policies | ||
|
||
```proto | ||
message MsgUpdatePolicies { | ||
string creator = 1; | ||
Policies policies = 2; | ||
} | ||
``` | ||
|
||
## MsgUpdateChainInfo | ||
|
||
UpdateChainInfo updates the chain info object | ||
If the provided chain does not exist in the chain info object, it is added | ||
If the chain already exists in the chain info object, it is updated | ||
|
||
```proto | ||
message MsgUpdateChainInfo { | ||
string creator = 1; | ||
pkg.chains.Chain chain = 3; | ||
} | ||
``` | ||
|
||
## MsgRemoveChainInfo | ||
|
||
RemoveChainInfo removes the chain info for the specified chain id | ||
|
||
```proto | ||
message MsgRemoveChainInfo { | ||
string creator = 1; | ||
int64 chain_id = 2; | ||
} | ||
``` | ||
|
||
## MsgAddAuthorization | ||
|
||
AddAuthorization defines a method to add an authorization.If the authorization already exists, it will be overwritten with the provided policy. | ||
This should be called by the admin policy account. | ||
|
||
```proto | ||
message MsgAddAuthorization { | ||
string creator = 1; | ||
string msg_url = 2; | ||
PolicyType authorized_policy = 3; | ||
} | ||
``` | ||
|
||
## MsgRemoveAuthorization | ||
|
||
RemoveAuthorization removes the authorization from the list. It should be called by the admin policy account. | ||
|
||
```proto | ||
message MsgRemoveAuthorization { | ||
string creator = 1; | ||
string msg_url = 2; | ||
} | ||
``` | ||
|
Oops, something went wrong.