Skip to content

Commit

Permalink
make generate
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jan 3, 2024
1 parent 7dc5d0b commit 3e6ee34
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
14 changes: 12 additions & 2 deletions docs/spec/crosschain/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ AddToOutTxTracker adds a new record to the outbound transaction tracker.
only the admin policy account and the observer validators are authorized to broadcast this message without proof.
If no pending cctx is found, the tracker is removed, if there is an existed tracker with the nonce & chainID.

Authorized: admin policy group 1, observer.

```proto
message MsgAddToOutTxTracker {
string creator = 1;
Expand All @@ -21,7 +23,8 @@ message MsgAddToOutTxTracker {
## MsgAddToInTxTracker

AddToInTxTracker adds a new record to the inbound transaction tracker.
TODO https://github.com/zeta-chain/node/issues/1269

Authorized: admin policy group 1, observer.

```proto
message MsgAddToInTxTracker {
Expand All @@ -38,7 +41,8 @@ message MsgAddToInTxTracker {
## MsgRemoveFromOutTxTracker

RemoveFromOutTxTracker removes a record from the outbound transaction tracker by chain ID and nonce.
only the admin policy account is authorized to broadcast this message.

Authorized: admin policy group 1.

```proto
message MsgRemoveFromOutTxTracker {
Expand Down Expand Up @@ -195,6 +199,8 @@ message MsgVoteOnObservedInboundTx {
WhitelistERC20 deploys a new zrc20, create a foreign coin object for the ERC20
and emit a crosschain tx to whitelist the ERC20 on the external chain

Authorized: admin policy group 1.

```proto
message MsgWhitelistERC20 {
string creator = 1;
Expand All @@ -209,6 +215,8 @@ message MsgWhitelistERC20 {

## MsgUpdateTssAddress

Authorized: admin policy group 2.

```proto
message MsgUpdateTssAddress {
string creator = 1;
Expand All @@ -218,6 +226,8 @@ message MsgUpdateTssAddress {

## MsgMigrateTssFunds

Authorized: admin policy group 2.

```proto
message MsgMigrateTssFunds {
string creator = 1;
Expand Down
28 changes: 21 additions & 7 deletions docs/spec/fungible/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

DeploySystemContracts deploy new instances of the system contracts

Authorized: admin policy group 2.

```proto
message MsgDeploySystemContracts {
string creator = 1;
Expand All @@ -29,7 +31,7 @@ If this is a non-gas coin, the following happens:
* ZRC20 contract for the coin is deployed
* The coin is added to the list of foreign coins in the module's state

Only the admin policy account is authorized to broadcast this message.
Authorized: admin policy group 2.

```proto
message MsgDeployFungibleCoinZRC20 {
Expand All @@ -46,9 +48,10 @@ message MsgDeployFungibleCoinZRC20 {

## MsgRemoveForeignCoin

RemoveForeignCoin removes a coin from the list of foreign coins in the module's state.
RemoveForeignCoin removes a coin from the list of foreign coins in the
module's state.

Only the admin policy account is authorized to broadcast this message.
Authorized: admin policy group 2.

```proto
message MsgRemoveForeignCoin {
Expand All @@ -59,6 +62,8 @@ message MsgRemoveForeignCoin {

## MsgUpdateSystemContract

Authorized: admin policy group 2.

```proto
message MsgUpdateSystemContract {
string creator = 1;
Expand All @@ -68,10 +73,13 @@ message MsgUpdateSystemContract {

## MsgUpdateContractBytecode

UpdateContractBytecode updates the bytecode of a contract from the bytecode of an existing contract
Only a ZRC20 contract or the WZeta connector contract can be updated
IMPORTANT: the new contract bytecode must have the same storage layout as the old contract bytecode
the new contract can add new variable but cannot remove any existing variable
UpdateContractBytecode updates the bytecode of a contract from the bytecode
of an existing contract Only a ZRC20 contract or the WZeta connector contract
can be updated IMPORTANT: the new contract bytecode must have the same
storage layout as the old contract bytecode the new contract can add new
variable but cannot remove any existing variable

Authozied: admin policy group 2

```proto
message MsgUpdateContractBytecode {
Expand All @@ -83,6 +91,8 @@ message MsgUpdateContractBytecode {

## MsgUpdateZRC20WithdrawFee

Authorized: admin policy group 2.

```proto
message MsgUpdateZRC20WithdrawFee {
string creator = 1;
Expand All @@ -97,6 +107,8 @@ message MsgUpdateZRC20WithdrawFee {
UpdateZRC20PausedStatus updates the paused status of a ZRC20
The list of ZRC20s are either paused or unpaused

Authorized: admin policy group 1 (pausing), group 2 (pausing & unpausing)

```proto
message MsgUpdateZRC20PausedStatus {
string creator = 1;
Expand All @@ -109,6 +121,8 @@ message MsgUpdateZRC20PausedStatus {

UpdateZRC20LiquidityCap updates the liquidity cap for a ZRC20 token.

Authorized: admin policy group 2.

```proto
message MsgUpdateZRC20LiquidityCap {
string creator = 1;
Expand Down
14 changes: 11 additions & 3 deletions docs/spec/observer/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## MsgAddObserver

Authorized: admin policy group 2.

```proto
message MsgAddObserver {
string creator = 1;
Expand All @@ -13,6 +15,9 @@ message MsgAddObserver {

## MsgUpdateObserver

Authorized: admin policy group 2 (admin update), old observer address (if the
reason is that the observer was tombstoned).

```proto
message MsgUpdateObserver {
string creator = 1;
Expand Down Expand Up @@ -52,7 +57,9 @@ message MsgAddBlameVote {
## MsgUpdateCrosschainFlags

UpdateCrosschainFlags updates the crosschain related flags.
Only the admin policy account is authorized to broadcast this message.

Aurthorized: admin policy group 1 (except enabling/disabled
inbounds/outbounds and gas price increase), admin policy group 2 (all).

```proto
message MsgUpdateCrosschainFlags {
Expand All @@ -66,9 +73,10 @@ message MsgUpdateCrosschainFlags {

## MsgUpdateKeygen

UpdateKeygen updates the block height of the keygen and sets the status to "pending keygen".
UpdateKeygen updates the block height of the keygen and sets the status to
"pending keygen".

Only the admin policy account is authorized to broadcast this message.
Authorized: admin policy group 1.

```proto
message MsgUpdateKeygen {
Expand Down

0 comments on commit 3e6ee34

Please sign in to comment.