Documentation ¶
Index ¶
- func GetERC721() contract.Contract
- type AuthzSuite
- type CrosschainTestSuite
- func (suite *CrosschainTestSuite) AccAddress() sdk.AccAddress
- func (suite *CrosschainTestSuite) AddBridgeToken(md banktypes.Metadata) (string, crosschaintypes.BridgeToken)
- func (suite *CrosschainTestSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token, channelIBCHex string) string
- func (suite *CrosschainTestSuite) AddPendingPoolRewards(id uint64, reward sdk.Coin)
- func (suite *CrosschainTestSuite) BondedOracle()
- func (suite *CrosschainTestSuite) BridgeCall(amounts sdk.Coins) uint64
- func (suite *CrosschainTestSuite) BridgeCallClaim(to string, tokens []string, amounts []sdkmath.Int)
- func (suite *CrosschainTestSuite) BridgeCallConfirm(nonce uint64, isSuccess bool)
- func (suite *CrosschainTestSuite) BridgerAddr() sdk.AccAddress
- func (suite *CrosschainTestSuite) CancelAllSendToExternal()
- func (suite *CrosschainTestSuite) CancelBridgeCall(nonces []uint64)
- func (suite *CrosschainTestSuite) CheckIncreaseBridgeFee(sender sdk.AccAddress, txId uint64)
- func (suite *CrosschainTestSuite) CrosschainQuery() crosschaintypes.QueryClient
- func (suite *CrosschainTestSuite) ExecuteClaim() *ethtypes.Transaction
- func (suite *CrosschainTestSuite) ExecuteClaimAccAddress() sdk.AccAddress
- func (suite *CrosschainTestSuite) ExternalAddr() string
- func (suite *CrosschainTestSuite) FormatAddress(address gethcommon.Address) string
- func (suite *CrosschainTestSuite) GetBridgeDenomByToken(token string) (denom string)
- func (suite *CrosschainTestSuite) GetBridgeTokenByDenom(denom string) (token string)
- func (suite *CrosschainTestSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken)
- func (suite *CrosschainTestSuite) HexAddress() gethcommon.Address
- func (suite *CrosschainTestSuite) HexAddressString() string
- func (suite *CrosschainTestSuite) Init()
- func (suite *CrosschainTestSuite) OracleAddr() sdk.AccAddress
- func (suite *CrosschainTestSuite) PendingExecuteClaim() []crosschaintypes.ExternalClaim
- func (suite *CrosschainTestSuite) QueryBridgeCallByNonce(nonce uint64) *crosschaintypes.OutgoingBridgeCall
- func (suite *CrosschainTestSuite) QueryParams() crosschaintypes.Params
- func (suite *CrosschainTestSuite) QueryPendingBridgeCallByNonce(nonce uint64) *crosschaintypes.PendingOutgoingBridgeCall
- func (suite *CrosschainTestSuite) QueryPendingBridgeCalls(senderAddr string) []*crosschaintypes.PendingOutgoingBridgeCall
- func (suite *CrosschainTestSuite) QueryPendingPoolSendToExternal(sender sdk.AccAddress) []*crosschaintypes.PendingOutgoingTransferTx
- func (suite *CrosschainTestSuite) QueryPendingUnbatchedTx(sender sdk.AccAddress) []*crosschaintypes.OutgoingTransferTx
- func (suite *CrosschainTestSuite) SelectTokenMetadata(basePrefix string) banktypes.Metadata
- func (suite *CrosschainTestSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
- func (suite *CrosschainTestSuite) SendBatchRequest(minTxs uint64)
- func (suite *CrosschainTestSuite) SendBridgeCallAndResponse(amount sdk.Coins) (*sdk.TxResponse, uint64)
- func (suite *CrosschainTestSuite) SendCancelSendToExternal(txId uint64)
- func (suite *CrosschainTestSuite) SendConfirmBatch()
- func (suite *CrosschainTestSuite) SendIncreaseBridgeFee(txId uint64, bridgeFee sdk.Coin)
- func (suite *CrosschainTestSuite) SendOracleSetConfirm()
- func (suite *CrosschainTestSuite) SendToExternal(count int, amount sdk.Coin) uint64
- func (suite *CrosschainTestSuite) SendToExternalAndCancel(coin sdk.Coin)
- func (suite *CrosschainTestSuite) SendToExternalAndCheckBalance(coin sdk.Coin)
- func (suite *CrosschainTestSuite) SendToExternalAndConfirm(coin sdk.Coin)
- func (suite *CrosschainTestSuite) SendToExternalAndResponse(count int, amount sdk.Coin) (*sdk.TxResponse, uint64)
- func (suite *CrosschainTestSuite) SendToFxClaim(token string, amount sdkmath.Int, targetIbc string)
- func (suite *CrosschainTestSuite) SendToFxClaimAndCheckBalance(token string, amount sdkmath.Int, targetIbc string, addCoins ...sdk.Coin)
- func (suite *CrosschainTestSuite) SendToTxClaimWithReceiver(receiver sdk.AccAddress, token string, amount sdkmath.Int, targetIbc string)
- func (suite *CrosschainTestSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64)
- func (suite *CrosschainTestSuite) SignatureCheckpoint(checkpoint []byte) []byte
- func (suite *CrosschainTestSuite) UpdateParams(opts ...func(params *crosschaintypes.Params)) (*sdk.TxResponse, uint64)
- type Erc20TestSuite
- func (suite *Erc20TestSuite) AccAddress() sdk.AccAddress
- func (suite *Erc20TestSuite) CheckRegisterCoin(denom string)
- func (suite *Erc20TestSuite) ConvertCoin(recipient common.Address, coin sdk.Coin) *sdk.TxResponse
- func (suite *Erc20TestSuite) ConvertDenom(receiver sdk.AccAddress, coin sdk.Coin, target string) *sdk.TxResponse
- func (suite *Erc20TestSuite) ConvertERC20(token common.Address, amount sdkmath.Int, recipient sdk.AccAddress) *sdk.TxResponse
- func (suite *Erc20TestSuite) DenomFromErc20(address common.Address) string
- func (suite *Erc20TestSuite) ERC20Query() erc20types.QueryClient
- func (suite *Erc20TestSuite) Erc20TokenAddress(denom string) common.Address
- func (suite *Erc20TestSuite) HexAddress() common.Address
- func (suite *Erc20TestSuite) RegisterCoinProposal(md banktypes.Metadata) (*sdk.TxResponse, uint64)
- func (suite *Erc20TestSuite) RegisterErc20Proposal(erc20Addr string, aliases []string) (*sdk.TxResponse, uint64)
- func (suite *Erc20TestSuite) ToggleTokenConversionProposal(denom string) (*sdk.TxResponse, uint64)
- func (suite *Erc20TestSuite) TokenPair(denom string) *erc20types.TokenPair
- func (suite *Erc20TestSuite) TokenPairs() []erc20types.TokenPair
- func (suite *Erc20TestSuite) UpdateDenomAliasProposal(denom, alias string) (*sdk.TxResponse, uint64)
- type EvmTestSuite
- func (suite *EvmTestSuite) AccAddress() sdk.AccAddress
- func (suite *EvmTestSuite) Allowance(contractAddr, owner, spender common.Address) *big.Int
- func (suite *EvmTestSuite) ApproveERC20(privateKey cryptotypes.PrivKey, token, spender common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *EvmTestSuite) ApproveERC721(privateKey cryptotypes.PrivKey, contractAddr, operator common.Address, ...) *ethtypes.Transaction
- func (suite *EvmTestSuite) Balance(addr common.Address) *big.Int
- func (suite *EvmTestSuite) BalanceOf(contractAddr, address common.Address) *big.Int
- func (suite *EvmTestSuite) BalanceOfERC721(contractAddr, account common.Address) *big.Int
- func (suite *EvmTestSuite) BlockHeight() uint64
- func (suite *EvmTestSuite) BurnERC20(privateKey cryptotypes.PrivKey, token, account common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *EvmTestSuite) CheckAllowance(contractAddr, owner, spender common.Address, value *big.Int) bool
- func (suite *EvmTestSuite) CheckBalanceOf(contractAddr, address common.Address, balance *big.Int)
- func (suite *EvmTestSuite) CheckBalanceOfERC721(contractAddr, account common.Address, value *big.Int) bool
- func (suite *EvmTestSuite) DeployContract(privKey cryptotypes.PrivKey, contractBin []byte) (common.Address, common.Hash)
- func (suite *EvmTestSuite) DeployERC20Contract(privKey cryptotypes.PrivKey) common.Address
- func (suite *EvmTestSuite) DeployProxy(privateKey cryptotypes.PrivKey, logic common.Address, initData []byte) common.Address
- func (suite *EvmTestSuite) EthClient() *ethclient.Client
- func (suite *EvmTestSuite) HandleWithCheckBalance(contractAddr, address common.Address, addValue *big.Int, h func())
- func (suite *EvmTestSuite) HexAddress() common.Address
- func (suite *EvmTestSuite) IsApprovedForAll(contractAddr, owner, operator common.Address) bool
- func (suite *EvmTestSuite) MintERC20(privateKey cryptotypes.PrivKey, token, account common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *EvmTestSuite) Owner(contractAddr common.Address) common.Address
- func (suite *EvmTestSuite) SafeMintERC721(privateKey cryptotypes.PrivKey, contractAddr, account common.Address) *ethtypes.Transaction
- func (suite *EvmTestSuite) SafeTransferFrom(privateKey cryptotypes.PrivKey, contractAddr, from, to common.Address, ...) *ethtypes.Transaction
- func (suite *EvmTestSuite) SendTransaction(tx *ethtypes.Transaction) *ethtypes.Receipt
- func (suite *EvmTestSuite) SetApprovalForAll(privateKey cryptotypes.PrivKey, contractAddr, operator common.Address, ...) *ethtypes.Transaction
- func (suite *EvmTestSuite) SetupSuite()
- func (suite *EvmTestSuite) Symbol(contractAddr common.Address) string
- func (suite *EvmTestSuite) TokenURI(contractAddr common.Address, id *big.Int) string
- func (suite *EvmTestSuite) TotalSupply(contractAddr common.Address) *big.Int
- func (suite *EvmTestSuite) TransactOpts() *bind.TransactOpts
- func (suite *EvmTestSuite) Transfer(privateKey cryptotypes.PrivKey, recipient common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *EvmTestSuite) TransferERC20(privateKey cryptotypes.PrivKey, token, recipient common.Address, ...) *ethtypes.Transaction
- func (suite *EvmTestSuite) TransferFromERC20(privateKey cryptotypes.PrivKey, token, sender, recipient common.Address, ...) *ethtypes.Transaction
- func (suite *EvmTestSuite) TransferOwnership(privateKey cryptotypes.PrivKey, token, newOwner common.Address) *ethtypes.Transaction
- func (suite *EvmTestSuite) TxFee(hash common.Hash) *big.Int
- func (suite *EvmTestSuite) WFXDeposit(privateKey cryptotypes.PrivKey, address common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *EvmTestSuite) WFXWithdraw(privateKey cryptotypes.PrivKey, address, recipient common.Address, ...) *ethtypes.Transaction
- type PrecompileTestSuite
- func (suite *PrecompileTestSuite) AccAddress() sdk.AccAddress
- func (suite *PrecompileTestSuite) CancelSendToExternal(chain string, txId uint64) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) CancelSendToExternalAndCheckPendingTx(chain string, txId uint64) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) CrossChain(token common.Address, recipient string, amount, fee *big.Int, chainName string) uint64
- func (suite *PrecompileTestSuite) CrossChainAndCheckPendingTx(token common.Address, recipient string, amount, fee *big.Int, chainName string) (*ethtypes.Transaction, uint64)
- func (suite *PrecompileTestSuite) CrossChainAndResponse(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) HexAddress() common.Address
- func (suite *PrecompileTestSuite) IncreaseBridgeFee(chain string, txId uint64, token common.Address, fee *big.Int) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) IncreaseBridgeFeeCheckPendingTx(chain string, txId uint64, token common.Address, fee *big.Int) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) TransferCrossChain(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
- func (suite *PrecompileTestSuite) TransferCrossChainAndCheckPendingTx(token common.Address, recipient string, amount, fee *big.Int, chainName string) *ethtypes.Transaction
- type SlashingSuite
- type StakingSuite
- func (suite *StakingSuite) AccAddress() sdk.AccAddress
- func (suite *StakingSuite) Address() common.Address
- func (suite *StakingSuite) AllowanceShares(valAddr string, owner, spender common.Address) *big.Int
- func (suite *StakingSuite) ApproveShares(privateKey cryptotypes.PrivKey, valAddr string, spender common.Address, ...) *ethtypes.Receipt
- func (suite *StakingSuite) Delegate(privateKey cryptotypes.PrivKey, valAddr string, delAmount *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) DelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string, ...) *ethtypes.Receipt
- func (suite *StakingSuite) DelegateV2(privateKey cryptotypes.PrivKey, valAddr string, delAmount *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) Delegation(valAddr string, delAddr common.Address) (*big.Int, *big.Int)
- func (suite *StakingSuite) DelegationRewards(delAddr, valAddr string) sdk.DecCoins
- func (suite *StakingSuite) DeployStakingContract(privKey cryptotypes.PrivKey) (common.Address, common.Hash)
- func (suite *StakingSuite) GrantAddress() sdk.AccAddress
- func (suite *StakingSuite) GrantPrivKey() cryptotypes.PrivKey
- func (suite *StakingSuite) LogReward(logs []*ethtypes.Log, valAddr string, addr common.Address) *big.Int
- func (suite *StakingSuite) Redelegate(privateKey cryptotypes.PrivKey, valSrc, valDst string, shares *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) RedelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valSrc, valDst string, ...) *ethtypes.Receipt
- func (suite *StakingSuite) RedelegateV2(privateKey cryptotypes.PrivKey, valSrc, valDst string, amount *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) Rewards(valAddr string, delAddr common.Address) *big.Int
- func (suite *StakingSuite) SetWithdrawAddress(withdrawAddr sdk.AccAddress)
- func (suite *StakingSuite) SetWithdrawAddressWithResponse(privKey cryptotypes.PrivKey, withdrawAddr sdk.AccAddress) *sdk.TxResponse
- func (suite *StakingSuite) StakingQuery() stakingtypes.QueryClient
- func (suite *StakingSuite) TransactionOpts(privateKey cryptotypes.PrivKey) *bind.TransactOpts
- func (suite *StakingSuite) TransferFromShares(privateKey cryptotypes.PrivKey, valAddr string, from, receipt common.Address, ...) *ethtypes.Receipt
- func (suite *StakingSuite) TransferFromSharesByContract(privateKey cryptotypes.PrivKey, valAddr string, ...) *ethtypes.Receipt
- func (suite *StakingSuite) TransferShares(privateKey cryptotypes.PrivKey, valAddr string, receipt common.Address, ...) *ethtypes.Receipt
- func (suite *StakingSuite) TransferSharesByContract(privateKey cryptotypes.PrivKey, valAddr string, contract, to common.Address, ...) *ethtypes.Receipt
- func (suite *StakingSuite) UnDelegate(privateKey cryptotypes.PrivKey, valAddr string, shares *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) UnDelegateV2(privateKey cryptotypes.PrivKey, valAddr string, amount *big.Int) *ethtypes.Receipt
- func (suite *StakingSuite) UndelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string, ...) *ethtypes.Receipt
- func (suite *StakingSuite) WithdrawByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string) *ethtypes.Receipt
- func (suite *StakingSuite) WithdrawReward(privateKey cryptotypes.PrivKey, valAddr string) *ethtypes.Receipt
- type TestSuite
- func (suite *TestSuite) BlockNumber() int64
- func (suite *TestSuite) BroadcastProposalTx(content govv1beta1.Content, expectedStatus ...govv1.ProposalStatus) (*sdk.TxResponse, uint64)
- func (suite *TestSuite) BroadcastProposalTx2(msgs []sdk.Msg, title, summary string, expectedStatus ...govv1.ProposalStatus) (*sdk.TxResponse, uint64)
- func (suite *TestSuite) BroadcastTx(privKey cryptotypes.PrivKey, msgList ...sdk.Msg) *sdk.TxResponse
- func (suite *TestSuite) ChainTokens(chainName string) []banktypes.Metadata
- func (suite *TestSuite) CheckBalance(accAddress sdk.AccAddress, balance sdk.Coin)
- func (suite *TestSuite) CheckDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...)
- func (suite *TestSuite) CheckDeposit(proposalId uint64, depositor sdk.AccAddress, amount sdk.Coin)
- func (suite *TestSuite) CheckProposal(proposalId uint64, _ govv1.ProposalStatus) govv1.Proposal
- func (suite *TestSuite) CheckProposals(depositor sdk.AccAddress) govv1.Proposals
- func (suite *TestSuite) CheckRedelegate(delegatorAddr sdk.AccAddress, ...)
- func (suite *TestSuite) CheckUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...)
- func (suite *TestSuite) CheckWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)
- func (suite *TestSuite) Context() context.Context
- func (suite *TestSuite) CreateValidator(valPriv cryptotypes.PrivKey, toBondedVal bool) *sdk.TxResponse
- func (suite *TestSuite) Delegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
- func (suite *TestSuite) GRPCClient() *grpc.Client
- func (suite *TestSuite) GetAllValPrivKeys() []cryptotypes.PrivKey
- func (suite *TestSuite) GetAllValidators() []*network.Validator
- func (suite *TestSuite) GetFirstValAddr() sdk.ValAddress
- func (suite *TestSuite) GetFirstValPrivKey() cryptotypes.PrivKey
- func (suite *TestSuite) GetFirstValidator() *network.Validator
- func (suite *TestSuite) GetMetadata(denom string) banktypes.Metadata
- func (suite *TestSuite) GetNetwork() *network.Network
- func (suite *TestSuite) GetStakingDenom() string
- func (suite *TestSuite) GetValidatorPrivKeys(addr sdk.AccAddress) cryptotypes.PrivKey
- func (suite *TestSuite) IsUseLocalNetwork() bool
- func (suite *TestSuite) NewCoin(amount sdkmath.Int) sdk.Coin
- func (suite *TestSuite) NodeClient() *jsonrpc.NodeRPC
- func (suite *TestSuite) ProposalDeposit(priv cryptotypes.PrivKey, proposalID uint64, amount sdk.Coin) *sdk.TxResponse
- func (suite *TestSuite) ProposalVote(priv cryptotypes.PrivKey, proposalID uint64, option govv1beta1.VoteOption) *sdk.TxResponse
- func (suite *TestSuite) QueryBalances(accAddress sdk.AccAddress) sdk.Coins
- func (suite *TestSuite) QueryBlock(blockHeight int64) *tmservice.Block
- func (suite *TestSuite) QueryBlockByTxHash(txHash string) *tmservice.Block
- func (suite *TestSuite) QueryModuleAccountByName(moduleName string) sdk.AccAddress
- func (suite *TestSuite) QueryTx(txHash string) *sdk.TxResponse
- func (suite *TestSuite) QueryValidatorByToken() sdk.ValAddress
- func (suite *TestSuite) Redelegate(priv cryptotypes.PrivKey, valSrc, valDest sdk.ValAddress, all bool) *sdk.TxResponse
- func (suite *TestSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
- func (suite *TestSuite) SetWithdrawAddr(priv cryptotypes.PrivKey, withdrawAddr sdk.AccAddress) *sdk.TxResponse
- func (suite *TestSuite) SetupSuite()
- func (suite *TestSuite) TearDownSuite()
- func (suite *TestSuite) Undelegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
- func (suite *TestSuite) WithdrawReward(priv cryptotypes.PrivKey, valAddress sdk.ValAddress) *sdk.TxResponse
- type TestSuiteMultiNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthzSuite ¶
type AuthzSuite struct {
*TestSuite
}
func NewAuthzSuite ¶
func NewAuthzSuite(ts *TestSuite) AuthzSuite
func (*AuthzSuite) AuthzQuery ¶
func (suite *AuthzSuite) AuthzQuery() authz.QueryClient
type CrosschainTestSuite ¶
type CrosschainTestSuite struct { EvmTestSuite // contains filtered or unexported fields }
func NewCrosschainWithTestSuite ¶
func NewCrosschainWithTestSuite(chainName string, ts *TestSuite) CrosschainTestSuite
func (*CrosschainTestSuite) AccAddress ¶
func (suite *CrosschainTestSuite) AccAddress() sdk.AccAddress
func (*CrosschainTestSuite) AddBridgeToken ¶
func (suite *CrosschainTestSuite) AddBridgeToken(md banktypes.Metadata) (string, crosschaintypes.BridgeToken)
func (*CrosschainTestSuite) AddBridgeTokenClaim ¶
func (suite *CrosschainTestSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token, channelIBCHex string) string
func (*CrosschainTestSuite) AddPendingPoolRewards ¶
func (suite *CrosschainTestSuite) AddPendingPoolRewards(id uint64, reward sdk.Coin)
func (*CrosschainTestSuite) BondedOracle ¶
func (suite *CrosschainTestSuite) BondedOracle()
func (*CrosschainTestSuite) BridgeCall ¶
func (suite *CrosschainTestSuite) BridgeCall(amounts sdk.Coins) uint64
func (*CrosschainTestSuite) BridgeCallClaim ¶
func (suite *CrosschainTestSuite) BridgeCallClaim(to string, tokens []string, amounts []sdkmath.Int)
func (*CrosschainTestSuite) BridgeCallConfirm ¶
func (suite *CrosschainTestSuite) BridgeCallConfirm(nonce uint64, isSuccess bool)
func (*CrosschainTestSuite) BridgerAddr ¶
func (suite *CrosschainTestSuite) BridgerAddr() sdk.AccAddress
func (*CrosschainTestSuite) CancelAllSendToExternal ¶
func (suite *CrosschainTestSuite) CancelAllSendToExternal()
func (*CrosschainTestSuite) CancelBridgeCall ¶
func (suite *CrosschainTestSuite) CancelBridgeCall(nonces []uint64)
func (*CrosschainTestSuite) CheckIncreaseBridgeFee ¶
func (suite *CrosschainTestSuite) CheckIncreaseBridgeFee(sender sdk.AccAddress, txId uint64)
func (*CrosschainTestSuite) CrosschainQuery ¶
func (suite *CrosschainTestSuite) CrosschainQuery() crosschaintypes.QueryClient
func (*CrosschainTestSuite) ExecuteClaim ¶
func (suite *CrosschainTestSuite) ExecuteClaim() *ethtypes.Transaction
func (*CrosschainTestSuite) ExecuteClaimAccAddress ¶
func (suite *CrosschainTestSuite) ExecuteClaimAccAddress() sdk.AccAddress
func (*CrosschainTestSuite) ExternalAddr ¶
func (suite *CrosschainTestSuite) ExternalAddr() string
func (*CrosschainTestSuite) FormatAddress ¶
func (suite *CrosschainTestSuite) FormatAddress(address gethcommon.Address) string
func (*CrosschainTestSuite) GetBridgeDenomByToken ¶
func (suite *CrosschainTestSuite) GetBridgeDenomByToken(token string) (denom string)
func (*CrosschainTestSuite) GetBridgeTokenByDenom ¶
func (suite *CrosschainTestSuite) GetBridgeTokenByDenom(denom string) (token string)
func (*CrosschainTestSuite) GetBridgeTokens ¶
func (suite *CrosschainTestSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken)
func (*CrosschainTestSuite) HexAddress ¶
func (suite *CrosschainTestSuite) HexAddress() gethcommon.Address
func (*CrosschainTestSuite) HexAddressString ¶
func (suite *CrosschainTestSuite) HexAddressString() string
func (*CrosschainTestSuite) Init ¶
func (suite *CrosschainTestSuite) Init()
func (*CrosschainTestSuite) OracleAddr ¶
func (suite *CrosschainTestSuite) OracleAddr() sdk.AccAddress
func (*CrosschainTestSuite) PendingExecuteClaim ¶
func (suite *CrosschainTestSuite) PendingExecuteClaim() []crosschaintypes.ExternalClaim
func (*CrosschainTestSuite) QueryBridgeCallByNonce ¶
func (suite *CrosschainTestSuite) QueryBridgeCallByNonce(nonce uint64) *crosschaintypes.OutgoingBridgeCall
func (*CrosschainTestSuite) QueryParams ¶
func (suite *CrosschainTestSuite) QueryParams() crosschaintypes.Params
func (*CrosschainTestSuite) QueryPendingBridgeCallByNonce ¶
func (suite *CrosschainTestSuite) QueryPendingBridgeCallByNonce(nonce uint64) *crosschaintypes.PendingOutgoingBridgeCall
func (*CrosschainTestSuite) QueryPendingBridgeCalls ¶
func (suite *CrosschainTestSuite) QueryPendingBridgeCalls(senderAddr string) []*crosschaintypes.PendingOutgoingBridgeCall
func (*CrosschainTestSuite) QueryPendingPoolSendToExternal ¶
func (suite *CrosschainTestSuite) QueryPendingPoolSendToExternal(sender sdk.AccAddress) []*crosschaintypes.PendingOutgoingTransferTx
func (*CrosschainTestSuite) QueryPendingUnbatchedTx ¶
func (suite *CrosschainTestSuite) QueryPendingUnbatchedTx(sender sdk.AccAddress) []*crosschaintypes.OutgoingTransferTx
func (*CrosschainTestSuite) SelectTokenMetadata ¶
func (suite *CrosschainTestSuite) SelectTokenMetadata(basePrefix string) banktypes.Metadata
func (*CrosschainTestSuite) Send ¶
func (suite *CrosschainTestSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
func (*CrosschainTestSuite) SendBatchRequest ¶
func (suite *CrosschainTestSuite) SendBatchRequest(minTxs uint64)
func (*CrosschainTestSuite) SendBridgeCallAndResponse ¶
func (suite *CrosschainTestSuite) SendBridgeCallAndResponse(amount sdk.Coins) (*sdk.TxResponse, uint64)
func (*CrosschainTestSuite) SendCancelSendToExternal ¶
func (suite *CrosschainTestSuite) SendCancelSendToExternal(txId uint64)
func (*CrosschainTestSuite) SendConfirmBatch ¶
func (suite *CrosschainTestSuite) SendConfirmBatch()
func (*CrosschainTestSuite) SendIncreaseBridgeFee ¶
func (suite *CrosschainTestSuite) SendIncreaseBridgeFee(txId uint64, bridgeFee sdk.Coin)
func (*CrosschainTestSuite) SendOracleSetConfirm ¶
func (suite *CrosschainTestSuite) SendOracleSetConfirm()
func (*CrosschainTestSuite) SendToExternal ¶
func (suite *CrosschainTestSuite) SendToExternal(count int, amount sdk.Coin) uint64
func (*CrosschainTestSuite) SendToExternalAndCancel ¶
func (suite *CrosschainTestSuite) SendToExternalAndCancel(coin sdk.Coin)
func (*CrosschainTestSuite) SendToExternalAndCheckBalance ¶
func (suite *CrosschainTestSuite) SendToExternalAndCheckBalance(coin sdk.Coin)
func (*CrosschainTestSuite) SendToExternalAndConfirm ¶
func (suite *CrosschainTestSuite) SendToExternalAndConfirm(coin sdk.Coin)
func (*CrosschainTestSuite) SendToExternalAndResponse ¶
func (suite *CrosschainTestSuite) SendToExternalAndResponse(count int, amount sdk.Coin) (*sdk.TxResponse, uint64)
func (*CrosschainTestSuite) SendToFxClaim ¶
func (suite *CrosschainTestSuite) SendToFxClaim(token string, amount sdkmath.Int, targetIbc string)
func (*CrosschainTestSuite) SendToFxClaimAndCheckBalance ¶
func (*CrosschainTestSuite) SendToTxClaimWithReceiver ¶
func (suite *CrosschainTestSuite) SendToTxClaimWithReceiver(receiver sdk.AccAddress, token string, amount sdkmath.Int, targetIbc string)
func (*CrosschainTestSuite) SendUpdateChainOraclesProposal ¶
func (suite *CrosschainTestSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64)
func (*CrosschainTestSuite) SignatureCheckpoint ¶
func (suite *CrosschainTestSuite) SignatureCheckpoint(checkpoint []byte) []byte
func (*CrosschainTestSuite) UpdateParams ¶
func (suite *CrosschainTestSuite) UpdateParams(opts ...func(params *crosschaintypes.Params)) (*sdk.TxResponse, uint64)
type Erc20TestSuite ¶
type Erc20TestSuite struct {
EvmTestSuite
}
func NewErc20TestSuite ¶
func NewErc20TestSuite(ts *TestSuite) Erc20TestSuite
func (*Erc20TestSuite) AccAddress ¶
func (suite *Erc20TestSuite) AccAddress() sdk.AccAddress
func (*Erc20TestSuite) CheckRegisterCoin ¶
func (suite *Erc20TestSuite) CheckRegisterCoin(denom string)
func (*Erc20TestSuite) ConvertCoin ¶
func (suite *Erc20TestSuite) ConvertCoin(recipient common.Address, coin sdk.Coin) *sdk.TxResponse
func (*Erc20TestSuite) ConvertDenom ¶
func (suite *Erc20TestSuite) ConvertDenom(receiver sdk.AccAddress, coin sdk.Coin, target string) *sdk.TxResponse
func (*Erc20TestSuite) ConvertERC20 ¶
func (suite *Erc20TestSuite) ConvertERC20(token common.Address, amount sdkmath.Int, recipient sdk.AccAddress) *sdk.TxResponse
func (*Erc20TestSuite) DenomFromErc20 ¶
func (suite *Erc20TestSuite) DenomFromErc20(address common.Address) string
func (*Erc20TestSuite) ERC20Query ¶
func (suite *Erc20TestSuite) ERC20Query() erc20types.QueryClient
func (*Erc20TestSuite) Erc20TokenAddress ¶
func (suite *Erc20TestSuite) Erc20TokenAddress(denom string) common.Address
func (*Erc20TestSuite) HexAddress ¶
func (suite *Erc20TestSuite) HexAddress() common.Address
func (*Erc20TestSuite) RegisterCoinProposal ¶
func (suite *Erc20TestSuite) RegisterCoinProposal(md banktypes.Metadata) (*sdk.TxResponse, uint64)
func (*Erc20TestSuite) RegisterErc20Proposal ¶
func (suite *Erc20TestSuite) RegisterErc20Proposal(erc20Addr string, aliases []string) (*sdk.TxResponse, uint64)
func (*Erc20TestSuite) ToggleTokenConversionProposal ¶
func (suite *Erc20TestSuite) ToggleTokenConversionProposal(denom string) (*sdk.TxResponse, uint64)
func (*Erc20TestSuite) TokenPair ¶
func (suite *Erc20TestSuite) TokenPair(denom string) *erc20types.TokenPair
func (*Erc20TestSuite) TokenPairs ¶
func (suite *Erc20TestSuite) TokenPairs() []erc20types.TokenPair
func (*Erc20TestSuite) UpdateDenomAliasProposal ¶
func (suite *Erc20TestSuite) UpdateDenomAliasProposal(denom, alias string) (*sdk.TxResponse, uint64)
type EvmTestSuite ¶
type EvmTestSuite struct { *TestSuite // contains filtered or unexported fields }
func NewEvmTestSuite ¶
func NewEvmTestSuite(ts *TestSuite) EvmTestSuite
func (*EvmTestSuite) AccAddress ¶
func (suite *EvmTestSuite) AccAddress() sdk.AccAddress
func (*EvmTestSuite) Allowance ¶
func (suite *EvmTestSuite) Allowance(contractAddr, owner, spender common.Address) *big.Int
func (*EvmTestSuite) ApproveERC20 ¶
func (suite *EvmTestSuite) ApproveERC20(privateKey cryptotypes.PrivKey, token, spender common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) ApproveERC721 ¶
func (suite *EvmTestSuite) ApproveERC721(privateKey cryptotypes.PrivKey, contractAddr, operator common.Address, id *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) BalanceOf ¶
func (suite *EvmTestSuite) BalanceOf(contractAddr, address common.Address) *big.Int
func (*EvmTestSuite) BalanceOfERC721 ¶
func (suite *EvmTestSuite) BalanceOfERC721(contractAddr, account common.Address) *big.Int
func (*EvmTestSuite) BlockHeight ¶
func (suite *EvmTestSuite) BlockHeight() uint64
func (*EvmTestSuite) BurnERC20 ¶
func (suite *EvmTestSuite) BurnERC20(privateKey cryptotypes.PrivKey, token, account common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) CheckAllowance ¶
func (*EvmTestSuite) CheckBalanceOf ¶
func (suite *EvmTestSuite) CheckBalanceOf(contractAddr, address common.Address, balance *big.Int)
func (*EvmTestSuite) CheckBalanceOfERC721 ¶
func (*EvmTestSuite) DeployContract ¶
func (suite *EvmTestSuite) DeployContract(privKey cryptotypes.PrivKey, contractBin []byte) (common.Address, common.Hash)
func (*EvmTestSuite) DeployERC20Contract ¶
func (suite *EvmTestSuite) DeployERC20Contract(privKey cryptotypes.PrivKey) common.Address
func (*EvmTestSuite) DeployProxy ¶
func (suite *EvmTestSuite) DeployProxy(privateKey cryptotypes.PrivKey, logic common.Address, initData []byte) common.Address
func (*EvmTestSuite) EthClient ¶
func (suite *EvmTestSuite) EthClient() *ethclient.Client
func (*EvmTestSuite) HandleWithCheckBalance ¶
func (suite *EvmTestSuite) HandleWithCheckBalance(contractAddr, address common.Address, addValue *big.Int, h func())
func (*EvmTestSuite) HexAddress ¶
func (suite *EvmTestSuite) HexAddress() common.Address
func (*EvmTestSuite) IsApprovedForAll ¶
func (suite *EvmTestSuite) IsApprovedForAll(contractAddr, owner, operator common.Address) bool
func (*EvmTestSuite) MintERC20 ¶
func (suite *EvmTestSuite) MintERC20(privateKey cryptotypes.PrivKey, token, account common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) Owner ¶
func (suite *EvmTestSuite) Owner(contractAddr common.Address) common.Address
func (*EvmTestSuite) SafeMintERC721 ¶
func (suite *EvmTestSuite) SafeMintERC721(privateKey cryptotypes.PrivKey, contractAddr, account common.Address) *ethtypes.Transaction
func (*EvmTestSuite) SafeTransferFrom ¶
func (suite *EvmTestSuite) SafeTransferFrom(privateKey cryptotypes.PrivKey, contractAddr, from, to common.Address, id *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) SendTransaction ¶
func (suite *EvmTestSuite) SendTransaction(tx *ethtypes.Transaction) *ethtypes.Receipt
func (*EvmTestSuite) SetApprovalForAll ¶
func (suite *EvmTestSuite) SetApprovalForAll(privateKey cryptotypes.PrivKey, contractAddr, operator common.Address, approved bool) *ethtypes.Transaction
func (*EvmTestSuite) SetupSuite ¶
func (suite *EvmTestSuite) SetupSuite()
func (*EvmTestSuite) TotalSupply ¶
func (suite *EvmTestSuite) TotalSupply(contractAddr common.Address) *big.Int
func (*EvmTestSuite) TransactOpts ¶
func (suite *EvmTestSuite) TransactOpts() *bind.TransactOpts
func (*EvmTestSuite) Transfer ¶
func (suite *EvmTestSuite) Transfer(privateKey cryptotypes.PrivKey, recipient common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) TransferERC20 ¶
func (suite *EvmTestSuite) TransferERC20(privateKey cryptotypes.PrivKey, token, recipient common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) TransferFromERC20 ¶
func (suite *EvmTestSuite) TransferFromERC20(privateKey cryptotypes.PrivKey, token, sender, recipient common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) TransferOwnership ¶
func (suite *EvmTestSuite) TransferOwnership(privateKey cryptotypes.PrivKey, token, newOwner common.Address) *ethtypes.Transaction
func (*EvmTestSuite) WFXDeposit ¶
func (suite *EvmTestSuite) WFXDeposit(privateKey cryptotypes.PrivKey, address common.Address, value *big.Int) *ethtypes.Transaction
func (*EvmTestSuite) WFXWithdraw ¶
func (suite *EvmTestSuite) WFXWithdraw(privateKey cryptotypes.PrivKey, address, recipient common.Address, value *big.Int) *ethtypes.Transaction
type PrecompileTestSuite ¶
type PrecompileTestSuite struct { EvmTestSuite // contains filtered or unexported fields }
func NewPrecompileTestSuite ¶
func NewPrecompileTestSuite(ts *TestSuite) PrecompileTestSuite
func (*PrecompileTestSuite) AccAddress ¶
func (suite *PrecompileTestSuite) AccAddress() sdk.AccAddress
func (*PrecompileTestSuite) CancelSendToExternal ¶
func (suite *PrecompileTestSuite) CancelSendToExternal(chain string, txId uint64) *ethtypes.Transaction
func (*PrecompileTestSuite) CancelSendToExternalAndCheckPendingTx ¶
func (suite *PrecompileTestSuite) CancelSendToExternalAndCheckPendingTx(chain string, txId uint64) *ethtypes.Transaction
func (*PrecompileTestSuite) CrossChain ¶
func (*PrecompileTestSuite) CrossChainAndCheckPendingTx ¶
func (suite *PrecompileTestSuite) CrossChainAndCheckPendingTx(token common.Address, recipient string, amount, fee *big.Int, chainName string) (*ethtypes.Transaction, uint64)
func (*PrecompileTestSuite) CrossChainAndResponse ¶
func (suite *PrecompileTestSuite) CrossChainAndResponse(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
func (*PrecompileTestSuite) HexAddress ¶
func (suite *PrecompileTestSuite) HexAddress() common.Address
func (*PrecompileTestSuite) IncreaseBridgeFee ¶
func (suite *PrecompileTestSuite) IncreaseBridgeFee(chain string, txId uint64, token common.Address, fee *big.Int) *ethtypes.Transaction
func (*PrecompileTestSuite) IncreaseBridgeFeeCheckPendingTx ¶
func (suite *PrecompileTestSuite) IncreaseBridgeFeeCheckPendingTx(chain string, txId uint64, token common.Address, fee *big.Int) *ethtypes.Transaction
func (*PrecompileTestSuite) TransferCrossChain ¶
func (suite *PrecompileTestSuite) TransferCrossChain(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
func (*PrecompileTestSuite) TransferCrossChainAndCheckPendingTx ¶
func (suite *PrecompileTestSuite) TransferCrossChainAndCheckPendingTx(token common.Address, recipient string, amount, fee *big.Int, chainName string) *ethtypes.Transaction
type SlashingSuite ¶
type SlashingSuite struct {
*TestSuite
}
func NewSlashingSuite ¶
func NewSlashingSuite(ts *TestSuite) SlashingSuite
func (*SlashingSuite) SlashingQuery ¶
func (suite *SlashingSuite) SlashingQuery() slashingtypes.QueryClient
type StakingSuite ¶
type StakingSuite struct { Erc20TestSuite // contains filtered or unexported fields }
func NewStakingSuite ¶
func NewStakingSuite(ts *TestSuite) StakingSuite
func (*StakingSuite) AccAddress ¶
func (suite *StakingSuite) AccAddress() sdk.AccAddress
func (*StakingSuite) Address ¶
func (suite *StakingSuite) Address() common.Address
func (*StakingSuite) AllowanceShares ¶
func (*StakingSuite) ApproveShares ¶
func (suite *StakingSuite) ApproveShares(privateKey cryptotypes.PrivKey, valAddr string, spender common.Address, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) Delegate ¶
func (suite *StakingSuite) Delegate(privateKey cryptotypes.PrivKey, valAddr string, delAmount *big.Int) *ethtypes.Receipt
func (*StakingSuite) DelegateByContract ¶
func (suite *StakingSuite) DelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string, delAmount *big.Int) *ethtypes.Receipt
func (*StakingSuite) DelegateV2 ¶
func (suite *StakingSuite) DelegateV2(privateKey cryptotypes.PrivKey, valAddr string, delAmount *big.Int) *ethtypes.Receipt
func (*StakingSuite) Delegation ¶
func (*StakingSuite) DelegationRewards ¶
func (suite *StakingSuite) DelegationRewards(delAddr, valAddr string) sdk.DecCoins
DelegationRewards Get delegatorAddress rewards
func (*StakingSuite) DeployStakingContract ¶
func (suite *StakingSuite) DeployStakingContract(privKey cryptotypes.PrivKey) (common.Address, common.Hash)
func (*StakingSuite) GrantAddress ¶
func (suite *StakingSuite) GrantAddress() sdk.AccAddress
func (*StakingSuite) GrantPrivKey ¶
func (suite *StakingSuite) GrantPrivKey() cryptotypes.PrivKey
func (*StakingSuite) Redelegate ¶
func (suite *StakingSuite) Redelegate(privateKey cryptotypes.PrivKey, valSrc, valDst string, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) RedelegateByContract ¶
func (suite *StakingSuite) RedelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valSrc, valDst string, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) RedelegateV2 ¶
func (suite *StakingSuite) RedelegateV2(privateKey cryptotypes.PrivKey, valSrc, valDst string, amount *big.Int) *ethtypes.Receipt
func (*StakingSuite) SetWithdrawAddress ¶
func (suite *StakingSuite) SetWithdrawAddress(withdrawAddr sdk.AccAddress)
func (*StakingSuite) SetWithdrawAddressWithResponse ¶
func (suite *StakingSuite) SetWithdrawAddressWithResponse(privKey cryptotypes.PrivKey, withdrawAddr sdk.AccAddress) *sdk.TxResponse
func (*StakingSuite) StakingQuery ¶
func (suite *StakingSuite) StakingQuery() stakingtypes.QueryClient
func (*StakingSuite) TransactionOpts ¶
func (suite *StakingSuite) TransactionOpts(privateKey cryptotypes.PrivKey) *bind.TransactOpts
func (*StakingSuite) TransferFromShares ¶
func (suite *StakingSuite) TransferFromShares(privateKey cryptotypes.PrivKey, valAddr string, from, receipt common.Address, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) TransferFromSharesByContract ¶
func (suite *StakingSuite) TransferFromSharesByContract(privateKey cryptotypes.PrivKey, valAddr string, contract, from, to common.Address, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) TransferShares ¶
func (suite *StakingSuite) TransferShares(privateKey cryptotypes.PrivKey, valAddr string, receipt common.Address, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) TransferSharesByContract ¶
func (suite *StakingSuite) TransferSharesByContract(privateKey cryptotypes.PrivKey, valAddr string, contract, to common.Address, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) UnDelegate ¶
func (suite *StakingSuite) UnDelegate(privateKey cryptotypes.PrivKey, valAddr string, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) UnDelegateV2 ¶
func (suite *StakingSuite) UnDelegateV2(privateKey cryptotypes.PrivKey, valAddr string, amount *big.Int) *ethtypes.Receipt
func (*StakingSuite) UndelegateByContract ¶
func (suite *StakingSuite) UndelegateByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string, shares *big.Int) *ethtypes.Receipt
func (*StakingSuite) WithdrawByContract ¶
func (suite *StakingSuite) WithdrawByContract(privateKey cryptotypes.PrivKey, contract common.Address, valAddr string) *ethtypes.Receipt
func (*StakingSuite) WithdrawReward ¶
func (suite *StakingSuite) WithdrawReward(privateKey cryptotypes.PrivKey, valAddr string) *ethtypes.Receipt
type TestSuite ¶
func NewTestSuite ¶
func NewTestSuite() *TestSuite
func (*TestSuite) BlockNumber ¶
func (*TestSuite) BroadcastProposalTx ¶
func (suite *TestSuite) BroadcastProposalTx(content govv1beta1.Content, expectedStatus ...govv1.ProposalStatus) (*sdk.TxResponse, uint64)
func (*TestSuite) BroadcastProposalTx2 ¶
func (suite *TestSuite) BroadcastProposalTx2(msgs []sdk.Msg, title, summary string, expectedStatus ...govv1.ProposalStatus) (*sdk.TxResponse, uint64)
func (*TestSuite) BroadcastTx ¶
func (suite *TestSuite) BroadcastTx(privKey cryptotypes.PrivKey, msgList ...sdk.Msg) *sdk.TxResponse
func (*TestSuite) ChainTokens ¶
func (*TestSuite) CheckBalance ¶
func (suite *TestSuite) CheckBalance(accAddress sdk.AccAddress, balance sdk.Coin)
func (*TestSuite) CheckDelegate ¶
func (suite *TestSuite) CheckDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, delegation sdk.Coin)
func (*TestSuite) CheckDeposit ¶
func (*TestSuite) CheckProposal ¶
func (*TestSuite) CheckProposals ¶
func (suite *TestSuite) CheckProposals(depositor sdk.AccAddress) govv1.Proposals
func (*TestSuite) CheckRedelegate ¶
func (suite *TestSuite) CheckRedelegate(delegatorAddr sdk.AccAddress, redelegationResponses stakingtypes.RedelegationResponses)
func (*TestSuite) CheckUndelegate ¶
func (suite *TestSuite) CheckUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, entries ...stakingtypes.UnbondingDelegationEntry)
func (*TestSuite) CheckWithdrawAddr ¶
func (suite *TestSuite) CheckWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)
func (*TestSuite) CreateValidator ¶
func (suite *TestSuite) CreateValidator(valPriv cryptotypes.PrivKey, toBondedVal bool) *sdk.TxResponse
func (*TestSuite) Delegate ¶
func (suite *TestSuite) Delegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
func (*TestSuite) GRPCClient ¶
func (*TestSuite) GetAllValPrivKeys ¶
func (suite *TestSuite) GetAllValPrivKeys() []cryptotypes.PrivKey
func (*TestSuite) GetAllValidators ¶
func (*TestSuite) GetFirstValAddr ¶
func (suite *TestSuite) GetFirstValAddr() sdk.ValAddress
func (*TestSuite) GetFirstValPrivKey ¶
func (suite *TestSuite) GetFirstValPrivKey() cryptotypes.PrivKey
func (*TestSuite) GetFirstValidator ¶
func (*TestSuite) GetMetadata ¶
func (*TestSuite) GetNetwork ¶
func (*TestSuite) GetStakingDenom ¶
func (*TestSuite) GetValidatorPrivKeys ¶
func (suite *TestSuite) GetValidatorPrivKeys(addr sdk.AccAddress) cryptotypes.PrivKey
func (*TestSuite) IsUseLocalNetwork ¶
func (*TestSuite) NodeClient ¶
func (*TestSuite) ProposalDeposit ¶
func (suite *TestSuite) ProposalDeposit(priv cryptotypes.PrivKey, proposalID uint64, amount sdk.Coin) *sdk.TxResponse
func (*TestSuite) ProposalVote ¶
func (suite *TestSuite) ProposalVote(priv cryptotypes.PrivKey, proposalID uint64, option govv1beta1.VoteOption) *sdk.TxResponse
func (*TestSuite) QueryBalances ¶
func (suite *TestSuite) QueryBalances(accAddress sdk.AccAddress) sdk.Coins
func (*TestSuite) QueryBlock ¶
func (*TestSuite) QueryBlockByTxHash ¶
func (*TestSuite) QueryModuleAccountByName ¶
func (suite *TestSuite) QueryModuleAccountByName(moduleName string) sdk.AccAddress
func (*TestSuite) QueryValidatorByToken ¶
func (suite *TestSuite) QueryValidatorByToken() sdk.ValAddress
func (*TestSuite) Redelegate ¶
func (suite *TestSuite) Redelegate(priv cryptotypes.PrivKey, valSrc, valDest sdk.ValAddress, all bool) *sdk.TxResponse
func (*TestSuite) Send ¶
func (suite *TestSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
func (*TestSuite) SetWithdrawAddr ¶
func (suite *TestSuite) SetWithdrawAddr(priv cryptotypes.PrivKey, withdrawAddr sdk.AccAddress) *sdk.TxResponse
func (*TestSuite) SetupSuite ¶
func (suite *TestSuite) SetupSuite()
func (*TestSuite) TearDownSuite ¶
func (suite *TestSuite) TearDownSuite()
func (*TestSuite) Undelegate ¶
func (suite *TestSuite) Undelegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
func (*TestSuite) WithdrawReward ¶
func (suite *TestSuite) WithdrawReward(priv cryptotypes.PrivKey, valAddress sdk.ValAddress) *sdk.TxResponse
type TestSuiteMultiNode ¶
type TestSuiteMultiNode struct {
*TestSuite
}
func NewTestSuiteMultiNode ¶
func NewTestSuiteMultiNode() *TestSuiteMultiNode
func (*TestSuiteMultiNode) PrintBlock ¶
func (suite *TestSuiteMultiNode) PrintBlock()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.