e2etests

package
v0.0.0-...-1329066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 73 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*
	 ZETA tests
	 Test transfer of ZETA asset across chains
	*/
	TestZetaDepositName           = "zeta_deposit"
	TestZetaDepositNewAddressName = "zeta_deposit_new_address"
	TestZetaDepositRestrictedName = "zeta_deposit_restricted"
	TestZetaWithdrawName          = "zeta_withdraw"
	TestZetaWithdrawBTCRevertName = "zeta_withdraw_btc_revert" // #nosec G101 - not a hardcoded password

	/*
	 Message passing tests
	 Test message passing across chains
	*/
	TestMessagePassingExternalChainsName              = "message_passing_external_chains"
	TestMessagePassingRevertFailExternalChainsName    = "message_passing_revert_fail"
	TestMessagePassingRevertSuccessExternalChainsName = "message_passing_revert_success"
	TestMessagePassingEVMtoZEVMName                   = "message_passing_evm_to_zevm"
	TestMessagePassingZEVMToEVMName                   = "message_passing_zevm_to_evm"
	TestMessagePassingZEVMtoEVMRevertName             = "message_passing_zevm_to_evm_revert"
	TestMessagePassingEVMtoZEVMRevertName             = "message_passing_evm_to_zevm_revert"
	TestMessagePassingZEVMtoEVMRevertFailName         = "message_passing_zevm_to_evm_revert_fail"
	TestMessagePassingEVMtoZEVMRevertFailName         = "message_passing_evm_to_zevm_revert_fail"

	/*
	 EVM gas tests
	 Test transfer of EVM gas asset across chains
	*/
	TestEtherDepositName              = "eth_deposit"
	TestEtherWithdrawName             = "eth_withdraw"
	TestEtherWithdrawRestrictedName   = "eth_withdraw_restricted"
	TestEtherDepositAndCallRefundName = "eth_deposit_and_call_refund"
	TestEtherDepositAndCallName       = "eth_deposit_and_call"

	/*
	 EVM erc20 tests
	 Test transfer of EVM erc20 asset across chains
	*/
	TestERC20WithdrawName             = "erc20_withdraw"
	TestERC20DepositName              = "erc20_deposit"
	TestMultipleERC20DepositName      = "erc20_multiple_deposit"
	TestMultipleERC20WithdrawsName    = "erc20_multiple_withdraw"
	TestERC20DepositRestrictedName    = "erc20_deposit_restricted" // #nosec G101: Potential hardcoded credentials (gosec), not a credential
	TestERC20DepositAndCallRefundName = "erc20_deposit_and_call_refund"

	/*
	 * Solana tests
	 */
	TestSolanaDepositName                      = "solana_deposit"
	TestSolanaWithdrawName                     = "solana_withdraw"
	TestSolanaDepositAndCallName               = "solana_deposit_and_call"
	TestSolanaDepositAndCallRevertName         = "solana_deposit_and_call_revert"
	TestSolanaDepositAndCallRevertWithDustName = "solana_deposit_and_call_revert_with_dust"
	TestSolanaDepositRestrictedName            = "solana_deposit_restricted"
	TestSolanaWithdrawRestrictedName           = "solana_withdraw_restricted"
	TestSPLDepositName                         = "spl_deposit"
	TestSPLDepositAndCallName                  = "spl_deposit_and_call"
	TestSPLWithdrawName                        = "spl_withdraw"
	TestSPLWithdrawAndCreateReceiverAtaName    = "spl_withdraw_and_create_receiver_ata"

	/**
	 * TON tests
	 */
	TestTONDepositName              = "ton_deposit"
	TestTONDepositAndCallName       = "ton_deposit_and_call"
	TestTONDepositAndCallRefundName = "ton_deposit_refund"
	TestTONWithdrawName             = "ton_withdraw"
	TestTONWithdrawConcurrentName   = "ton_withdraw_concurrent"

	/*
	 Bitcoin tests
	 Test transfer of Bitcoin asset across chains
	*/
	TestBitcoinDepositName                                 = "bitcoin_deposit"
	TestBitcoinDepositAndCallName                          = "bitcoin_deposit_and_call"
	TestBitcoinDepositAndCallRevertName                    = "bitcoin_deposit_and_call_revert"
	TestBitcoinDepositAndCallRevertWithDustName            = "bitcoin_deposit_and_call_revert_with_dust"
	TestBitcoinDonationName                                = "bitcoin_donation"
	TestBitcoinStdMemoDepositName                          = "bitcoin_std_memo_deposit"
	TestBitcoinStdMemoDepositAndCallName                   = "bitcoin_std_memo_deposit_and_call"
	TestBitcoinStdMemoDepositAndCallRevertName             = "bitcoin_std_memo_deposit_and_call_revert"
	TestBitcoinStdMemoDepositAndCallRevertOtherAddressName = "bitcoin_std_memo_deposit_and_call_revert_other_address"
	TestBitcoinStdMemoInscribedDepositAndCallName          = "bitcoin_std_memo_inscribed_deposit_and_call"
	TestBitcoinWithdrawSegWitName                          = "bitcoin_withdraw_segwit"
	TestBitcoinWithdrawTaprootName                         = "bitcoin_withdraw_taproot"
	TestBitcoinWithdrawMultipleName                        = "bitcoin_withdraw_multiple"
	TestBitcoinWithdrawLegacyName                          = "bitcoin_withdraw_legacy"
	TestBitcoinWithdrawP2WSHName                           = "bitcoin_withdraw_p2wsh"
	TestBitcoinWithdrawP2SHName                            = "bitcoin_withdraw_p2sh"
	TestBitcoinWithdrawInvalidAddressName                  = "bitcoin_withdraw_invalid"
	TestBitcoinWithdrawRestrictedName                      = "bitcoin_withdraw_restricted"

	/*
	 Application tests
	 Test various smart contract applications across chains
	*/
	TestZRC20SwapName      = "zrc20_swap"
	TestCrosschainSwapName = "crosschain_swap"

	/*
	 Miscellaneous tests
	 Test various functionalities not related to assets
	*/
	TestContextUpgradeName  = "context_upgrade"
	TestMyTestName          = "my_test"
	TestDonationEtherName   = "donation_ether"
	TestInboundTrackersName = "inbound_trackers"

	/*
	 Stress tests
	 Test stressing networks with many cross-chain transactions
	*/
	TestStressEtherWithdrawName = "stress_eth_withdraw"
	TestStressBTCWithdrawName   = "stress_btc_withdraw"
	TestStressEtherDepositName  = "stress_eth_deposit"
	TestStressBTCDepositName    = "stress_btc_deposit"

	/*
	 Admin tests
	 Test admin functionalities
	*/
	TestWhitelistERC20Name            = "whitelist_erc20"
	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"
	TestPauseERC20CustodyName         = "pause_erc20_custody"
	TestMigrateERC20CustodyFundsName  = "migrate_erc20_custody_funds"
	TestMigrateTSSName                = "migrate_TSS"
	TestSolanaWhitelistSPLName        = "solana_whitelist_spl"

	/*
	 V2 smart contract tests
	*/
	TestV2ETHDepositName                         = "v2_eth_deposit"
	TestV2ETHDepositAndCallName                  = "v2_eth_deposit_and_call"
	TestV2ETHDepositAndCallNoMessageName         = "v2_eth_deposit_and_call_no_message"
	TestV2ETHDepositAndCallRevertName            = "v2_eth_deposit_and_call_revert"
	TestV2ETHDepositAndCallRevertWithCallName    = "v2_eth_deposit_and_call_revert_with_call"
	TestV2ETHWithdrawName                        = "v2_eth_withdraw"
	TestV2ETHWithdrawAndArbitraryCallName        = "v2_eth_withdraw_and_arbitrary_call"
	TestV2ETHWithdrawAndCallName                 = "v2_eth_withdraw_and_call"
	TestV2ETHWithdrawAndCallNoMessageName        = "v2_eth_withdraw_and_call_no_message"
	TestV2ETHWithdrawAndCallThroughContractName  = "v2_eth_withdraw_and_call_through_contract"
	TestV2ETHWithdrawAndCallRevertName           = "v2_eth_withdraw_and_call_revert"
	TestV2ETHWithdrawAndCallRevertWithCallName   = "v2_eth_withdraw_and_call_revert_with_call"
	TestDepositAndCallOutOfGasName               = "deposit_and_call_out_of_gas"
	TestV2ERC20DepositName                       = "v2_erc20_deposit"
	TestV2ERC20DepositAndCallName                = "v2_erc20_deposit_and_call"
	TestV2ERC20DepositAndCallNoMessageName       = "v2_erc20_deposit_and_call_no_message"
	TestV2ERC20DepositAndCallRevertName          = "v2_erc20_deposit_and_call_revert"
	TestV2ERC20DepositAndCallRevertWithCallName  = "v2_erc20_deposit_and_call_revert_with_call"
	TestV2ERC20WithdrawName                      = "v2_erc20_withdraw"
	TestV2ERC20WithdrawAndArbitraryCallName      = "v2_erc20_withdraw_and_arbitrary_call"
	TestV2ERC20WithdrawAndCallName               = "v2_erc20_withdraw_and_call"
	TestV2ERC20WithdrawAndCallNoMessageName      = "v2_erc20_withdraw_and_call_no_message"
	TestV2ERC20WithdrawAndCallRevertName         = "v2_erc20_withdraw_and_call_revert"
	TestV2ERC20WithdrawAndCallRevertWithCallName = "v2_erc20_withdraw_and_call_revert_with_call"
	TestV2ZEVMToEVMArbitraryCallName             = "v2_zevm_to_evm_arbitrary_call"
	TestV2ZEVMToEVMCallName                      = "v2_zevm_to_evm_call"
	TestV2ZEVMToEVMCallThroughContractName       = "v2_zevm_to_evm_call_through_contract"
	TestV2EVMToZEVMCallName                      = "v2_evm_to_zevm_call"
	TestV2DepositAndCallSwapName                 = "v2_deposit_and_call_swap"

	/*
	 Operational tests
	 Not used to test functionalities but do various interactions with the netwoks
	*/
	TestDeploy                         = "deploy"
	TestOperationAddLiquidityETHName   = "add_liquidity_eth"
	TestOperationAddLiquidityERC20Name = "add_liquidity_erc20"

	/*
	 Stateful precompiled contracts tests
	*/
	TestPrecompilesPrototypeName                 = "precompile_contracts_prototype"
	TestPrecompilesPrototypeThroughContractName  = "precompile_contracts_prototype_through_contract"
	TestPrecompilesStakingName                   = "precompile_contracts_staking"
	TestPrecompilesStakingThroughContractName    = "precompile_contracts_staking_through_contract"
	TestPrecompilesBankName                      = "precompile_contracts_bank"
	TestPrecompilesBankFailName                  = "precompile_contracts_bank_fail"
	TestPrecompilesBankThroughContractName       = "precompile_contracts_bank_through_contract"
	TestPrecompilesDistributeName                = "precompile_contracts_distribute"
	TestPrecompilesDistributeNonZRC20Name        = "precompile_contracts_distribute_non_zrc20"
	TestPrecompilesDistributeThroughContractName = "precompile_contracts_distribute_through_contract"
)

List of all e2e test names to be used in zetae2e

View Source
const EVM2RPCURL = "http://eth2:8545"

EVM2RPCURL is the RPC URL for the additional EVM localnet Only this test currently uses a additional EVM localnet, and this test is only run locally Therefore, we hardcode RPC urls and addresses for simplicity

Variables

View Source
var AllE2ETests = []runner.E2ETest{}/* 123 elements not displayed */

AllE2ETests is an ordered list of all e2e tests

View Source
var EVMSepoliaChainID = chains.Sepolia.ChainId

EVMSepoliaChainID is the chain ID for the additional EVM localnet We set Sepolia testnet although the value is not important, only used to differentiate

Functions

func CleanValidatorDelegations

func CleanValidatorDelegations(r *runner.E2ERunner, stakingContract *staking.IStaking, validators []staking.Validator)

CleanValidatorDelegations unstakes all delegations from the given validators if delegations ar present

func TestAddToInboundTracker

func TestAddToInboundTracker(r *runner.E2ERunner)

func TestBitcoinDeposit

func TestBitcoinDeposit(r *runner.E2ERunner, args []string)

func TestBitcoinDepositAndCall

func TestBitcoinDepositAndCall(r *runner.E2ERunner, args []string)

func TestBitcoinDepositAndCallRevert

func TestBitcoinDepositAndCallRevert(r *runner.E2ERunner, args []string)

func TestBitcoinDepositAndCallRevertWithDust

func TestBitcoinDepositAndCallRevertWithDust(r *runner.E2ERunner, args []string)

TestBitcoinDepositAndCallRevertWithDust sends a Bitcoin deposit that reverts with a dust amount in the revert outbound.

func TestBitcoinDonation

func TestBitcoinDonation(r *runner.E2ERunner, args []string)

func TestBitcoinStdMemoDeposit

func TestBitcoinStdMemoDeposit(r *runner.E2ERunner, args []string)

func TestBitcoinStdMemoDepositAndCall

func TestBitcoinStdMemoDepositAndCall(r *runner.E2ERunner, args []string)

func TestBitcoinStdMemoDepositAndCallRevert

func TestBitcoinStdMemoDepositAndCallRevert(r *runner.E2ERunner, args []string)

func TestBitcoinStdMemoDepositAndCallRevertOtherAddress

func TestBitcoinStdMemoDepositAndCallRevertOtherAddress(r *runner.E2ERunner, args []string)

func TestBitcoinStdMemoInscribedDepositAndCall

func TestBitcoinStdMemoInscribedDepositAndCall(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawLegacy

func TestBitcoinWithdrawLegacy(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawP2SH

func TestBitcoinWithdrawP2SH(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawP2WSH

func TestBitcoinWithdrawP2WSH(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawRestricted

func TestBitcoinWithdrawRestricted(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawSegWit

func TestBitcoinWithdrawSegWit(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawTaproot

func TestBitcoinWithdrawTaproot(r *runner.E2ERunner, args []string)

func TestBitcoinWithdrawToInvalidAddress

func TestBitcoinWithdrawToInvalidAddress(r *runner.E2ERunner, args []string)

func TestContextUpgrade

func TestContextUpgrade(r *runner.E2ERunner, args []string)

TestContextUpgrade tests sending ETH on ZetaChain and check context data

func TestCriticalAdminTransactions

func TestCriticalAdminTransactions(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 TestCrosschainSwap

func TestCrosschainSwap(r *runner.E2ERunner, _ []string)

func TestDeployContract

func TestDeployContract(r *runner.E2ERunner, args []string)

TestDeployContract deploys the specified contract

func TestDepositAndCallOutOfGas

func TestDepositAndCallOutOfGas(r *runner.E2ERunner, args []string)

TestDepositAndCallOutOfGas tests that a deposit and call that consumer all gas will revert

func TestDepositEtherLiquidityCap

func TestDepositEtherLiquidityCap(r *runner.E2ERunner, args []string)

TestDepositEtherLiquidityCap tests depositing Ethers in a context where a liquidity cap is set

func TestDonationEther

func TestDonationEther(r *runner.E2ERunner, args []string)

TestDonationEther tests donation of ether to the tss address

func TestERC20Deposit

func TestERC20Deposit(r *runner.E2ERunner, args []string)

func TestERC20DepositAndCallRefund

func TestERC20DepositAndCallRefund(r *runner.E2ERunner, _ []string)

func TestERC20DepositRestricted

func TestERC20DepositRestricted(r *runner.E2ERunner, args []string)

func TestERC20Withdraw

func TestERC20Withdraw(r *runner.E2ERunner, args []string)

func TestEtherDeposit

func TestEtherDeposit(r *runner.E2ERunner, args []string)

TestEtherDeposit tests deposit of ethers

func TestEtherDepositAndCall

func TestEtherDepositAndCall(r *runner.E2ERunner, args []string)

TestEtherDepositAndCall tests deposit of ethers calling a example contract

func TestEtherDepositAndCallRefund

func TestEtherDepositAndCallRefund(r *runner.E2ERunner, args []string)

func TestEtherWithdraw

func TestEtherWithdraw(r *runner.E2ERunner, args []string)

TestEtherWithdraw tests the withdrawal of ether

func TestEtherWithdrawRestricted

func TestEtherWithdrawRestricted(r *runner.E2ERunner, args []string)

TestEtherWithdrawRestricted tests the withdrawal to a restricted receiver address

func TestInboundTrackers

func TestInboundTrackers(r *runner.E2ERunner, args []string)

TestInboundTrackers tests inbound trackers processing in ZetaClient It run deposits, send inbound trackers and check cctxs are mined IMPORTANT: the test requires inbound observation to be disabled, the following line should be uncommented: https://github.com/zeta-chain/node/blob/9dcb42729653e033f5ba60a77dc37e5e19b092ad/zetaclient/chains/evm/observer/inbound.go#L210

func TestMessagePassingEVMtoZEVM

func TestMessagePassingEVMtoZEVM(r *runner.E2ERunner, args []string)

func TestMessagePassingEVMtoZEVMRevert

func TestMessagePassingEVMtoZEVMRevert(r *runner.E2ERunner, args []string)

func TestMessagePassingEVMtoZEVMRevertFail

func TestMessagePassingEVMtoZEVMRevertFail(r *runner.E2ERunner, args []string)

func TestMessagePassingExternalChains

func TestMessagePassingExternalChains(r *runner.E2ERunner, args []string)

TestMessagePassingExternalChains tests message passing between external EVM chains TODO: Use two external EVM chains for these tests https://github.com/zeta-chain/node/issues/2185

func TestMessagePassingRevertFailExternalChains

func TestMessagePassingRevertFailExternalChains(r *runner.E2ERunner, args []string)

TestMessagePassingRevertFailExternalChains tests message passing with failing revert between external EVM chains TODO: Use two external EVM chains for these tests https://github.com/zeta-chain/node/issues/2185

func TestMessagePassingRevertSuccessExternalChains

func TestMessagePassingRevertSuccessExternalChains(r *runner.E2ERunner, args []string)

TestMessagePassingRevertSuccessExternalChains tests message passing with successful revert between external EVM chains TODO: Use two external EVM chains for these tests https://github.com/zeta-chain/node/issues/2185

func TestMessagePassingZEVMtoEVM

func TestMessagePassingZEVMtoEVM(r *runner.E2ERunner, args []string)

func TestMessagePassingZEVMtoEVMRevert

func TestMessagePassingZEVMtoEVMRevert(r *runner.E2ERunner, args []string)

func TestMessagePassingZEVMtoEVMRevertFail

func TestMessagePassingZEVMtoEVMRevertFail(r *runner.E2ERunner, args []string)

func TestMigrateChainSupport

func TestMigrateChainSupport(r *runner.E2ERunner, _ []string)

func TestMigrateERC20CustodyFunds

func TestMigrateERC20CustodyFunds(r *runner.E2ERunner, _ []string)

TestMigrateERC20CustodyFunds tests the migration of ERC20 custody funds

func TestMigrateTSS

func TestMigrateTSS(r *runner.E2ERunner, _ []string)

func TestMultipleERC20Deposit

func TestMultipleERC20Deposit(r *runner.E2ERunner, args []string)

func TestMultipleERC20Withdraws

func TestMultipleERC20Withdraws(r *runner.E2ERunner, args []string)

func TestMyTest

func TestMyTest(_ *runner.E2ERunner, _ []string)

func TestOperationAddLiquidityERC20

func TestOperationAddLiquidityERC20(r *runner.E2ERunner, args []string)

TestOperationAddLiquidityERC20 is an operational test to add liquidity in erc20 token

func TestOperationAddLiquidityETH

func TestOperationAddLiquidityETH(r *runner.E2ERunner, args []string)

TestOperationAddLiquidityETH is an operational test to add liquidity in gas token

func TestPauseERC20Custody

func TestPauseERC20Custody(r *runner.E2ERunner, _ []string)

TestPauseERC20Custody tests the pausing and unpausing of ERC20 custody contracts on the EVM chain

func TestPauseZRC20

func TestPauseZRC20(r *runner.E2ERunner, _ []string)

func TestPrecompilesBank

func TestPrecompilesBank(r *runner.E2ERunner, args []string)

func TestPrecompilesBankNonZRC20

func TestPrecompilesBankNonZRC20(r *runner.E2ERunner, args []string)

func TestPrecompilesBankThroughContract

func TestPrecompilesBankThroughContract(r *runner.E2ERunner, args []string)

func TestPrecompilesDistributeAndClaim

func TestPrecompilesDistributeAndClaim(r *runner.E2ERunner, args []string)

func TestPrecompilesDistributeAndClaimThroughContract

func TestPrecompilesDistributeAndClaimThroughContract(r *runner.E2ERunner, args []string)

func TestPrecompilesDistributeNonZRC20

func TestPrecompilesDistributeNonZRC20(r *runner.E2ERunner, args []string)

func TestPrecompilesPrototype

func TestPrecompilesPrototype(r *runner.E2ERunner, args []string)

func TestPrecompilesPrototypeThroughContract

func TestPrecompilesPrototypeThroughContract(r *runner.E2ERunner, args []string)

func TestPrecompilesStaking

func TestPrecompilesStaking(r *runner.E2ERunner, args []string)

func TestPrecompilesStakingIsDisabled

func TestPrecompilesStakingIsDisabled(r *runner.E2ERunner, args []string)

func TestPrecompilesStakingThroughContract

func TestPrecompilesStakingThroughContract(r *runner.E2ERunner, args []string)

func TestRateLimiter

func TestRateLimiter(r *runner.E2ERunner, _ []string)

func TestSPLDeposit

func TestSPLDeposit(r *runner.E2ERunner, args []string)

func TestSPLDepositAndCall

func TestSPLDepositAndCall(r *runner.E2ERunner, args []string)

func TestSPLWithdraw

func TestSPLWithdraw(r *runner.E2ERunner, args []string)

func TestSPLWithdrawAndCreateReceiverAta

func TestSPLWithdrawAndCreateReceiverAta(r *runner.E2ERunner, args []string)

TestSPLWithdrawAndCreateReceiverAta withdraws SPL, but letting gateway program to create receiver ATA using PDA funds, instead of providing already created ATA

func TestSolanaDeposit

func TestSolanaDeposit(r *runner.E2ERunner, args []string)

func TestSolanaDepositAndCall

func TestSolanaDepositAndCall(r *runner.E2ERunner, args []string)

TestSolanaDepositAndCall tests deposit of lamports calling a example contract

func TestSolanaDepositAndCallRevert

func TestSolanaDepositAndCallRevert(r *runner.E2ERunner, args []string)

TestSolanaDepositAndCallRevert tests deposit of lamports calling a example contract that reverts.

func TestSolanaDepositAndCallRevertWithDust

func TestSolanaDepositAndCallRevertWithDust(r *runner.E2ERunner, args []string)

TestSolanaDepositAndCallRevertWithDust tests Solana deposit and call that reverts with a dust amount in the revert outbound.

func TestSolanaDepositRestricted

func TestSolanaDepositRestricted(r *runner.E2ERunner, args []string)

func TestSolanaWhitelistSPL

func TestSolanaWhitelistSPL(r *runner.E2ERunner, _ []string)

func TestSolanaWithdraw

func TestSolanaWithdraw(r *runner.E2ERunner, args []string)

func TestSolanaWithdrawRestricted

func TestSolanaWithdrawRestricted(r *runner.E2ERunner, args []string)

func TestStressBTCDeposit

func TestStressBTCDeposit(r *runner.E2ERunner, args []string)

TestStressBTCDeposit tests the stressing deposit of BTC

func TestStressBTCWithdraw

func TestStressBTCWithdraw(r *runner.E2ERunner, args []string)

TestStressBTCWithdraw tests the stressing withdraw of btc

func TestStressEtherDeposit

func TestStressEtherDeposit(r *runner.E2ERunner, args []string)

TestStressEtherDeposit tests the stressing deposit of ether

func TestStressEtherWithdraw

func TestStressEtherWithdraw(r *runner.E2ERunner, args []string)

TestStressEtherWithdraw tests the stressing withdraw of ether

func TestTONDeposit

func TestTONDeposit(r *runner.E2ERunner, args []string)

func TestTONDepositAndCall

func TestTONDepositAndCall(r *runner.E2ERunner, args []string)

func TestTONDepositAndCallRefund

func TestTONDepositAndCallRefund(r *runner.E2ERunner, args []string)

func TestTONWithdraw

func TestTONWithdraw(r *runner.E2ERunner, args []string)

func TestTONWithdrawConcurrent

func TestTONWithdrawConcurrent(r *runner.E2ERunner, _ []string)

TestTONWithdrawConcurrent makes sure that multiple concurrent withdrawals will be eventually processed by sequentially increasing Gateway nonce and that zetaclient tolerates "invalid nonce" error from RPC.

func TestUpdateBytecodeConnector

func TestUpdateBytecodeConnector(r *runner.E2ERunner, _ []string)

TestUpdateBytecodeConnector tests updating the bytecode of a connector and interact with it

func TestUpdateBytecodeZRC20

func TestUpdateBytecodeZRC20(r *runner.E2ERunner, _ []string)

TestUpdateBytecodeZRC20 tests updating the bytecode of a zrc20 and interact with it

func TestUpdateGasPriceIncreaseFlags

func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner)

func TestV2DepositAndCallSwap

func TestV2DepositAndCallSwap(r *runner.E2ERunner, _ []string)

TODO: This test is similar to TestCrosschainSwap purpose is to test similar scenario with v2 contracts where there is swap + withdraw in onCall to showcase that it's not reverting with gas limit issues this test should be removed when this issue is completed: https://github.com/zeta-chain/node/issues/2711

func TestV2ERC20Deposit

func TestV2ERC20Deposit(r *runner.E2ERunner, args []string)

func TestV2ERC20DepositAndCall

func TestV2ERC20DepositAndCall(r *runner.E2ERunner, args []string)

func TestV2ERC20DepositAndCallNoMessage

func TestV2ERC20DepositAndCallNoMessage(r *runner.E2ERunner, args []string)

func TestV2ERC20DepositAndCallRevert

func TestV2ERC20DepositAndCallRevert(r *runner.E2ERunner, args []string)

func TestV2ERC20DepositAndCallRevertWithCall

func TestV2ERC20DepositAndCallRevertWithCall(r *runner.E2ERunner, args []string)

func TestV2ERC20Withdraw

func TestV2ERC20Withdraw(r *runner.E2ERunner, args []string)

func TestV2ERC20WithdrawAndArbitraryCall

func TestV2ERC20WithdrawAndArbitraryCall(r *runner.E2ERunner, args []string)

func TestV2ERC20WithdrawAndCall

func TestV2ERC20WithdrawAndCall(r *runner.E2ERunner, args []string)

func TestV2ERC20WithdrawAndCallNoMessage

func TestV2ERC20WithdrawAndCallNoMessage(r *runner.E2ERunner, args []string)

func TestV2ERC20WithdrawAndCallRevert

func TestV2ERC20WithdrawAndCallRevert(r *runner.E2ERunner, args []string)

func TestV2ERC20WithdrawAndCallRevertWithCall

func TestV2ERC20WithdrawAndCallRevertWithCall(r *runner.E2ERunner, args []string)

func TestV2ETHDeposit

func TestV2ETHDeposit(r *runner.E2ERunner, args []string)

func TestV2ETHDepositAndCall

func TestV2ETHDepositAndCall(r *runner.E2ERunner, args []string)

func TestV2ETHDepositAndCallNoMessage

func TestV2ETHDepositAndCallNoMessage(r *runner.E2ERunner, args []string)

func TestV2ETHDepositAndCallRevert

func TestV2ETHDepositAndCallRevert(r *runner.E2ERunner, args []string)

func TestV2ETHDepositAndCallRevertWithCall

func TestV2ETHDepositAndCallRevertWithCall(r *runner.E2ERunner, args []string)

func TestV2ETHWithdraw

func TestV2ETHWithdraw(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndArbitraryCall

func TestV2ETHWithdrawAndArbitraryCall(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndCall

func TestV2ETHWithdrawAndCall(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndCallNoMessage

func TestV2ETHWithdrawAndCallNoMessage(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndCallRevert

func TestV2ETHWithdrawAndCallRevert(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndCallRevertWithCall

func TestV2ETHWithdrawAndCallRevertWithCall(r *runner.E2ERunner, args []string)

func TestV2ETHWithdrawAndCallThroughContract

func TestV2ETHWithdrawAndCallThroughContract(r *runner.E2ERunner, args []string)

func TestV2EVMToZEVMCall

func TestV2EVMToZEVMCall(r *runner.E2ERunner, args []string)

func TestV2ZEVMToEVMArbitraryCall

func TestV2ZEVMToEVMArbitraryCall(r *runner.E2ERunner, args []string)

func TestV2ZEVMToEVMCall

func TestV2ZEVMToEVMCall(r *runner.E2ERunner, args []string)

func TestV2ZEVMToEVMCallThroughContract

func TestV2ZEVMToEVMCallThroughContract(r *runner.E2ERunner, args []string)

func TestWhitelistERC20

func TestWhitelistERC20(r *runner.E2ERunner, _ []string)

TestWhitelistERC20 tests the whitelist ERC20 functionality

func TestZRC20Swap

func TestZRC20Swap(r *runner.E2ERunner, _ []string)

func TestZetaDeposit

func TestZetaDeposit(r *runner.E2ERunner, args []string)

func TestZetaDepositNewAddress

func TestZetaDepositNewAddress(r *runner.E2ERunner, args []string)

func TestZetaDepositRestricted

func TestZetaDepositRestricted(r *runner.E2ERunner, args []string)

func TestZetaWithdraw

func TestZetaWithdraw(r *runner.E2ERunner, args []string)

func TestZetaWithdrawBTCRevert

func TestZetaWithdrawBTCRevert(r *runner.E2ERunner, args []string)

func WithdrawBitcoinMultipleTimes

func WithdrawBitcoinMultipleTimes(r *runner.E2ERunner, args []string)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL