Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + func GetERC721() fxtypes.Contract + type AuthzSuite struct + func NewAuthzSuite(ts *TestSuite) AuthzSuite + func (suite *AuthzSuite) AuthzQuery() authz.QueryClient + type CrosschainTestSuite struct + func NewCrosschainWithTestSuite(chainName string, ts *TestSuite) CrosschainTestSuite + func (suite *CrosschainTestSuite) AccAddress() sdk.AccAddress + func (suite *CrosschainTestSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token, channelIBCHex string) string + func (suite *CrosschainTestSuite) BondedOracle() + func (suite *CrosschainTestSuite) BridgerAddr() sdk.AccAddress + func (suite *CrosschainTestSuite) CheckIncreaseBridgeFee(sender sdk.AccAddress, txId uint64) + func (suite *CrosschainTestSuite) CrosschainQuery() crosschaintypes.QueryClient + func (suite *CrosschainTestSuite) ExternalAddr() string + func (suite *CrosschainTestSuite) GetBridgeDenomByToken(token string) (denom string) + func (suite *CrosschainTestSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken) + func (suite *CrosschainTestSuite) HexAddress() gethcommon.Address + func (suite *CrosschainTestSuite) Init() + func (suite *CrosschainTestSuite) OracleAddr() sdk.AccAddress + func (suite *CrosschainTestSuite) QueryParams() crosschaintypes.Params + func (suite *CrosschainTestSuite) QueryPendingUnbatchedTx(sender sdk.AccAddress) []*crosschaintypes.OutgoingTransferTx + func (suite *CrosschainTestSuite) SendBatchRequest(minTxs 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) SendToFxClaim(token string, amount sdkmath.Int, targetIbc string) + func (suite *CrosschainTestSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64) + type Erc20TestSuite struct + func NewErc20TestSuite(ts *TestSuite) Erc20TestSuite + func (suite *Erc20TestSuite) CancelSendToExternal(privateKey cryptotypes.PrivKey, chain string, txId uint64) *ethtypes.Transaction + func (suite *Erc20TestSuite) CheckRegisterCoin(denom string) + func (suite *Erc20TestSuite) ConvertCoin(private cryptotypes.PrivKey, recipient common.Address, coin sdk.Coin) *sdk.TxResponse + func (suite *Erc20TestSuite) ConvertDenom(private cryptotypes.PrivKey, receiver sdk.AccAddress, coin sdk.Coin, ...) *sdk.TxResponse + func (suite *Erc20TestSuite) ConvertERC20(private cryptotypes.PrivKey, token common.Address, amount sdkmath.Int, ...) *sdk.TxResponse + func (suite *Erc20TestSuite) CrossChain(privateKey cryptotypes.PrivKey, token common.Address, recipient string, ...) *ethtypes.Transaction + 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) IncreaseBridgeFee(privateKey cryptotypes.PrivKey, chain string, txId uint64, ...) *ethtypes.Transaction + 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) TransferCrossChain(privateKey cryptotypes.PrivKey, token common.Address, recipient string, ...) *ethtypes.Transaction + func (suite *Erc20TestSuite) UpdateDenomAliasProposal(denom, alias string) (*sdk.TxResponse, uint64) + type EvmTestSuite struct + func NewEvmTestSuite(ts *TestSuite) 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, value *big.Int) bool + 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) EthClient() *ethclient.Client + 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 SlashingSuite struct + func NewSlashingSuite(ts *TestSuite) SlashingSuite + func (suite *SlashingSuite) SlashingQuery() slashingtypes.QueryClient + type StakingSuite struct + func NewStakingSuite(ts *TestSuite) 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) 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) Rewards(valAddr string, delAddr common.Address) *big.Int + func (suite *StakingSuite) SetWithdrawAddress(delAddr, withdrawAddr sdk.AccAddress) + 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) + 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) + type TestSuite struct + func NewTestSuite() *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) 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) *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) 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) SendFrom(priv cryptotypes.PrivKey, 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 struct + func NewTestSuiteMultiNode() *TestSuiteMultiNode + func (suite *TestSuiteMultiNode) PrintBlock() v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core github.com/functionx/fx-core/v2 github.com/functionx/fx-core/v3 github.com/functionx/fx-core/v4 github.com/functionx/fx-core/v6 github.com/functionx/fx-core/v7