From 0b5a310139c0107af3a908d70e69f72b559bfd37 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 10 Jul 2024 10:19:25 -0400 Subject: [PATCH 01/15] add policy accounts --- cmd/zetae2e/config/localnet.yml | 13 ++++++++++ contrib/localnet/scripts/start-zetacored.sh | 24 +++++++++++++++--- e2e/config/config.go | 28 +++++++++++++++++++++ 3 files changed, 62 insertions(+), 3 deletions(-) diff --git a/cmd/zetae2e/config/localnet.yml b/cmd/zetae2e/config/localnet.yml index abb780db39..8026e67219 100644 --- a/cmd/zetae2e/config/localnet.yml +++ b/cmd/zetae2e/config/localnet.yml @@ -36,6 +36,19 @@ additional_accounts: bech32_address: "zeta1svzuz982w09vf2y08xsh8qplj36phyz466krj3" evm_address: "0x8305C114Ea73cAc4A88f39A173803F94741b9055" private_key: "d88d09a7d6849c15a36eb6931f9dd616091a63e9849a2cc86f309ba11fb8fec5" +policy_accounts: + emergency_policy_account: + bech32_address: "zeta16m2cnrdwtgweq4njc6t470vl325gw4kp6s7tap" + evm_address: "0xd6d5898dAE5A1D905672c6975F3d9f8aA88756C1" + private_key: "88BE93D11624B794F4BCC77BEA7385AF7EAD0B183B913485C74F0A803ABBC3F0" + operational_policy_account: + bech32_address: "zeta1pgx85vzx4fzh5zzyjqgs6a6cmaujd0xs8efrkc" + evm_address: "0x0A0c7a3046AA457A084490110d7758Df7926bcd0" + private_key: "59D1B982BD446545A1740ABD01F1ED9C162B72ACC1522B9B71B6DB5A9C37FA7D" + admin_policy_account: + bech32_address: "zeta142ds9x7raljv2qz9euys93e64gjmgdfnc47dwq" + evm_address: "0xAa9b029BC3EFe4c50045Cf0902c73aAa25b43533" + private_key: "0595CB0CD9BF5264A85A603EC8E43C30ADBB5FD2D9E2EF84C374EA4A65BB616C" rpcs: zevm: "http://zetacore0:8545" evm: "http://eth:8545" diff --git a/contrib/localnet/scripts/start-zetacored.sh b/contrib/localnet/scripts/start-zetacored.sh index 64779d2a39..5e4b7e72b6 100755 --- a/contrib/localnet/scripts/start-zetacored.sh +++ b/contrib/localnet/scripts/start-zetacored.sh @@ -221,10 +221,19 @@ then zetacored add-genesis-account zeta1n0rn6sne54hv7w2uu93fl48ncyqz97d3kty6sh 100000000000000000000000000azeta # Funds the localnet_gov_admin account address=$(yq -r '.additional_accounts.user_fungible_admin.bech32_address' /root/config.yml) + emergency_policy=$(yq -r '.policy_accounts.emergency_policy_account.bech32_address' /root/config.yml) + admin_policy=$(yq -r '.policy_accounts.admin_policy_account.bech32_address' /root/config.yml) + operational_policy=$(yq -r '.policy_accounts.operational_policy_account.bech32_address' /root/config.yml) + + zetacored add-genesis-account "$address" 100000000000000000000000000azeta - cat $HOME/.zetacored/config/genesis.json | jq --arg address "$address" '.app_state["authority"]["policies"]["items"][0]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json - cat $HOME/.zetacored/config/genesis.json | jq --arg address "$address" '.app_state["authority"]["policies"]["items"][1]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json - cat $HOME/.zetacored/config/genesis.json | jq --arg address "$address" '.app_state["authority"]["policies"]["items"][2]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json + zetacored add-genesis-account "$emergency_policy" 100000000000000000000000000azeta + zetacored add-genesis-account "$admin_policy" 100000000000000000000000000azeta + zetacored add-genesis-account "$operational_policy" 100000000000000000000000000azeta + + cat $HOME/.zetacored/config/genesis.json | jq --arg address "$emergency_policy" '.app_state["authority"]["policies"]["items"][0]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json + cat $HOME/.zetacored/config/genesis.json | jq --arg address "$operational_policy" '.app_state["authority"]["policies"]["items"][1]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json + cat $HOME/.zetacored/config/genesis.json | jq --arg address "$admin_policy" '.app_state["authority"]["policies"]["items"][2]["address"] = $address' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json # give balance to runner accounts to deploy contracts directly on zEVM # default account @@ -242,6 +251,15 @@ then # ethers tester address=$(yq -r '.additional_accounts.user_ether.bech32_address' /root/config.yml) zetacored add-genesis-account "$address" 100000000000000000000000000azeta +# emergency policy account + address=$(yq -r '.policy_accounts.emergency_policy_account.bech32_address' /root/config.yml) + zetacored add-genesis-account "$address" 100000000000000000000000000azeta +# admin policy account + address=$(yq -r '.policy_accounts.admin_policy_account.bech32_address' /root/config.yml) + zetacored add-genesis-account "$address" 100000000000000000000000000azeta +# operational policy account + address=$(yq -r '.policy_accounts.operational_policy_account.bech32_address' /root/config.yml) + zetacored add-genesis-account "$address" 100000000000000000000000000azeta # 3. Copy the genesis.json to all the nodes .And use it to create a gentx for every node zetacored gentx operator 1000000000000000000000azeta --chain-id=$CHAINID --keyring-backend=$KEYRING --gas-prices 20000000000azeta diff --git a/e2e/config/config.go b/e2e/config/config.go index 66409ee339..235b7cb568 100644 --- a/e2e/config/config.go +++ b/e2e/config/config.go @@ -43,6 +43,7 @@ type Config struct { // Default account to use when running tests and running setup DefaultAccount Account `yaml:"default_account"` AdditionalAccounts AdditionalAccounts `yaml:"additional_accounts"` + PolicyAccounts PolicyAccounts `yaml:"policy_accounts"` RPCs RPCs `yaml:"rpcs"` Contracts Contracts `yaml:"contracts"` ZetaChainID string `yaml:"zeta_chain_id"` @@ -67,6 +68,12 @@ type AdditionalAccounts struct { UserFungibleAdmin Account `yaml:"user_fungible_admin"` } +type PolicyAccounts struct { + EmergencyPolicyAccount Account `yaml:"emergency_policy_account"` + OperationalPolicyAccount Account `yaml:"operational_policy_account"` + AdminPolicyAccount Account `yaml:"admin_policy_account"` +} + // RPCs contains the configuration for the RPC endpoints type RPCs struct { Zevm string `yaml:"zevm"` @@ -196,6 +203,15 @@ func (a AdditionalAccounts) AsSlice() []Account { } } +func (a PolicyAccounts) AsSlice() []Account { + return []Account{ + a.EmergencyPolicyAccount, + a.OperationalPolicyAccount, + a.AdminPolicyAccount, + } + +} + // Validate validates the config func (c Config) Validate() error { if c.RPCs.Bitcoin.Params != Mainnet && @@ -261,6 +277,18 @@ func (c *Config) GenerateKeys() error { if err != nil { return err } + c.PolicyAccounts.EmergencyPolicyAccount, err = generateAccount() + if err != nil { + return err + } + c.PolicyAccounts.OperationalPolicyAccount, err = generateAccount() + if err != nil { + return err + } + c.PolicyAccounts.AdminPolicyAccount, err = generateAccount() + if err != nil { + return err + } return nil } From 4f0d18a18a03901ddf749fbf062d4b2468cad357 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 10 Jul 2024 12:10:38 -0400 Subject: [PATCH 02/15] seperate policy accounts for each policy type --- cmd/zetae2e/local/local.go | 4 ++-- e2e/e2etests/test_erc20_deposit_refund.go | 4 ++-- .../test_eth_deposit_liquidity_cap.go | 8 +++---- e2e/e2etests/test_migrate_chain_support.go | 22 +++++++++---------- e2e/e2etests/test_pause_zrc20.go | 8 +++---- e2e/e2etests/test_rate_limiter.go | 4 ++-- .../test_update_bytecode_connector.go | 4 ++-- e2e/e2etests/test_update_bytecode_zrc20.go | 4 ++-- e2e/runner/setup_zeta.go | 6 ++--- e2e/txserver/zeta_tx_server.go | 13 +++++++++++ e2e/utils/zetacore.go | 4 ++++ 11 files changed, 48 insertions(+), 33 deletions(-) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index 7e00f9ba5b..62356162ce 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -126,8 +126,8 @@ func localE2ETest(cmd *cobra.Command, _ []string) { zetaTxServer, err := txserver.NewZetaTxServer( conf.RPCs.ZetaCoreRPC, - []string{utils.FungibleAdminName}, - []string{conf.AdditionalAccounts.UserFungibleAdmin.RawPrivateKey.String()}, + []string{utils.EmergencyPolicyName, utils.OperationalPolicyName, utils.AdminPolicyName}, + []string{conf.PolicyAccounts.EmergencyPolicyAccount.RawPrivateKey.String(), conf.PolicyAccounts.OperationalPolicyAccount.RawPrivateKey.String(), conf.PolicyAccounts.AdminPolicyAccount.RawPrivateKey.String()}, conf.ZetaChainID, ) noError(err) diff --git a/e2e/e2etests/test_erc20_deposit_refund.go b/e2e/e2etests/test_erc20_deposit_refund.go index 5e8d1173ef..949b16d989 100644 --- a/e2e/e2etests/test_erc20_deposit_refund.go +++ b/e2e/e2etests/test_erc20_deposit_refund.go @@ -36,9 +36,9 @@ func TestERC20DepositAndCallRefund(r *runner.E2ERunner, _ []string) { r.Logger.CCTX(*cctx, "deposit") r.Logger.Info("Refunding the cctx via admin") - msg := types.NewMsgRefundAbortedCCTX(r.ZetaTxServer.GetAccountAddress(0), cctx.Index, r.EVMAddress().String()) + msg := types.NewMsgRefundAbortedCCTX(r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), cctx.Index, r.EVMAddress().String()) - _, err = r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msg) + _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msg) require.NoError(r, err) // Check that the erc20 in the aborted cctx was refunded on ZetaChain diff --git a/e2e/e2etests/test_eth_deposit_liquidity_cap.go b/e2e/e2etests/test_eth_deposit_liquidity_cap.go index 2f03c7a568..7e1ea55a70 100644 --- a/e2e/e2etests/test_eth_deposit_liquidity_cap.go +++ b/e2e/e2etests/test_eth_deposit_liquidity_cap.go @@ -25,11 +25,11 @@ func TestDepositEtherLiquidityCap(r *runner.E2ERunner, args []string) { amountLessThanCap := liquidityCapArg.BigInt().Div(liquidityCapArg.BigInt(), big.NewInt(10)) // 1/10 of the cap amountMoreThanCap := liquidityCapArg.BigInt().Mul(liquidityCapArg.BigInt(), big.NewInt(10)) // 10 times the cap msg := fungibletypes.NewMsgUpdateZRC20LiquidityCap( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), r.ETHZRC20Addr.Hex(), liquidityCap, ) - res, err := r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msg) + res, err := r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msg) require.NoError(r, err) r.Logger.Info("set liquidity cap tx hash: %s", res.TxHash) @@ -69,12 +69,12 @@ func TestDepositEtherLiquidityCap(r *runner.E2ERunner, args []string) { r.Logger.Info("Removing the liquidity cap") msg = fungibletypes.NewMsgUpdateZRC20LiquidityCap( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), r.ETHZRC20Addr.Hex(), math.ZeroUint(), ) - res, err = r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msg) + res, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msg) require.NoError(r, err) r.Logger.Info("remove liquidity cap tx hash: %s", res.TxHash) diff --git a/e2e/e2etests/test_migrate_chain_support.go b/e2e/e2etests/test_migrate_chain_support.go index 07f49a5815..ba0b7f3b9b 100644 --- a/e2e/e2etests/test_migrate_chain_support.go +++ b/e2e/e2etests/test_migrate_chain_support.go @@ -58,19 +58,17 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) { // update the chain params to set up the chain chainParams := getNewEVMChainParams(newRunner) - adminAddr, err := newRunner.ZetaTxServer.GetAccountAddressFromName(utils.FungibleAdminName) - require.NoError(r, err) - _, err = newRunner.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, observertypes.NewMsgUpdateChainParams( - adminAddr, + _, err = newRunner.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, observertypes.NewMsgUpdateChainParams( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), chainParams, )) require.NoError(r, err) // setup the gas token require.NoError(r, err) - _, err = newRunner.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, fungibletypes.NewMsgDeployFungibleCoinZRC20( - adminAddr, + _, err = newRunner.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, fungibletypes.NewMsgDeployFungibleCoinZRC20( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), "", chainParams.ChainId, 18, @@ -95,8 +93,8 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) { newRunner.ETHZRC20 = ethZRC20 // set the chain nonces for the new chain - _, err = r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, observertypes.NewMsgResetChainNonces( - adminAddr, + _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, observertypes.NewMsgResetChainNonces( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), chainParams.ChainId, 0, 0, @@ -106,8 +104,8 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) { // deactivate the previous chain chainParams = observertypes.GetDefaultGoerliLocalnetChainParams() chainParams.IsSupported = false - _, err = newRunner.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, observertypes.NewMsgUpdateChainParams( - adminAddr, + _, err = newRunner.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, observertypes.NewMsgUpdateChainParams( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), chainParams, )) require.NoError(r, err) @@ -155,8 +153,8 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) { // whitelist erc20 zrc20 newRunner.Logger.Info("whitelisting ERC20 on new network") - res, err := newRunner.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, crosschaintypes.NewMsgWhitelistERC20( - adminAddr, + res, err := newRunner.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, crosschaintypes.NewMsgWhitelistERC20( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), newRunner.ERC20Addr.Hex(), chains.Sepolia.ChainId, "USDT", diff --git a/e2e/e2etests/test_pause_zrc20.go b/e2e/e2etests/test_pause_zrc20.go index 1495a7ac60..c1924d85cf 100644 --- a/e2e/e2etests/test_pause_zrc20.go +++ b/e2e/e2etests/test_pause_zrc20.go @@ -35,10 +35,10 @@ func TestPauseZRC20(r *runner.E2ERunner, _ []string) { // Pause ETH ZRC20 r.Logger.Info("Pausing ETH") msgPause := fungibletypes.NewMsgPauseZRC20( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.EmergencyPolicyName), []string{r.ETHZRC20Addr.Hex()}, ) - res, err := r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msgPause) + res, err := r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgPause) require.NoError(r, err) r.Logger.Info("pause zrc20 tx hash: %s", res.TxHash) @@ -106,10 +106,10 @@ func TestPauseZRC20(r *runner.E2ERunner, _ []string) { // Unpause ETH ZRC20 r.Logger.Info("Unpausing ETH") msgUnpause := fungibletypes.NewMsgUnpauseZRC20( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), []string{r.ETHZRC20Addr.Hex()}, ) - res, err = r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msgUnpause) + res, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgUnpause) require.NoError(r, err) r.Logger.Info("unpause zrc20 tx hash: %s", res.TxHash) diff --git a/e2e/e2etests/test_rate_limiter.go b/e2e/e2etests/test_rate_limiter.go index 739d7821dc..af8221f23f 100644 --- a/e2e/e2etests/test_rate_limiter.go +++ b/e2e/e2etests/test_rate_limiter.go @@ -167,11 +167,11 @@ func waitForWithdrawMined( // setupRateLimiterFlags sets up the rate limiter flags with flags defined in the test func setupRateLimiterFlags(r *runner.E2ERunner, flags crosschaintypes.RateLimiterFlags) error { - adminAddr, err := r.ZetaTxServer.GetAccountAddressFromName(utils.FungibleAdminName) + adminAddr, err := r.ZetaTxServer.GetAccountAddressFromName(utils.OperationalPolicyName) if err != nil { return err } - _, err = r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, crosschaintypes.NewMsgUpdateRateLimiterFlags( + _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, crosschaintypes.NewMsgUpdateRateLimiterFlags( adminAddr, flags, )) diff --git a/e2e/e2etests/test_update_bytecode_connector.go b/e2e/e2etests/test_update_bytecode_connector.go index 73786f2971..c370cf6a33 100644 --- a/e2e/e2etests/test_update_bytecode_connector.go +++ b/e2e/e2etests/test_update_bytecode_connector.go @@ -46,11 +46,11 @@ func TestUpdateBytecodeConnector(r *runner.E2ERunner, _ []string) { r.Logger.Info("Updating the bytecode of the Connector") msg := fungibletypes.NewMsgUpdateContractBytecode( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.AdminPolicyName), r.ConnectorZEVMAddr.Hex(), codeHashRes.CodeHash, ) - res, err := r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msg) + res, err := r.ZetaTxServer.BroadcastTx(utils.AdminPolicyName, msg) require.NoError(r, err) r.Logger.Info("Update connector bytecode tx hash: %s", res.TxHash) diff --git a/e2e/e2etests/test_update_bytecode_zrc20.go b/e2e/e2etests/test_update_bytecode_zrc20.go index 8205b88d9c..04e234b6ae 100644 --- a/e2e/e2etests/test_update_bytecode_zrc20.go +++ b/e2e/e2etests/test_update_bytecode_zrc20.go @@ -68,11 +68,11 @@ func TestUpdateBytecodeZRC20(r *runner.E2ERunner, _ []string) { r.Logger.Info("Updating the bytecode of the ZRC20") msg := fungibletypes.NewMsgUpdateContractBytecode( - r.ZetaTxServer.GetAccountAddress(0), + r.ZetaTxServer.MustGetAccountAddressFromName(utils.AdminPolicyName), r.ETHZRC20Addr.Hex(), codeHashRes.CodeHash, ) - res, err := r.ZetaTxServer.BroadcastTx(utils.FungibleAdminName, msg) + res, err := r.ZetaTxServer.BroadcastTx(utils.AdminPolicyName, msg) require.NoError(r, err) r.Logger.Info("Update zrc20 bytecode tx hash: %s", res.TxHash) diff --git a/e2e/runner/setup_zeta.go b/e2e/runner/setup_zeta.go index ef3acbd64b..859f83d3e4 100644 --- a/e2e/runner/setup_zeta.go +++ b/e2e/runner/setup_zeta.go @@ -75,7 +75,7 @@ func (r *E2ERunner) SetZEVMContracts() { // deploy system contracts and ZRC20 contracts on ZetaChain uniswapV2FactoryAddr, uniswapV2RouterAddr, zevmConnectorAddr, wzetaAddr, erc20zrc20Addr, err := r.ZetaTxServer.DeploySystemContractsAndZRC20( - e2eutils.FungibleAdminName, + e2eutils.OperationalPolicyName, r.ERC20Addr.Hex(), ) require.NoError(r, err) @@ -209,12 +209,12 @@ func (r *E2ERunner) SetupBTCZRC20() { func (r *E2ERunner) EnableHeaderVerification(chainIDList []int64) error { r.Logger.Print("⚙️ enabling verification flags for block headers") - return r.ZetaTxServer.EnableHeaderVerification(e2eutils.FungibleAdminName, chainIDList) + return r.ZetaTxServer.EnableHeaderVerification(e2eutils.OperationalPolicyName, chainIDList) } // FundEmissionsPool funds the emissions pool on ZetaChain with the same value as used originally on mainnet (20M ZETA) func (r *E2ERunner) FundEmissionsPool() error { r.Logger.Print("⚙️ funding the emissions pool on ZetaChain with 20M ZETA (%s)", txserver.EmissionsPoolAddress) - return r.ZetaTxServer.FundEmissionsPool(e2eutils.FungibleAdminName, EmissionsPoolFunding) + return r.ZetaTxServer.FundEmissionsPool(e2eutils.OperationalPolicyName, EmissionsPoolFunding) } diff --git a/e2e/txserver/zeta_tx_server.go b/e2e/txserver/zeta_tx_server.go index 5c4c5e80af..c0119eadec 100644 --- a/e2e/txserver/zeta_tx_server.go +++ b/e2e/txserver/zeta_tx_server.go @@ -153,6 +153,19 @@ func (zts ZetaTxServer) GetAccountAddressFromName(name string) (string, error) { return addr.String(), nil } +// GetAccountAddressFromName returns the account address from the given name +func (zts ZetaTxServer) MustGetAccountAddressFromName(name string) string { + acc, err := zts.clientCtx.Keyring.Key(name) + if err != nil { + panic(err) + } + addr, err := acc.GetAddress() + if err != nil { + panic(err) + } + return addr.String() +} + // GetAllAccountAddress returns all account addresses func (zts ZetaTxServer) GetAllAccountAddress() []string { return zts.address diff --git a/e2e/utils/zetacore.go b/e2e/utils/zetacore.go index cbba05de75..89f5c81042 100644 --- a/e2e/utils/zetacore.go +++ b/e2e/utils/zetacore.go @@ -18,6 +18,10 @@ type CCTXClient = crosschaintypes.QueryClient const ( FungibleAdminName = "fungibleadmin" + EmergencyPolicyName = "emergency" + AdminPolicyName = "admin" + OperationalPolicyName = "operational" + DefaultCctxTimeout = 4 * time.Minute ) From 16d38f1f4e540dabc5b4e53c3f00b88aab05a619 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 10 Jul 2024 13:47:48 -0400 Subject: [PATCH 03/15] remove fungible admin and add changelog --- changelog.md | 2 +- cmd/zetae2e/config/localnet.yml | 4 --- contrib/localnet/scripts/start-zetacored.sh | 3 +- e2e/config/config.go | 35 ++++++++++++--------- e2e/txserver/zeta_tx_server.go | 3 +- e2e/utils/zetacore.go | 2 -- 6 files changed, 24 insertions(+), 25 deletions(-) diff --git a/changelog.md b/changelog.md index 7b679fb678..fc417b1109 100644 --- a/changelog.md +++ b/changelog.md @@ -76,7 +76,7 @@ * [2349](https://github.com/zeta-chain/node/pull/2349) - add TestBitcoinDepositRefund and WithdrawBitcoinMultipleTimes E2E tests * [2368](https://github.com/zeta-chain/node/pull/2368) - eliminate panic usage across testing suite * [2369](https://github.com/zeta-chain/node/pull/2369) - fix random cross-chain swap failure caused by using tiny UTXO - +* [2549](https://github.com/zeta-chain/node/pull/2459) - add separate accounts for each policy in e2e tests ### Fixes diff --git a/cmd/zetae2e/config/localnet.yml b/cmd/zetae2e/config/localnet.yml index 8026e67219..114f1c4f32 100644 --- a/cmd/zetae2e/config/localnet.yml +++ b/cmd/zetae2e/config/localnet.yml @@ -32,10 +32,6 @@ additional_accounts: bech32_address: "zeta17w0adeg64ky0daxwd2ugyuneellmjgnx4e483s" evm_address: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" private_key: "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" - user_fungible_admin: - bech32_address: "zeta1svzuz982w09vf2y08xsh8qplj36phyz466krj3" - evm_address: "0x8305C114Ea73cAc4A88f39A173803F94741b9055" - private_key: "d88d09a7d6849c15a36eb6931f9dd616091a63e9849a2cc86f309ba11fb8fec5" policy_accounts: emergency_policy_account: bech32_address: "zeta16m2cnrdwtgweq4njc6t470vl325gw4kp6s7tap" diff --git a/contrib/localnet/scripts/start-zetacored.sh b/contrib/localnet/scripts/start-zetacored.sh index 5e4b7e72b6..c3e53c6c93 100755 --- a/contrib/localnet/scripts/start-zetacored.sh +++ b/contrib/localnet/scripts/start-zetacored.sh @@ -219,8 +219,7 @@ then # set admin account zetacored add-genesis-account zeta1n0rn6sne54hv7w2uu93fl48ncyqz97d3kty6sh 100000000000000000000000000azeta # Funds the localnet_gov_admin account - - address=$(yq -r '.additional_accounts.user_fungible_admin.bech32_address' /root/config.yml) + emergency_policy=$(yq -r '.policy_accounts.emergency_policy_account.bech32_address' /root/config.yml) admin_policy=$(yq -r '.policy_accounts.admin_policy_account.bech32_address' /root/config.yml) operational_policy=$(yq -r '.policy_accounts.operational_policy_account.bech32_address' /root/config.yml) diff --git a/e2e/config/config.go b/e2e/config/config.go index 235b7cb568..6cde9bac26 100644 --- a/e2e/config/config.go +++ b/e2e/config/config.go @@ -58,14 +58,13 @@ type Account struct { // AdditionalAccounts are extra accounts required to run specific tests type AdditionalAccounts struct { - UserERC20 Account `yaml:"user_erc20"` - UserZetaTest Account `yaml:"user_zeta_test"` - UserZEVMMPTest Account `yaml:"user_zevm_mp_test"` - UserBitcoin Account `yaml:"user_bitcoin"` - UserEther Account `yaml:"user_ether"` - UserMisc Account `yaml:"user_misc"` - UserAdmin Account `yaml:"user_admin"` - UserFungibleAdmin Account `yaml:"user_fungible_admin"` + UserERC20 Account `yaml:"user_erc20"` + UserZetaTest Account `yaml:"user_zeta_test"` + UserZEVMMPTest Account `yaml:"user_zevm_mp_test"` + UserBitcoin Account `yaml:"user_bitcoin"` + UserEther Account `yaml:"user_ether"` + UserMisc Account `yaml:"user_misc"` + UserAdmin Account `yaml:"user_admin"` } type PolicyAccounts struct { @@ -199,7 +198,6 @@ func (a AdditionalAccounts) AsSlice() []Account { a.UserEther, a.UserMisc, a.UserAdmin, - a.UserFungibleAdmin, } } @@ -209,7 +207,6 @@ func (a PolicyAccounts) AsSlice() []Account { a.OperationalPolicyAccount, a.AdminPolicyAccount, } - } // Validate validates the config @@ -232,9 +229,21 @@ func (c Config) Validate() error { } err := account.Validate() if err != nil { - return fmt.Errorf("validating account %d: %w", i, err) + return fmt.Errorf("validating additional account %d: %w", i, err) } } + + policyAccounts := c.PolicyAccounts.AsSlice() + for i, account := range policyAccounts { + if account.RawEVMAddress == "" { + continue + } + err := account.Validate() + if err != nil { + return fmt.Errorf("validating policy account %d: %w", i, err) + } + } + return nil } @@ -273,10 +282,6 @@ func (c *Config) GenerateKeys() error { if err != nil { return err } - c.AdditionalAccounts.UserFungibleAdmin, err = generateAccount() - if err != nil { - return err - } c.PolicyAccounts.EmergencyPolicyAccount, err = generateAccount() if err != nil { return err diff --git a/e2e/txserver/zeta_tx_server.go b/e2e/txserver/zeta_tx_server.go index c0119eadec..9b93aee293 100644 --- a/e2e/txserver/zeta_tx_server.go +++ b/e2e/txserver/zeta_tx_server.go @@ -153,7 +153,8 @@ func (zts ZetaTxServer) GetAccountAddressFromName(name string) (string, error) { return addr.String(), nil } -// GetAccountAddressFromName returns the account address from the given name +// MustGetAccountAddressFromName returns the account address from the given name.It panics on error +// and should be used in tests only func (zts ZetaTxServer) MustGetAccountAddressFromName(name string) string { acc, err := zts.clientCtx.Keyring.Key(name) if err != nil { diff --git a/e2e/utils/zetacore.go b/e2e/utils/zetacore.go index 89f5c81042..a10dc8d68b 100644 --- a/e2e/utils/zetacore.go +++ b/e2e/utils/zetacore.go @@ -16,8 +16,6 @@ import ( type CCTXClient = crosschaintypes.QueryClient const ( - FungibleAdminName = "fungibleadmin" - EmergencyPolicyName = "emergency" AdminPolicyName = "admin" OperationalPolicyName = "operational" From 71157c9ce83fe7657cc0a0aa951a36d12f395ccc Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 10 Jul 2024 15:32:48 -0400 Subject: [PATCH 04/15] generate files --- cmd/zetae2e/local/local.go | 6 +++++- e2e/e2etests/test_erc20_deposit_refund.go | 6 +++++- e2e/e2etests/test_migrate_chain_support.go | 23 ++++++++++++---------- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index 62356162ce..f282cd9f07 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -127,7 +127,11 @@ func localE2ETest(cmd *cobra.Command, _ []string) { zetaTxServer, err := txserver.NewZetaTxServer( conf.RPCs.ZetaCoreRPC, []string{utils.EmergencyPolicyName, utils.OperationalPolicyName, utils.AdminPolicyName}, - []string{conf.PolicyAccounts.EmergencyPolicyAccount.RawPrivateKey.String(), conf.PolicyAccounts.OperationalPolicyAccount.RawPrivateKey.String(), conf.PolicyAccounts.AdminPolicyAccount.RawPrivateKey.String()}, + []string{ + conf.PolicyAccounts.EmergencyPolicyAccount.RawPrivateKey.String(), + conf.PolicyAccounts.OperationalPolicyAccount.RawPrivateKey.String(), + conf.PolicyAccounts.AdminPolicyAccount.RawPrivateKey.String(), + }, conf.ZetaChainID, ) noError(err) diff --git a/e2e/e2etests/test_erc20_deposit_refund.go b/e2e/e2etests/test_erc20_deposit_refund.go index 949b16d989..a47100ef3f 100644 --- a/e2e/e2etests/test_erc20_deposit_refund.go +++ b/e2e/e2etests/test_erc20_deposit_refund.go @@ -36,7 +36,11 @@ func TestERC20DepositAndCallRefund(r *runner.E2ERunner, _ []string) { r.Logger.CCTX(*cctx, "deposit") r.Logger.Info("Refunding the cctx via admin") - msg := types.NewMsgRefundAbortedCCTX(r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), cctx.Index, r.EVMAddress().String()) + msg := types.NewMsgRefundAbortedCCTX( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), + cctx.Index, + r.EVMAddress().String(), + ) _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msg) require.NoError(r, err) diff --git a/e2e/e2etests/test_migrate_chain_support.go b/e2e/e2etests/test_migrate_chain_support.go index ba0b7f3b9b..f0fa69f6e0 100644 --- a/e2e/e2etests/test_migrate_chain_support.go +++ b/e2e/e2etests/test_migrate_chain_support.go @@ -67,16 +67,19 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) { // setup the gas token require.NoError(r, err) - _, err = newRunner.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, fungibletypes.NewMsgDeployFungibleCoinZRC20( - r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), - "", - chainParams.ChainId, - 18, - "Sepolia ETH", - "sETH", - coin.CoinType_Gas, - 100000, - )) + _, err = newRunner.ZetaTxServer.BroadcastTx( + utils.OperationalPolicyName, + fungibletypes.NewMsgDeployFungibleCoinZRC20( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), + "", + chainParams.ChainId, + 18, + "Sepolia ETH", + "sETH", + coin.CoinType_Gas, + 100000, + ), + ) require.NoError(r, err) // set the gas token in the runner From 76abf698f885ba60602cf52c4393185bfc7f1ec6 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 11 Jul 2024 08:39:34 -0400 Subject: [PATCH 05/15] add test for add inbound tracker --- cmd/zetae2e/local/local.go | 11 +- e2e/e2etests/e2etests.go | 7 + e2e/e2etests/test_admin_transactions.go | 55 ++ .../zetachain/zetacore/crosschain/query.proto | 15 + x/authority/types/authorization_list.go | 2 + x/crosschain/client/cli/query.go | 1 + .../client/cli/query_inbound_tracker.go | 26 + .../keeper/grpc_query_inbound_tracker.go | 14 + .../keeper/grpc_query_inbound_tracker_test.go | 35 +- x/crosschain/types/query.pb.go | 703 ++++++++++++++---- x/crosschain/types/query.pb.gw.go | 123 +++ 11 files changed, 843 insertions(+), 149 deletions(-) create mode 100644 e2e/e2etests/test_admin_transactions.go diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index f282cd9f07..e5956dc19c 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -277,11 +277,12 @@ func localE2ETest(cmd *cobra.Command, _ []string) { } if testAdmin { eg.Go(adminTestRoutine(conf, deployerRunner, verbose, - e2etests.TestRateLimiterName, - e2etests.TestPauseZRC20Name, - e2etests.TestUpdateBytecodeZRC20Name, - e2etests.TestUpdateBytecodeConnectorName, - e2etests.TestDepositEtherLiquidityCapName, + //e2etests.TestRateLimiterName, + //e2etests.TestPauseZRC20Name, + //e2etests.TestUpdateBytecodeZRC20Name, + //e2etests.TestUpdateBytecodeConnectorName, + //e2etests.TestDepositEtherLiquidityCapName, + e2etests.TestAdminTransactionsName, // TestMigrateChainSupportName tests EVM chain migration. Currently this test doesn't work with Anvil because pre-EIP1559 txs are not supported // See issue below for details diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 396b725617..4a5574695c 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -100,6 +100,7 @@ const ( TestUpdateBytecodeZRC20Name = "update_bytecode_zrc20" TestUpdateBytecodeConnectorName = "update_bytecode_connector" TestRateLimiterName = "rate_limiter" + TestAdminTransactionsName = "admin_transactions" /* Special tests @@ -531,6 +532,12 @@ var AllE2ETests = []runner.E2ETest{ []runner.ArgDefinition{}, TestRateLimiter, ), + runner.NewE2ETest( + TestAdminTransactionsName, + "test admin critical admin transactions that have not been tested by any other test", + []runner.ArgDefinition{}, + TestAdminTransactions, + ), /* Special tests */ diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go new file mode 100644 index 0000000000..1fd22a1fe4 --- /dev/null +++ b/e2e/e2etests/test_admin_transactions.go @@ -0,0 +1,55 @@ +package e2etests + +import ( + "time" + + "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/e2e/runner" + "github.com/zeta-chain/zetacore/e2e/utils" + "github.com/zeta-chain/zetacore/pkg/chains" + "github.com/zeta-chain/zetacore/pkg/coin" + "github.com/zeta-chain/zetacore/testutil/sample" + crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" +) + +func TestAdminTransactions(r *runner.E2ERunner, args []string) { + r.Logger.Info("Adding a inbound tracker ") + chainEth := chains.GoerliLocalnet + chainBtc := chains.BitcoinRegtest + msgEth := crosschaintypes.NewMsgAddInboundTracker( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.EmergencyPolicyName), + chainEth.ChainId, + coin.CoinType_Gas, + sample.Hash().Hex(), + ) + _, err := r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgEth) + require.NoError(r, err) + + msgBtc := crosschaintypes.NewMsgAddInboundTracker( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.EmergencyPolicyName), + chainBtc.ChainId, + coin.CoinType_Gas, + sample.BtcHash().String(), + ) + + _, err = r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgBtc) + require.NoError(r, err) + + time.Sleep(8 * time.Second) + + tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ + ChainID: msgEth.ChainId, + TxHash: msgEth.TxHash, + }) + require.NoError(r, err) + require.NotNil(r, tracker) + require.Equal(r, msgEth.TxHash, tracker.InboundTracker.TxHash) + + tracker, err = r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ + ChainID: msgBtc.ChainId, + TxHash: msgBtc.TxHash, + }) + require.NoError(r, err) + require.NotNil(r, tracker) + require.Equal(r, msgBtc.TxHash, tracker.InboundTracker.TxHash) +} diff --git a/proto/zetachain/zetacore/crosschain/query.proto b/proto/zetachain/zetacore/crosschain/query.proto index d9021e29f1..943f12bd4f 100644 --- a/proto/zetachain/zetacore/crosschain/query.proto +++ b/proto/zetachain/zetacore/crosschain/query.proto @@ -45,6 +45,12 @@ service Query { option (google.api.http).get = "/zeta-chain/crosschain/inboundTrackers"; } + rpc InboundTracker(QueryInboundTrackerRequest) + returns (QueryInboundTrackerResponse) { + option (google.api.http).get = + "/zeta-chain/crosschain/inboundTracker/{chainID}/{txHash}"; + } + // Queries a InboundHashToCctx by index. rpc InboundHashToCctx(QueryGetInboundHashToCctxRequest) returns (QueryGetInboundHashToCctxResponse) { @@ -383,3 +389,12 @@ message QueryRateLimiterFlagsRequest {} message QueryRateLimiterFlagsResponse { RateLimiterFlags rateLimiterFlags = 1 [ (gogoproto.nullable) = false ]; } + +message QueryInboundTrackerRequest { + int64 chainID = 1; + string txHash = 2; +} + +message QueryInboundTrackerResponse { + InboundTracker inboundTracker = 1 [ (gogoproto.nullable) = false ]; +} \ No newline at end of file diff --git a/x/authority/types/authorization_list.go b/x/authority/types/authorization_list.go index 5f72408833..93faef42b8 100644 --- a/x/authority/types/authorization_list.go +++ b/x/authority/types/authorization_list.go @@ -6,6 +6,8 @@ import ( "cosmossdk.io/errors" ) +// MsgUpdateGasPriceIncreaseFlags +// MsgAddToInTxTracker var ( // OperationPolicyMessages keeps track of the message URLs that can, by default, only be executed by operational policy address OperationPolicyMessages = []string{ diff --git a/x/crosschain/client/cli/query.go b/x/crosschain/client/cli/query.go index 63669896cf..4df27d227d 100644 --- a/x/crosschain/client/cli/query.go +++ b/x/crosschain/client/cli/query.go @@ -36,6 +36,7 @@ func GetQueryCmd(_ string) *cobra.Command { CmdPendingCctx(), CmdListInboundTrackerByChain(), CmdListInboundTrackers(), + CmdShowInboundTracker(), CmdGetZetaAccounting(), CmdListPendingCCTXWithinRateLimit(), diff --git a/x/crosschain/client/cli/query_inbound_tracker.go b/x/crosschain/client/cli/query_inbound_tracker.go index e467386176..8a734e2f2c 100644 --- a/x/crosschain/client/cli/query_inbound_tracker.go +++ b/x/crosschain/client/cli/query_inbound_tracker.go @@ -11,6 +11,32 @@ import ( "github.com/zeta-chain/zetacore/x/crosschain/types" ) +func CmdShowInboundTracker() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-inbound-tracker [chainId] [txHash]", + Short: "shows an inbound tracker by chainId and txHash", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + queryClient := types.NewQueryClient(clientCtx) + argChain, err := strconv.ParseInt(args[0], 10, 64) + if err != nil { + return err + } + params := &types.QueryInboundTrackerRequest{ + ChainID: argChain, + TxHash: args[1], + } + res, err := queryClient.InboundTracker(context.Background(), params) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + flags.AddQueryFlagsToCmd(cmd) + return cmd +} func CmdListInboundTrackerByChain() *cobra.Command { cmd := &cobra.Command{ Use: "list-inbound-tracker [chainId]", diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker.go b/x/crosschain/keeper/grpc_query_inbound_tracker.go index a076ffb677..0dc154af7e 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker.go @@ -35,3 +35,17 @@ func (k Keeper) InboundTrackerAll( } return &types.QueryAllInboundTrackersResponse{InboundTracker: inTxTrackers, Pagination: pageRes}, nil } + +func (k Keeper) InboundTracker( + goCtx context.Context, + req *types.QueryInboundTrackerRequest, +) (*types.QueryInboundTrackerResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + inTxTracker, found := k.GetInboundTracker(ctx, req.ChainID, req.TxHash) + if !found { + return nil, status.Error(codes.Internal, "not found") + } + + return &types.QueryInboundTrackerResponse{InboundTracker: inTxTracker}, nil +} diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker_test.go b/x/crosschain/keeper/grpc_query_inbound_tracker_test.go index 3c17284faa..15f4779ee1 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker_test.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/require" - + "github.com/zeta-chain/zetacore/pkg/chains" "github.com/zeta-chain/zetacore/pkg/coin" keepertest "github.com/zeta-chain/zetacore/testutil/keeper" "github.com/zeta-chain/zetacore/testutil/sample" @@ -48,3 +48,36 @@ func TestKeeper_InboundTrackerAll(t *testing.T) { require.NoError(t, err) require.Equal(t, 2, len(res.InboundTracker)) } + +func TestKeeper_InboundTracker(t *testing.T) { + t.Run("successfully get inbound tracker", func(t *testing.T) { + k, ctx, _, _ := keepertest.CrosschainKeeper(t) + hash := sample.Hash().Hex() + chainID := chains.GoerliLocalnet.ChainId + k.SetInboundTracker(ctx, types.InboundTracker{ + ChainId: chainID, + TxHash: hash, + CoinType: coin.CoinType_Gas, + }) + + res, err := k.InboundTracker(ctx, &types.QueryInboundTrackerRequest{ + ChainID: chainID, + TxHash: hash, + }) + require.NoError(t, err) + require.NotNil(t, res.InboundTracker) + }) + + t.Run("inbound tracker not found", func(t *testing.T) { + k, ctx, _, _ := keepertest.CrosschainKeeper(t) + hash := sample.Hash().Hex() + chainID := chains.GoerliLocalnet.ChainId + + res, err := k.InboundTracker(ctx, &types.QueryInboundTrackerRequest{ + ChainID: chainID, + TxHash: hash, + }) + require.ErrorContains(t, err, "not found") + require.Nil(t, res) + }) +} diff --git a/x/crosschain/types/query.pb.go b/x/crosschain/types/query.pb.go index 524a361087..48c5f3f498 100644 --- a/x/crosschain/types/query.pb.go +++ b/x/crosschain/types/query.pb.go @@ -2214,6 +2214,102 @@ func (m *QueryRateLimiterFlagsResponse) GetRateLimiterFlags() RateLimiterFlags { return RateLimiterFlags{} } +type QueryInboundTrackerRequest struct { + ChainID int64 `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"` + TxHash string `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"` +} + +func (m *QueryInboundTrackerRequest) Reset() { *m = QueryInboundTrackerRequest{} } +func (m *QueryInboundTrackerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInboundTrackerRequest) ProtoMessage() {} +func (*QueryInboundTrackerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d00cb546ea76908b, []int{45} +} +func (m *QueryInboundTrackerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInboundTrackerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInboundTrackerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInboundTrackerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInboundTrackerRequest.Merge(m, src) +} +func (m *QueryInboundTrackerRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInboundTrackerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInboundTrackerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInboundTrackerRequest proto.InternalMessageInfo + +func (m *QueryInboundTrackerRequest) GetChainID() int64 { + if m != nil { + return m.ChainID + } + return 0 +} + +func (m *QueryInboundTrackerRequest) GetTxHash() string { + if m != nil { + return m.TxHash + } + return "" +} + +type QueryInboundTrackerResponse struct { + InboundTracker InboundTracker `protobuf:"bytes,1,opt,name=inboundTracker,proto3" json:"inboundTracker"` +} + +func (m *QueryInboundTrackerResponse) Reset() { *m = QueryInboundTrackerResponse{} } +func (m *QueryInboundTrackerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInboundTrackerResponse) ProtoMessage() {} +func (*QueryInboundTrackerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d00cb546ea76908b, []int{46} +} +func (m *QueryInboundTrackerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInboundTrackerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInboundTrackerResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInboundTrackerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInboundTrackerResponse.Merge(m, src) +} +func (m *QueryInboundTrackerResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInboundTrackerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInboundTrackerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInboundTrackerResponse proto.InternalMessageInfo + +func (m *QueryInboundTrackerResponse) GetInboundTracker() InboundTracker { + if m != nil { + return m.InboundTracker + } + return InboundTracker{} +} + func init() { proto.RegisterType((*QueryZetaAccountingRequest)(nil), "zetachain.zetacore.crosschain.QueryZetaAccountingRequest") proto.RegisterType((*QueryZetaAccountingResponse)(nil), "zetachain.zetacore.crosschain.QueryZetaAccountingResponse") @@ -2260,6 +2356,8 @@ func init() { proto.RegisterType((*QueryMessagePassingProtocolFeeResponse)(nil), "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse") proto.RegisterType((*QueryRateLimiterFlagsRequest)(nil), "zetachain.zetacore.crosschain.QueryRateLimiterFlagsRequest") proto.RegisterType((*QueryRateLimiterFlagsResponse)(nil), "zetachain.zetacore.crosschain.QueryRateLimiterFlagsResponse") + proto.RegisterType((*QueryInboundTrackerRequest)(nil), "zetachain.zetacore.crosschain.QueryInboundTrackerRequest") + proto.RegisterType((*QueryInboundTrackerResponse)(nil), "zetachain.zetacore.crosschain.QueryInboundTrackerResponse") } func init() { @@ -2267,150 +2365,154 @@ func init() { } var fileDescriptor_d00cb546ea76908b = []byte{ - // 2277 bytes of a gzipped FileDescriptorProto + // 2341 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 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, 0x04, 0xf8, 0x7a, 0xd0, 0xae, 0x55, 0xfe, 0x4e, 0x57, 0x16, 0xf2, 0xd9, 0xc9, 0xed, - 0xb7, 0x1d, 0x36, 0xc9, 0x02, 0x63, 0xe6, 0xed, 0x17, 0x62, 0x43, 0xbf, 0x4f, 0x60, 0xb7, 0x38, - 0x7c, 0x26, 0x73, 0x86, 0xd1, 0x7f, 0x48, 0x4e, 0x75, 0x64, 0x83, 0x08, 0xcf, 0x0b, 0x84, 0x67, - 0xe8, 0xe9, 0xa4, 0xe2, 0xc7, 0x9b, 0x4c, 0x04, 0xf9, 0xa7, 0x04, 0x06, 0x7c, 0xc2, 0x22, 0xbd, - 0xda, 0xc1, 0x8a, 0x41, 0x31, 0xb2, 0x3b, 0xb0, 0xd3, 0x02, 0x6c, 0x99, 0x4e, 0xa4, 0x82, 0x8d, - 0x74, 0xec, 0xdf, 0x23, 0xf0, 0x92, 0x77, 0x15, 0x4d, 0xe6, 0xcc, 0x68, 0xc7, 0x81, 0x0d, 0x89, - 0x8b, 0xd2, 0x69, 0x81, 0xf5, 0x04, 0x7d, 0x25, 0x05, 0x2b, 0xfd, 0xc8, 0xd9, 0x80, 0x41, 0x49, - 0x83, 0xce, 0xe6, 0x59, 0x2d, 0x5e, 0x18, 0x2c, 0x5e, 0xeb, 0xca, 0x36, 0xef, 0xc9, 0xe1, 0x03, - 0xf9, 0x5f, 0x02, 0xa3, 0xe9, 0x5a, 0x0c, 0x5d, 0xea, 0x02, 0x4b, 0xbc, 0x28, 0x54, 0xfc, 0x62, - 0x2f, 0x5c, 0x21, 0xcb, 0xab, 0x82, 0xe5, 0x14, 0xbd, 0x98, 0xcd, 0x32, 0xcc, 0xe8, 0x23, 0x02, - 0x83, 0xc1, 0x7f, 0x17, 0xca, 0xb7, 0x03, 0x62, 0xff, 0x01, 0xa9, 0x38, 0xdb, 0x8d, 0x29, 0x92, - 0x98, 0x10, 0x24, 0xc6, 0xe8, 0x99, 0x04, 0x12, 0xef, 0x07, 0x51, 0x3a, 0xc0, 0x83, 0xc2, 0x4e, - 0x3e, 0xe0, 0xb1, 0x52, 0x51, 0x3e, 0xe0, 0xf1, 0x3a, 0x52, 0x26, 0x70, 0x3d, 0x88, 0xd2, 0x69, - 0x15, 0xc2, 0xba, 0x43, 0xbe, 0x56, 0x21, 0x41, 0x21, 0xc9, 0xd7, 0x2a, 0x24, 0xa9, 0x27, 0x99, - 0xad, 0x42, 0x58, 0x0b, 0x09, 0x13, 0x10, 0x7a, 0x74, 0xc7, 0x04, 0xfc, 0xa2, 0x78, 0xc7, 0x04, - 0x02, 0x12, 0x78, 0x27, 0x04, 0x5c, 0xac, 0x7f, 0x22, 0xb0, 0xff, 0x7e, 0xd3, 0x5e, 0xdd, 0xdc, - 0x21, 0xfa, 0x4d, 0x0e, 0x31, 0xa0, 0x85, 0x35, 0xe6, 0x2a, 0xf8, 0xb9, 0xab, 0x48, 0xb5, 0xa6, - 0xec, 0x00, 0xe5, 0x26, 0xeb, 0x06, 0xf6, 0x33, 0xa2, 0xff, 0x24, 0x70, 0x34, 0x84, 0x7f, 0x47, - 0x6a, 0x36, 0xb3, 0x82, 0xd4, 0x25, 0x3a, 0x99, 0x83, 0x54, 0x58, 0xb0, 0x71, 0xbf, 0x94, 0xe3, - 0x28, 0xee, 0x20, 0xb5, 0xe6, 0xba, 0x20, 0x38, 0x43, 0x2f, 0x25, 0x7e, 0x4f, 0x26, 0xf0, 0x13, - 0x52, 0xcd, 0xcf, 0x08, 0x0c, 0x06, 0x29, 0xfe, 0xbf, 0x75, 0x9a, 0xac, 0xcb, 0xdf, 0xc7, 0x87, - 0x3e, 0x43, 0xf4, 0x3b, 0x4b, 0xa0, 0xb9, 0x26, 0x18, 0x4c, 0xd3, 0xa9, 0x14, 0x06, 0x89, 0xea, - 0xcc, 0xdf, 0x09, 0xd0, 0x20, 0xa5, 0x9d, 0x23, 0xcd, 0x64, 0x0b, 0x83, 0x61, 0xdc, 0x21, 0x72, - 0xbf, 0x15, 0x9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af, 0xa6, 0xf1, 0xa6, 0xad, 0xae, 0xeb, 0xb6, 0xcd, 0xca, 0xa3, 0x7d, 0x9d, 0x83, 0x1f, + 0x14, 0x0a, 0xee, 0x0a, 0x79, 0xb2, 0x82, 0xf7, 0xb9, 0xfa, 0x6a, 0x00, 0x3e, 0xd7, 0x85, 0x37, + 0x85, 0x06, 0xf0, 0x14, 0x39, 0x89, 0xf7, 0x09, 0xcf, 0xb5, 0x34, 0xee, 0x8c, 0xba, 0x93, 0x4c, + 0xe0, 0x03, 0x35, 0x6a, 0x73, 0xd5, 0x5d, 0xfb, 0x11, 0x35, 0x1a, 0x6c, 0xb4, 0x5f, 0x94, 0x87, + 0x21, 0xe7, 0xbb, 0x13, 0x6f, 0xfb, 0x8b, 0xce, 0x57, 0x52, 0xc0, 0x07, 0x41, 0x51, 0x60, 0xf2, + 0x80, 0x4b, 0x6e, 0xd4, 0xda, 0xf9, 0x01, 0xf3, 0xaf, 0xe2, 0xbc, 0x61, 0x6d, 0x30, 0x9b, 0xab, + 0x7e, 0x31, 0xe0, 0x83, 0x46, 0x77, 0x09, 0x67, 0x1e, 0x71, 0x67, 0xf8, 0x92, 0x0b, 0x4a, 0xfe, + 0x3c, 0x3e, 0x13, 0x97, 0x7a, 0x0f, 0x74, 0x5e, 0xd5, 0xcd, 0x56, 0xac, 0x52, 0x63, 0xae, 0xfc, + 0xa2, 0x0f, 0x9f, 0x95, 0x52, 0x02, 0x91, 0x7e, 0x17, 0x0f, 0x05, 0x99, 0xb8, 0xae, 0x12, 0x5a, + 0xf3, 0x27, 0x74, 0x24, 0x04, 0x31, 0x19, 0x4d, 0x66, 0xf1, 0x11, 0xad, 0x51, 0xaf, 0x33, 0x93, + 0xab, 0x1b, 0x3a, 0xaf, 0x96, 0xeb, 0x74, 0x43, 0x85, 0x64, 0xcd, 0x09, 0x2f, 0x1d, 0x82, 0xe1, + 0x07, 0x30, 0xfa, 0x40, 0x0c, 0x92, 0x29, 0x7c, 0x28, 0x22, 0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f7, 0xab, 0x6a, 0xfd, 0xf4, 0xbf, 0xe9, 0xd7, 0xca, 0x1f, 0xd7, + 0x98, 0xbd, 0x36, 0x20, 0x2e, 0xc2, 0xd3, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x97, 0x3f, 0x52, + 0x39, 0xdf, 0x31, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2432,6 +2534,7 @@ type QueryClient interface { OutboundTrackerAllByChain(ctx context.Context, in *QueryAllOutboundTrackerByChainRequest, opts ...grpc.CallOption) (*QueryAllOutboundTrackerByChainResponse, error) InboundTrackerAllByChain(ctx context.Context, in *QueryAllInboundTrackerByChainRequest, opts ...grpc.CallOption) (*QueryAllInboundTrackerByChainResponse, error) InboundTrackerAll(ctx context.Context, in *QueryAllInboundTrackersRequest, opts ...grpc.CallOption) (*QueryAllInboundTrackersResponse, error) + InboundTracker(ctx context.Context, in *QueryInboundTrackerRequest, opts ...grpc.CallOption) (*QueryInboundTrackerResponse, error) // Queries a InboundHashToCctx by index. InboundHashToCctx(ctx context.Context, in *QueryGetInboundHashToCctxRequest, opts ...grpc.CallOption) (*QueryGetInboundHashToCctxResponse, error) // Queries a InboundHashToCctx data by index. @@ -2536,6 +2639,15 @@ func (c *queryClient) InboundTrackerAll(ctx context.Context, in *QueryAllInbound return out, nil } +func (c *queryClient) InboundTracker(ctx context.Context, in *QueryInboundTrackerRequest, opts ...grpc.CallOption) (*QueryInboundTrackerResponse, error) { + out := new(QueryInboundTrackerResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/InboundTracker", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) InboundHashToCctx(ctx context.Context, in *QueryGetInboundHashToCctxRequest, opts ...grpc.CallOption) (*QueryGetInboundHashToCctxResponse, error) { out := new(QueryGetInboundHashToCctxResponse) err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/InboundHashToCctx", in, out, opts...) @@ -2779,6 +2891,7 @@ type QueryServer interface { OutboundTrackerAllByChain(context.Context, *QueryAllOutboundTrackerByChainRequest) (*QueryAllOutboundTrackerByChainResponse, error) InboundTrackerAllByChain(context.Context, *QueryAllInboundTrackerByChainRequest) (*QueryAllInboundTrackerByChainResponse, error) InboundTrackerAll(context.Context, *QueryAllInboundTrackersRequest) (*QueryAllInboundTrackersResponse, error) + InboundTracker(context.Context, *QueryInboundTrackerRequest) (*QueryInboundTrackerResponse, error) // Queries a InboundHashToCctx by index. InboundHashToCctx(context.Context, *QueryGetInboundHashToCctxRequest) (*QueryGetInboundHashToCctxResponse, error) // Queries a InboundHashToCctx data by index. @@ -2849,6 +2962,9 @@ func (*UnimplementedQueryServer) InboundTrackerAllByChain(ctx context.Context, r func (*UnimplementedQueryServer) InboundTrackerAll(ctx context.Context, req *QueryAllInboundTrackersRequest) (*QueryAllInboundTrackersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InboundTrackerAll not implemented") } +func (*UnimplementedQueryServer) InboundTracker(ctx context.Context, req *QueryInboundTrackerRequest) (*QueryInboundTrackerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InboundTracker not implemented") +} func (*UnimplementedQueryServer) InboundHashToCctx(ctx context.Context, req *QueryGetInboundHashToCctxRequest) (*QueryGetInboundHashToCctxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InboundHashToCctx not implemented") } @@ -3022,6 +3138,24 @@ func _Query_InboundTrackerAll_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_InboundTracker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInboundTrackerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InboundTracker(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.crosschain.Query/InboundTracker", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InboundTracker(ctx, req.(*QueryInboundTrackerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_InboundHashToCctx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetInboundHashToCctxRequest) if err := dec(in); err != nil { @@ -3514,6 +3648,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "InboundTrackerAll", Handler: _Query_InboundTrackerAll_Handler, }, + { + MethodName: "InboundTracker", + Handler: _Query_InboundTracker_Handler, + }, { MethodName: "InboundHashToCctx", Handler: _Query_InboundHashToCctx_Handler, @@ -5299,6 +5437,74 @@ func (m *QueryRateLimiterFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *QueryInboundTrackerRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInboundTrackerRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInboundTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TxHash) > 0 { + i -= len(m.TxHash) + copy(dAtA[i:], m.TxHash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TxHash))) + i-- + dAtA[i] = 0x12 + } + if m.ChainID != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryInboundTrackerResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInboundTrackerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInboundTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.InboundTracker.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -5990,6 +6196,33 @@ func (m *QueryRateLimiterFlagsResponse) Size() (n int) { return n } +func (m *QueryInboundTrackerRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainID != 0 { + n += 1 + sovQuery(uint64(m.ChainID)) + } + l = len(m.TxHash) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInboundTrackerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.InboundTracker.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -10287,6 +10520,190 @@ func (m *QueryRateLimiterFlagsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryInboundTrackerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryInboundTrackerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInboundTrackerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) + } + m.ChainID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainID |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TxHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryInboundTrackerResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryInboundTrackerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInboundTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InboundTracker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InboundTracker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/crosschain/types/query.pb.gw.go b/x/crosschain/types/query.pb.gw.go index 8ed80890ae..33c5bde33d 100644 --- a/x/crosschain/types/query.pb.gw.go +++ b/x/crosschain/types/query.pb.gw.go @@ -325,6 +325,82 @@ func local_request_Query_InboundTrackerAll_0(ctx context.Context, marshaler runt } +func request_Query_InboundTracker_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInboundTrackerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["txHash"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "txHash") + } + + protoReq.TxHash, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "txHash", err) + } + + msg, err := client.InboundTracker(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InboundTracker_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInboundTrackerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["txHash"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "txHash") + } + + protoReq.TxHash, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "txHash", err) + } + + msg, err := server.InboundTracker(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_InboundHashToCctx_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetInboundHashToCctxRequest var metadata runtime.ServerMetadata @@ -1588,6 +1664,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_InboundTracker_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InboundTracker_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InboundTracker_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_InboundHashToCctx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2327,6 +2426,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_InboundTracker_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InboundTracker_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InboundTracker_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_InboundHashToCctx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2861,6 +2980,8 @@ var ( pattern_Query_InboundTrackerAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "inboundTrackers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InboundTracker_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"zeta-chain", "crosschain", "inboundTracker", "chainID", "txHash"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InboundHashToCctx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "crosschain", "inboundHashToCctx", "inboundHash"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_InboundHashToCctxData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "crosschain", "inboundHashToCctxData", "inboundHash"}, "", runtime.AssumeColonVerbOpt(false))) @@ -2925,6 +3046,8 @@ var ( forward_Query_InboundTrackerAll_0 = runtime.ForwardResponseMessage + forward_Query_InboundTracker_0 = runtime.ForwardResponseMessage + forward_Query_InboundHashToCctx_0 = runtime.ForwardResponseMessage forward_Query_InboundHashToCctxData_0 = runtime.ForwardResponseMessage From a7b4ec8f49a77ee2c743cb187b906c8987d05b2c Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 12 Jul 2024 11:53:07 -0400 Subject: [PATCH 06/15] add sub function --- e2e/e2etests/test_admin_transactions.go | 36 ++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index 1fd22a1fe4..faa7424941 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -10,10 +10,44 @@ import ( "github.com/zeta-chain/zetacore/pkg/coin" "github.com/zeta-chain/zetacore/testutil/sample" crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" + observertypes "github.com/zeta-chain/zetacore/x/observer/types" ) func TestAdminTransactions(r *runner.E2ERunner, args []string) { - r.Logger.Info("Adding a inbound tracker ") + TestAddToInboundTracker(r) + TestUpdateGasPriceIncreaseFlags(r) +} + +func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { + + defaultFlags := observertypes.DefaultGasPriceIncreaseFlags + msgGasPriceFlags := observertypes.NewMsgUpdateGasPriceIncreaseFlags( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), + defaultFlags, + ) + _, err := r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) + require.NoError(r, err) + + defaultFlagsUpdated := defaultFlags + defaultFlagsUpdated.EpochLength = defaultFlags.EpochLength + 1 + + msgGasPriceFlags = observertypes.NewMsgUpdateGasPriceIncreaseFlags( + r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), + defaultFlagsUpdated, + ) + + _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) + require.NoError(r, err) + + time.Sleep(8 * time.Second) + + flags, err := r.ObserverClient.CrosschainFlags(r.Ctx, &observertypes.QueryGetCrosschainFlagsRequest{}) + require.NoError(r, err) + + require.Equal(r, defaultFlagsUpdated.EpochLength, flags.CrosschainFlags.GasPriceIncreaseFlags.EpochLength) +} + +func TestAddToInboundTracker(r *runner.E2ERunner) { chainEth := chains.GoerliLocalnet chainBtc := chains.BitcoinRegtest msgEth := crosschaintypes.NewMsgAddInboundTracker( From 8728a08df950d6d487238332c251db0b888f3b47 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 12 Jul 2024 12:34:24 -0400 Subject: [PATCH 07/15] add UpdateGasPriceIncreaseFlags --- cmd/zetae2e/local/local.go | 10 +++++----- e2e/e2etests/e2etests.go | 2 +- e2e/e2etests/helpers.go | 13 +++++++++++++ e2e/e2etests/test_admin_transactions.go | 9 +++------ e2e/e2etests/test_rate_limiter.go | 4 ++-- 5 files changed, 24 insertions(+), 14 deletions(-) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index e5956dc19c..6e850447af 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -277,11 +277,11 @@ func localE2ETest(cmd *cobra.Command, _ []string) { } if testAdmin { eg.Go(adminTestRoutine(conf, deployerRunner, verbose, - //e2etests.TestRateLimiterName, - //e2etests.TestPauseZRC20Name, - //e2etests.TestUpdateBytecodeZRC20Name, - //e2etests.TestUpdateBytecodeConnectorName, - //e2etests.TestDepositEtherLiquidityCapName, + e2etests.TestRateLimiterName, + e2etests.TestPauseZRC20Name, + e2etests.TestUpdateBytecodeZRC20Name, + e2etests.TestUpdateBytecodeConnectorName, + e2etests.TestDepositEtherLiquidityCapName, e2etests.TestAdminTransactionsName, // TestMigrateChainSupportName tests EVM chain migration. Currently this test doesn't work with Anvil because pre-EIP1559 txs are not supported diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 4a5574695c..4ccde6b330 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -534,7 +534,7 @@ var AllE2ETests = []runner.E2ETest{ ), runner.NewE2ETest( TestAdminTransactionsName, - "test admin critical admin transactions that have not been tested by any other test", + "test admin critical admin transactions", []runner.ArgDefinition{}, TestAdminTransactions, ), diff --git a/e2e/e2etests/helpers.go b/e2e/e2etests/helpers.go index 4dc37498d9..5495c5d1df 100644 --- a/e2e/e2etests/helpers.go +++ b/e2e/e2etests/helpers.go @@ -3,6 +3,7 @@ package e2etests import ( "math/big" "strconv" + "time" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" @@ -16,6 +17,18 @@ import ( crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) +func WaitForNBlock(r *runner.E2ERunner, n int64) { + height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) + require.NoError(r, err) + for { + heightNew, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) + require.NoError(r, err) + if heightNew.Height+n >= height.Height { + break + } + time.Sleep(4 * time.Second) + } +} func withdrawBTCZRC20(r *runner.E2ERunner, to btcutil.Address, amount *big.Int) *btcjson.TxRawResult { tx, err := r.BTCZRC20.Approve( r.ZEVMAuth, diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index faa7424941..ab74f2e6d9 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -1,8 +1,6 @@ package e2etests import ( - "time" - "github.com/stretchr/testify/require" "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" @@ -13,13 +11,12 @@ import ( observertypes "github.com/zeta-chain/zetacore/x/observer/types" ) -func TestAdminTransactions(r *runner.E2ERunner, args []string) { +func TestAdminTransactions(r *runner.E2ERunner, _ []string) { TestAddToInboundTracker(r) TestUpdateGasPriceIncreaseFlags(r) } func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { - defaultFlags := observertypes.DefaultGasPriceIncreaseFlags msgGasPriceFlags := observertypes.NewMsgUpdateGasPriceIncreaseFlags( r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), @@ -39,7 +36,7 @@ func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) require.NoError(r, err) - time.Sleep(8 * time.Second) + WaitForNBlock(r, 1) flags, err := r.ObserverClient.CrosschainFlags(r.Ctx, &observertypes.QueryGetCrosschainFlagsRequest{}) require.NoError(r, err) @@ -69,7 +66,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgBtc) require.NoError(r, err) - time.Sleep(8 * time.Second) + WaitForNBlock(r, 1) tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ ChainID: msgEth.ChainId, diff --git a/e2e/e2etests/test_rate_limiter.go b/e2e/e2etests/test_rate_limiter.go index af8221f23f..d1eb666986 100644 --- a/e2e/e2etests/test_rate_limiter.go +++ b/e2e/e2etests/test_rate_limiter.go @@ -71,8 +71,8 @@ func TestRateLimiter(r *runner.E2ERunner, _ []string) { // https://github.com/zeta-chain/node/issues/2090 r.Logger.Print("rate limiter enabled") require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, zetaAmount)) - require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, ethAmount)) - require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, erc20Amount)) + require.NoError(r, createAndWaitWithdraws(r, withdrawTypeETH, ethAmount)) + require.NoError(r, createAndWaitWithdraws(r, withdrawTypeERC20, erc20Amount)) // Disable rate limiter r.Logger.Info("disabling rate limiter") From d5b03f9cd762020f075162b76bd640999c9edbf4 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 12 Jul 2024 12:42:21 -0400 Subject: [PATCH 08/15] add changelog --- changelog.md | 1 + x/authority/types/authorization_list.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index fc417b1109..bc2fcfe2fd 100644 --- a/changelog.md +++ b/changelog.md @@ -77,6 +77,7 @@ * [2368](https://github.com/zeta-chain/node/pull/2368) - eliminate panic usage across testing suite * [2369](https://github.com/zeta-chain/node/pull/2369) - fix random cross-chain swap failure caused by using tiny UTXO * [2549](https://github.com/zeta-chain/node/pull/2459) - add separate accounts for each policy in e2e tests +* [2473](https://github.com/zeta-chain/node/pull/2473) - add e2e tests for most used admin transactions ### Fixes diff --git a/x/authority/types/authorization_list.go b/x/authority/types/authorization_list.go index 93faef42b8..5f72408833 100644 --- a/x/authority/types/authorization_list.go +++ b/x/authority/types/authorization_list.go @@ -6,8 +6,6 @@ import ( "cosmossdk.io/errors" ) -// MsgUpdateGasPriceIncreaseFlags -// MsgAddToInTxTracker var ( // OperationPolicyMessages keeps track of the message URLs that can, by default, only be executed by operational policy address OperationPolicyMessages = []string{ From d709f8d1c16ee0a8be4c43475af522e5455953bd Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 12 Jul 2024 19:34:13 -0400 Subject: [PATCH 09/15] rename proto files --- .../zetacored/zetacored_query_crosschain.md | 1 + ...d_query_crosschain_show-inbound-tracker.md | 34 ++ docs/openapi/openapi.swagger.yaml | 29 ++ e2e/e2etests/e2etests.go | 2 +- e2e/e2etests/test_admin_transactions.go | 4 +- .../zetachain/zetacore/crosschain/query.proto | 8 +- .../zetacore/crosschain/query_pb.d.ts | 53 +++ .../client/cli/query_inbound_tracker.go | 2 +- .../keeper/grpc_query_inbound_tracker.go | 2 +- .../keeper/grpc_query_inbound_tracker_test.go | 4 +- x/crosschain/types/query.pb.go | 320 +++++++++--------- x/crosschain/types/query.pb.gw.go | 30 +- 12 files changed, 303 insertions(+), 186 deletions(-) create mode 100644 docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md diff --git a/docs/cli/zetacored/zetacored_query_crosschain.md b/docs/cli/zetacored/zetacored_query_crosschain.md index 6ee04cc8d2..c0a67fb8d0 100644 --- a/docs/cli/zetacored/zetacored_query_crosschain.md +++ b/docs/cli/zetacored/zetacored_query_crosschain.md @@ -40,6 +40,7 @@ zetacored query crosschain [flags] * [zetacored query crosschain show-cctx](zetacored_query_crosschain_show-cctx.md) - shows a CCTX * [zetacored query crosschain show-gas-price](zetacored_query_crosschain_show-gas-price.md) - shows a gasPrice * [zetacored query crosschain show-inbound-hash-to-cctx](zetacored_query_crosschain_show-inbound-hash-to-cctx.md) - shows a inboundHashToCctx +* [zetacored query crosschain show-inbound-tracker](zetacored_query_crosschain_show-inbound-tracker.md) - shows an inbound tracker by chainId and txHash * [zetacored query crosschain show-outbound-tracker](zetacored_query_crosschain_show-outbound-tracker.md) - shows an outbound tracker * [zetacored query crosschain show-rate-limiter-flags](zetacored_query_crosschain_show-rate-limiter-flags.md) - shows the rate limiter flags diff --git a/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md b/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md new file mode 100644 index 0000000000..9bbd7ea30d --- /dev/null +++ b/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md @@ -0,0 +1,34 @@ +# query crosschain show-inbound-tracker + +shows an inbound tracker by chainId and txHash + +``` +zetacored query crosschain show-inbound-tracker [chainId] [txHash] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for show-inbound-tracker + --node string [host]:[port] to Tendermint RPC interface for this chain + -o, --output string Output format (text|json) +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --log_no_color Disable colored logs + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module + diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index a6ee4a79f3..4bbe9b3942 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -28846,6 +28846,30 @@ paths: type: string tags: - Query + /zeta-chain/crosschain/inboundTracker/{chain_id}/{tx_hash}: + get: + operationId: Query_InboundTracker + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/crosschainQueryInboundTrackerResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: chain_id + in: path + required: true + type: string + format: int64 + - name: tx_hash + in: path + required: true + type: string + tags: + - Query /zeta-chain/crosschain/inboundTrackerByChain/{chain_id}: get: operationId: Query_InboundTrackerAllByChain @@ -57397,6 +57421,11 @@ definitions: items: type: object $ref: '#/definitions/crosschainCrossChainTx' + crosschainQueryInboundTrackerResponse: + type: object + properties: + inbound_tracker: + $ref: '#/definitions/crosschainInboundTracker' crosschainQueryLastZetaHeightResponse: type: object properties: diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 4ccde6b330..d7954b3d29 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -534,7 +534,7 @@ var AllE2ETests = []runner.E2ETest{ ), runner.NewE2ETest( TestAdminTransactionsName, - "test admin critical admin transactions", + "test critical admin transactions", []runner.ArgDefinition{}, TestAdminTransactions, ), diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index ab74f2e6d9..b5b342d5e7 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -69,7 +69,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { WaitForNBlock(r, 1) tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ - ChainID: msgEth.ChainId, + ChainId: msgEth.ChainId, TxHash: msgEth.TxHash, }) require.NoError(r, err) @@ -77,7 +77,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { require.Equal(r, msgEth.TxHash, tracker.InboundTracker.TxHash) tracker, err = r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ - ChainID: msgBtc.ChainId, + ChainId: msgBtc.ChainId, TxHash: msgBtc.TxHash, }) require.NoError(r, err) diff --git a/proto/zetachain/zetacore/crosschain/query.proto b/proto/zetachain/zetacore/crosschain/query.proto index 943f12bd4f..da1786cc6e 100644 --- a/proto/zetachain/zetacore/crosschain/query.proto +++ b/proto/zetachain/zetacore/crosschain/query.proto @@ -48,7 +48,7 @@ service Query { rpc InboundTracker(QueryInboundTrackerRequest) returns (QueryInboundTrackerResponse) { option (google.api.http).get = - "/zeta-chain/crosschain/inboundTracker/{chainID}/{txHash}"; + "/zeta-chain/crosschain/inboundTracker/{chain_id}/{tx_hash}"; } // Queries a InboundHashToCctx by index. @@ -391,10 +391,10 @@ message QueryRateLimiterFlagsResponse { } message QueryInboundTrackerRequest { - int64 chainID = 1; - string txHash = 2; + int64 chain_id = 1; + string tx_hash = 2; } message QueryInboundTrackerResponse { - InboundTracker inboundTracker = 1 [ (gogoproto.nullable) = false ]; + InboundTracker inbound_tracker = 1 [ (gogoproto.nullable) = false ]; } \ No newline at end of file diff --git a/typescript/zetachain/zetacore/crosschain/query_pb.d.ts b/typescript/zetachain/zetacore/crosschain/query_pb.d.ts index f54d1d67e6..7b0766beca 100644 --- a/typescript/zetachain/zetacore/crosschain/query_pb.d.ts +++ b/typescript/zetachain/zetacore/crosschain/query_pb.d.ts @@ -1214,3 +1214,56 @@ export declare class QueryRateLimiterFlagsResponse extends Message | undefined, b: QueryRateLimiterFlagsResponse | PlainMessage | undefined): boolean; } +/** + * @generated from message zetachain.zetacore.crosschain.QueryInboundTrackerRequest + */ +export declare class QueryInboundTrackerRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: string tx_hash = 2; + */ + txHash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryInboundTrackerRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInboundTrackerRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInboundTrackerRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryInboundTrackerRequest; + + static equals(a: QueryInboundTrackerRequest | PlainMessage | undefined, b: QueryInboundTrackerRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryInboundTrackerResponse + */ +export declare class QueryInboundTrackerResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.InboundTracker inbound_tracker = 1; + */ + inboundTracker?: InboundTracker; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryInboundTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInboundTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInboundTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryInboundTrackerResponse; + + static equals(a: QueryInboundTrackerResponse | PlainMessage | undefined, b: QueryInboundTrackerResponse | PlainMessage | undefined): boolean; +} + diff --git a/x/crosschain/client/cli/query_inbound_tracker.go b/x/crosschain/client/cli/query_inbound_tracker.go index 8a734e2f2c..12048a8e0f 100644 --- a/x/crosschain/client/cli/query_inbound_tracker.go +++ b/x/crosschain/client/cli/query_inbound_tracker.go @@ -24,7 +24,7 @@ func CmdShowInboundTracker() *cobra.Command { return err } params := &types.QueryInboundTrackerRequest{ - ChainID: argChain, + ChainId: argChain, TxHash: args[1], } res, err := queryClient.InboundTracker(context.Background(), params) diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker.go b/x/crosschain/keeper/grpc_query_inbound_tracker.go index 0dc154af7e..bf9ab38d9f 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker.go @@ -42,7 +42,7 @@ func (k Keeper) InboundTracker( ) (*types.QueryInboundTrackerResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - inTxTracker, found := k.GetInboundTracker(ctx, req.ChainID, req.TxHash) + inTxTracker, found := k.GetInboundTracker(ctx, req.ChainId, req.TxHash) if !found { return nil, status.Error(codes.Internal, "not found") } diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker_test.go b/x/crosschain/keeper/grpc_query_inbound_tracker_test.go index 15f4779ee1..3a5aa9b12c 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker_test.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker_test.go @@ -61,7 +61,7 @@ func TestKeeper_InboundTracker(t *testing.T) { }) res, err := k.InboundTracker(ctx, &types.QueryInboundTrackerRequest{ - ChainID: chainID, + ChainId: chainID, TxHash: hash, }) require.NoError(t, err) @@ -74,7 +74,7 @@ func TestKeeper_InboundTracker(t *testing.T) { chainID := chains.GoerliLocalnet.ChainId res, err := k.InboundTracker(ctx, &types.QueryInboundTrackerRequest{ - ChainID: chainID, + ChainId: chainID, TxHash: hash, }) require.ErrorContains(t, err, "not found") diff --git a/x/crosschain/types/query.pb.go b/x/crosschain/types/query.pb.go index 48c5f3f498..2832a6c6a4 100644 --- a/x/crosschain/types/query.pb.go +++ b/x/crosschain/types/query.pb.go @@ -2215,8 +2215,8 @@ func (m *QueryRateLimiterFlagsResponse) GetRateLimiterFlags() RateLimiterFlags { } type QueryInboundTrackerRequest struct { - ChainID int64 `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"` - TxHash string `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"` + ChainId int64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + TxHash string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` } func (m *QueryInboundTrackerRequest) Reset() { *m = QueryInboundTrackerRequest{} } @@ -2252,9 +2252,9 @@ func (m *QueryInboundTrackerRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryInboundTrackerRequest proto.InternalMessageInfo -func (m *QueryInboundTrackerRequest) GetChainID() int64 { +func (m *QueryInboundTrackerRequest) GetChainId() int64 { if m != nil { - return m.ChainID + return m.ChainId } return 0 } @@ -2267,7 +2267,7 @@ func (m *QueryInboundTrackerRequest) GetTxHash() string { } type QueryInboundTrackerResponse struct { - InboundTracker InboundTracker `protobuf:"bytes,1,opt,name=inboundTracker,proto3" json:"inboundTracker"` + InboundTracker InboundTracker `protobuf:"bytes,1,opt,name=inbound_tracker,json=inboundTracker,proto3" json:"inbound_tracker"` } func (m *QueryInboundTrackerResponse) Reset() { *m = QueryInboundTrackerResponse{} } @@ -2365,154 +2365,154 @@ func init() { } var fileDescriptor_d00cb546ea76908b = []byte{ - // 2341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcd, 0x6f, 0x14, 0xc9, - 0x15, 0xa7, 0x3c, 0xd8, 0x40, 0x19, 0x0c, 0x2e, 0x0c, 0x78, 0x67, 0xc1, 0xb0, 0xcd, 0x82, 0xbd, - 0x10, 0xcf, 0x80, 0x8d, 0xcd, 0xe7, 0x2e, 0xf8, 0x83, 0x0f, 0x27, 0x06, 0xbc, 0x23, 0x2b, 0x44, - 0x44, 0x49, 0xab, 0xdc, 0x53, 0x3b, 0xd3, 0xd9, 0x76, 0xf7, 0xec, 0x74, 0x0d, 0x1e, 0x40, 0x3e, - 0x64, 0xa5, 0x1c, 0x72, 0x8b, 0xb4, 0x8a, 0x72, 0xc9, 0x29, 0x52, 0x94, 0x1c, 0x72, 0xc8, 0x21, - 0xda, 0x4b, 0x94, 0x48, 0xf9, 0x26, 0x5f, 0x12, 0xd9, 0x48, 0x51, 0x94, 0x43, 0xb4, 0x81, 0x28, - 0xb9, 0xe7, 0x2f, 0x88, 0xba, 0xfa, 0xf5, 0x4c, 0x7f, 0x77, 0xcd, 0x78, 0x90, 0xbc, 0x27, 0x77, - 0x77, 0xd5, 0x7b, 0xf5, 0x7e, 0xef, 0xbd, 0x7a, 0xf5, 0xea, 0xe7, 0xc1, 0x6f, 0x3d, 0x61, 0x9c, - 0x6a, 0x55, 0xaa, 0x9b, 0x45, 0xf1, 0x64, 0xd5, 0x59, 0x51, 0xab, 0x5b, 0xb6, 0xed, 0x7e, 0xfb, - 0xa0, 0xc1, 0xea,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x06, 0xf0, 0x14, 0x39, 0x89, 0xf7, 0x09, 0xcf, 0xb5, 0x34, 0xee, 0x8c, 0xba, 0x93, 0x4c, - 0xe0, 0x03, 0x35, 0x6a, 0x73, 0xd5, 0x5d, 0xfb, 0x11, 0x35, 0x1a, 0x6c, 0xb4, 0x5f, 0x94, 0x87, - 0x21, 0xe7, 0xbb, 0x13, 0x6f, 0xfb, 0x8b, 0xce, 0x57, 0x52, 0xc0, 0x07, 0x41, 0x51, 0x60, 0xf2, - 0x80, 0x4b, 0x6e, 0xd4, 0xda, 0xf9, 0x01, 0xf3, 0xaf, 0xe2, 0xbc, 0x61, 0x6d, 0x30, 0x9b, 0xab, - 0x7e, 0x31, 0xe0, 0x83, 0x46, 0x77, 0x09, 0x67, 0x1e, 0x71, 0x67, 0xf8, 0x92, 0x0b, 0x4a, 0xfe, - 0x3c, 0x3e, 0x13, 0x97, 0x7a, 0x0f, 0x74, 0x5e, 0xd5, 0xcd, 0x56, 0xac, 0x52, 0x63, 0xae, 0xfc, - 0xa2, 0x0f, 0x9f, 0x95, 0x52, 0x02, 0x91, 0x7e, 0x17, 0x0f, 0x05, 0x99, 0xb8, 0xae, 0x12, 0x5a, - 0xf3, 0x27, 0x74, 0x24, 0x04, 0x31, 0x19, 0x4d, 0x66, 0xf1, 0x11, 0xad, 0x51, 0xaf, 0x33, 0x93, - 0xab, 0x1b, 0x3a, 0xaf, 0x96, 0xeb, 0x74, 0x43, 0x85, 0x64, 0xcd, 0x09, 0x2f, 0x1d, 0x82, 0xe1, - 0x07, 0x30, 0xfa, 0x40, 0x0c, 0x92, 0x29, 0x7c, 0x28, 0x22, 0x57, 0xa7, 0x9c, 0x89, 0x38, 0xef, - 0x29, 0x1d, 0x0c, 0x49, 0x39, 0x80, 0x9d, 0x20, 0xb6, 0xe9, 0x32, 0x95, 0x35, 0x35, 0xc6, 0xca, - 0xac, 0x2c, 0x22, 0xbe, 0xbb, 0x34, 0x5c, 0xf7, 0x7c, 0x72, 0x13, 0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 0xa8, 0x53, 0xee, 0x41, 0xa2, 0x05, 0xef, 0xe1, 0xd9, 0x5d, 0xc8, 0x61, 0x3c, 0xc0, 0x9b, - 0xe2, 0x36, 0xe9, 0x86, 0x06, 0xde, 0x94, 0x27, 0x90, 0x9a, 0x61, 0x7d, 0x29, 0x34, 0x01, 0xea, - 0x11, 0x4d, 0x30, 0xf5, 0xbd, 0x29, 0xdc, 0x2f, 0x16, 0x27, 0x9f, 0x20, 0xbc, 0x3f, 0xc4, 0x75, - 0x91, 0xb7, 0x33, 0x96, 0x48, 0x67, 0x84, 0xf3, 0xef, 0x74, 0x2b, 0xee, 0x22, 0x57, 0x6e, 0x7c, - 0xf8, 0xd7, 0x7f, 0x7f, 0xd4, 0x77, 0x85, 0x5c, 0x12, 0x5c, 0xfa, 0xa4, 0xef, 0x3f, 0x10, 0x41, - 0x0e, 0x1e, 0xe4, 0x8a, 0x4f, 0xc1, 0xd3, 0x9b, 0xc5, 0xa7, 0xa2, 0xc3, 0xdb, 0x24, 0xbf, 0x42, - 0x98, 0x84, 0xb4, 0xcf, 0x19, 0x86, 0x1c, 0xae, 0x44, 0x4e, 0x58, 0x0e, 0x57, 0x32, 0xcf, 0xab, - 0x14, 0x04, 0xae, 0x09, 0x72, 0x5a, 0x0e, 0x17, 0xf9, 0x2f, 0xc2, 0xaf, 0x45, 0x51, 0x00, 0x05, - 0x47, 0x16, 0xbb, 0xb3, 0x26, 0xc8, 0x26, 0xe6, 0x6f, 0x6e, 0x51, 0x0b, 0x40, 0x7b, 0x5b, 0x40, - 0xbb, 0x48, 0x66, 0xe4, 0xa0, 0x81, 0x38, 0x44, 0x6e, 0x93, 0xfc, 0x07, 0xe1, 0xd1, 0x60, 0xde, - 0xfa, 0x80, 0x2e, 0x48, 0x9a, 0x98, 0xc6, 0x9a, 0xe6, 0x17, 0xb7, 0xa6, 0x04, 0x60, 0x5e, 0x17, - 0x30, 0x2f, 0x93, 0x8b, 0x09, 0x30, 0x75, 0x33, 0x19, 0x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0x94, 0x64, 0x44, 0x3b, 0x76, 0x6c, 0x88, 0xf4, 0x55, 0x4e, - 0x0a, 0x5b, 0x8f, 0x91, 0xd7, 0x53, 0x6c, 0x25, 0x1f, 0x3b, 0x1b, 0x30, 0x48, 0x35, 0x11, 0xa9, - 0xfe, 0x2b, 0x9e, 0xb0, 0xcd, 0x5f, 0xed, 0x4a, 0x56, 0xb6, 0x72, 0xf8, 0x8c, 0xfc, 0x1f, 0xc2, - 0x63, 0xe9, 0x1c, 0x19, 0x59, 0xea, 0xc2, 0x96, 0x78, 0xb2, 0x2e, 0xff, 0xf9, 0x5e, 0xa8, 0x02, - 0x94, 0x97, 0x05, 0xca, 0x69, 0x72, 0x3e, 0x1b, 0x65, 0x18, 0xd1, 0xc7, 0x08, 0x0f, 0x05, 0x7f, - 0xc6, 0x25, 0xb7, 0x03, 0x62, 0x7f, 0x18, 0x26, 0xd7, 0x67, 0xc7, 0xff, 0x6a, 0x4c, 0x99, 0x14, - 0x20, 0xc6, 0xc9, 0xa9, 0x04, 0x10, 0x4f, 0x82, 0x56, 0x3a, 0x86, 0x07, 0x09, 0x37, 0x39, 0xc3, - 0x63, 0x29, 0x3c, 0x39, 0xc3, 0xe3, 0xf9, 0xbd, 0x4c, 0xc3, 0x8d, 0xa0, 0x95, 0x4e, 0xab, 0x10, - 0xe6, 0x83, 0xe4, 0x5a, 0x85, 0x04, 0xe6, 0x4a, 0xae, 0x55, 0x48, 0x62, 0xb5, 0x32, 0x5b, 0x85, - 0x30, 0x47, 0x15, 0x06, 0x20, 0xfe, 0x4f, 0xd0, 0x31, 0x00, 0xff, 0x3f, 0x2b, 0x3a, 0x06, 0x10, - 0xf8, 0xd7, 0x44, 0x27, 0x00, 0x5c, 0x5b, 0xff, 0x84, 0xf0, 0xde, 0xfb, 0x0d, 0xbe, 0xda, 0xdc, - 0x26, 0x5c, 0x94, 0x04, 0xb1, 0xd1, 0xb2, 0x35, 0xe6, 0x28, 0xf8, 0x99, 0xcb, 0xae, 0xb5, 0xa6, - 0x6c, 0x03, 0x16, 0x2a, 0xeb, 0x04, 0xf6, 0x23, 0x22, 0xff, 0x42, 0xf8, 0x70, 0xc8, 0xfe, 0x6d, - 0xc9, 0x3f, 0x5d, 0x11, 0xa0, 0x2e, 0x90, 0x29, 0x09, 0x50, 0x61, 0xf2, 0xc9, 0xbd, 0x29, 0xc7, - 0x41, 0xdc, 0x46, 0xcc, 0xd3, 0x35, 0x01, 0x70, 0x96, 0x5c, 0x48, 0xbc, 0x4f, 0x26, 0xe0, 0x13, - 0xb4, 0xd3, 0x4f, 0x05, 0x63, 0xd3, 0x55, 0x16, 0xbe, 0x22, 0xce, 0x29, 0xeb, 0xf0, 0xf7, 0xe1, - 0x21, 0xcf, 0xc1, 0xfa, 0xed, 0x45, 0xd0, 0x5c, 0x15, 0x08, 0x66, 0xc8, 0x74, 0x0a, 0x82, 0x44, - 0x76, 0xe6, 0x1f, 0x08, 0x93, 0x20, 0xa4, 0xed, 0x43, 0xcd, 0x64, 0x93, 0x9c, 0x61, 0xbb, 0x43, - 0xe0, 0x7e, 0x23, 0x38, 0x35, 0xff, 0xa4, 0x6d, 0x42, 0xca, 0x64, 0x75, 0x03, 0x41, 0x64, 0xf3, - 0x5f, 0x78, 0xf6, 0x62, 0x0c, 0x3d, 0x7f, 0x31, 0x86, 0x3e, 0x7d, 0x31, 0x86, 0xbe, 0xf5, 0x72, - 0x6c, 0xc7, 0xf3, 0x97, 0x63, 0x3b, 0xfe, 0xfe, 0x72, 0x6c, 0xc7, 0xc3, 0xf3, 0x15, 0x9d, 0x57, - 0x1b, 0x6b, 0x05, 0xcd, 0x5a, 0xf7, 0xab, 0x6a, 0xfd, 0xf4, 0xbf, 0xe9, 0xd7, 0xca, 0x1f, 0xd7, - 0x98, 0xbd, 0x36, 0x20, 0x2e, 0xc2, 0xd3, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x97, 0x3f, 0x52, - 0x39, 0xdf, 0x31, 0x00, 0x00, + // 2349 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcb, 0x6f, 0x1c, 0x49, + 0x19, 0x4f, 0x79, 0xf2, 0x2c, 0x27, 0x76, 0x5c, 0x71, 0x12, 0xef, 0x6c, 0xe2, 0x64, 0x3b, 0x9b, + 0xd8, 0x9b, 0xe0, 0x99, 0xc4, 0x8e, 0x9d, 0xe7, 0x6e, 0xe2, 0x47, 0x1e, 0x06, 0x27, 0xf1, 0x8e, + 0x2c, 0x82, 0xc2, 0xa3, 0x55, 0xee, 0xa9, 0x9d, 0x69, 0xb6, 0xdd, 0x3d, 0x3b, 0x5d, 0x13, 0x4f, + 0xd6, 0xf2, 0x81, 0x95, 0x38, 0x70, 0x43, 0x5a, 0x21, 0x2e, 0x1c, 0x41, 0x70, 0xe0, 0xc0, 0x01, + 0xed, 0x05, 0x81, 0xc4, 0x3b, 0x62, 0x41, 0x0a, 0x8b, 0x84, 0x10, 0x07, 0xb4, 0x24, 0x08, 0xee, + 0xfc, 0x05, 0xab, 0xae, 0xfe, 0x7a, 0xa6, 0xdf, 0x5d, 0x33, 0x9e, 0x48, 0xde, 0x93, 0xbb, 0xbb, + 0xea, 0xfb, 0xea, 0xf7, 0xfb, 0xbe, 0x7a, 0x7c, 0xf5, 0xf3, 0xe0, 0x37, 0xde, 0x67, 0x9c, 0x6a, + 0x55, 0xaa, 0x9b, 0x45, 0xf1, 0x64, 0xd5, 0x59, 0x51, 0xab, 0x5b, 0xb6, 0xed, 0x7e, 0x7b, 0xaf, + 0xc1, 0xea, 0x4f, 0x0a, 0xb5, 0xba, 0xc5, 0x2d, 0x72, 0xbc, 0xd5, 0xb5, 0xe0, 0x75, 0x2d, 0xb4, + 0xbb, 0xe6, 0xcf, 0x6a, 0x96, 0xbd, 0x66, 0xd9, 0xc5, 0x55, 0x6a, 0x33, 0xd7, 0xae, 0xf8, 0xf8, + 0xc2, 0x2a,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 0x74, 0xcd, 0xe9, 0x31, 0x82, 0x4e, 0xa2, 0xf1, + 0x7d, 0xa5, 0x21, 0x68, 0x12, 0xb6, 0xa2, 0x41, 0x59, 0xc6, 0xa3, 0xc2, 0xdd, 0x1d, 0xc6, 0x1f, + 0x00, 0xf5, 0x15, 0x97, 0x39, 0x0c, 0x48, 0x46, 0xf0, 0x1e, 0x41, 0x72, 0x71, 0x41, 0x78, 0xc9, + 0x95, 0xbc, 0x57, 0x32, 0x8c, 0x77, 0x99, 0x96, 0xa9, 0xb1, 0x91, 0xbe, 0x93, 0x68, 0x7c, 0x67, + 0xc9, 0x7d, 0x51, 0xbe, 0x85, 0xf0, 0x89, 0x44, 0x97, 0x80, 0xf2, 0x1b, 0x78, 0xd0, 0x0a, 0x36, + 0x09, 0xdf, 0xfd, 0x93, 0x85, 0x42, 0xea, 0x94, 0x2f, 0x84, 0x1c, 0xce, 0xed, 0x7c, 0xfa, 0xaf, + 0x13, 0x3b, 0x4a, 0x61, 0x67, 0x4a, 0x15, 0x58, 0xcd, 0x1a, 0x46, 0x02, 0xab, 0xdb, 0x18, 0xb7, + 0xd7, 0x08, 0x0c, 0x7e, 0xa6, 0xe0, 0x2e, 0xa8, 0x82, 0xb3, 0xa0, 0x0a, 0xee, 0x42, 0x84, 0x05, + 0x55, 0x58, 0xa6, 0x15, 0x06, 0xb6, 0x25, 0x9f, 0xa5, 0xf2, 0x27, 0x8f, 0x6d, 0xdc, 0x50, 0x69, + 0x6c, 0x73, 0x3d, 0x63, 0x4b, 0xee, 0x04, 0xb8, 0xf4, 0x09, 0x2e, 0x63, 0x99, 0x5c, 0x5c, 0x70, + 0x01, 0x32, 0xdf, 0x46, 0xf8, 0x74, 0x02, 0x99, 0xb9, 0x27, 0xf3, 0x0e, 0x24, 0x2f, 0x7c, 0xc3, + 0x78, 0x97, 0x80, 0x08, 0x53, 0xc2, 0x7d, 0x09, 0x05, 0xb5, 0xaf, 0xeb, 0xa0, 0xfe, 0x15, 0xe1, + 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 0x19, + 0xf6, 0x08, 0x9c, 0xbe, 0x86, 0x07, 0x43, 0xd2, 0x36, 0x50, 0xea, 0x85, 0x52, 0x30, 0xf9, 0xc3, + 0x49, 0xbc, 0x4b, 0x8c, 0x4e, 0x3e, 0x41, 0x78, 0x30, 0x24, 0x77, 0x91, 0x37, 0x33, 0x86, 0x48, + 0x17, 0x85, 0xf3, 0x6f, 0x75, 0x6b, 0xee, 0x52, 0x57, 0x6e, 0x7e, 0xf0, 0xb7, 0xff, 0x7c, 0xd8, + 0x77, 0x95, 0x5c, 0x16, 0x72, 0xfa, 0x84, 0xef, 0x9f, 0x10, 0x41, 0x19, 0x1e, 0xec, 0x8a, 0x1b, + 0x50, 0xf2, 0x6d, 0x16, 0x37, 0x44, 0x91, 0xb7, 0x49, 0x7e, 0x8b, 0x30, 0x09, 0x79, 0x9f, 0x35, + 0x0c, 0x39, 0x5e, 0x89, 0xb2, 0xb0, 0x1c, 0xaf, 0x64, 0xa9, 0x57, 0x29, 0x08, 0x5e, 0xe3, 0xe4, + 0x8c, 0x1c, 0x2f, 0xf2, 0x3f, 0x84, 0x5f, 0x89, 0xb2, 0x00, 0x15, 0x8e, 0x2c, 0x74, 0x87, 0x26, + 0x28, 0x28, 0xe6, 0x6f, 0x6d, 0xd1, 0x0b, 0x50, 0x7b, 0x53, 0x50, 0xbb, 0x44, 0xa6, 0xe5, 0xa8, + 0x81, 0x39, 0x64, 0x6e, 0x93, 0xfc, 0x17, 0xe1, 0x91, 0xe0, 0xbc, 0xf5, 0x11, 0x9d, 0x97, 0x84, + 0x98, 0x26, 0x9c, 0xe6, 0x17, 0xb6, 0xe6, 0x04, 0x68, 0xde, 0x10, 0x34, 0xaf, 0x90, 0x4b, 0x09, + 0x34, 0x75, 0x33, 0x99, 0xa5, 0xaa, 0x97, 0x37, 0xc9, 0x6f, 0x10, 0x1e, 0x8a, 0x10, 0x95, 0x9e, + 0x97, 0xf1, 0xfa, 0xa5, 0xf4, 0xbc, 0x4c, 0xd0, 0x24, 0x33, 0xe7, 0x65, 0x90, 0x95, 0x4d, 0x3e, + 0x46, 0x78, 0x20, 0xe8, 0x8b, 0x5c, 0x91, 0x81, 0x10, 0xbb, 0x77, 0xe6, 0xaf, 0x76, 0x63, 0x0a, + 0xc8, 0xe7, 0x04, 0xf2, 0xeb, 0xe4, 0xaa, 0x14, 0x72, 0x5f, 0x22, 0x8a, 0x1b, 0xb0, 0x29, 0x6f, + 0x92, 0xbf, 0xb7, 0x53, 0xe2, 0x53, 0x9c, 0x6e, 0x48, 0xee, 0x61, 0x49, 0x32, 0x5c, 0xfe, 0x66, + 0xf7, 0x0e, 0x80, 0xdc, 0x5b, 0x82, 0xdc, 0x65, 0x32, 0x93, 0x4e, 0xae, 0x6d, 0x59, 0xdc, 0xf0, + 0x7d, 0xda, 0x24, 0x9f, 0x22, 0x7c, 0x38, 0x56, 0xa7, 0x24, 0x37, 0x3b, 0x08, 0x79, 0xac, 0x52, + 0x9a, 0x9f, 0xdd, 0x82, 0x87, 0xce, 0x72, 0x17, 0xb4, 0x0e, 0x51, 0xfc, 0x18, 0xe1, 0xe1, 0xc8, + 0x28, 0xce, 0x8a, 0xba, 0xd1, 0xd9, 0x92, 0xe8, 0x32, 0x7d, 0x69, 0xca, 0xa8, 0x72, 0x5e, 0xf0, + 0x3b, 0x4b, 0xc6, 0x65, 0xf9, 0x91, 0x9f, 0xa2, 0xb6, 0x16, 0x47, 0x66, 0x24, 0xe7, 0x4f, 0x48, + 0x34, 0xcc, 0x5f, 0xea, 0xd8, 0x0e, 0xf0, 0x16, 0x05, 0xde, 0x37, 0xc8, 0x58, 0x02, 0xde, 0x0a, + 0x18, 0x38, 0x29, 0x28, 0xb3, 0xe6, 0x26, 0xf9, 0x31, 0xc2, 0xfd, 0x9e, 0x17, 0x27, 0xe6, 0x33, + 0x92, 0x21, 0xeb, 0x0a, 0x71, 0x8c, 0x74, 0xa9, 0x8c, 0x09, 0xc4, 0xaf, 0x91, 0x13, 0x19, 0x88, + 0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, 0x26, + 0x25, 0x48, 0x85, 0xe5, 0x27, 0xf7, 0xa6, 0x1c, 0x47, 0x71, 0x1b, 0x69, 0x4f, 0xd7, 0x05, 0xc1, + 0x19, 0x72, 0x31, 0xf1, 0x3e, 0x99, 0xc0, 0x4f, 0x08, 0x4f, 0xbf, 0x10, 0x9a, 0x4d, 0x57, 0xb3, + 0xf0, 0x25, 0xa9, 0x4e, 0x59, 0x87, 0xbf, 0x8f, 0x0f, 0x79, 0x06, 0xe8, 0xb7, 0x97, 0x40, 0x73, + 0x4d, 0x30, 0x98, 0x26, 0x53, 0x29, 0x0c, 0x12, 0xd5, 0x99, 0x7f, 0x22, 0x4c, 0x82, 0x94, 0xb6, + 0x8f, 0x34, 0x93, 0x2d, 0x73, 0x86, 0x71, 0x87, 0xc8, 0xfd, 0x5e, 0x68, 0x6a, 0xfe, 0x4e, 0xdb, + 0x44, 0x94, 0xc9, 0xaa, 0x06, 0x82, 0xcc, 0xe6, 0xbe, 0xf4, 0xf4, 0xf9, 0x28, 0x7a, 0xf6, 0x7c, + 0x14, 0x7d, 0xfa, 0x7c, 0x14, 0x7d, 0xf7, 0xc5, 0xe8, 0x8e, 0x67, 0x2f, 0x46, 0x77, 0xfc, 0xe3, + 0xc5, 0xe8, 0x8e, 0x47, 0x17, 0x2a, 0x3a, 0xaf, 0x36, 0x56, 0x0b, 0x9a, 0xb5, 0xe6, 0x77, 0xd5, + 0xfa, 0xfd, 0x7f, 0xd3, 0xef, 0x95, 0x3f, 0xa9, 0x31, 0x7b, 0x75, 0xb7, 0xb8, 0x08, 0x4f, 0x7d, + 0x16, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x90, 0xcc, 0xec, 0xe4, 0x31, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -5464,8 +5464,8 @@ func (m *QueryInboundTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x12 } - if m.ChainID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) i-- dAtA[i] = 0x8 } @@ -6202,8 +6202,8 @@ func (m *QueryInboundTrackerRequest) Size() (n int) { } var l int _ = l - if m.ChainID != 0 { - n += 1 + sovQuery(uint64(m.ChainID)) + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) } l = len(m.TxHash) if l > 0 { @@ -10551,9 +10551,9 @@ func (m *QueryInboundTrackerRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) } - m.ChainID = 0 + m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -10563,7 +10563,7 @@ func (m *QueryInboundTrackerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainID |= int64(b&0x7F) << shift + m.ChainId |= int64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/crosschain/types/query.pb.gw.go b/x/crosschain/types/query.pb.gw.go index 33c5bde33d..77ca2e06d6 100644 --- a/x/crosschain/types/query.pb.gw.go +++ b/x/crosschain/types/query.pb.gw.go @@ -336,26 +336,26 @@ func request_Query_InboundTracker_0(ctx context.Context, marshaler runtime.Marsh _ = err ) - val, ok = pathParams["chainID"] + val, ok = pathParams["chain_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") } - protoReq.ChainID, err = runtime.Int64(val) + protoReq.ChainId, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) } - val, ok = pathParams["txHash"] + val, ok = pathParams["tx_hash"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "txHash") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tx_hash") } protoReq.TxHash, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "txHash", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tx_hash", err) } msg, err := client.InboundTracker(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -374,26 +374,26 @@ func local_request_Query_InboundTracker_0(ctx context.Context, marshaler runtime _ = err ) - val, ok = pathParams["chainID"] + val, ok = pathParams["chain_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") } - protoReq.ChainID, err = runtime.Int64(val) + protoReq.ChainId, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) } - val, ok = pathParams["txHash"] + val, ok = pathParams["tx_hash"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "txHash") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tx_hash") } protoReq.TxHash, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "txHash", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tx_hash", err) } msg, err := server.InboundTracker(ctx, &protoReq) @@ -2980,7 +2980,7 @@ var ( pattern_Query_InboundTrackerAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "inboundTrackers"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InboundTracker_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"zeta-chain", "crosschain", "inboundTracker", "chainID", "txHash"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InboundTracker_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"zeta-chain", "crosschain", "inboundTracker", "chain_id", "tx_hash"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_InboundHashToCctx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "crosschain", "inboundHashToCctx", "inboundHash"}, "", runtime.AssumeColonVerbOpt(false))) From afc91751c9570d25e649587919ba471700a7fa30 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 15 Jul 2024 11:31:35 -0400 Subject: [PATCH 10/15] use retry package --- e2e/e2etests/helpers.go | 34 +++++++++++++++++-------- e2e/e2etests/test_admin_transactions.go | 4 +-- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/e2e/e2etests/helpers.go b/e2e/e2etests/helpers.go index 5495c5d1df..c8faf0b206 100644 --- a/e2e/e2etests/helpers.go +++ b/e2e/e2etests/helpers.go @@ -1,6 +1,7 @@ package e2etests import ( + "fmt" "math/big" "strconv" "time" @@ -8,27 +9,40 @@ import ( "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" + "github.com/cenkalti/backoff/v4" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" - "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/pkg/chains" + "github.com/zeta-chain/zetacore/pkg/retry" crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) -func WaitForNBlock(r *runner.E2ERunner, n int64) { +func WaitNBlocks(r *runner.E2ERunner, n int64) { height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) - require.NoError(r, err) - for { - heightNew, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) - require.NoError(r, err) - if heightNew.Height+n >= height.Height { - break - } - time.Sleep(4 * time.Second) + if err != nil { + return + } + call := func() error { + return retry.Retry(waitForBlock(r, height.Height+n)) + } + + bo := backoff.WithMaxRetries(backoff.NewConstantBackOff(5*time.Second), 10) + err = retry.DoWithBackoff(call, bo) + require.NoError(r, err, "failed to wait for %d blocks", n) +} +func waitForBlock(r *runner.E2ERunner, n int64) error { + height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) + if err != nil { + return err } + if height.Height >= n { + return nil + } + return fmt.Errorf("waiting for %d blocks, current height %d", n, height.Height) } + func withdrawBTCZRC20(r *runner.E2ERunner, to btcutil.Address, amount *big.Int) *btcjson.TxRawResult { tx, err := r.BTCZRC20.Approve( r.ZEVMAuth, diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index b5b342d5e7..5c4fb7727e 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -36,7 +36,7 @@ func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) require.NoError(r, err) - WaitForNBlock(r, 1) + WaitNBlocks(r, 1) flags, err := r.ObserverClient.CrosschainFlags(r.Ctx, &observertypes.QueryGetCrosschainFlagsRequest{}) require.NoError(r, err) @@ -66,7 +66,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgBtc) require.NoError(r, err) - WaitForNBlock(r, 1) + WaitNBlocks(r, 1) tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ ChainId: msgEth.ChainId, From 8d6265fe81f529e3a94a666b56a9d8225216361f Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 17 Jul 2024 15:38:17 -0400 Subject: [PATCH 11/15] rebase develop --- cmd/zetae2e/local/local.go | 2 +- docs/cli/zetacored/zetacored_query_crosschain.md | 2 +- ...ored_query_crosschain_show-inbound-tracker.md | 4 ++-- e2e/e2etests/e2etests.go | 16 ++++++++-------- e2e/e2etests/helpers.go | 7 +++---- e2e/e2etests/test_admin_transactions.go | 5 +++-- x/crosschain/client/cli/query_inbound_tracker.go | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index a5c87940aa..4b485c1763 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -289,7 +289,7 @@ func localE2ETest(cmd *cobra.Command, _ []string) { e2etests.TestUpdateBytecodeZRC20Name, e2etests.TestUpdateBytecodeConnectorName, e2etests.TestDepositEtherLiquidityCapName, - e2etests.TestAdminTransactionsName, + e2etests.TestCriticalAdminTransactionsName, // TestMigrateChainSupportName tests EVM chain migration. Currently this test doesn't work with Anvil because pre-EIP1559 txs are not supported // See issue below for details diff --git a/docs/cli/zetacored/zetacored_query_crosschain.md b/docs/cli/zetacored/zetacored_query_crosschain.md index c0a67fb8d0..a954c3d383 100644 --- a/docs/cli/zetacored/zetacored_query_crosschain.md +++ b/docs/cli/zetacored/zetacored_query_crosschain.md @@ -40,7 +40,7 @@ zetacored query crosschain [flags] * [zetacored query crosschain show-cctx](zetacored_query_crosschain_show-cctx.md) - shows a CCTX * [zetacored query crosschain show-gas-price](zetacored_query_crosschain_show-gas-price.md) - shows a gasPrice * [zetacored query crosschain show-inbound-hash-to-cctx](zetacored_query_crosschain_show-inbound-hash-to-cctx.md) - shows a inboundHashToCctx -* [zetacored query crosschain show-inbound-tracker](zetacored_query_crosschain_show-inbound-tracker.md) - shows an inbound tracker by chainId and txHash +* [zetacored query crosschain show-inbound-tracker](zetacored_query_crosschain_show-inbound-tracker.md) - shows an inbound tracker by chainID and txHash * [zetacored query crosschain show-outbound-tracker](zetacored_query_crosschain_show-outbound-tracker.md) - shows an outbound tracker * [zetacored query crosschain show-rate-limiter-flags](zetacored_query_crosschain_show-rate-limiter-flags.md) - shows the rate limiter flags diff --git a/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md b/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md index 9bbd7ea30d..ea9b8e8049 100644 --- a/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md +++ b/docs/cli/zetacored/zetacored_query_crosschain_show-inbound-tracker.md @@ -1,9 +1,9 @@ # query crosschain show-inbound-tracker -shows an inbound tracker by chainId and txHash +shows an inbound tracker by chainID and txHash ``` -zetacored query crosschain show-inbound-tracker [chainId] [txHash] [flags] +zetacored query crosschain show-inbound-tracker [chainID] [txHash] [flags] ``` ### Options diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 3859d09e5b..88957ce556 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -94,13 +94,13 @@ const ( Admin tests Test admin functionalities */ - TestDepositEtherLiquidityCapName = "deposit_eth_liquidity_cap" - TestMigrateChainSupportName = "migrate_chain_support" - TestPauseZRC20Name = "pause_zrc20" - TestUpdateBytecodeZRC20Name = "update_bytecode_zrc20" - TestUpdateBytecodeConnectorName = "update_bytecode_connector" - TestRateLimiterName = "rate_limiter" - TestAdminTransactionsName = "admin_transactions" + TestDepositEtherLiquidityCapName = "deposit_eth_liquidity_cap" + TestMigrateChainSupportName = "migrate_chain_support" + TestPauseZRC20Name = "pause_zrc20" + TestUpdateBytecodeZRC20Name = "update_bytecode_zrc20" + TestUpdateBytecodeConnectorName = "update_bytecode_connector" + TestRateLimiterName = "rate_limiter" + TestCriticalAdminTransactionsName = "critical_admin_transactions" TestMigrateTSSName = "migrate_TSS" @@ -535,7 +535,7 @@ var AllE2ETests = []runner.E2ETest{ TestRateLimiter, ), runner.NewE2ETest( - TestAdminTransactionsName, + TestCriticalAdminTransactionsName, "test critical admin transactions", []runner.ArgDefinition{}, TestAdminTransactions, diff --git a/e2e/e2etests/helpers.go b/e2e/e2etests/helpers.go index c8faf0b206..1e44faf19a 100644 --- a/e2e/e2etests/helpers.go +++ b/e2e/e2etests/helpers.go @@ -4,14 +4,13 @@ import ( "fmt" "math/big" "strconv" - "time" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" - "github.com/cenkalti/backoff/v4" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/pkg/chains" @@ -19,7 +18,7 @@ import ( crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) -func WaitNBlocks(r *runner.E2ERunner, n int64) { +func WaitForBlocks(r *runner.E2ERunner, n int64) { height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) if err != nil { return @@ -28,7 +27,7 @@ func WaitNBlocks(r *runner.E2ERunner, n int64) { return retry.Retry(waitForBlock(r, height.Height+n)) } - bo := backoff.WithMaxRetries(backoff.NewConstantBackOff(5*time.Second), 10) + bo := retry.DefaultBackoff() err = retry.DoWithBackoff(call, bo) require.NoError(r, err, "failed to wait for %d blocks", n) } diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index 5c4fb7727e..e1d966eaa8 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -2,6 +2,7 @@ package e2etests import ( "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/pkg/chains" @@ -36,7 +37,7 @@ func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) require.NoError(r, err) - WaitNBlocks(r, 1) + WaitForBlocks(r, 1) flags, err := r.ObserverClient.CrosschainFlags(r.Ctx, &observertypes.QueryGetCrosschainFlagsRequest{}) require.NoError(r, err) @@ -66,7 +67,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgBtc) require.NoError(r, err) - WaitNBlocks(r, 1) + WaitForBlocks(r, 1) tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ ChainId: msgEth.ChainId, diff --git a/x/crosschain/client/cli/query_inbound_tracker.go b/x/crosschain/client/cli/query_inbound_tracker.go index 12048a8e0f..2c97e8d534 100644 --- a/x/crosschain/client/cli/query_inbound_tracker.go +++ b/x/crosschain/client/cli/query_inbound_tracker.go @@ -13,8 +13,8 @@ import ( func CmdShowInboundTracker() *cobra.Command { cmd := &cobra.Command{ - Use: "show-inbound-tracker [chainId] [txHash]", - Short: "shows an inbound tracker by chainId and txHash", + Use: "show-inbound-tracker [chainID] [txHash]", + Short: "shows an inbound tracker by chainID and txHash", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { clientCtx := client.GetClientContextFromCmd(cmd) From f1f8dba10d8e8f2f0b062151f5db9b45bfe9fd13 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 17 Jul 2024 21:05:01 -0400 Subject: [PATCH 12/15] use constant backoff --- e2e/e2etests/helpers.go | 10 ++++++---- x/crosschain/keeper/grpc_query_inbound_tracker.go | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/e2e/e2etests/helpers.go b/e2e/e2etests/helpers.go index 1e44faf19a..80a62ea6e6 100644 --- a/e2e/e2etests/helpers.go +++ b/e2e/e2etests/helpers.go @@ -4,10 +4,12 @@ import ( "fmt" "math/big" "strconv" + "time" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" + "github.com/cenkalti/backoff/v4" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" @@ -27,7 +29,7 @@ func WaitForBlocks(r *runner.E2ERunner, n int64) { return retry.Retry(waitForBlock(r, height.Height+n)) } - bo := retry.DefaultBackoff() + bo := backoff.NewConstantBackOff(time.Second * 5) err = retry.DoWithBackoff(call, bo) require.NoError(r, err, "failed to wait for %d blocks", n) } @@ -36,10 +38,10 @@ func waitForBlock(r *runner.E2ERunner, n int64) error { if err != nil { return err } - if height.Height >= n { - return nil + if height.Height < n { + return fmt.Errorf("waiting for %d blocks, current height %d", n, height.Height) } - return fmt.Errorf("waiting for %d blocks, current height %d", n, height.Height) + return nil } func withdrawBTCZRC20(r *runner.E2ERunner, to btcutil.Address, amount *big.Int) *btcjson.TxRawResult { diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker.go b/x/crosschain/keeper/grpc_query_inbound_tracker.go index bf9ab38d9f..99c1bb40ba 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker.go @@ -44,7 +44,7 @@ func (k Keeper) InboundTracker( inTxTracker, found := k.GetInboundTracker(ctx, req.ChainId, req.TxHash) if !found { - return nil, status.Error(codes.Internal, "not found") + return nil, status.Errorf(codes.NotFound, "Inbound tracker not found for ChainID: %d, TxHash: %s", req.ChainId, req.TxHash) } return &types.QueryInboundTrackerResponse{InboundTracker: inTxTracker}, nil From e6a8b1766271e052f8eb8fe930f177f5ac5cf0cf Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 18 Jul 2024 08:58:43 -0400 Subject: [PATCH 13/15] generate files --- e2e/e2etests/e2etests.go | 2 +- e2e/e2etests/test_admin_transactions.go | 18 +++++++++++++++++- .../keeper/grpc_query_inbound_tracker.go | 7 ++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 88957ce556..8e9b9c8245 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -538,7 +538,7 @@ var AllE2ETests = []runner.E2ETest{ TestCriticalAdminTransactionsName, "test critical admin transactions", []runner.ArgDefinition{}, - TestAdminTransactions, + TestCriticalAdminTransactions, ), /* Special tests diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index e1d966eaa8..c7db675b18 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -12,7 +12,23 @@ import ( observertypes "github.com/zeta-chain/zetacore/x/observer/types" ) -func TestAdminTransactions(r *runner.E2ERunner, _ []string) { +// TestCriticalAdminTransactions tests critical admin transactions that are the most used on mainnet . +// The complete list is +// MsgUpdateChainParams +// MsgRefundAbortedCCTX +// MsgEnableCCTX +// MsgDisableCCTX +// MsgUpdateGasPriceIncreaseFlags +// MsgAddInboundTracker +// MsgUpdateZRC20LiquidityCap +// MsgDeploySystemContracts +// MsgWhitelistERC20 +// MsgPauseZRC20 +// MsgMigrateTssFunds +// MsgUpdateTssAddress +// +// However, the transactions other than `AddToInboundTracker` and `UpdateGasPriceIncreaseFlags` have already been used in other tests. +func TestCriticalAdminTransactions(r *runner.E2ERunner, _ []string) { TestAddToInboundTracker(r) TestUpdateGasPriceIncreaseFlags(r) } diff --git a/x/crosschain/keeper/grpc_query_inbound_tracker.go b/x/crosschain/keeper/grpc_query_inbound_tracker.go index 99c1bb40ba..e5b57b895b 100644 --- a/x/crosschain/keeper/grpc_query_inbound_tracker.go +++ b/x/crosschain/keeper/grpc_query_inbound_tracker.go @@ -44,7 +44,12 @@ func (k Keeper) InboundTracker( inTxTracker, found := k.GetInboundTracker(ctx, req.ChainId, req.TxHash) if !found { - return nil, status.Errorf(codes.NotFound, "Inbound tracker not found for ChainID: %d, TxHash: %s", req.ChainId, req.TxHash) + return nil, status.Errorf( + codes.NotFound, + "Inbound tracker not found for ChainID: %d, TxHash: %s", + req.ChainId, + req.TxHash, + ) } return &types.QueryInboundTrackerResponse{InboundTracker: inTxTracker}, nil From 618d4afd59caf54cfdb550d2e355baad2259afe6 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 22 Jul 2024 13:52:20 -0400 Subject: [PATCH 14/15] resolve comments 2 --- e2e/e2etests/helpers.go | 28 ------------------ e2e/e2etests/test_admin_transactions.go | 10 ++++--- e2e/runner/zeta.go | 29 +++++++++++++++++++ .../client/cli/query_inbound_tracker.go | 5 ++-- 4 files changed, 38 insertions(+), 34 deletions(-) diff --git a/e2e/e2etests/helpers.go b/e2e/e2etests/helpers.go index 80a62ea6e6..4dc37498d9 100644 --- a/e2e/e2etests/helpers.go +++ b/e2e/e2etests/helpers.go @@ -1,49 +1,21 @@ package e2etests import ( - "fmt" "math/big" "strconv" - "time" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" - "github.com/cenkalti/backoff/v4" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/pkg/chains" - "github.com/zeta-chain/zetacore/pkg/retry" crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) -func WaitForBlocks(r *runner.E2ERunner, n int64) { - height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) - if err != nil { - return - } - call := func() error { - return retry.Retry(waitForBlock(r, height.Height+n)) - } - - bo := backoff.NewConstantBackOff(time.Second * 5) - err = retry.DoWithBackoff(call, bo) - require.NoError(r, err, "failed to wait for %d blocks", n) -} -func waitForBlock(r *runner.E2ERunner, n int64) error { - height, err := r.CctxClient.LastZetaHeight(r.Ctx, &crosschaintypes.QueryLastZetaHeightRequest{}) - if err != nil { - return err - } - if height.Height < n { - return fmt.Errorf("waiting for %d blocks, current height %d", n, height.Height) - } - return nil -} - func withdrawBTCZRC20(r *runner.E2ERunner, to btcutil.Address, amount *big.Int) *btcjson.TxRawResult { tx, err := r.BTCZRC20.Approve( r.ZEVMAuth, diff --git a/e2e/e2etests/test_admin_transactions.go b/e2e/e2etests/test_admin_transactions.go index c7db675b18..e611d878c3 100644 --- a/e2e/e2etests/test_admin_transactions.go +++ b/e2e/e2etests/test_admin_transactions.go @@ -34,6 +34,7 @@ func TestCriticalAdminTransactions(r *runner.E2ERunner, _ []string) { } func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { + // Set default flags on zetacore defaultFlags := observertypes.DefaultGasPriceIncreaseFlags msgGasPriceFlags := observertypes.NewMsgUpdateGasPriceIncreaseFlags( r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), @@ -42,22 +43,23 @@ func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner) { _, err := r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) require.NoError(r, err) + // create a new set of flag values by incrementing the epoch length by 1 defaultFlagsUpdated := defaultFlags defaultFlagsUpdated.EpochLength = defaultFlags.EpochLength + 1 + // Update the flags on zetacore with the new values msgGasPriceFlags = observertypes.NewMsgUpdateGasPriceIncreaseFlags( r.ZetaTxServer.MustGetAccountAddressFromName(utils.OperationalPolicyName), defaultFlagsUpdated, ) - _, err = r.ZetaTxServer.BroadcastTx(utils.OperationalPolicyName, msgGasPriceFlags) require.NoError(r, err) - WaitForBlocks(r, 1) + r.WaitForBlocks(1) + // Verify that the flags have been updated flags, err := r.ObserverClient.CrosschainFlags(r.Ctx, &observertypes.QueryGetCrosschainFlagsRequest{}) require.NoError(r, err) - require.Equal(r, defaultFlagsUpdated.EpochLength, flags.CrosschainFlags.GasPriceIncreaseFlags.EpochLength) } @@ -83,7 +85,7 @@ func TestAddToInboundTracker(r *runner.E2ERunner) { _, err = r.ZetaTxServer.BroadcastTx(utils.EmergencyPolicyName, msgBtc) require.NoError(r, err) - WaitForBlocks(r, 1) + r.WaitForBlocks(1) tracker, err := r.CctxClient.InboundTracker(r.Ctx, &crosschaintypes.QueryInboundTrackerRequest{ ChainId: msgEth.ChainId, diff --git a/e2e/runner/zeta.go b/e2e/runner/zeta.go index 732104afe1..35cd8786b5 100644 --- a/e2e/runner/zeta.go +++ b/e2e/runner/zeta.go @@ -1,18 +1,47 @@ package runner import ( + "fmt" "math/big" + "time" + "github.com/cenkalti/backoff/v4" ethcommon "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/stretchr/testify/require" zetaconnectoreth "github.com/zeta-chain/protocol-contracts/pkg/contracts/evm/zetaconnector.eth.sol" connectorzevm "github.com/zeta-chain/protocol-contracts/pkg/contracts/zevm/zetaconnectorzevm.sol" + "github.com/zeta-chain/zetacore/pkg/retry" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/x/crosschain/types" ) +func (r *E2ERunner) WaitForBlocks(n int64) { + height, err := r.CctxClient.LastZetaHeight(r.Ctx, &types.QueryLastZetaHeightRequest{}) + if err != nil { + return + } + call := func() error { + return retry.Retry(r.waitForBlock(height.Height + n)) + } + + bo := backoff.NewConstantBackOff(time.Second * 5) + boWithMaxRetries := backoff.WithMaxRetries(bo, 10) + err = retry.DoWithBackoff(call, boWithMaxRetries) + require.NoError(r, err, "failed to wait for %d blocks", n) +} +func (r *E2ERunner) waitForBlock(n int64) error { + height, err := r.CctxClient.LastZetaHeight(r.Ctx, &types.QueryLastZetaHeightRequest{}) + if err != nil { + return err + } + if height.Height < n { + return fmt.Errorf("waiting for %d blocks, current height %d", n, height.Height) + } + return nil +} + // WaitForTxReceiptOnZEVM waits for a tx receipt on ZEVM func (r *E2ERunner) WaitForTxReceiptOnZEVM(tx *ethtypes.Transaction) { r.Lock() diff --git a/x/crosschain/client/cli/query_inbound_tracker.go b/x/crosschain/client/cli/query_inbound_tracker.go index 2c97e8d534..6045437a58 100644 --- a/x/crosschain/client/cli/query_inbound_tracker.go +++ b/x/crosschain/client/cli/query_inbound_tracker.go @@ -4,6 +4,7 @@ import ( "context" "strconv" + "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" @@ -21,7 +22,7 @@ func CmdShowInboundTracker() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) argChain, err := strconv.ParseInt(args[0], 10, 64) if err != nil { - return err + return errors.Wrapf(err, "unable to parse chain id from %q", args[0]) } params := &types.QueryInboundTrackerRequest{ ChainId: argChain, @@ -29,7 +30,7 @@ func CmdShowInboundTracker() *cobra.Command { } res, err := queryClient.InboundTracker(context.Background(), params) if err != nil { - return err + return errors.Wrapf(err, "failed to fetch inbound tracker for chain %d and tx hash %s", argChain, args[1]) } return clientCtx.PrintProto(res) }, From 07ef2e8291df9d3c18acfa6e7011a0919ca0f1cb Mon Sep 17 00:00:00 2001 From: Tanmay Date: Tue, 23 Jul 2024 12:09:35 -0400 Subject: [PATCH 15/15] generate --- e2e/runner/zeta.go | 2 +- x/crosschain/client/cli/query_inbound_tracker.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/e2e/runner/zeta.go b/e2e/runner/zeta.go index 35cd8786b5..95f160a801 100644 --- a/e2e/runner/zeta.go +++ b/e2e/runner/zeta.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/require" zetaconnectoreth "github.com/zeta-chain/protocol-contracts/pkg/contracts/evm/zetaconnector.eth.sol" connectorzevm "github.com/zeta-chain/protocol-contracts/pkg/contracts/zevm/zetaconnectorzevm.sol" - "github.com/zeta-chain/zetacore/pkg/retry" "github.com/zeta-chain/zetacore/e2e/utils" + "github.com/zeta-chain/zetacore/pkg/retry" "github.com/zeta-chain/zetacore/x/crosschain/types" ) diff --git a/x/crosschain/client/cli/query_inbound_tracker.go b/x/crosschain/client/cli/query_inbound_tracker.go index 6045437a58..48d9e0e88b 100644 --- a/x/crosschain/client/cli/query_inbound_tracker.go +++ b/x/crosschain/client/cli/query_inbound_tracker.go @@ -30,7 +30,12 @@ func CmdShowInboundTracker() *cobra.Command { } res, err := queryClient.InboundTracker(context.Background(), params) if err != nil { - return errors.Wrapf(err, "failed to fetch inbound tracker for chain %d and tx hash %s", argChain, args[1]) + return errors.Wrapf( + err, + "failed to fetch inbound tracker for chain %d and tx hash %s", + argChain, + args[1], + ) } return clientCtx.PrintProto(res) },