diff --git a/app/ante/ante.go b/app/ante/ante.go index 48e2b634eb..eee2dd27ec 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -176,7 +176,7 @@ func IsSystemTx(tx sdk.Tx, isAuthorizedSigner func(string) bool) bool { *crosschaintypes.MsgAddInboundTracker, *observertypes.MsgVoteBlockHeader, *observertypes.MsgVoteTSS, - *observertypes.MsgAddBlameVote: + *observertypes.MsgVoteBlame: signers := innerMsg.GetSigners() if len(signers) == 1 { return isAuthorizedSigner(signers[0].String()) diff --git a/app/ante/ante_test.go b/app/ante/ante_test.go index da67472dfb..695a680cf3 100644 --- a/app/ante/ante_test.go +++ b/app/ante/ante_test.go @@ -40,7 +40,7 @@ func TestIsSystemTx(t *testing.T) { // *cctxtypes.MsgAddInboundTracker, // *observertypes.MsgVoteBlockHeader, // *observertypes.MsgVoteTSS, - // *observertypes.MsgAddBlameVote: + // *observertypes.MsgVoteBlame: buildTxFromMsg := func(msg sdk.Msg) sdk.Tx { txBuilder := app.MakeEncodingConfig().TxConfig.NewTxBuilder() txBuilder.SetMsgs(msg) @@ -225,8 +225,8 @@ func TestIsSystemTx(t *testing.T) { true, }, { - "MsgAddBlameVote", - buildTxFromMsg(&observertypes.MsgAddBlameVote{ + "MsgVoteBlame", + buildTxFromMsg(&observertypes.MsgVoteBlame{ Creator: sample.AccAddress(), }), isAuthorized, @@ -234,8 +234,8 @@ func TestIsSystemTx(t *testing.T) { true, }, { - "MsgExec{MsgAddBlameVote}", - buildAuthzTxFromMsg(&observertypes.MsgAddBlameVote{ + "MsgExec{MsgVoteBlame}", + buildAuthzTxFromMsg(&observertypes.MsgVoteBlame{ Creator: sample.AccAddress(), }), isAuthorized, diff --git a/changelog.md b/changelog.md index 584d3c2409..f5df72245c 100644 --- a/changelog.md +++ b/changelog.md @@ -33,9 +33,9 @@ * [2205](https://github.com/zeta-chain/node/pull/2205) - remove deprecated variables pre-v17 * [2226](https://github.com/zeta-chain/node/pull/2226) - improve Go formatting with imports standardization and max line length to 120 * [2262](https://github.com/zeta-chain/node/pull/2262) - refactor MsgUpdateZRC20 into MsgPauseZrc20 and MsgUnPauseZRC20 +* [2290](https://github.com/zeta-chain/node/pull/2290) - rename `MsgAddBlameVote` message to `MsgVoteBlame` * [2269](https://github.com/zeta-chain/node/pull/2269) - refactor MsgUpdateCrosschainFlags into MsgEnableCCTX, MsgDisableCCTX and MsgUpdateGasPriceIncreaseFlags - ### Tests * [2047](https://github.com/zeta-chain/node/pull/2047) - fix liquidity cap advanced test diff --git a/cmd/zetae2e/local/monitor_priority_txs.go b/cmd/zetae2e/local/monitor_priority_txs.go index e58cbab513..8fce9dda79 100644 --- a/cmd/zetae2e/local/monitor_priority_txs.go +++ b/cmd/zetae2e/local/monitor_priority_txs.go @@ -97,7 +97,7 @@ func isMsgTypeURLSystemTx(attr types.EventAttribute) bool { "\"/zetachain.zetacore.crosschain.MsgAddInboundTracker\"", "\"/zetachain.zetacore.observer.MsgVoteBlockHeader\"", "\"/zetachain.zetacore.observer.MsgVoteTSS\"", - "\"/zetachain.zetacore.observer.MsgAddBlameVote\"", + "\"/zetachain.zetacore.observer.MsgVoteBlame\"", } for _, url := range systemTxsMsgTypeUrls { diff --git a/docs/cli/zetacored/zetacored_tx_observer.md b/docs/cli/zetacored/zetacored_tx_observer.md index 25711bd3f6..47e7635991 100644 --- a/docs/cli/zetacored/zetacored_tx_observer.md +++ b/docs/cli/zetacored/zetacored_tx_observer.md @@ -26,7 +26,6 @@ zetacored tx observer [flags] ### SEE ALSO * [zetacored tx](zetacored_tx.md) - Transactions subcommands -* [zetacored tx observer add-blame-vote](zetacored_tx_observer_add-blame-vote.md) - Broadcast message add-blame-vote * [zetacored tx observer add-observer](zetacored_tx_observer_add-observer.md) - Broadcast message add-observer * [zetacored tx observer disable-cctx](zetacored_tx_observer_disable-cctx.md) - Disable inbound and outbound for CCTX * [zetacored tx observer enable-cctx](zetacored_tx_observer_enable-cctx.md) - Enable inbound and outbound for CCTX @@ -37,5 +36,6 @@ zetacored tx observer [flags] * [zetacored tx observer update-gas-price-increase-flags](zetacored_tx_observer_update-gas-price-increase-flags.md) - Update the gas price increase flags * [zetacored tx observer update-keygen](zetacored_tx_observer_update-keygen.md) - command to update the keygen block via a group proposal * [zetacored tx observer update-observer](zetacored_tx_observer_update-observer.md) - Broadcast message add-observer +* [zetacored tx observer vote-blame](zetacored_tx_observer_vote-blame.md) - Broadcast message vote-blame * [zetacored tx observer vote-tss](zetacored_tx_observer_vote-tss.md) - Vote for a new TSS creation diff --git a/docs/cli/zetacored/zetacored_tx_observer_add-blame-vote.md b/docs/cli/zetacored/zetacored_tx_observer_vote-blame.md similarity index 94% rename from docs/cli/zetacored/zetacored_tx_observer_add-blame-vote.md rename to docs/cli/zetacored/zetacored_tx_observer_vote-blame.md index 1b2b38e536..299d78d6f7 100644 --- a/docs/cli/zetacored/zetacored_tx_observer_add-blame-vote.md +++ b/docs/cli/zetacored/zetacored_tx_observer_vote-blame.md @@ -1,9 +1,9 @@ -# tx observer add-blame-vote +# tx observer vote-blame -Broadcast message add-blame-vote +Broadcast message vote-blame ``` -zetacored tx observer add-blame-vote [chain-id] [index] [failure-reason] [node-list] [flags] +zetacored tx observer vote-blame [chain-id] [index] [failure-reason] [node-list] [flags] ``` ### Options @@ -22,7 +22,7 @@ zetacored tx observer add-blame-vote [chain-id] [index] [failure-reason] [node-l --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for add-blame-vote + -h, --help help for vote-blame --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index 112be45c71..3a36ef68af 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -57746,8 +57746,6 @@ definitions: last_change_height: type: string format: int64 - observerMsgAddBlameVoteResponse: - type: object observerMsgAddObserverResponse: type: object observerMsgDisableCCTXResponse: @@ -57766,6 +57764,8 @@ definitions: type: object observerMsgUpdateObserverResponse: type: object + observerMsgVoteBlameResponse: + type: object observerMsgVoteBlockHeaderResponse: type: object properties: diff --git a/docs/releases/v17_breaking_changes.md b/docs/releases/v17_breaking_changes.md index 61d5c23921..ebe2d492da 100644 --- a/docs/releases/v17_breaking_changes.md +++ b/docs/releases/v17_breaking_changes.md @@ -58,3 +58,7 @@ * `MsgUpdateZRC20` has been removed, and replaced with `MsgPauseZRC20` and `MsgUnpauseZRC20` messages. * `MsgPauseZRC20` message pauses a ZRC20 token and can be triggered via `PolicyType_groupEmergency` * `MsgUnpauseZRC20` message unpauses a ZRC20 token and can be triggered via `PolicyType_groupOperational` + +### `MsgAddBlameVote` renaming + +* `MsgAddBlameVote` has been renamed to `MsgVoteBlame` to maintain consistency with other voting messages diff --git a/docs/spec/observer/messages.md b/docs/spec/observer/messages.md index 48e0b76de0..045de79551 100644 --- a/docs/spec/observer/messages.md +++ b/docs/spec/observer/messages.md @@ -53,10 +53,10 @@ message MsgRemoveChainParams { } ``` -## MsgAddBlameVote +## MsgVoteBlame ```proto -message MsgAddBlameVote { +message MsgVoteBlame { string creator = 1; int64 chain_id = 2; Blame blame_info = 3; diff --git a/proto/zetachain/zetacore/observer/tx.proto b/proto/zetachain/zetacore/observer/tx.proto index a3a70c6c65..d5ad32e590 100644 --- a/proto/zetachain/zetacore/observer/tx.proto +++ b/proto/zetachain/zetacore/observer/tx.proto @@ -21,7 +21,7 @@ service Msg { returns (MsgUpdateChainParamsResponse); rpc RemoveChainParams(MsgRemoveChainParams) returns (MsgRemoveChainParamsResponse); - rpc AddBlameVote(MsgAddBlameVote) returns (MsgAddBlameVoteResponse); + rpc VoteBlame(MsgVoteBlame) returns (MsgVoteBlameResponse); rpc UpdateKeygen(MsgUpdateKeygen) returns (MsgUpdateKeygenResponse); rpc VoteBlockHeader(MsgVoteBlockHeader) returns (MsgVoteBlockHeaderResponse); rpc ResetChainNonces(MsgResetChainNonces) @@ -77,13 +77,13 @@ message MsgAddObserver { message MsgAddObserverResponse {} -message MsgAddBlameVote { +message MsgVoteBlame { string creator = 1; int64 chain_id = 2; Blame blame_info = 3 [ (gogoproto.nullable) = false ]; } -message MsgAddBlameVoteResponse {} +message MsgVoteBlameResponse {} message MsgUpdateKeygen { string creator = 1; diff --git a/testutil/sample/sample.go b/testutil/sample/sample.go index 431d93337d..bdd7681ee1 100644 --- a/testutil/sample/sample.go +++ b/testutil/sample/sample.go @@ -111,7 +111,7 @@ func AppState(t *testing.T) map[string]json.RawMessage { func GenDoc(t *testing.T) *types.GenesisDoc { jsonBlob := []byte( - "{\n \"genesis_time\": \"2024-04-12T05:07:56.004517Z\",\n \"chain_id\": \"localnet_101-1\",\n \"initial_height\": \"1\",\n \"consensus_params\": {\n \"block\": {\n \"max_bytes\": \"22020096\",\n \"max_gas\": \"10000000\",\n \"time_iota_ms\": \"1000\"\n },\n \"evidence\": {\n \"max_age_num_blocks\": \"100000\",\n \"max_age_duration\": \"172800000000000\",\n \"max_bytes\": \"1048576\"\n },\n \"validator\": {\n \"pub_key_types\": [\n \"ed25519\"\n ]\n },\n \"version\": {}\n },\n \"app_hash\": \"\",\n \"app_state\": {\n \"auth\": {\n \"params\": {\n \"max_memo_characters\": \"256\",\n \"tx_sig_limit\": \"7\",\n \"tx_size_cost_per_byte\": \"10\",\n \"sig_verify_cost_ed25519\": \"590\",\n \"sig_verify_cost_secp256k1\": \"1000\"\n },\n \"accounts\": [\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n }\n ]\n },\n \"authority\": {\n \"policies\": {\n \"items\": [\n {\n \"policy_type\": \"groupEmergency\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n },\n {\n \"policy_type\": \"groupOperational\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n },\n {\n \"policy_type\": \"groupAdmin\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n }\n ]\n }\n },\n \"authz\": {\n \"authorization\": [\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgGasPriceVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteInbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteOutbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgCreateTSSVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgAddOutboundTracker\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlameVote\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlockHeader\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgGasPriceVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteInbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteOutbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgCreateTSSVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgAddOutboundTracker\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlameVote\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlockHeader\"\n },\n \"expiration\": null\n }\n ]\n },\n \"bank\": {\n \"params\": {\n \"send_enabled\": [],\n \"default_send_enabled\": true\n },\n \"balances\": [\n {\n \"address\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"4200000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"4200000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n ]\n }\n ],\n \"supply\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"8402000000000000000000000\"\n }\n ],\n \"denom_metadata\": []\n },\n \"crisis\": {\n \"constant_fee\": {\n \"denom\": \"azeta\",\n \"amount\": \"1000\"\n }\n },\n \"crosschain\": {\n \"outboundTrackerList\": [],\n \"inboundHashToCctxList\": [],\n \"inbound_tracker_list\": [],\n \"zeta_accounting\": {\n \"aborted_zeta_amount\": \"0\"\n }\n },\n \"distribution\": {\n \"params\": {\n \"community_tax\": \"0.020000000000000000\",\n \"base_proposer_reward\": \"0.010000000000000000\",\n \"bonus_proposer_reward\": \"0.040000000000000000\",\n \"withdraw_addr_enabled\": true\n },\n \"fee_pool\": {\n \"community_pool\": []\n },\n \"delegator_withdraw_infos\": [],\n \"previous_proposer\": \"\",\n \"outstanding_rewards\": [],\n \"validator_accumulated_commissions\": [],\n \"validator_historical_rewards\": [],\n \"validator_current_rewards\": [],\n \"delegator_starting_infos\": [],\n \"validator_slash_events\": []\n },\n \"emissions\": {\n \"params\": {\n \"max_bond_factor\": \"1.25\",\n \"min_bond_factor\": \"0.75\",\n \"avg_block_time\": \"6.00\",\n \"target_bond_ratio\": \"00.67\",\n \"validator_emission_percentage\": \"00.50\",\n \"observer_emission_percentage\": \"00.25\",\n \"tss_signer_emission_percentage\": \"00.25\",\n \"duration_factor_constant\": \"0.001877876953694702\",\n \"observer_slash_amount\": \"0\"\n },\n \"withdrawableEmissions\": []\n },\n \"evidence\": {\n \"evidence\": []\n },\n \"evm\": {\n \"accounts\": [],\n \"params\": {\n \"evm_denom\": \"azeta\",\n \"enable_create\": true,\n \"enable_call\": true,\n \"extra_eips\": [],\n \"chain_config\": {\n \"homestead_block\": \"0\",\n \"dao_fork_block\": \"0\",\n \"dao_fork_support\": true,\n \"eip150_block\": \"0\",\n \"eip150_hash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"eip155_block\": \"0\",\n \"eip158_block\": \"0\",\n \"byzantium_block\": \"0\",\n \"constantinople_block\": \"0\",\n \"petersburg_block\": \"0\",\n \"istanbul_block\": \"0\",\n \"muir_glacier_block\": \"0\",\n \"berlin_block\": \"0\",\n \"london_block\": \"0\",\n \"arrow_glacier_block\": \"0\",\n \"gray_glacier_block\": \"0\",\n \"merge_netsplit_block\": \"0\",\n \"shanghai_block\": \"0\",\n \"cancun_block\": \"0\"\n },\n \"allow_unprotected_txs\": false\n }\n },\n \"feemarket\": {\n \"params\": {\n \"no_base_fee\": false,\n \"base_fee_change_denominator\": 8,\n \"elasticity_multiplier\": 2,\n \"enable_height\": \"0\",\n \"base_fee\": \"1000000000\",\n \"min_gas_price\": \"0.000000000000000000\",\n \"min_gas_multiplier\": \"0.500000000000000000\"\n },\n \"block_gas\": \"0\"\n },\n \"fungible\": {\n \"params\": {},\n \"foreignCoinsList\": [],\n \"systemContract\": null\n },\n \"genutil\": {\n \"gen_txs\": [\n {\n \"body\": {\n \"messages\": [\n {\n \"@type\": \"/cosmos.staking.v1beta1.MsgCreateValidator\",\n \"description\": {\n \"moniker\": \"Zetanode-Localnet\",\n \"identity\": \"\",\n \"website\": \"\",\n \"security_contact\": \"\",\n \"details\": \"\"\n },\n \"commission\": {\n \"rate\": \"0.100000000000000000\",\n \"max_rate\": \"0.200000000000000000\",\n \"max_change_rate\": \"0.010000000000000000\"\n },\n \"min_self_delegation\": \"1\",\n \"delegator_address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"validator_address\": \"zetavaloper13c7p3xrhd6q2rx3h235jpt8pjdwvacyw7tkass\",\n \"pubkey\": {\n \"@type\": \"/cosmos.crypto.ed25519.PubKey\",\n \"key\": \"sBSs5r1vQn1idTp4uRTbdUK0jjmEscI3pn88LUXI4CQ=\"\n },\n \"value\": {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n }\n ],\n \"memo\": \"1db4f4185e68c1c17d508294de2592616dad37a5@192.168.2.12:26656\",\n \"timeout_height\": \"0\",\n \"extension_options\": [],\n \"non_critical_extension_options\": []\n },\n \"auth_info\": {\n \"signer_infos\": [\n {\n \"public_key\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A05F6QuFVpb/5KrIPvlHr209ZsD22gW0omhLSXWAtQrh\"\n },\n \"mode_info\": {\n \"single\": {\n \"mode\": \"SIGN_MODE_DIRECT\"\n }\n },\n \"sequence\": \"0\"\n }\n ],\n \"fee\": {\n \"amount\": [],\n \"gas_limit\": \"200000\",\n \"payer\": \"\",\n \"granter\": \"\"\n },\n \"tip\": null\n },\n \"signatures\": [\n \"y5YROwZmV0jcgv5BgRJCDE+Kq5OsX8+88or1ogekPLBw3ecPt8GsCeEbPQ24JONLzNwQEIUDNYTeSQnXnCfzyg==\"\n ]\n }\n ]\n },\n \"gov\": {\n \"starting_proposal_id\": \"1\",\n \"deposits\": [],\n \"votes\": [],\n \"proposals\": [],\n \"deposit_params\": {\n \"min_deposit\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"10000000\"\n }\n ],\n \"max_deposit_period\": \"172800s\"\n },\n \"voting_params\": {\n \"voting_period\": \"10s\"\n },\n \"tally_params\": {\n \"quorum\": \"0.334000000000000000\",\n \"threshold\": \"0.500000000000000000\",\n \"veto_threshold\": \"0.334000000000000000\"\n }\n },\n \"group\": {\n \"group_seq\": \"0\",\n \"groups\": [],\n \"group_members\": [],\n \"group_policy_seq\": \"0\",\n \"group_policies\": [],\n \"proposal_seq\": \"0\",\n \"proposals\": [],\n \"votes\": []\n },\n \"mint\": {\n \"params\": {\n \"mint_denom\": \"azeta\"\n }\n },\n \"observer\": {\n \"observers\": {\n \"observer_list\": [\n \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\"\n ]\n },\n \"nodeAccountList\": [\n {\n \"operator\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"granteeAddress\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"granteePubkey\": {\n \"secp256k1\": \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\"\n },\n \"nodeStatus\": 4\n },\n {\n \"operator\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"granteeAddress\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"granteePubkey\": {\n \"secp256k1\": \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n },\n \"nodeStatus\": 4\n }\n ],\n \"crosschain_flags\": {\n \"isInboundEnabled\": true,\n \"isOutboundEnabled\": true\n },\n \"keygen\": {\n \"status\": 1,\n \"granteePubkeys\": [\n \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\",\n \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n ]\n },\n \"chain_params_list\": {},\n \"tss\": {\n \"tss_pubkey\": \"zetapub1addwnpepq28c57cvcs0a2htsem5zxr6qnlvq9mzhmm76z3jncsnzz32rclangr2g35p\",\n \"tss_participant_list\": [\n \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\",\n \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n ],\n \"operator_address_list\": [\n \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\"\n ]\n },\n \"tss_history\": [],\n \"tss_fund_migrators\": [],\n \"blame_list\": [],\n \"pending_nonces\": [],\n \"chain_nonces\": [],\n \"nonce_to_cctx\": []\n },\n \"params\": null,\n \"slashing\": {\n \"params\": {\n \"signed_blocks_window\": \"100\",\n \"min_signed_per_window\": \"0.500000000000000000\",\n \"downtime_jail_duration\": \"600s\",\n \"slash_fraction_double_sign\": \"0.050000000000000000\",\n \"slash_fraction_downtime\": \"0.010000000000000000\"\n },\n \"signing_infos\": [],\n \"missed_blocks\": []\n },\n \"staking\": {\n \"params\": {\n \"unbonding_time\": \"1814400s\",\n \"max_validators\": 100,\n \"max_entries\": 7,\n \"historical_entries\": 10000,\n \"bond_denom\": \"azeta\",\n \"min_commission_rate\": \"0.000000000000000000\"\n },\n \"last_total_power\": \"0\",\n \"last_validator_powers\": [],\n \"validators\": [],\n \"delegations\": [],\n \"unbonding_delegations\": [],\n \"redelegations\": [],\n \"exported\": false\n },\n \"upgrade\": {},\n \"vesting\": {}\n }\n }", + "{\n \"genesis_time\": \"2024-04-12T05:07:56.004517Z\",\n \"chain_id\": \"localnet_101-1\",\n \"initial_height\": \"1\",\n \"consensus_params\": {\n \"block\": {\n \"max_bytes\": \"22020096\",\n \"max_gas\": \"10000000\",\n \"time_iota_ms\": \"1000\"\n },\n \"evidence\": {\n \"max_age_num_blocks\": \"100000\",\n \"max_age_duration\": \"172800000000000\",\n \"max_bytes\": \"1048576\"\n },\n \"validator\": {\n \"pub_key_types\": [\n \"ed25519\"\n ]\n },\n \"version\": {}\n },\n \"app_hash\": \"\",\n \"app_state\": {\n \"auth\": {\n \"params\": {\n \"max_memo_characters\": \"256\",\n \"tx_sig_limit\": \"7\",\n \"tx_size_cost_per_byte\": \"10\",\n \"sig_verify_cost_ed25519\": \"590\",\n \"sig_verify_cost_secp256k1\": \"1000\"\n },\n \"accounts\": [\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n },\n {\n \"@type\": \"/ethermint.types.v1.EthAccount\",\n \"base_account\": {\n \"address\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"pub_key\": null,\n \"account_number\": \"0\",\n \"sequence\": \"0\"\n },\n \"code_hash\": \"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470\"\n }\n ]\n },\n \"authority\": {\n \"policies\": {\n \"items\": [\n {\n \"policy_type\": \"groupEmergency\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n },\n {\n \"policy_type\": \"groupOperational\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n },\n {\n \"policy_type\": \"groupAdmin\",\n \"address\": \"zeta1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsxn0x73\"\n }\n ]\n }\n },\n \"authz\": {\n \"authorization\": [\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgGasPriceVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteInbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteOutbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgCreateTSSVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgAddOutboundTracker\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgVoteBlame\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"grantee\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlockHeader\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgGasPriceVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteInbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgVoteOutbound\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgCreateTSSVoter\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.crosschain.MsgAddOutboundTracker\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgVoteBlame\"\n },\n \"expiration\": null\n },\n {\n \"granter\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"grantee\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"authorization\": {\n \"@type\": \"/cosmos.authz.v1beta1.GenericAuthorization\",\n \"msg\": \"/zetachain.zetacore.observer.MsgAddBlockHeader\"\n },\n \"expiration\": null\n }\n ]\n },\n \"bank\": {\n \"params\": {\n \"send_enabled\": [],\n \"default_send_enabled\": true\n },\n \"balances\": [\n {\n \"address\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"4200000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"4200000000000000000000000\"\n }\n ]\n },\n {\n \"address\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"coins\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n ]\n }\n ],\n \"supply\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"8402000000000000000000000\"\n }\n ],\n \"denom_metadata\": []\n },\n \"crisis\": {\n \"constant_fee\": {\n \"denom\": \"azeta\",\n \"amount\": \"1000\"\n }\n },\n \"crosschain\": {\n \"outboundTrackerList\": [],\n \"inboundHashToCctxList\": [],\n \"inbound_tracker_list\": [],\n \"zeta_accounting\": {\n \"aborted_zeta_amount\": \"0\"\n }\n },\n \"distribution\": {\n \"params\": {\n \"community_tax\": \"0.020000000000000000\",\n \"base_proposer_reward\": \"0.010000000000000000\",\n \"bonus_proposer_reward\": \"0.040000000000000000\",\n \"withdraw_addr_enabled\": true\n },\n \"fee_pool\": {\n \"community_pool\": []\n },\n \"delegator_withdraw_infos\": [],\n \"previous_proposer\": \"\",\n \"outstanding_rewards\": [],\n \"validator_accumulated_commissions\": [],\n \"validator_historical_rewards\": [],\n \"validator_current_rewards\": [],\n \"delegator_starting_infos\": [],\n \"validator_slash_events\": []\n },\n \"emissions\": {\n \"params\": {\n \"max_bond_factor\": \"1.25\",\n \"min_bond_factor\": \"0.75\",\n \"avg_block_time\": \"6.00\",\n \"target_bond_ratio\": \"00.67\",\n \"validator_emission_percentage\": \"00.50\",\n \"observer_emission_percentage\": \"00.25\",\n \"tss_signer_emission_percentage\": \"00.25\",\n \"duration_factor_constant\": \"0.001877876953694702\",\n \"observer_slash_amount\": \"0\"\n },\n \"withdrawableEmissions\": []\n },\n \"evidence\": {\n \"evidence\": []\n },\n \"evm\": {\n \"accounts\": [],\n \"params\": {\n \"evm_denom\": \"azeta\",\n \"enable_create\": true,\n \"enable_call\": true,\n \"extra_eips\": [],\n \"chain_config\": {\n \"homestead_block\": \"0\",\n \"dao_fork_block\": \"0\",\n \"dao_fork_support\": true,\n \"eip150_block\": \"0\",\n \"eip150_hash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"eip155_block\": \"0\",\n \"eip158_block\": \"0\",\n \"byzantium_block\": \"0\",\n \"constantinople_block\": \"0\",\n \"petersburg_block\": \"0\",\n \"istanbul_block\": \"0\",\n \"muir_glacier_block\": \"0\",\n \"berlin_block\": \"0\",\n \"london_block\": \"0\",\n \"arrow_glacier_block\": \"0\",\n \"gray_glacier_block\": \"0\",\n \"merge_netsplit_block\": \"0\",\n \"shanghai_block\": \"0\",\n \"cancun_block\": \"0\"\n },\n \"allow_unprotected_txs\": false\n }\n },\n \"feemarket\": {\n \"params\": {\n \"no_base_fee\": false,\n \"base_fee_change_denominator\": 8,\n \"elasticity_multiplier\": 2,\n \"enable_height\": \"0\",\n \"base_fee\": \"1000000000\",\n \"min_gas_price\": \"0.000000000000000000\",\n \"min_gas_multiplier\": \"0.500000000000000000\"\n },\n \"block_gas\": \"0\"\n },\n \"fungible\": {\n \"params\": {},\n \"foreignCoinsList\": [],\n \"systemContract\": null\n },\n \"genutil\": {\n \"gen_txs\": [\n {\n \"body\": {\n \"messages\": [\n {\n \"@type\": \"/cosmos.staking.v1beta1.MsgCreateValidator\",\n \"description\": {\n \"moniker\": \"Zetanode-Localnet\",\n \"identity\": \"\",\n \"website\": \"\",\n \"security_contact\": \"\",\n \"details\": \"\"\n },\n \"commission\": {\n \"rate\": \"0.100000000000000000\",\n \"max_rate\": \"0.200000000000000000\",\n \"max_change_rate\": \"0.010000000000000000\"\n },\n \"min_self_delegation\": \"1\",\n \"delegator_address\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"validator_address\": \"zetavaloper13c7p3xrhd6q2rx3h235jpt8pjdwvacyw7tkass\",\n \"pubkey\": {\n \"@type\": \"/cosmos.crypto.ed25519.PubKey\",\n \"key\": \"sBSs5r1vQn1idTp4uRTbdUK0jjmEscI3pn88LUXI4CQ=\"\n },\n \"value\": {\n \"denom\": \"azeta\",\n \"amount\": \"1000000000000000000000\"\n }\n }\n ],\n \"memo\": \"1db4f4185e68c1c17d508294de2592616dad37a5@192.168.2.12:26656\",\n \"timeout_height\": \"0\",\n \"extension_options\": [],\n \"non_critical_extension_options\": []\n },\n \"auth_info\": {\n \"signer_infos\": [\n {\n \"public_key\": {\n \"@type\": \"/cosmos.crypto.secp256k1.PubKey\",\n \"key\": \"A05F6QuFVpb/5KrIPvlHr209ZsD22gW0omhLSXWAtQrh\"\n },\n \"mode_info\": {\n \"single\": {\n \"mode\": \"SIGN_MODE_DIRECT\"\n }\n },\n \"sequence\": \"0\"\n }\n ],\n \"fee\": {\n \"amount\": [],\n \"gas_limit\": \"200000\",\n \"payer\": \"\",\n \"granter\": \"\"\n },\n \"tip\": null\n },\n \"signatures\": [\n \"y5YROwZmV0jcgv5BgRJCDE+Kq5OsX8+88or1ogekPLBw3ecPt8GsCeEbPQ24JONLzNwQEIUDNYTeSQnXnCfzyg==\"\n ]\n }\n ]\n },\n \"gov\": {\n \"starting_proposal_id\": \"1\",\n \"deposits\": [],\n \"votes\": [],\n \"proposals\": [],\n \"deposit_params\": {\n \"min_deposit\": [\n {\n \"denom\": \"azeta\",\n \"amount\": \"10000000\"\n }\n ],\n \"max_deposit_period\": \"172800s\"\n },\n \"voting_params\": {\n \"voting_period\": \"10s\"\n },\n \"tally_params\": {\n \"quorum\": \"0.334000000000000000\",\n \"threshold\": \"0.500000000000000000\",\n \"veto_threshold\": \"0.334000000000000000\"\n }\n },\n \"group\": {\n \"group_seq\": \"0\",\n \"groups\": [],\n \"group_members\": [],\n \"group_policy_seq\": \"0\",\n \"group_policies\": [],\n \"proposal_seq\": \"0\",\n \"proposals\": [],\n \"votes\": []\n },\n \"mint\": {\n \"params\": {\n \"mint_denom\": \"azeta\"\n }\n },\n \"observer\": {\n \"observers\": {\n \"observer_list\": [\n \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\"\n ]\n },\n \"nodeAccountList\": [\n {\n \"operator\": \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"granteeAddress\": \"zeta10up34mvwjhjd9xkq56fwsf0k75vtg287uav69n\",\n \"granteePubkey\": {\n \"secp256k1\": \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\"\n },\n \"nodeStatus\": 4\n },\n {\n \"operator\": \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\",\n \"granteeAddress\": \"zeta1unzpyll3tmutf0r8sqpxpnj46vtdr59mw8qepx\",\n \"granteePubkey\": {\n \"secp256k1\": \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n },\n \"nodeStatus\": 4\n }\n ],\n \"crosschain_flags\": {\n \"isInboundEnabled\": true,\n \"isOutboundEnabled\": true\n },\n \"keygen\": {\n \"status\": 1,\n \"granteePubkeys\": [\n \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\",\n \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n ]\n },\n \"chain_params_list\": {},\n \"tss\": {\n \"tss_pubkey\": \"zetapub1addwnpepq28c57cvcs0a2htsem5zxr6qnlvq9mzhmm76z3jncsnzz32rclangr2g35p\",\n \"tss_participant_list\": [\n \"zetapub1addwnpepqtlu7fykuh875xjckz4mn4x0mzc25rrqk5qne7mrwxqmatgllv3nx6lrkdp\",\n \"zetapub1addwnpepqwy5pmg39regpq0gkggxehmfm8hwmxxw94sch7qzh4smava0szs07kk5045\"\n ],\n \"operator_address_list\": [\n \"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax\",\n \"zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2\"\n ]\n },\n \"tss_history\": [],\n \"tss_fund_migrators\": [],\n \"blame_list\": [],\n \"pending_nonces\": [],\n \"chain_nonces\": [],\n \"nonce_to_cctx\": []\n },\n \"params\": null,\n \"slashing\": {\n \"params\": {\n \"signed_blocks_window\": \"100\",\n \"min_signed_per_window\": \"0.500000000000000000\",\n \"downtime_jail_duration\": \"600s\",\n \"slash_fraction_double_sign\": \"0.050000000000000000\",\n \"slash_fraction_downtime\": \"0.010000000000000000\"\n },\n \"signing_infos\": [],\n \"missed_blocks\": []\n },\n \"staking\": {\n \"params\": {\n \"unbonding_time\": \"1814400s\",\n \"max_validators\": 100,\n \"max_entries\": 7,\n \"historical_entries\": 10000,\n \"bond_denom\": \"azeta\",\n \"min_commission_rate\": \"0.000000000000000000\"\n },\n \"last_total_power\": \"0\",\n \"last_validator_powers\": [],\n \"validators\": [],\n \"delegations\": [],\n \"unbonding_delegations\": [],\n \"redelegations\": [],\n \"exported\": false\n },\n \"upgrade\": {},\n \"vesting\": {}\n }\n }", ) genDoc, err := types.GenesisDocFromJSON(jsonBlob) require.NoError(t, err) diff --git a/typescript/zetachain/zetacore/observer/tx_pb.d.ts b/typescript/zetachain/zetacore/observer/tx_pb.d.ts index 4b270f371d..dd02737886 100644 --- a/typescript/zetachain/zetacore/observer/tx_pb.d.ts +++ b/typescript/zetachain/zetacore/observer/tx_pb.d.ts @@ -298,9 +298,9 @@ export declare class MsgAddObserverResponse extends Message { +export declare class MsgVoteBlame extends Message { /** * @generated from field: string creator = 1; */ @@ -316,38 +316,38 @@ export declare class MsgAddBlameVote extends Message { */ blameInfo?: Blame; - constructor(data?: PartialMessage); + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.MsgAddBlameVote"; + static readonly typeName = "zetachain.zetacore.observer.MsgVoteBlame"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlameVote; + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteBlame; - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlameVote; + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteBlame; - static fromJsonString(jsonString: string, options?: Partial): MsgAddBlameVote; + static fromJsonString(jsonString: string, options?: Partial): MsgVoteBlame; - static equals(a: MsgAddBlameVote | PlainMessage | undefined, b: MsgAddBlameVote | PlainMessage | undefined): boolean; + static equals(a: MsgVoteBlame | PlainMessage | undefined, b: MsgVoteBlame | PlainMessage | undefined): boolean; } /** - * @generated from message zetachain.zetacore.observer.MsgAddBlameVoteResponse + * @generated from message zetachain.zetacore.observer.MsgVoteBlameResponse */ -export declare class MsgAddBlameVoteResponse extends Message { - constructor(data?: PartialMessage); +export declare class MsgVoteBlameResponse extends Message { + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.MsgAddBlameVoteResponse"; + static readonly typeName = "zetachain.zetacore.observer.MsgVoteBlameResponse"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlameVoteResponse; + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteBlameResponse; - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlameVoteResponse; + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteBlameResponse; - static fromJsonString(jsonString: string, options?: Partial): MsgAddBlameVoteResponse; + static fromJsonString(jsonString: string, options?: Partial): MsgVoteBlameResponse; - static equals(a: MsgAddBlameVoteResponse | PlainMessage | undefined, b: MsgAddBlameVoteResponse | PlainMessage | undefined): boolean; + static equals(a: MsgVoteBlameResponse | PlainMessage | undefined, b: MsgVoteBlameResponse | PlainMessage | undefined): boolean; } /** diff --git a/x/crosschain/types/authz.go b/x/crosschain/types/authz.go index 8750b41fb3..75528388ca 100644 --- a/x/crosschain/types/authz.go +++ b/x/crosschain/types/authz.go @@ -14,7 +14,7 @@ func GetAllAuthzZetaclientTxTypes() []string { sdk.MsgTypeURL(&MsgVoteOutbound{}), sdk.MsgTypeURL(&MsgAddOutboundTracker{}), sdk.MsgTypeURL(&observertypes.MsgVoteTSS{}), - sdk.MsgTypeURL(&observertypes.MsgAddBlameVote{}), + sdk.MsgTypeURL(&observertypes.MsgVoteBlame{}), sdk.MsgTypeURL(&observertypes.MsgVoteBlockHeader{}), } } diff --git a/x/crosschain/types/authz_test.go b/x/crosschain/types/authz_test.go index 615b2a775c..67b809a360 100644 --- a/x/crosschain/types/authz_test.go +++ b/x/crosschain/types/authz_test.go @@ -14,7 +14,7 @@ func TestGetAllAuthzZetaclientTxTypes(t *testing.T) { "/zetachain.zetacore.crosschain.MsgVoteOutbound", "/zetachain.zetacore.crosschain.MsgAddOutboundTracker", "/zetachain.zetacore.observer.MsgVoteTSS", - "/zetachain.zetacore.observer.MsgAddBlameVote", + "/zetachain.zetacore.observer.MsgVoteBlame", "/zetachain.zetacore.observer.MsgVoteBlockHeader"}, crosschaintypes.GetAllAuthzZetaclientTxTypes()) } diff --git a/x/observer/client/cli/tx.go b/x/observer/client/cli/tx.go index 78569fb753..815bfb21f8 100644 --- a/x/observer/client/cli/tx.go +++ b/x/observer/client/cli/tx.go @@ -24,7 +24,7 @@ func GetTxCmd() *cobra.Command { CmdUpdateChainParams(), CmdRemoveChainParams(), CmdUpdateKeygen(), - CmdAddBlameVote(), + CmdVoteBlame(), CmdUpdateObserver(), CmdEncode(), CmdResetChainNonces(), diff --git a/x/observer/client/cli/tx_add_blame_vote.go b/x/observer/client/cli/tx_vote_blame.go similarity index 85% rename from x/observer/client/cli/tx_add_blame_vote.go rename to x/observer/client/cli/tx_vote_blame.go index d15b056875..4dec44f845 100644 --- a/x/observer/client/cli/tx_add_blame_vote.go +++ b/x/observer/client/cli/tx_vote_blame.go @@ -17,10 +17,10 @@ import ( "github.com/zeta-chain/zetacore/x/observer/types" ) -func CmdAddBlameVote() *cobra.Command { +func CmdVoteBlame() *cobra.Command { cmd := &cobra.Command{ - Use: "add-blame-vote [chain-id] [index] [failure-reason] [node-list]", - Short: "Broadcast message add-blame-vote", + Use: "vote-blame [chain-id] [index] [failure-reason] [node-list]", + Short: "Broadcast message vote-blame", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { chainID, err := strconv.Atoi(args[0]) @@ -55,9 +55,8 @@ func CmdAddBlameVote() *cobra.Command { Nodes: blameNodes, } - msg := types.NewMsgAddBlameVoteMsg(clientCtx.GetFromAddress().String(), int64(chainID), blameInfo) + msg := types.NewMsgVoteBlameMsg(clientCtx.GetFromAddress().String(), int64(chainID), blameInfo) - println("about to broadcast") return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, } diff --git a/x/observer/keeper/msg_server_add_blame_vote.go b/x/observer/keeper/msg_server_vote_blame.go similarity index 90% rename from x/observer/keeper/msg_server_add_blame_vote.go rename to x/observer/keeper/msg_server_vote_blame.go index fec760dda8..395b2fa9c1 100644 --- a/x/observer/keeper/msg_server_add_blame_vote.go +++ b/x/observer/keeper/msg_server_vote_blame.go @@ -11,10 +11,10 @@ import ( "github.com/zeta-chain/zetacore/x/observer/types" ) -func (k msgServer) AddBlameVote( +func (k msgServer) VoteBlame( goCtx context.Context, - vote *types.MsgAddBlameVote, -) (*types.MsgAddBlameVoteResponse, error) { + vote *types.MsgVoteBlame, +) (*types.MsgVoteBlameResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) observationType := types.ObservationType_TSSKeySign @@ -52,7 +52,7 @@ func (k msgServer) AddBlameVote( _, isFinalized := k.CheckIfFinalizingVote(ctx, ballot) if !isFinalized { // Return nil here to add vote to ballot and commit state - return &types.MsgAddBlameVoteResponse{}, nil + return &types.MsgVoteBlameResponse{}, nil } // ****************************************************************************** @@ -60,5 +60,5 @@ func (k msgServer) AddBlameVote( // ****************************************************************************** k.SetBlame(ctx, vote.BlameInfo) - return &types.MsgAddBlameVoteResponse{}, nil + return &types.MsgVoteBlameResponse{}, nil } diff --git a/x/observer/keeper/msg_server_add_blame_vote_test.go b/x/observer/keeper/msg_server_vote_blame_test.go similarity index 91% rename from x/observer/keeper/msg_server_add_blame_vote_test.go rename to x/observer/keeper/msg_server_vote_blame_test.go index 8150e57517..c051c56fd6 100644 --- a/x/observer/keeper/msg_server_add_blame_vote_test.go +++ b/x/observer/keeper/msg_server_vote_blame_test.go @@ -15,12 +15,12 @@ import ( "github.com/zeta-chain/zetacore/x/observer/types" ) -func TestMsgServer_AddBlameVote(t *testing.T) { +func TestMsgServer_VoteBlame(t *testing.T) { t.Run("should error if supported chain not found", func(t *testing.T) { k, ctx, _, _ := keepertest.ObserverKeeper(t) srv := keeper.NewMsgServerImpl(*k) - res, err := srv.AddBlameVote(ctx, &types.MsgAddBlameVote{ + res, err := srv.VoteBlame(ctx, &types.MsgVoteBlame{ ChainId: 1, }) require.Error(t, err) @@ -34,7 +34,7 @@ func TestMsgServer_AddBlameVote(t *testing.T) { chainId := getValidEthChainIDWithIndex(t, 0) setSupportedChain(ctx, *k, chainId) - res, err := srv.AddBlameVote(ctx, &types.MsgAddBlameVote{ + res, err := srv.VoteBlame(ctx, &types.MsgVoteBlame{ ChainId: chainId, }) require.Error(t, err) @@ -70,13 +70,13 @@ func TestMsgServer_AddBlameVote(t *testing.T) { }) blameInfo := sample.BlameRecord(t, "index") - res, err := srv.AddBlameVote(ctx, &types.MsgAddBlameVote{ + res, err := srv.VoteBlame(ctx, &types.MsgVoteBlame{ Creator: accAddressOfValidator.String(), ChainId: chainId, BlameInfo: blameInfo, }) require.NoError(t, err) - require.Equal(t, &types.MsgAddBlameVoteResponse{}, res) + require.Equal(t, &types.MsgVoteBlameResponse{}, res) blame, found := k.GetBlame(ctx, blameInfo.Index) require.True(t, found) @@ -111,7 +111,7 @@ func TestMsgServer_AddBlameVote(t *testing.T) { ObserverList: []string{accAddressOfValidator.String(), "Observer2"}, }) blameInfo := sample.BlameRecord(t, "index") - vote := &types.MsgAddBlameVote{ + vote := &types.MsgVoteBlame{ Creator: accAddressOfValidator.String(), ChainId: chainId, BlameInfo: blameInfo, @@ -126,7 +126,7 @@ func TestMsgServer_AddBlameVote(t *testing.T) { } k.SetBallot(ctx, &ballot) - _, err = srv.AddBlameVote(ctx, vote) + _, err = srv.VoteBlame(ctx, vote) require.Error(t, err) }) @@ -158,7 +158,7 @@ func TestMsgServer_AddBlameVote(t *testing.T) { ObserverList: []string{accAddressOfValidator.String(), "Observer2"}, }) blameInfo := sample.BlameRecord(t, "index") - vote := &types.MsgAddBlameVote{ + vote := &types.MsgVoteBlame{ Creator: accAddressOfValidator.String(), ChainId: chainId, BlameInfo: blameInfo, @@ -173,9 +173,9 @@ func TestMsgServer_AddBlameVote(t *testing.T) { } k.SetBallot(ctx, &ballot) - res, err := srv.AddBlameVote(ctx, vote) + res, err := srv.VoteBlame(ctx, vote) require.NoError(t, err) - require.Equal(t, &types.MsgAddBlameVoteResponse{}, res) + require.Equal(t, &types.MsgVoteBlameResponse{}, res) _, found := k.GetBlame(ctx, blameInfo.Index) require.False(t, found) diff --git a/x/observer/types/codec.go b/x/observer/types/codec.go index 9db4078a11..778caed484 100644 --- a/x/observer/types/codec.go +++ b/x/observer/types/codec.go @@ -12,7 +12,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgUpdateChainParams{}, "observer/UpdateChainParams", nil) cdc.RegisterConcrete(&MsgRemoveChainParams{}, "observer/RemoveChainParams", nil) cdc.RegisterConcrete(&MsgVoteBlockHeader{}, "observer/VoteBlockHeader", nil) - cdc.RegisterConcrete(&MsgAddBlameVote{}, "observer/AddBlameVote", nil) + cdc.RegisterConcrete(&MsgVoteBlame{}, "observer/VoteBlame", nil) cdc.RegisterConcrete(&MsgUpdateKeygen{}, "observer/UpdateKeygen", nil) cdc.RegisterConcrete(&MsgUpdateObserver{}, "observer/UpdateObserver", nil) cdc.RegisterConcrete(&MsgResetChainNonces{}, "observer/ResetChainNonces", nil) @@ -27,7 +27,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgAddObserver{}, &MsgUpdateChainParams{}, &MsgRemoveChainParams{}, - &MsgAddBlameVote{}, + &MsgVoteBlame{}, &MsgUpdateKeygen{}, &MsgVoteBlockHeader{}, &MsgUpdateObserver{}, diff --git a/x/observer/types/message_add_blame_vote.go b/x/observer/types/message_vote_blame.go similarity index 66% rename from x/observer/types/message_add_blame_vote.go rename to x/observer/types/message_vote_blame.go index cbbc922291..2a06e84869 100644 --- a/x/observer/types/message_add_blame_vote.go +++ b/x/observer/types/message_vote_blame.go @@ -9,27 +9,27 @@ import ( "github.com/zeta-chain/zetacore/pkg/chains" ) -const TypeMsgAddBlameVote = "add_blame_vote" +const TypeMsgVoteBlame = "vote_blame" -var _ sdk.Msg = &MsgAddBlameVote{} +var _ sdk.Msg = &MsgVoteBlame{} -func NewMsgAddBlameVoteMsg(creator string, chainID int64, blameInfo Blame) *MsgAddBlameVote { - return &MsgAddBlameVote{ +func NewMsgVoteBlameMsg(creator string, chainID int64, blameInfo Blame) *MsgVoteBlame { + return &MsgVoteBlame{ Creator: creator, ChainId: chainID, BlameInfo: blameInfo, } } -func (m *MsgAddBlameVote) Route() string { +func (m *MsgVoteBlame) Route() string { return RouterKey } -func (m *MsgAddBlameVote) Type() string { - return TypeMsgAddBlameVote +func (m *MsgVoteBlame) Type() string { + return TypeMsgVoteBlame } -func (m *MsgAddBlameVote) ValidateBasic() error { +func (m *MsgVoteBlame) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Creator) if err != nil { return cosmoserrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) @@ -40,7 +40,7 @@ func (m *MsgAddBlameVote) ValidateBasic() error { return nil } -func (m *MsgAddBlameVote) GetSigners() []sdk.AccAddress { +func (m *MsgVoteBlame) GetSigners() []sdk.AccAddress { creator, err := sdk.AccAddressFromBech32(m.Creator) if err != nil { panic(err) @@ -48,12 +48,12 @@ func (m *MsgAddBlameVote) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{creator} } -func (m *MsgAddBlameVote) GetSignBytes() []byte { +func (m *MsgVoteBlame) GetSignBytes() []byte { bz := ModuleCdc.MustMarshalJSON(m) return sdk.MustSortJSON(bz) } -func (m *MsgAddBlameVote) Digest() string { +func (m *MsgVoteBlame) Digest() string { msg := *m msg.Creator = "" // Generate an Identifier for the ballot corresponding to specific blame data diff --git a/x/observer/types/message_add_blame_vote_test.go b/x/observer/types/message_vote_blame_test.go similarity index 72% rename from x/observer/types/message_add_blame_vote_test.go rename to x/observer/types/message_vote_blame_test.go index e7d3178090..9514beac40 100644 --- a/x/observer/types/message_add_blame_vote_test.go +++ b/x/observer/types/message_vote_blame_test.go @@ -12,16 +12,16 @@ import ( "github.com/zeta-chain/zetacore/x/observer/types" ) -func TestNewMsgAddBlameVoteMsg_ValidateBasic(t *testing.T) { +func TestNewMsgVoteBlameMsg_ValidateBasic(t *testing.T) { keeper.SetConfig(false) tests := []struct { name string - msg *types.MsgAddBlameVote + msg *types.MsgVoteBlame error bool }{ { name: "invalid creator", - msg: types.NewMsgAddBlameVoteMsg( + msg: types.NewMsgVoteBlameMsg( "invalid_address", 1, sample.BlameRecordsList(t, 1)[0], @@ -30,7 +30,7 @@ func TestNewMsgAddBlameVoteMsg_ValidateBasic(t *testing.T) { }, { name: "invalid chain id", - msg: types.NewMsgAddBlameVoteMsg( + msg: types.NewMsgVoteBlameMsg( sample.AccAddress(), -1, sample.BlameRecordsList(t, 1)[0], @@ -39,7 +39,7 @@ func TestNewMsgAddBlameVoteMsg_ValidateBasic(t *testing.T) { }, { name: "valid", - msg: types.NewMsgAddBlameVoteMsg( + msg: types.NewMsgVoteBlameMsg( sample.AccAddress(), 5, sample.BlameRecordsList(t, 1)[0], @@ -61,23 +61,23 @@ func TestNewMsgAddBlameVoteMsg_ValidateBasic(t *testing.T) { } } -func TestNewMsgAddBlameVoteMsg_GetSigners(t *testing.T) { +func TestNewMsgVoteBlameMsg_GetSigners(t *testing.T) { signer := sample.AccAddress() tests := []struct { name string - msg types.MsgAddBlameVote + msg types.MsgVoteBlame panics bool }{ { name: "valid signer", - msg: types.MsgAddBlameVote{ + msg: types.MsgVoteBlame{ Creator: signer, }, panics: false, }, { name: "invalid signer", - msg: types.MsgAddBlameVote{ + msg: types.MsgVoteBlame{ Creator: "invalid", }, panics: true, @@ -98,22 +98,22 @@ func TestNewMsgAddBlameVoteMsg_GetSigners(t *testing.T) { } } -func TestNewMsgAddBlameVoteMsg_Type(t *testing.T) { - msg := types.MsgAddBlameVote{ +func TestNewMsgVoteBlameMsg_Type(t *testing.T) { + msg := types.MsgVoteBlame{ Creator: sample.AccAddress(), } - require.Equal(t, types.TypeMsgAddBlameVote, msg.Type()) + require.Equal(t, types.TypeMsgVoteBlame, msg.Type()) } -func TestNewMsgAddBlameVoteMsg_Route(t *testing.T) { - msg := types.MsgAddBlameVote{ +func TestNewMsgVoteBlameMsg_Route(t *testing.T) { + msg := types.MsgVoteBlame{ Creator: sample.AccAddress(), } require.Equal(t, types.RouterKey, msg.Route()) } -func TestNewMsgAddBlameVoteMsg_GetSignBytes(t *testing.T) { - msg := types.MsgAddBlameVote{ +func TestNewMsgVoteBlameMsg_GetSignBytes(t *testing.T) { + msg := types.MsgVoteBlame{ Creator: sample.AccAddress(), } require.NotPanics(t, func() { @@ -121,8 +121,8 @@ func TestNewMsgAddBlameVoteMsg_GetSignBytes(t *testing.T) { }) } -func TestNewMsgAddBlameVoteMsg_Digest(t *testing.T) { - msg := types.MsgAddBlameVote{ +func TestNewMsgVoteBlameMsg_Digest(t *testing.T) { + msg := types.MsgVoteBlame{ Creator: sample.AccAddress(), } diff --git a/x/observer/types/tx.pb.go b/x/observer/types/tx.pb.go index cc79b9c3c2..a0328fa65d 100644 --- a/x/observer/types/tx.pb.go +++ b/x/observer/types/tx.pb.go @@ -542,24 +542,24 @@ func (m *MsgAddObserverResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddObserverResponse proto.InternalMessageInfo -type MsgAddBlameVote struct { +type MsgVoteBlame struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ChainId int64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` BlameInfo Blame `protobuf:"bytes,3,opt,name=blame_info,json=blameInfo,proto3" json:"blame_info"` } -func (m *MsgAddBlameVote) Reset() { *m = MsgAddBlameVote{} } -func (m *MsgAddBlameVote) String() string { return proto.CompactTextString(m) } -func (*MsgAddBlameVote) ProtoMessage() {} -func (*MsgAddBlameVote) Descriptor() ([]byte, []int) { +func (m *MsgVoteBlame) Reset() { *m = MsgVoteBlame{} } +func (m *MsgVoteBlame) String() string { return proto.CompactTextString(m) } +func (*MsgVoteBlame) ProtoMessage() {} +func (*MsgVoteBlame) Descriptor() ([]byte, []int) { return fileDescriptor_eda6e3b1d16a4021, []int{10} } -func (m *MsgAddBlameVote) XXX_Unmarshal(b []byte) error { +func (m *MsgVoteBlame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddBlameVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgVoteBlame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddBlameVote.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgVoteBlame.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -569,54 +569,54 @@ func (m *MsgAddBlameVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *MsgAddBlameVote) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddBlameVote.Merge(m, src) +func (m *MsgVoteBlame) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgVoteBlame.Merge(m, src) } -func (m *MsgAddBlameVote) XXX_Size() int { +func (m *MsgVoteBlame) XXX_Size() int { return m.Size() } -func (m *MsgAddBlameVote) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddBlameVote.DiscardUnknown(m) +func (m *MsgVoteBlame) XXX_DiscardUnknown() { + xxx_messageInfo_MsgVoteBlame.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddBlameVote proto.InternalMessageInfo +var xxx_messageInfo_MsgVoteBlame proto.InternalMessageInfo -func (m *MsgAddBlameVote) GetCreator() string { +func (m *MsgVoteBlame) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgAddBlameVote) GetChainId() int64 { +func (m *MsgVoteBlame) GetChainId() int64 { if m != nil { return m.ChainId } return 0 } -func (m *MsgAddBlameVote) GetBlameInfo() Blame { +func (m *MsgVoteBlame) GetBlameInfo() Blame { if m != nil { return m.BlameInfo } return Blame{} } -type MsgAddBlameVoteResponse struct { +type MsgVoteBlameResponse struct { } -func (m *MsgAddBlameVoteResponse) Reset() { *m = MsgAddBlameVoteResponse{} } -func (m *MsgAddBlameVoteResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddBlameVoteResponse) ProtoMessage() {} -func (*MsgAddBlameVoteResponse) Descriptor() ([]byte, []int) { +func (m *MsgVoteBlameResponse) Reset() { *m = MsgVoteBlameResponse{} } +func (m *MsgVoteBlameResponse) String() string { return proto.CompactTextString(m) } +func (*MsgVoteBlameResponse) ProtoMessage() {} +func (*MsgVoteBlameResponse) Descriptor() ([]byte, []int) { return fileDescriptor_eda6e3b1d16a4021, []int{11} } -func (m *MsgAddBlameVoteResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgVoteBlameResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgAddBlameVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgVoteBlameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgAddBlameVoteResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgVoteBlameResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -626,17 +626,17 @@ func (m *MsgAddBlameVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *MsgAddBlameVoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddBlameVoteResponse.Merge(m, src) +func (m *MsgVoteBlameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgVoteBlameResponse.Merge(m, src) } -func (m *MsgAddBlameVoteResponse) XXX_Size() int { +func (m *MsgVoteBlameResponse) XXX_Size() int { return m.Size() } -func (m *MsgAddBlameVoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddBlameVoteResponse.DiscardUnknown(m) +func (m *MsgVoteBlameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgVoteBlameResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgAddBlameVoteResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgVoteBlameResponse proto.InternalMessageInfo type MsgUpdateKeygen struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` @@ -1251,8 +1251,8 @@ func init() { proto.RegisterType((*MsgRemoveChainParamsResponse)(nil), "zetachain.zetacore.observer.MsgRemoveChainParamsResponse") proto.RegisterType((*MsgAddObserver)(nil), "zetachain.zetacore.observer.MsgAddObserver") proto.RegisterType((*MsgAddObserverResponse)(nil), "zetachain.zetacore.observer.MsgAddObserverResponse") - proto.RegisterType((*MsgAddBlameVote)(nil), "zetachain.zetacore.observer.MsgAddBlameVote") - proto.RegisterType((*MsgAddBlameVoteResponse)(nil), "zetachain.zetacore.observer.MsgAddBlameVoteResponse") + proto.RegisterType((*MsgVoteBlame)(nil), "zetachain.zetacore.observer.MsgVoteBlame") + proto.RegisterType((*MsgVoteBlameResponse)(nil), "zetachain.zetacore.observer.MsgVoteBlameResponse") proto.RegisterType((*MsgUpdateKeygen)(nil), "zetachain.zetacore.observer.MsgUpdateKeygen") proto.RegisterType((*MsgUpdateKeygenResponse)(nil), "zetachain.zetacore.observer.MsgUpdateKeygenResponse") proto.RegisterType((*MsgResetChainNonces)(nil), "zetachain.zetacore.observer.MsgResetChainNonces") @@ -1272,86 +1272,86 @@ func init() { } var fileDescriptor_eda6e3b1d16a4021 = []byte{ - // 1257 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4b, 0x6f, 0xdb, 0x46, - 0x10, 0x36, 0xeb, 0xc4, 0x8f, 0x91, 0x25, 0x3b, 0xac, 0x1d, 0xcb, 0x74, 0xad, 0x1a, 0x44, 0xe2, - 0x28, 0xa9, 0x2b, 0xd9, 0x4a, 0xd1, 0xe7, 0xc9, 0x8f, 0xc6, 0x76, 0x53, 0xc7, 0x06, 0xe5, 0x06, - 0x45, 0x2e, 0xc4, 0x8a, 0x5c, 0x53, 0xac, 0xe9, 0x5d, 0x81, 0x4b, 0xf9, 0x91, 0x06, 0x05, 0x7a, - 0xec, 0xa9, 0xfd, 0x01, 0x05, 0x7a, 0xef, 0x3f, 0xe8, 0xb9, 0x3d, 0xa4, 0xb7, 0x1c, 0x7b, 0x2a, - 0x0a, 0xfb, 0xd4, 0x7f, 0x51, 0x70, 0x77, 0x49, 0x53, 0x0f, 0x53, 0x52, 0x8a, 0x9c, 0x24, 0xce, - 0x7e, 0xdf, 0xcc, 0x37, 0xbb, 0xb3, 0x33, 0x24, 0xdc, 0x79, 0x8e, 0x03, 0x64, 0xd5, 0x91, 0x4b, - 0xca, 0xfc, 0x1f, 0xf5, 0x71, 0x99, 0xd6, 0x18, 0xf6, 0x4f, 0xb0, 0x5f, 0x0e, 0xce, 0x4a, 0x0d, - 0x9f, 0x06, 0x54, 0x9d, 0x8f, 0x51, 0xa5, 0x08, 0x55, 0x8a, 0x50, 0xda, 0xb4, 0x43, 0x1d, 0xca, - 0x71, 0xe5, 0xf0, 0x9f, 0xa0, 0x68, 0xf7, 0xd2, 0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 0x6e, 0x87, 0xd4, 0x68, 0x93, 0xc4, 0x71, 0x5b, 0x8c, 0xea, 0x12, 0xe4, 0x84, 0x61, 0xaf, 0x19, - 0x08, 0x98, 0x88, 0xdb, 0x66, 0xd5, 0x67, 0x61, 0xa6, 0x25, 0x70, 0x7c, 0xb2, 0x2f, 0x78, 0x0b, - 0xda, 0x74, 0x59, 0x1f, 0x92, 0x96, 0x20, 0x67, 0x0b, 0x60, 0xab, 0xa6, 0x36, 0xab, 0x5a, 0x84, - 0x49, 0x69, 0x69, 0x53, 0xd5, 0x6e, 0x96, 0xad, 0x23, 0x11, 0x3d, 0xd6, 0xf5, 0xab, 0x02, 0x85, - 0xf8, 0x2e, 0x6d, 0x21, 0xb6, 0xef, 0xbb, 0x16, 0xde, 0x21, 0xa1, 0x14, 0x86, 0x1f, 0x85, 0xef, - 0x65, 0x29, 0x42, 0x09, 0xcc, 0x38, 0xdd, 0x28, 0x72, 0x76, 0x54, 0x52, 0x3b, 0x47, 0xd7, 0x60, - 0xb2, 0x93, 0x74, 0x77, 0xab, 0x17, 0x61, 0x29, 0x5d, 0x6b, 0x94, 0x56, 0xe5, 0xf7, 0x0c, 0x0c, - 0xef, 0x32, 0x47, 0xa5, 0x90, 0x49, 0xb6, 0xfd, 0xf7, 0x52, 0x15, 0xb5, 0x76, 0x57, 0xed, 0xe1, - 0x00, 0xe0, 0xb8, 0xdc, 0xcf, 0x20, 0xd7, 0xf6, 0xce, 0x56, 0xea, 0xe5, 0xa6, 0x15, 0xaf, 0x7d, - 0x38, 0x18, 0x3e, 0x8e, 0xfc, 0xbd, 0x02, 0xb7, 0x3a, 0xc7, 0xfd, 0x6a, 0x7f, 0xde, 0x12, 0x14, - 0xed, 0x93, 0x81, 0x29, 0x2d, 0x1a, 0x3a, 0x87, 0x7a, 0x4f, 0x0d, 0x1d, 0x94, 0xde, 0x1a, 0xae, - 0x9d, 0xf6, 0xaa, 0x0f, 0x13, 0x2d, 0x83, 0x70, 0xb9, 0x8f, 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ff, 0xd6, 0x91, 0x58, 0xd4, 0x15, 0x11, 0x00, 0x00, + // 1258 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4b, 0x6f, 0xdb, 0xc6, + 0x13, 0x37, 0xff, 0xce, 0xc3, 0x1e, 0x59, 0xb2, 0xc3, 0xbf, 0x93, 0xc8, 0x74, 0xa3, 0x06, 0x44, + 0xe2, 0x28, 0x69, 0x2a, 0xd9, 0x4a, 0xd1, 0xe7, 0xc9, 0x8f, 0xc6, 0x76, 0x53, 0xc7, 0x06, 0xe5, + 0x06, 0x45, 0x2e, 0xc4, 0x8a, 0x5c, 0x53, 0xac, 0xa9, 0x5d, 0x81, 0x4b, 0xf9, 0x91, 0x06, 0x05, + 0x7a, 0x2c, 0xd0, 0x43, 0x3f, 0x40, 0x81, 0xde, 0xfb, 0x0d, 0xda, 0x73, 0x0f, 0xe9, 0x2d, 0xc7, + 0x9e, 0x8a, 0xc2, 0x3e, 0xf5, 0x5b, 0x14, 0xdc, 0x5d, 0xae, 0x9e, 0xa6, 0xa4, 0x14, 0x3d, 0x49, + 0x9c, 0xfd, 0xfd, 0x66, 0x7e, 0xb3, 0x3b, 0x3b, 0x43, 0xc2, 0x9d, 0x17, 0x38, 0x42, 0x4e, 0x1d, + 0xf9, 0xa4, 0xcc, 0xff, 0xd1, 0x10, 0x97, 0x69, 0x8d, 0xe1, 0xf0, 0x08, 0x87, 0xe5, 0xe8, 0xa4, + 0xd4, 0x0c, 0x69, 0x44, 0xf5, 0x45, 0x85, 0x2a, 0x25, 0xa8, 0x52, 0x82, 0x32, 0xe6, 0x3d, 0xea, + 0x51, 0x8e, 0x2b, 0xc7, 0xff, 0x04, 0xc5, 0xb8, 0x97, 0xe6, 0xb8, 0x16, 0xa0, 0x06, 0x96, 0xc0, + 0x4a, 0x1a, 0xd0, 0x09, 0x29, 0x63, 0x7c, 0xd1, 0x3e, 0x08, 0x90, 0xc7, 0x24, 0xe7, 0x41, 0x1a, + 0x27, 0xf9, 0x23, 0xb1, 0xc5, 0x34, 0x6c, 0x13, 0x85, 0xa8, 0x91, 0x78, 0x5d, 0x4e, 0x45, 0x62, + 0xe2, 0xfa, 0xc4, 0xb3, 0x09, 0x25, 0x0e, 0x4e, 0x18, 0x77, 0x53, 0x77, 0x8f, 0xa5, 0xc9, 0x6d, + 0x1e, 0x7a, 0x65, 0x6e, 0x62, 0xf2, 0x67, 0x08, 0xb6, 0x19, 0x52, 0x7a, 0xc0, 0xe4, 0x8f, 0xc0, + 0x9a, 0x7f, 0x6b, 0x70, 0x6d, 0x87, 0x79, 0x5f, 0x34, 0x5d, 0x14, 0xe1, 0x5d, 0x19, 0x57, 0xcf, + 0xc3, 0x55, 0x27, 0xc4, 0x28, 0xa2, 0x61, 0x5e, 0xbb, 0xad, 0x15, 0xa7, 0xad, 0xe4, 0x51, 0x5f, + 0x86, 0x79, 0x1a, 0xb8, 0x76, 0xa2, 0xd0, 0x46, 0xae, 0x1b, 0x62, 0xc6, 0xf2, 0xff, 0xe3, 0x30, + 0x9d, 0x06, 0x6e, 0xe2, 0x64, 0x55, 0xac, 0xc4, 0x0c, 0x82, 0x8f, 0xfb, 0x19, 0x93, 0x82, 0x41, + 0xf0, 0x71, 0x2f, 0xe3, 0x19, 0x64, 0x5b, 0x5c, 0x8f, 0x1d, 0x62, 0xc4, 0x28, 0xc9, 0x5f, 0xba, + 0xad, 0x15, 0x73, 0x95, 0x95, 0x52, 0x4a, 0x09, 0x95, 0x12, 0x27, 0x22, 0x13, 0x8b, 0x13, 0xad, + 0x99, 0x56, 0xc7, 0x93, 0xb9, 0x08, 0x0b, 0x7d, 0xa9, 0x5a, 0x98, 0x35, 0x29, 0x61, 0xd8, 0xfc, + 0x5d, 0x03, 0x7d, 0x87, 0x79, 0xcf, 0x68, 0x84, 0xd7, 0x02, 0xea, 0x1c, 0x6e, 0x61, 0xe4, 0xa6, + 0xee, 0xc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f6, 0x70, 0xb4, 0x9d, 0x13, 0x68, 0xe3, 0xbd, 0x71, + 0xd0, 0x2a, 0xe6, 0xd7, 0x30, 0xdb, 0xfb, 0x16, 0x5c, 0x1e, 0x4d, 0xb9, 0x22, 0x18, 0x1f, 0x8c, + 0x49, 0x50, 0xc1, 0xbf, 0x81, 0xb9, 0xbe, 0xc9, 0xba, 0x3c, 0xfc, 0xa8, 0xba, 0x19, 0xc6, 0x87, + 0xe3, 0x32, 0x54, 0x7c, 0x07, 0xae, 0x26, 0xb3, 0xf1, 0xde, 0x28, 0x39, 0xec, 0x57, 0xab, 0x46, + 0x79, 0x44, 0xa0, 0x0a, 0x12, 0x00, 0x74, 0x4c, 0x8e, 0x07, 0xc3, 0xe8, 0x6d, 0xac, 0x51, 0x19, + 0x1d, 0xab, 0xa2, 0x51, 0xc8, 0x74, 0x4e, 0x85, 0xa1, 0x1d, 0xaa, 0x03, 0x3c, 0xbc, 0x43, 0x0d, + 0xe8, 0xf8, 0xfa, 0x4f, 0x1a, 0x2c, 0xa6, 0xb5, 0xfb, 0x4f, 0x46, 0x2b, 0xcb, 0x81, 0x64, 0x63, + 0xfd, 0x5f, 0x90, 0x13, 0x85, 0x6b, 0xdb, 0xaf, 0xce, 0x0a, 0xda, 0xeb, 0xb3, 0x82, 0xf6, 0xd7, + 0x59, 0x41, 0xfb, 0xe1, 0xbc, 0x30, 0xf1, 0xfa, 0xbc, 0x30, 0xf1, 0xc7, 0x79, 0x61, 0xe2, 0x79, + 0xd9, 0xf3, 0xa3, 0x7a, 0xab, 0x56, 0x72, 0x68, 0x83, 0x7f, 0x3c, 0xbf, 0xdb, 0xf3, 0x1d, 0x7d, + 0xd2, 0xf1, 0x71, 0x7e, 0xda, 0xc4, 0xac, 0x76, 0x85, 0x7f, 0x47, 0x3f, 0xfa, 0x27, 0x00, 0x00, + 0xff, 0xff, 0x9a, 0x8b, 0x97, 0x08, 0x06, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1370,7 +1370,7 @@ type MsgClient interface { UpdateObserver(ctx context.Context, in *MsgUpdateObserver, opts ...grpc.CallOption) (*MsgUpdateObserverResponse, error) UpdateChainParams(ctx context.Context, in *MsgUpdateChainParams, opts ...grpc.CallOption) (*MsgUpdateChainParamsResponse, error) RemoveChainParams(ctx context.Context, in *MsgRemoveChainParams, opts ...grpc.CallOption) (*MsgRemoveChainParamsResponse, error) - AddBlameVote(ctx context.Context, in *MsgAddBlameVote, opts ...grpc.CallOption) (*MsgAddBlameVoteResponse, error) + VoteBlame(ctx context.Context, in *MsgVoteBlame, opts ...grpc.CallOption) (*MsgVoteBlameResponse, error) UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) VoteBlockHeader(ctx context.Context, in *MsgVoteBlockHeader, opts ...grpc.CallOption) (*MsgVoteBlockHeaderResponse, error) ResetChainNonces(ctx context.Context, in *MsgResetChainNonces, opts ...grpc.CallOption) (*MsgResetChainNoncesResponse, error) @@ -1424,9 +1424,9 @@ func (c *msgClient) RemoveChainParams(ctx context.Context, in *MsgRemoveChainPar return out, nil } -func (c *msgClient) AddBlameVote(ctx context.Context, in *MsgAddBlameVote, opts ...grpc.CallOption) (*MsgAddBlameVoteResponse, error) { - out := new(MsgAddBlameVoteResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Msg/AddBlameVote", in, out, opts...) +func (c *msgClient) VoteBlame(ctx context.Context, in *MsgVoteBlame, opts ...grpc.CallOption) (*MsgVoteBlameResponse, error) { + out := new(MsgVoteBlameResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Msg/VoteBlame", in, out, opts...) if err != nil { return nil, err } @@ -1502,7 +1502,7 @@ type MsgServer interface { UpdateObserver(context.Context, *MsgUpdateObserver) (*MsgUpdateObserverResponse, error) UpdateChainParams(context.Context, *MsgUpdateChainParams) (*MsgUpdateChainParamsResponse, error) RemoveChainParams(context.Context, *MsgRemoveChainParams) (*MsgRemoveChainParamsResponse, error) - AddBlameVote(context.Context, *MsgAddBlameVote) (*MsgAddBlameVoteResponse, error) + VoteBlame(context.Context, *MsgVoteBlame) (*MsgVoteBlameResponse, error) UpdateKeygen(context.Context, *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) VoteBlockHeader(context.Context, *MsgVoteBlockHeader) (*MsgVoteBlockHeaderResponse, error) ResetChainNonces(context.Context, *MsgResetChainNonces) (*MsgResetChainNoncesResponse, error) @@ -1528,8 +1528,8 @@ func (*UnimplementedMsgServer) UpdateChainParams(ctx context.Context, req *MsgUp func (*UnimplementedMsgServer) RemoveChainParams(ctx context.Context, req *MsgRemoveChainParams) (*MsgRemoveChainParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveChainParams not implemented") } -func (*UnimplementedMsgServer) AddBlameVote(ctx context.Context, req *MsgAddBlameVote) (*MsgAddBlameVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddBlameVote not implemented") +func (*UnimplementedMsgServer) VoteBlame(ctx context.Context, req *MsgVoteBlame) (*MsgVoteBlameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VoteBlame not implemented") } func (*UnimplementedMsgServer) UpdateKeygen(ctx context.Context, req *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateKeygen not implemented") @@ -1629,20 +1629,20 @@ func _Msg_RemoveChainParams_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } -func _Msg_AddBlameVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddBlameVote) +func _Msg_VoteBlame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgVoteBlame) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).AddBlameVote(ctx, in) + return srv.(MsgServer).VoteBlame(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/zetachain.zetacore.observer.Msg/AddBlameVote", + FullMethod: "/zetachain.zetacore.observer.Msg/VoteBlame", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddBlameVote(ctx, req.(*MsgAddBlameVote)) + return srv.(MsgServer).VoteBlame(ctx, req.(*MsgVoteBlame)) } return interceptor(ctx, in, info, handler) } @@ -1794,8 +1794,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_RemoveChainParams_Handler, }, { - MethodName: "AddBlameVote", - Handler: _Msg_AddBlameVote_Handler, + MethodName: "VoteBlame", + Handler: _Msg_VoteBlame_Handler, }, { MethodName: "UpdateKeygen", @@ -2202,7 +2202,7 @@ func (m *MsgAddObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgAddBlameVote) Marshal() (dAtA []byte, err error) { +func (m *MsgVoteBlame) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2212,12 +2212,12 @@ func (m *MsgAddBlameVote) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddBlameVote) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgVoteBlame) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddBlameVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgVoteBlame) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2247,7 +2247,7 @@ func (m *MsgAddBlameVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgAddBlameVoteResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgVoteBlameResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2257,12 +2257,12 @@ func (m *MsgAddBlameVoteResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgAddBlameVoteResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgVoteBlameResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddBlameVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgVoteBlameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2873,7 +2873,7 @@ func (m *MsgAddObserverResponse) Size() (n int) { return n } -func (m *MsgAddBlameVote) Size() (n int) { +func (m *MsgVoteBlame) Size() (n int) { if m == nil { return 0 } @@ -2891,7 +2891,7 @@ func (m *MsgAddBlameVote) Size() (n int) { return n } -func (m *MsgAddBlameVoteResponse) Size() (n int) { +func (m *MsgVoteBlameResponse) Size() (n int) { if m == nil { return 0 } @@ -4110,7 +4110,7 @@ func (m *MsgAddObserverResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAddBlameVote) Unmarshal(dAtA []byte) error { +func (m *MsgVoteBlame) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4133,10 +4133,10 @@ func (m *MsgAddBlameVote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAddBlameVote: wiretype end group for non-group") + return fmt.Errorf("proto: MsgVoteBlame: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddBlameVote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgVoteBlame: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4244,7 +4244,7 @@ func (m *MsgAddBlameVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAddBlameVoteResponse) Unmarshal(dAtA []byte) error { +func (m *MsgVoteBlameResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4267,10 +4267,10 @@ func (m *MsgAddBlameVoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAddBlameVoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgVoteBlameResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddBlameVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgVoteBlameResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/zetaclient/zetacore/tx.go b/zetaclient/zetacore/tx.go index dbf144e9ab..b4aa0725f8 100644 --- a/zetaclient/zetacore/tx.go +++ b/zetaclient/zetacore/tx.go @@ -192,7 +192,7 @@ func (c *Client) PostBlameData(blame *blame.Blame, chainID int64, index string) FailureReason: blame.FailReason, Nodes: observertypes.ConvertNodes(blame.BlameNodes), } - msg := observertypes.NewMsgAddBlameVoteMsg(signerAddress, chainID, zetaBlame) + msg := observertypes.NewMsgVoteBlameMsg(signerAddress, chainID, zetaBlame) authzMsg, authzSigner, err := c.WrapMessageWithAuthz(msg) if err != nil {