From 373bee4ed5a30a6e77a9fc9b92a98b190c8791d5 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 29 May 2024 17:19:19 +0200 Subject: [PATCH 1/6] rename occurences --- app/ante/ante.go | 2 +- app/ante/ante_test.go | 10 +++--- cmd/zetae2e/local/monitor_priority_txs.go | 2 +- docs/spec/observer/messages.md | 4 +-- proto/zetachain/zetacore/observer/tx.proto | 6 ++-- testutil/sample/sample.go | 2 +- .../zetachain/zetacore/observer/tx_pb.d.ts | 16 ++++----- x/crosschain/types/authz.go | 2 +- x/crosschain/types/authz_test.go | 2 +- x/observer/client/cli/tx.go | 2 +- x/observer/client/cli/tx_add_blame_vote.go | 4 +-- .../keeper/msg_server_add_blame_vote.go | 10 +++--- .../keeper/msg_server_add_blame_vote_test.go | 20 +++++------ x/observer/types/codec.go | 4 +-- x/observer/types/message_add_blame_vote.go | 22 ++++++------ .../types/message_add_blame_vote_test.go | 36 +++++++++---------- x/observer/types/tx.pb.go | 32 ++++++++--------- zetaclient/zetacore/tx.go | 2 +- 18 files changed, 89 insertions(+), 89 deletions(-) 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/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/spec/observer/messages.md b/docs/spec/observer/messages.md index 2f7b25d91e..d989bd5bff 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 7316317fd4..b5aa737b57 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 UpdateCrosschainFlags(MsgUpdateCrosschainFlags) returns (MsgUpdateCrosschainFlagsResponse); rpc UpdateKeygen(MsgUpdateKeygen) returns (MsgUpdateKeygenResponse); @@ -75,13 +75,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 MsgUpdateCrosschainFlags { 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 1482e2fd44..3e44fa27be 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,19 +316,19 @@ 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: MsgAddBlameVote | 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 b66dd7a058..17cc18b77f 100644 --- a/x/observer/client/cli/tx.go +++ b/x/observer/client/cli/tx.go @@ -25,7 +25,7 @@ func GetTxCmd() *cobra.Command { CmdRemoveChainParams(), CmdUpdateCrosschainFlags(), CmdUpdateKeygen(), - CmdAddBlameVote(), + CmdVoteBlame(), CmdUpdateObserver(), CmdEncode(), CmdResetChainNonces(), diff --git a/x/observer/client/cli/tx_add_blame_vote.go b/x/observer/client/cli/tx_add_blame_vote.go index d15b056875..56aa59435a 100644 --- a/x/observer/client/cli/tx_add_blame_vote.go +++ b/x/observer/client/cli/tx_add_blame_vote.go @@ -17,7 +17,7 @@ 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", @@ -55,7 +55,7 @@ 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_add_blame_vote.go index fec760dda8..395b2fa9c1 100644 --- a/x/observer/keeper/msg_server_add_blame_vote.go +++ b/x/observer/keeper/msg_server_add_blame_vote.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_add_blame_vote_test.go index 8150e57517..c051c56fd6 100644 --- a/x/observer/keeper/msg_server_add_blame_vote_test.go +++ b/x/observer/keeper/msg_server_add_blame_vote_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 91cc9725db..e9c6a09671 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(&MsgUpdateCrosschainFlags{}, "observer/UpdateCrosschainFlags", nil) cdc.RegisterConcrete(&MsgUpdateKeygen{}, "observer/UpdateKeygen", nil) cdc.RegisterConcrete(&MsgUpdateObserver{}, "observer/UpdateObserver", nil) @@ -25,7 +25,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgAddObserver{}, &MsgUpdateChainParams{}, &MsgRemoveChainParams{}, - &MsgAddBlameVote{}, + &MsgVoteBlame{}, &MsgUpdateCrosschainFlags{}, &MsgUpdateKeygen{}, &MsgVoteBlockHeader{}, diff --git a/x/observer/types/message_add_blame_vote.go b/x/observer/types/message_add_blame_vote.go index cbbc922291..0eefb84711 100644 --- a/x/observer/types/message_add_blame_vote.go +++ b/x/observer/types/message_add_blame_vote.go @@ -9,27 +9,27 @@ import ( "github.com/zeta-chain/zetacore/pkg/chains" ) -const TypeMsgAddBlameVote = "add_blame_vote" +const TypeMsgVoteBlame = "add_blame_vote" -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_add_blame_vote_test.go index e7d3178090..9514beac40 100644 --- a/x/observer/types/message_add_blame_vote_test.go +++ b/x/observer/types/message_add_blame_vote_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 cb1d69eac1..2eb5a29257 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,26 +569,26 @@ 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 } 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 { From 94f4638b3dc211300c3dac347a276ad84a2d30fb Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 29 May 2024 17:24:10 +0200 Subject: [PATCH 2/6] do some renaming --- ...{tx_add_blame_vote.go => tx_vote_blame.go} | 4 +- ...blame_vote.go => msg_server_vote_blame.go} | 0 ..._test.go => msg_server_vote_blame_test.go} | 0 ...dd_blame_vote.go => message_vote_blame.go} | 2 +- ...ote_test.go => message_vote_blame_test.go} | 0 x/observer/types/tx.pb.go | 240 +++++++++--------- 6 files changed, 123 insertions(+), 123 deletions(-) rename x/observer/client/cli/{tx_add_blame_vote.go => tx_vote_blame.go} (94%) rename x/observer/keeper/{msg_server_add_blame_vote.go => msg_server_vote_blame.go} (100%) rename x/observer/keeper/{msg_server_add_blame_vote_test.go => msg_server_vote_blame_test.go} (100%) rename x/observer/types/{message_add_blame_vote.go => message_vote_blame.go} (97%) rename x/observer/types/{message_add_blame_vote_test.go => message_vote_blame_test.go} (100%) diff --git a/x/observer/client/cli/tx_add_blame_vote.go b/x/observer/client/cli/tx_vote_blame.go similarity index 94% rename from x/observer/client/cli/tx_add_blame_vote.go rename to x/observer/client/cli/tx_vote_blame.go index 56aa59435a..59b3b192d6 100644 --- a/x/observer/client/cli/tx_add_blame_vote.go +++ b/x/observer/client/cli/tx_vote_blame.go @@ -19,8 +19,8 @@ import ( 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]) diff --git a/x/observer/keeper/msg_server_add_blame_vote.go b/x/observer/keeper/msg_server_vote_blame.go similarity index 100% rename from x/observer/keeper/msg_server_add_blame_vote.go rename to x/observer/keeper/msg_server_vote_blame.go 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 100% rename from x/observer/keeper/msg_server_add_blame_vote_test.go rename to x/observer/keeper/msg_server_vote_blame_test.go diff --git a/x/observer/types/message_add_blame_vote.go b/x/observer/types/message_vote_blame.go similarity index 97% rename from x/observer/types/message_add_blame_vote.go rename to x/observer/types/message_vote_blame.go index 0eefb84711..2a06e84869 100644 --- a/x/observer/types/message_add_blame_vote.go +++ b/x/observer/types/message_vote_blame.go @@ -9,7 +9,7 @@ import ( "github.com/zeta-chain/zetacore/pkg/chains" ) -const TypeMsgVoteBlame = "add_blame_vote" +const TypeMsgVoteBlame = "vote_blame" var _ sdk.Msg = &MsgVoteBlame{} diff --git a/x/observer/types/message_add_blame_vote_test.go b/x/observer/types/message_vote_blame_test.go similarity index 100% rename from x/observer/types/message_add_blame_vote_test.go rename to x/observer/types/message_vote_blame_test.go diff --git a/x/observer/types/tx.pb.go b/x/observer/types/tx.pb.go index 2eb5a29257..5400984eee 100644 --- a/x/observer/types/tx.pb.go +++ b/x/observer/types/tx.pb.go @@ -595,28 +595,28 @@ func (m *MsgVoteBlame) GetChainId() int64 { 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 MsgUpdateCrosschainFlags struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` @@ -1073,8 +1073,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((*MsgUpdateCrosschainFlags)(nil), "zetachain.zetacore.observer.MsgUpdateCrosschainFlags") proto.RegisterType((*MsgUpdateCrosschainFlagsResponse)(nil), "zetachain.zetacore.observer.MsgUpdateCrosschainFlagsResponse") proto.RegisterType((*MsgUpdateKeygen)(nil), "zetachain.zetacore.observer.MsgUpdateKeygen") @@ -1090,81 +1090,81 @@ func init() { } var fileDescriptor_eda6e3b1d16a4021 = []byte{ - // 1176 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcb, 0x73, 0xdb, 0x44, - 0x18, 0x8f, 0x48, 0x9b, 0x38, 0x5f, 0xde, 0x22, 0x69, 0x1d, 0x85, 0x98, 0x8c, 0x86, 0x52, 0xb7, - 0x04, 0x3b, 0x71, 0x79, 0xcf, 0x70, 0x48, 0x5a, 0x9a, 0x84, 0x92, 0x26, 0x23, 0x87, 0x1e, 0x7a, - 0xd1, 0xac, 0xa5, 0x8d, 0x24, 0xa2, 0xec, 0x7a, 0xb4, 0xeb, 0x3c, 0x0a, 0xc3, 0x0c, 0x47, 0x0e, - 0x0c, 0xfc, 0x01, 0xfc, 0x23, 0xdc, 0x39, 0x94, 0x5b, 0x87, 0x13, 0x27, 0x86, 0x49, 0x4e, 0xfc, - 0x07, 0x1c, 0x19, 0xed, 0xae, 0x14, 0xbf, 0x22, 0xdb, 0x99, 0xe9, 0xc9, 0xd2, 0xb7, 0xbf, 0xdf, - 0xf7, 0xda, 0xef, 0x61, 0xc1, 0x3b, 0x2f, 0x30, 0x47, 0x8e, 0x8f, 0x02, 0x52, 0x16, 0x4f, 0x34, - 0xc2, 0x65, 0x5a, 0x63, 0x38, 0x3a, 0xc6, 0x51, 0x99, 0x9f, 0x96, 0xea, 0x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 0xf7, 0x1f, 0xf6, 0x99, 0xcc, 0x56, 0x9a, 0xf1, 0xf9, 0xb5, - 0x68, 0xcd, 0x39, 0x68, 0x99, 0xaf, 0x2b, 0xfd, 0xa9, 0x93, 0xe8, 0xde, 0x39, 0xe8, 0x36, 0x78, - 0xf5, 0x6f, 0x61, 0xba, 0xfd, 0x2f, 0x6c, 0xb9, 0x97, 0xa2, 0x36, 0x82, 0xf1, 0xf1, 0x80, 0x84, - 0xd4, 0xf8, 0xf7, 0x30, 0xd3, 0x31, 0xf1, 0x57, 0x7b, 0xd7, 0x50, 0x2b, 0xc3, 0xf8, 0x64, 0x50, - 0x46, 0x6a, 0xdf, 0x81, 0xd1, 0x64, 0x66, 0xdf, 0xed, 0x27, 0x86, 0xfd, 0x6a, 0xd5, 0x28, 0xf7, - 0x09, 0x4c, 0x8c, 0x6c, 0x6c, 0xbf, 0x3c, 0x2f, 0x68, 0xaf, 0xce, 0x0b, 0xda, 0x3f, 0xe7, 0x05, - 0xed, 0x97, 0x8b, 0xc2, 0xd0, 0xab, 0x8b, 0xc2, 0xd0, 0x5f, 0x17, 0x85, 0xa1, 0xe7, 0x65, 0x2f, - 0xe0, 0x7e, 0xa3, 0x56, 0x72, 0xe8, 0x91, 0xf8, 0xf0, 0x7a, 0xbf, 0xed, 0x1b, 0xec, 0xb4, 0xe9, - 0xc3, 0xee, 0xac, 0x8e, 0x59, 0x6d, 0x44, 0x7c, 0x83, 0x3d, 0xf8, 0x3f, 0x00, 0x00, 0xff, 0xff, - 0x57, 0xa3, 0x79, 0xf2, 0x42, 0x0f, 0x00, 0x00, + // 1177 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, 0x96, 0xc6, 0x6f, 0xd6, 0x76, 0x64, 0xba, 0x56, 0x0d, 0xa2, 0x69, 0xe4, +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 0x94, 0x79, 0xb8, 0xcd, 0x1b, + 0x97, 0x38, 0xc4, 0xf8, 0x45, 0x5f, 0x82, 0x3b, 0x1d, 0x26, 0xa4, 0xf5, 0xdf, 0x15, 0x78, 0x9b, + 0x57, 0x09, 0xc3, 0x21, 0x2f, 0x92, 0xa7, 0x7c, 0xda, 0xdd, 0xec, 0xaa, 0xbc, 0x0f, 0x33, 0xf1, + 0x16, 0x1f, 0x99, 0xa6, 0x4f, 0xcf, 0xf8, 0x89, 0x8c, 0x1a, 0x53, 0x96, 0x34, 0xfd, 0x0d, 0x3d, + 0x53, 0x0b, 0x30, 0xdb, 0x8a, 0x73, 0x3d, 0xc7, 0x15, 0xbd, 0x75, 0xba, 0x09, 0xdc, 0xf5, 0x1c, + 0x57, 0x5f, 0x81, 0xe5, 0x1e, 0xea, 0xa4, 0xfa, 0x3f, 0x14, 0x00, 0x71, 0xa7, 0x8e, 0x2a, 0x95, + 0x14, 0xd1, 0x2b, 0x00, 0x21, 0x63, 0x49, 0x11, 0xc6, 0x85, 0x9b, 0x0d, 0x19, 0x13, 0x65, 0xb7, + 0x0e, 0xea, 0x09, 0xcf, 0x8b, 0x19, 0x1d, 0xa8, 0x29, 0xda, 0x7d, 0xac, 0x7d, 0x36, 0xde, 0x79, + 0x8e, 0x43, 0xb4, 0x1b, 0x37, 0xfe, 0x47, 0x30, 0xc6, 0x42, 0x14, 0x36, 0x98, 0x98, 0x74, 0xeb, + 0xd7, 0x35, 0x7e, 0x31, 0xe6, 0x0d, 0x6c, 0x61, 0xef, 0x14, 0x57, 0x38, 0xc7, 0x10, 0x5c, 0xfd, + 0xe7, 0xe6, 0x04, 0x3b, 0xaa, 0x54, 0xde, 0x4c, 0xbb, 0x8f, 0x60, 0x22, 0x30, 0xd6, 0xb0, 0xac, + 0x64, 0x8e, 0x67, 0x8c, 0xa9, 0x78, 0xb5, 0x12, 0x2f, 0x96, 0x5f, 0x65, 0x61, 0x74, 0x9f, 0x39, + 0x2a, 0x85, 0x89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xba, 0xca, 0x8f, 0x3c, 0x2f, 0x39, + 0x5e, 0xe8, 0x36, 0xaa, 0x45, 0x8b, 0xd6, 0xf8, 0x97, 0xd6, 0x87, 0x1d, 0x1f, 0x5d, 0xe7, 0x2d, + 0x5f, 0x72, 0x17, 0x75, 0xcc, 0xaa, 0x63, 0xfc, 0xa3, 0xeb, 0xc1, 0xff, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x29, 0x27, 0xba, 0x0c, 0x33, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1183,7 +1183,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) UpdateCrosschainFlags(ctx context.Context, in *MsgUpdateCrosschainFlags, opts ...grpc.CallOption) (*MsgUpdateCrosschainFlagsResponse, error) UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) VoteBlockHeader(ctx context.Context, in *MsgVoteBlockHeader, opts ...grpc.CallOption) (*MsgVoteBlockHeaderResponse, error) @@ -1235,9 +1235,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 } @@ -1295,7 +1295,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) UpdateCrosschainFlags(context.Context, *MsgUpdateCrosschainFlags) (*MsgUpdateCrosschainFlagsResponse, error) UpdateKeygen(context.Context, *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) VoteBlockHeader(context.Context, *MsgVoteBlockHeader) (*MsgVoteBlockHeaderResponse, error) @@ -1319,8 +1319,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) UpdateCrosschainFlags(ctx context.Context, req *MsgUpdateCrosschainFlags) (*MsgUpdateCrosschainFlagsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCrosschainFlags not implemented") @@ -1414,20 +1414,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) } @@ -1543,8 +1543,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_RemoveChainParams_Handler, }, { - MethodName: "AddBlameVote", - Handler: _Msg_AddBlameVote_Handler, + MethodName: "VoteBlame", + Handler: _Msg_VoteBlame_Handler, }, { MethodName: "UpdateCrosschainFlags", @@ -1943,7 +1943,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]) @@ -1953,12 +1953,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 @@ -1988,7 +1988,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]) @@ -1998,12 +1998,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 @@ -2490,7 +2490,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 } @@ -2508,7 +2508,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 } @@ -3679,7 +3679,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 { @@ -3702,10 +3702,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: @@ -3813,7 +3813,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 { @@ -3836,10 +3836,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: From 922805678857151f2af8cf0892c37e74e2a34193 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 29 May 2024 17:32:31 +0200 Subject: [PATCH 3/6] make generate --- docs/cli/zetacored/zetacored_tx_observer.md | 2 +- ....md => zetacored_tx_observer_vote-blame.md} | 8 ++++---- docs/openapi/openapi.swagger.yaml | 4 ++-- .../zetachain/zetacore/observer/tx_pb.d.ts | 18 +++++++++--------- 4 files changed, 16 insertions(+), 16 deletions(-) rename docs/cli/zetacored/{zetacored_tx_observer_add-blame-vote.md => zetacored_tx_observer_vote-blame.md} (94%) diff --git a/docs/cli/zetacored/zetacored_tx_observer.md b/docs/cli/zetacored/zetacored_tx_observer.md index 1e5d002136..aec83d580c 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 encode](zetacored_tx_observer_encode.md) - Encode a json string into hex * [zetacored tx observer remove-chain-params](zetacored_tx_observer_remove-chain-params.md) - Broadcast message to remove chain params @@ -35,5 +34,6 @@ zetacored tx observer [flags] * [zetacored tx observer update-crosschain-flags](zetacored_tx_observer_update-crosschain-flags.md) - Update crosschain 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 9067eccc6d..bd8fe103d9 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -57731,8 +57731,6 @@ definitions: last_change_height: type: string format: int64 - observerMsgAddBlameVoteResponse: - type: object observerMsgAddObserverResponse: type: object observerMsgRemoveChainParamsResponse: @@ -57747,6 +57745,8 @@ definitions: type: object observerMsgUpdateObserverResponse: type: object + observerMsgVoteBlameResponse: + type: object observerMsgVoteBlockHeaderResponse: type: object properties: diff --git a/typescript/zetachain/zetacore/observer/tx_pb.d.ts b/typescript/zetachain/zetacore/observer/tx_pb.d.ts index 3e44fa27be..1955f86cfe 100644 --- a/typescript/zetachain/zetacore/observer/tx_pb.d.ts +++ b/typescript/zetachain/zetacore/observer/tx_pb.d.ts @@ -328,26 +328,26 @@ export declare class MsgVoteBlame extends Message { static fromJsonString(jsonString: string, options?: Partial): MsgVoteBlame; - static equals(a: MsgVoteBlame | 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; } /** From 5c330251b641afaed801a003c99eb075064d0857 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 29 May 2024 17:38:01 +0200 Subject: [PATCH 4/6] changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 27b8257de4..c3c56da607 100644 --- a/changelog.md +++ b/changelog.md @@ -32,6 +32,7 @@ * [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` ### Tests From 41021f86a7d3c7559091f0fea4b2f718a9cb0351 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 29 May 2024 17:48:18 +0200 Subject: [PATCH 5/6] add breaking change note --- docs/releases/v17_breaking_changes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/releases/v17_breaking_changes.md b/docs/releases/v17_breaking_changes.md index 13dc5df873..1556b19642 100644 --- a/docs/releases/v17_breaking_changes.md +++ b/docs/releases/v17_breaking_changes.md @@ -51,3 +51,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 From 9d360b35c60588e39202317aceb61cceb9f42cdf Mon Sep 17 00:00:00 2001 From: lumtis Date: Thu, 30 May 2024 09:15:22 +0200 Subject: [PATCH 6/6] remove readme --- x/observer/client/cli/tx_vote_blame.go | 1 - 1 file changed, 1 deletion(-) diff --git a/x/observer/client/cli/tx_vote_blame.go b/x/observer/client/cli/tx_vote_blame.go index 59b3b192d6..4dec44f845 100644 --- a/x/observer/client/cli/tx_vote_blame.go +++ b/x/observer/client/cli/tx_vote_blame.go @@ -57,7 +57,6 @@ func CmdVoteBlame() *cobra.Command { msg := types.NewMsgVoteBlameMsg(clientCtx.GetFromAddress().String(), int64(chainID), blameInfo) - println("about to broadcast") return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, }