Documentation ¶
Index ¶
- Constants
- Variables
- func CleanValidatorDelegations(r *runner.E2ERunner, stakingContract *staking.IStaking, ...)
- func TestAddToInboundTracker(r *runner.E2ERunner)
- func TestBitcoinDeposit(r *runner.E2ERunner, args []string)
- func TestBitcoinDepositAndCall(r *runner.E2ERunner, args []string)
- func TestBitcoinDepositAndCallRevert(r *runner.E2ERunner, args []string)
- func TestBitcoinDepositAndCallRevertWithDust(r *runner.E2ERunner, args []string)
- func TestBitcoinDonation(r *runner.E2ERunner, args []string)
- func TestBitcoinStdMemoDeposit(r *runner.E2ERunner, args []string)
- func TestBitcoinStdMemoDepositAndCall(r *runner.E2ERunner, args []string)
- func TestBitcoinStdMemoDepositAndCallRevert(r *runner.E2ERunner, args []string)
- func TestBitcoinStdMemoDepositAndCallRevertOtherAddress(r *runner.E2ERunner, args []string)
- func TestBitcoinStdMemoInscribedDepositAndCall(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawLegacy(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawP2SH(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawP2WSH(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawRestricted(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawSegWit(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawTaproot(r *runner.E2ERunner, args []string)
- func TestBitcoinWithdrawToInvalidAddress(r *runner.E2ERunner, args []string)
- func TestContextUpgrade(r *runner.E2ERunner, args []string)
- func TestCriticalAdminTransactions(r *runner.E2ERunner, _ []string)
- func TestCrosschainSwap(r *runner.E2ERunner, _ []string)
- func TestDeployContract(r *runner.E2ERunner, args []string)
- func TestDepositAndCallOutOfGas(r *runner.E2ERunner, args []string)
- func TestDepositEtherLiquidityCap(r *runner.E2ERunner, args []string)
- func TestDonationEther(r *runner.E2ERunner, args []string)
- func TestERC20Deposit(r *runner.E2ERunner, args []string)
- func TestERC20DepositAndCallRefund(r *runner.E2ERunner, _ []string)
- func TestERC20DepositRestricted(r *runner.E2ERunner, args []string)
- func TestERC20Withdraw(r *runner.E2ERunner, args []string)
- func TestEtherDeposit(r *runner.E2ERunner, args []string)
- func TestEtherDepositAndCall(r *runner.E2ERunner, args []string)
- func TestEtherDepositAndCallRefund(r *runner.E2ERunner, args []string)
- func TestEtherWithdraw(r *runner.E2ERunner, args []string)
- func TestEtherWithdrawRestricted(r *runner.E2ERunner, args []string)
- func TestInboundTrackers(r *runner.E2ERunner, args []string)
- func TestMessagePassingEVMtoZEVM(r *runner.E2ERunner, args []string)
- func TestMessagePassingEVMtoZEVMRevert(r *runner.E2ERunner, args []string)
- func TestMessagePassingEVMtoZEVMRevertFail(r *runner.E2ERunner, args []string)
- func TestMessagePassingExternalChains(r *runner.E2ERunner, args []string)
- func TestMessagePassingRevertFailExternalChains(r *runner.E2ERunner, args []string)
- func TestMessagePassingRevertSuccessExternalChains(r *runner.E2ERunner, args []string)
- func TestMessagePassingZEVMtoEVM(r *runner.E2ERunner, args []string)
- func TestMessagePassingZEVMtoEVMRevert(r *runner.E2ERunner, args []string)
- func TestMessagePassingZEVMtoEVMRevertFail(r *runner.E2ERunner, args []string)
- func TestMigrateChainSupport(r *runner.E2ERunner, _ []string)
- func TestMigrateERC20CustodyFunds(r *runner.E2ERunner, _ []string)
- func TestMigrateTSS(r *runner.E2ERunner, _ []string)
- func TestMultipleERC20Deposit(r *runner.E2ERunner, args []string)
- func TestMultipleERC20Withdraws(r *runner.E2ERunner, args []string)
- func TestMyTest(_ *runner.E2ERunner, _ []string)
- func TestOperationAddLiquidityERC20(r *runner.E2ERunner, args []string)
- func TestOperationAddLiquidityETH(r *runner.E2ERunner, args []string)
- func TestPauseERC20Custody(r *runner.E2ERunner, _ []string)
- func TestPauseZRC20(r *runner.E2ERunner, _ []string)
- func TestPrecompilesBank(r *runner.E2ERunner, args []string)
- func TestPrecompilesBankNonZRC20(r *runner.E2ERunner, args []string)
- func TestPrecompilesBankThroughContract(r *runner.E2ERunner, args []string)
- func TestPrecompilesDistributeAndClaim(r *runner.E2ERunner, args []string)
- func TestPrecompilesDistributeAndClaimThroughContract(r *runner.E2ERunner, args []string)
- func TestPrecompilesDistributeNonZRC20(r *runner.E2ERunner, args []string)
- func TestPrecompilesPrototype(r *runner.E2ERunner, args []string)
- func TestPrecompilesPrototypeThroughContract(r *runner.E2ERunner, args []string)
- func TestPrecompilesStaking(r *runner.E2ERunner, args []string)
- func TestPrecompilesStakingIsDisabled(r *runner.E2ERunner, args []string)
- func TestPrecompilesStakingThroughContract(r *runner.E2ERunner, args []string)
- func TestRateLimiter(r *runner.E2ERunner, _ []string)
- func TestSPLDeposit(r *runner.E2ERunner, args []string)
- func TestSPLDepositAndCall(r *runner.E2ERunner, args []string)
- func TestSPLWithdraw(r *runner.E2ERunner, args []string)
- func TestSPLWithdrawAndCreateReceiverAta(r *runner.E2ERunner, args []string)
- func TestSolanaDeposit(r *runner.E2ERunner, args []string)
- func TestSolanaDepositAndCall(r *runner.E2ERunner, args []string)
- func TestSolanaDepositAndCallRevert(r *runner.E2ERunner, args []string)
- func TestSolanaDepositAndCallRevertWithDust(r *runner.E2ERunner, args []string)
- func TestSolanaDepositRestricted(r *runner.E2ERunner, args []string)
- func TestSolanaWhitelistSPL(r *runner.E2ERunner, _ []string)
- func TestSolanaWithdraw(r *runner.E2ERunner, args []string)
- func TestSolanaWithdrawRestricted(r *runner.E2ERunner, args []string)
- func TestStressBTCDeposit(r *runner.E2ERunner, args []string)
- func TestStressBTCWithdraw(r *runner.E2ERunner, args []string)
- func TestStressEtherDeposit(r *runner.E2ERunner, args []string)
- func TestStressEtherWithdraw(r *runner.E2ERunner, args []string)
- func TestTONDeposit(r *runner.E2ERunner, args []string)
- func TestTONDepositAndCall(r *runner.E2ERunner, args []string)
- func TestTONDepositAndCallRefund(r *runner.E2ERunner, args []string)
- func TestTONWithdraw(r *runner.E2ERunner, args []string)
- func TestTONWithdrawConcurrent(r *runner.E2ERunner, _ []string)
- func TestUpdateBytecodeConnector(r *runner.E2ERunner, _ []string)
- func TestUpdateBytecodeZRC20(r *runner.E2ERunner, _ []string)
- func TestUpdateGasPriceIncreaseFlags(r *runner.E2ERunner)
- func TestV2DepositAndCallSwap(r *runner.E2ERunner, _ []string)
- func TestV2ERC20Deposit(r *runner.E2ERunner, args []string)
- func TestV2ERC20DepositAndCall(r *runner.E2ERunner, args []string)
- func TestV2ERC20DepositAndCallNoMessage(r *runner.E2ERunner, args []string)
- func TestV2ERC20DepositAndCallRevert(r *runner.E2ERunner, args []string)
- func TestV2ERC20DepositAndCallRevertWithCall(r *runner.E2ERunner, args []string)
- func TestV2ERC20Withdraw(r *runner.E2ERunner, args []string)
- func TestV2ERC20WithdrawAndArbitraryCall(r *runner.E2ERunner, args []string)
- func TestV2ERC20WithdrawAndCall(r *runner.E2ERunner, args []string)
- func TestV2ERC20WithdrawAndCallNoMessage(r *runner.E2ERunner, args []string)
- func TestV2ERC20WithdrawAndCallRevert(r *runner.E2ERunner, args []string)
- func TestV2ERC20WithdrawAndCallRevertWithCall(r *runner.E2ERunner, args []string)
- func TestV2ETHDeposit(r *runner.E2ERunner, args []string)
- func TestV2ETHDepositAndCall(r *runner.E2ERunner, args []string)
- func TestV2ETHDepositAndCallNoMessage(r *runner.E2ERunner, args []string)
- func TestV2ETHDepositAndCallRevert(r *runner.E2ERunner, args []string)
- func TestV2ETHDepositAndCallRevertWithCall(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdraw(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndArbitraryCall(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndCall(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndCallNoMessage(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndCallRevert(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndCallRevertWithCall(r *runner.E2ERunner, args []string)
- func TestV2ETHWithdrawAndCallThroughContract(r *runner.E2ERunner, args []string)
- func TestV2EVMToZEVMCall(r *runner.E2ERunner, args []string)
- func TestV2ZEVMToEVMArbitraryCall(r *runner.E2ERunner, args []string)
- func TestV2ZEVMToEVMCall(r *runner.E2ERunner, args []string)
- func TestV2ZEVMToEVMCallThroughContract(r *runner.E2ERunner, args []string)
- func TestWhitelistERC20(r *runner.E2ERunner, _ []string)
- func TestZRC20Swap(r *runner.E2ERunner, _ []string)
- func TestZetaDeposit(r *runner.E2ERunner, args []string)
- func TestZetaDepositNewAddress(r *runner.E2ERunner, args []string)
- func TestZetaDepositRestricted(r *runner.E2ERunner, args []string)
- func TestZetaWithdraw(r *runner.E2ERunner, args []string)
- func TestZetaWithdrawBTCRevert(r *runner.E2ERunner, args []string)
- func WithdrawBitcoinMultipleTimes(r *runner.E2ERunner, args []string)
Constants ¶
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
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 ¶
var AllE2ETests = []runner.E2ETest{}/* 123 elements not displayed */
AllE2ETests is an ordered list of all e2e tests
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 TestBitcoinDeposit ¶
func TestBitcoinDepositAndCallRevertWithDust ¶
TestBitcoinDepositAndCallRevertWithDust sends a Bitcoin deposit that reverts with a dust amount in the revert outbound.
func TestBitcoinDonation ¶
func TestBitcoinWithdrawP2SH ¶
func TestContextUpgrade ¶
TestContextUpgrade tests sending ETH on ZetaChain and check context data
func TestCriticalAdminTransactions ¶
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 TestDeployContract ¶
TestDeployContract deploys the specified contract
func TestDepositAndCallOutOfGas ¶
TestDepositAndCallOutOfGas tests that a deposit and call that consumer all gas will revert
func TestDepositEtherLiquidityCap ¶
TestDepositEtherLiquidityCap tests depositing Ethers in a context where a liquidity cap is set
func TestDonationEther ¶
TestDonationEther tests donation of ether to the tss address
func TestERC20Deposit ¶
func TestERC20Withdraw ¶
func TestEtherDeposit ¶
TestEtherDeposit tests deposit of ethers
func TestEtherDepositAndCall ¶
TestEtherDepositAndCall tests deposit of ethers calling a example contract
func TestEtherWithdraw ¶
TestEtherWithdraw tests the withdrawal of ether
func TestEtherWithdrawRestricted ¶
TestEtherWithdrawRestricted tests the withdrawal to a restricted receiver address
func TestInboundTrackers ¶
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 TestMessagePassingExternalChains ¶
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 ¶
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 ¶
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 TestMigrateChainSupport ¶
func TestMigrateERC20CustodyFunds ¶
TestMigrateERC20CustodyFunds tests the migration of ERC20 custody funds
func TestMigrateTSS ¶
func TestMyTest ¶
func TestOperationAddLiquidityERC20 ¶
TestOperationAddLiquidityERC20 is an operational test to add liquidity in erc20 token
func TestOperationAddLiquidityETH ¶
TestOperationAddLiquidityETH is an operational test to add liquidity in gas token
func TestPauseERC20Custody ¶
TestPauseERC20Custody tests the pausing and unpausing of ERC20 custody contracts on the EVM chain
func TestPauseZRC20 ¶
func TestPrecompilesBank ¶
func TestPrecompilesStaking ¶
func TestRateLimiter ¶
func TestSPLDeposit ¶
func TestSPLDepositAndCall ¶
func TestSPLWithdraw ¶
func TestSPLWithdrawAndCreateReceiverAta ¶
TestSPLWithdrawAndCreateReceiverAta withdraws SPL, but letting gateway program to create receiver ATA using PDA funds, instead of providing already created ATA
func TestSolanaDeposit ¶
func TestSolanaDepositAndCall ¶
TestSolanaDepositAndCall tests deposit of lamports calling a example contract
func TestSolanaDepositAndCallRevert ¶
TestSolanaDepositAndCallRevert tests deposit of lamports calling a example contract that reverts.
func TestSolanaDepositAndCallRevertWithDust ¶
TestSolanaDepositAndCallRevertWithDust tests Solana deposit and call that reverts with a dust amount in the revert outbound.
func TestSolanaWhitelistSPL ¶
func TestSolanaWithdraw ¶
func TestStressBTCDeposit ¶
TestStressBTCDeposit tests the stressing deposit of BTC
func TestStressBTCWithdraw ¶
TestStressBTCWithdraw tests the stressing withdraw of btc
func TestStressEtherDeposit ¶
TestStressEtherDeposit tests the stressing deposit of ether
func TestStressEtherWithdraw ¶
TestStressEtherWithdraw tests the stressing withdraw of ether
func TestTONDeposit ¶
func TestTONDepositAndCall ¶
func TestTONWithdraw ¶
func TestTONWithdrawConcurrent ¶
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 ¶
TestUpdateBytecodeConnector tests updating the bytecode of a connector and interact with it
func TestUpdateBytecodeZRC20 ¶
TestUpdateBytecodeZRC20 tests updating the bytecode of a zrc20 and interact with it
func TestV2DepositAndCallSwap ¶
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 TestV2ERC20Withdraw ¶
func TestV2ETHDeposit ¶
func TestV2ETHDepositAndCall ¶
func TestV2ETHWithdraw ¶
func TestV2EVMToZEVMCall ¶
func TestV2ZEVMToEVMCall ¶
func TestWhitelistERC20 ¶
TestWhitelistERC20 tests the whitelist ERC20 functionality
func TestZRC20Swap ¶
func TestZetaDeposit ¶
func TestZetaWithdraw ¶
Types ¶
This section is empty.
Source Files ¶
- e2etests.go
- helpers.go
- test_admin_transactions.go
- test_bitcoin_deposit.go
- test_bitcoin_deposit_and_call_revert.go
- test_bitcoin_deposit_and_call_revert_with_dust.go
- test_bitcoin_deposit_call.go
- test_bitcoin_donation.go
- test_bitcoin_std_deposit.go
- test_bitcoin_std_deposit_and_call.go
- test_bitcoin_std_deposit_and_call_revert.go
- test_bitcoin_std_deposit_and_call_revert_other_address.go
- test_bitcoin_std_memo_inscribed_deposit_and_call.go
- test_bitcoin_withdraw_invalid_address.go
- test_bitcoin_withdraw_legacy.go
- test_bitcoin_withdraw_multiple.go
- test_bitcoin_withdraw_p2sh.go
- test_bitcoin_withdraw_p2wsh.go
- test_bitcoin_withdraw_restricted_address.go
- test_bitcoin_withdraw_segwit.go
- test_bitcoin_withdraw_taproot.go
- test_context_upgrade.go
- test_crosschain_swap.go
- test_deploy_contract.go
- test_deposit_and_call_out_of_gas.go
- test_donation.go
- test_erc20_deposit.go
- test_erc20_deposit_refund.go
- test_erc20_deposit_restricted_address.go
- test_erc20_multiple_deposits.go
- test_erc20_multiple_withdraws.go
- test_erc20_withdraw.go
- test_eth_deposit.go
- test_eth_deposit_call.go
- test_eth_deposit_liquidity_cap.go
- test_eth_deposit_refund.go
- test_eth_withdraw.go
- test_eth_withdraw_restricted_address.go
- test_inbound_trackers.go
- test_message_passing_evm_to_zevm.go
- test_message_passing_evm_to_zevm_revert.go
- test_message_passing_evm_to_zevm_revert_fail.go
- test_message_passing_external_chains.go
- test_message_passing_external_chains_revert.go
- test_message_passing_external_chains_revert_fail.go
- test_message_passing_zevm_to_evm.go
- test_message_passing_zevm_to_evm_revert.go
- test_message_passing_zevm_to_evm_revert_fail.go
- test_migrate_chain_support.go
- test_migrate_erc20_custody_funds.go
- test_migrate_tss.go
- test_mytest.go
- test_operation_add_liquidity_erc20.go
- test_operation_add_liquidity_eth.go
- test_pause_erc20_custody.go
- test_pause_zrc20.go
- test_precompiles_bank.go
- test_precompiles_bank_through_contract.go
- test_precompiles_distribute_and_claim.go
- test_precompiles_distribute_and_claim_through_contract.go
- test_precompiles_prototype.go
- test_precompiles_prototype_through_contract.go
- test_precompiles_staking.go
- test_precompiles_staking_through_contract.go
- test_rate_limiter.go
- test_solana_deposit.go
- test_solana_deposit_and_call_revert_with_dust.go
- test_solana_deposit_call.go
- test_solana_deposit_refund.go
- test_solana_deposit_restricted_address.go
- test_solana_whitelist_spl.go
- test_solana_withdraw.go
- test_solana_withdraw_restricted_address.go
- test_spl_deposit.go
- test_spl_deposit_and_call.go
- test_spl_withdraw.go
- test_spl_withdraw_and_create_receiver_ata.go
- test_stress_btc_deposit.go
- test_stress_btc_withdraw.go
- test_stress_eth_deposit.go
- test_stress_eth_withdraw.go
- test_ton_deposit.go
- test_ton_deposit_and_call.go
- test_ton_deposit_refund.go
- test_ton_withdrawal.go
- test_ton_withdrawal_concurrent.go
- test_update_bytecode_connector.go
- test_update_bytecode_zrc20.go
- test_v2_deposit_and_call_swap.go
- test_v2_erc20_deposit.go
- test_v2_erc20_deposit_and_call.go
- test_v2_erc20_deposit_and_call_no_message.go
- test_v2_erc20_deposit_and_call_revert.go
- test_v2_erc20_deposit_and_call_revert_with_call.go
- test_v2_erc20_withdraw.go
- test_v2_erc20_withdraw_and_arbitrary_call.go
- test_v2_erc20_withdraw_and_call.go
- test_v2_erc20_withdraw_and_call_no_message.go
- test_v2_erc20_withdraw_and_call_revert.go
- test_v2_erc20_withdraw_and_call_revert_with_call.go
- test_v2_eth_deposit.go
- test_v2_eth_deposit_and_call.go
- test_v2_eth_deposit_and_call_no_message.go
- test_v2_eth_deposit_and_call_revert.go
- test_v2_eth_deposit_and_call_revert_with_call.go
- test_v2_eth_withdraw.go
- test_v2_eth_withdraw_and_arbitrary_call.go
- test_v2_eth_withdraw_and_call.go
- test_v2_eth_withdraw_and_call_no_message.go
- test_v2_eth_withdraw_and_call_revert.go
- test_v2_eth_withdraw_and_call_revert_with_call.go
- test_v2_eth_withdraw_and_call_through_contract.go
- test_v2_evm_to_zevm_call.go
- test_v2_zevm_to_evm_arbitrary_call.go
- test_v2_zevm_to_evm_call.go
- test_v2_zevm_to_evm_call_through_contract.go
- test_whitelist_erc20.go
- test_zeta_deposit.go
- test_zeta_deposit_new_address.go
- test_zeta_deposit_restricted_address.go
- test_zeta_withdraw.go
- test_zeta_withdraw_bitcoin_revert.go
- test_zrc20_swap.go