Documentation ¶
Index ¶
- type CrosschainSuite
- func (suite *CrosschainSuite) AddBridgeToken(md banktypes.Metadata) (string, crosschaintypes.BridgeToken)
- func (suite *CrosschainSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token string) string
- func (suite *CrosschainSuite) BondedOracle()
- func (suite *CrosschainSuite) BridgeCallClaim(to string, tokens []string, amounts []sdkmath.Int)
- func (suite *CrosschainSuite) BridgeCallConfirm(nonce uint64, isSuccess bool)
- func (suite *CrosschainSuite) BridgerAddr() sdk.AccAddress
- func (suite *CrosschainSuite) Crosschain(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
- func (suite *CrosschainSuite) CrosschainQuery() crosschaintypes.QueryClient
- func (suite *CrosschainSuite) ExecuteClaim() *ethtypes.Transaction
- func (suite *CrosschainSuite) ExternalAddr() string
- func (suite *CrosschainSuite) FormatAddress(address common.Address) string
- func (suite *CrosschainSuite) GetBridgeDenomByToken(token string) (denom string)
- func (suite *CrosschainSuite) GetBridgeTokenByDenom(denom string) (token string)
- func (suite *CrosschainSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken)
- func (suite *CrosschainSuite) HexAddressString() string
- func (suite *CrosschainSuite) Init()
- func (suite *CrosschainSuite) OracleAddr() sdk.AccAddress
- func (suite *CrosschainSuite) PendingExecuteClaim() []crosschaintypes.ExternalClaim
- func (suite *CrosschainSuite) QueryBridgeCallByNonce(nonce uint64) *crosschaintypes.OutgoingBridgeCall
- func (suite *CrosschainSuite) QueryParams() crosschaintypes.Params
- func (suite *CrosschainSuite) SendCancelSendToExternal(txId uint64)
- func (suite *CrosschainSuite) SendConfirmBatch()
- func (suite *CrosschainSuite) SendOracleSetConfirm()
- func (suite *CrosschainSuite) SendToExternal(count int, amount sdk.Coin) (*sdk.TxResponse, uint64)
- func (suite *CrosschainSuite) SendToExternalAndCancel(coin sdk.Coin)
- func (suite *CrosschainSuite) SendToExternalAndConfirm(coin sdk.Coin)
- func (suite *CrosschainSuite) SendToFxClaim(receiver sdk.AccAddress, token string, amount sdkmath.Int)
- func (suite *CrosschainSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64)
- func (suite *CrosschainSuite) SignatureCheckpoint(checkpoint []byte) []byte
- func (suite *CrosschainSuite) UpdateParams(opts ...func(params *crosschaintypes.Params)) (*sdk.TxResponse, uint64)
- type ERC20TokenSuite
- func (suite *ERC20TokenSuite) Allowance(owner, spender common.Address) *big.Int
- func (suite *ERC20TokenSuite) Approve(spender common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) BalanceOf(account common.Address) *big.Int
- func (suite *ERC20TokenSuite) Burn(account common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) CheckBalance(address common.Address, addValue *big.Int, f func())
- func (suite *ERC20TokenSuite) Decimals() uint8
- func (suite *ERC20TokenSuite) Deposit(value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) EqualAllowance(owner, spender common.Address, value *big.Int)
- func (suite *ERC20TokenSuite) EqualBalanceOf(address common.Address, balance *big.Int)
- func (suite *ERC20TokenSuite) Mint(account common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) Name() string
- func (suite *ERC20TokenSuite) Owner() common.Address
- func (suite *ERC20TokenSuite) Symbol() string
- func (suite *ERC20TokenSuite) TotalSupply() *big.Int
- func (suite *ERC20TokenSuite) Transfer(recipient common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) TransferFrom(sender, recipient common.Address, value *big.Int) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) TransferOwnership(newOwner common.Address) *ethtypes.Transaction
- func (suite *ERC20TokenSuite) WithSigner(signer *helpers.Signer) *ERC20TokenSuite
- func (suite *ERC20TokenSuite) Withdraw(recipient common.Address, value *big.Int) *ethtypes.Transaction
- type ERC721TokenSuite
- func (suite *ERC721TokenSuite) Approve(operator common.Address, id *big.Int) *ethtypes.Transaction
- func (suite *ERC721TokenSuite) BalanceOf(account common.Address) *big.Int
- func (suite *ERC721TokenSuite) EqualBalanceOf(account common.Address, value *big.Int)
- func (suite *ERC721TokenSuite) IsApprovedForAll(owner, operator common.Address) bool
- func (suite *ERC721TokenSuite) SafeMint(account common.Address) *ethtypes.Transaction
- func (suite *ERC721TokenSuite) SafeTransferFrom(from, to common.Address, id *big.Int) *ethtypes.Transaction
- func (suite *ERC721TokenSuite) SetApprovalForAll(operator common.Address, approved bool) *ethtypes.Transaction
- func (suite *ERC721TokenSuite) TokenURI(id *big.Int) string
- func (suite *ERC721TokenSuite) WithSigner(signer *helpers.Signer) *ERC721TokenSuite
- type EthSuite
- func (suite *EthSuite) Balance(addr common.Address) *big.Int
- func (suite *EthSuite) BlockHeight() uint64
- func (suite *EthSuite) DeployContract(signer *helpers.Signer, contractBin []byte) (common.Address, common.Hash)
- func (suite *EthSuite) DeployCrosschain(signer *helpers.Signer) (common.Address, common.Hash)
- func (suite *EthSuite) DeployERC20(signer *helpers.Signer, symbol string) common.Address
- func (suite *EthSuite) DeployERC721(signer *helpers.Signer) common.Address
- func (suite *EthSuite) DeployProxy(signer *helpers.Signer, logic common.Address, initData []byte) common.Address
- func (suite *EthSuite) DeployStaking(signer *helpers.Signer) (common.Address, common.Hash)
- func (suite *EthSuite) SendTransaction(tx *ethtypes.Transaction) *ethtypes.Receipt
- func (suite *EthSuite) TransactOpts(signer *helpers.Signer) *bind.TransactOpts
- func (suite *EthSuite) TxFee(hash common.Hash) *big.Int
- func (suite *EthSuite) WaitMined(tx *ethtypes.Transaction) *ethtypes.Receipt
- type FxCoreSuite
- func (suite *FxCoreSuite) BlockNumber() int64
- func (suite *FxCoreSuite) BroadcastProposalTxV1(msgs ...sdk.Msg) (*sdk.TxResponse, uint64)
- func (suite *FxCoreSuite) BroadcastTx(signer *helpers.Signer, msgList ...sdk.Msg) *sdk.TxResponse
- func (suite *FxCoreSuite) ConvertCoin(signer *helpers.Signer, recipient common.Address, coin sdk.Coin) *sdk.TxResponse
- func (suite *FxCoreSuite) CreateValidator(signer *helpers.Signer, toBondedVal bool) *sdk.TxResponse
- func (suite *FxCoreSuite) Delegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
- func (suite *FxCoreSuite) DelegationRewards(delAddr, valAddr string) sdk.DecCoins
- func (suite *FxCoreSuite) DistrQuery() distrtypes.QueryClient
- func (suite *FxCoreSuite) ERC20Query() erc20types.QueryClient
- func (suite *FxCoreSuite) EqualBalance(accAddress sdk.AccAddress, balance sdk.Coin)
- func (suite *FxCoreSuite) EqualDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...)
- func (suite *FxCoreSuite) EqualProposal(proposalId uint64, _ govv1.ProposalStatus) govv1.Proposal
- func (suite *FxCoreSuite) EqualRedelegate(delegatorAddr sdk.AccAddress, ...)
- func (suite *FxCoreSuite) EqualUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...)
- func (suite *FxCoreSuite) EqualWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)
- func (suite *FxCoreSuite) FindValSigner(addr sdk.AccAddress) *helpers.Signer
- func (suite *FxCoreSuite) GetAllBalances(accAddress sdk.AccAddress) sdk.Coins
- func (suite *FxCoreSuite) GetDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) *stakingtypes.DelegationResponse
- func (suite *FxCoreSuite) GetDenomsMetadata() []banktypes.Metadata
- func (suite *FxCoreSuite) GetErc20TokenAddress(denom string) common.Address
- func (suite *FxCoreSuite) GetMetadata(denom string) banktypes.Metadata
- func (suite *FxCoreSuite) GetProposals(depositor sdk.AccAddress) govv1.Proposals
- func (suite *FxCoreSuite) GetValAddr() sdk.ValAddress
- func (suite *FxCoreSuite) GetValSigner() *helpers.Signer
- func (suite *FxCoreSuite) GetValSortByToken() sdk.ValAddress
- func (suite *FxCoreSuite) NewCoin(amount sdkmath.Int) sdk.Coindeprecated
- func (suite *FxCoreSuite) NewStakingCoin(amount, power int64) sdk.Coin
- func (suite *FxCoreSuite) ProposalDeposit(signer *helpers.Signer, proposalID uint64, amount sdk.Coin) *sdk.TxResponse
- func (suite *FxCoreSuite) ProposalVote(signer *helpers.Signer, proposalID uint64, option govv1beta1.VoteOption) *sdk.TxResponse
- func (suite *FxCoreSuite) QueryBlock(blockHeight int64) *cmtservice.Block
- func (suite *FxCoreSuite) QueryBlockByTxHash(txHash string) *cmtservice.Block
- func (suite *FxCoreSuite) QueryModuleAccountByName(moduleName string) sdk.AccAddress
- func (suite *FxCoreSuite) QueryTx(txHash string) *sdk.TxResponse
- func (suite *FxCoreSuite) Redelegate(signer *helpers.Signer, valSrc, valDest sdk.ValAddress, all bool) *sdk.TxResponse
- func (suite *FxCoreSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
- func (suite *FxCoreSuite) SetWithdrawAddress(signer *helpers.Signer, withdrawAddr sdk.AccAddress) *sdk.TxResponse
- func (suite *FxCoreSuite) StakingQuery() stakingtypes.QueryClient
- func (suite *FxCoreSuite) ToggleTokenConversionProposal(denom string) (*sdk.TxResponse, uint64)
- func (suite *FxCoreSuite) Undelegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
- func (suite *FxCoreSuite) WithGasPrices(gasPrices ...sdk.Coin) *FxCoreSuite
- func (suite *FxCoreSuite) WithProposalStatus(status govv1.ProposalStatus) *FxCoreSuite
- func (suite *FxCoreSuite) WithdrawReward(signer *helpers.Signer, valAddress sdk.ValAddress) *sdk.TxResponse
- type StakingPrecompileSuite
- func (suite *StakingPrecompileSuite) AllowanceShares(valAddr string, owner, spender common.Address) *big.Int
- func (suite *StakingPrecompileSuite) ApproveShares(valAddr string, spender common.Address, shares *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) DelegateV2(valAddr string, delAmount *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) Delegation(valAddr string, delAddr common.Address) (*big.Int, *big.Int)
- func (suite *StakingPrecompileSuite) LogReward(logs []*ethtypes.Log, valAddr string, addr common.Address) *big.Int
- func (suite *StakingPrecompileSuite) RedelegateV2(valSrc, valDst string, amount *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) Rewards(valAddr string, delAddr common.Address) *big.Int
- func (suite *StakingPrecompileSuite) TransferFromShares(valAddr string, from, receipt common.Address, shares *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) TransferShares(valAddr string, receipt common.Address, shares *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) UnDelegateV2(valAddr string, amount *big.Int) *ethtypes.Receipt
- func (suite *StakingPrecompileSuite) WithSigner(signer *helpers.Signer) *StakingPrecompileSuite
- func (suite *StakingPrecompileSuite) Withdraw(valAddr string) *ethtypes.Receipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrosschainSuite ¶
type CrosschainSuite struct { *FxCoreSuite // contains filtered or unexported fields }
func NewCrosschainSuite ¶
func NewCrosschainSuite(chainName string, suite *FxCoreSuite) *CrosschainSuite
func (*CrosschainSuite) AddBridgeToken ¶
func (suite *CrosschainSuite) AddBridgeToken(md banktypes.Metadata) (string, crosschaintypes.BridgeToken)
func (*CrosschainSuite) AddBridgeTokenClaim ¶
func (suite *CrosschainSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token string) string
func (*CrosschainSuite) BondedOracle ¶
func (suite *CrosschainSuite) BondedOracle()
func (*CrosschainSuite) BridgeCallClaim ¶
func (suite *CrosschainSuite) BridgeCallClaim(to string, tokens []string, amounts []sdkmath.Int)
func (*CrosschainSuite) BridgeCallConfirm ¶
func (suite *CrosschainSuite) BridgeCallConfirm(nonce uint64, isSuccess bool)
func (*CrosschainSuite) BridgerAddr ¶
func (suite *CrosschainSuite) BridgerAddr() sdk.AccAddress
func (*CrosschainSuite) Crosschain ¶
func (suite *CrosschainSuite) Crosschain(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction
func (*CrosschainSuite) CrosschainQuery ¶
func (suite *CrosschainSuite) CrosschainQuery() crosschaintypes.QueryClient
func (*CrosschainSuite) ExecuteClaim ¶
func (suite *CrosschainSuite) ExecuteClaim() *ethtypes.Transaction
func (*CrosschainSuite) ExternalAddr ¶
func (suite *CrosschainSuite) ExternalAddr() string
func (*CrosschainSuite) FormatAddress ¶
func (suite *CrosschainSuite) FormatAddress(address common.Address) string
func (*CrosschainSuite) GetBridgeDenomByToken ¶
func (suite *CrosschainSuite) GetBridgeDenomByToken(token string) (denom string)
func (*CrosschainSuite) GetBridgeTokenByDenom ¶
func (suite *CrosschainSuite) GetBridgeTokenByDenom(denom string) (token string)
func (*CrosschainSuite) GetBridgeTokens ¶
func (suite *CrosschainSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken)
func (*CrosschainSuite) HexAddressString ¶
func (suite *CrosschainSuite) HexAddressString() string
func (*CrosschainSuite) Init ¶
func (suite *CrosschainSuite) Init()
func (*CrosschainSuite) OracleAddr ¶
func (suite *CrosschainSuite) OracleAddr() sdk.AccAddress
func (*CrosschainSuite) PendingExecuteClaim ¶
func (suite *CrosschainSuite) PendingExecuteClaim() []crosschaintypes.ExternalClaim
func (*CrosschainSuite) QueryBridgeCallByNonce ¶
func (suite *CrosschainSuite) QueryBridgeCallByNonce(nonce uint64) *crosschaintypes.OutgoingBridgeCall
func (*CrosschainSuite) QueryParams ¶
func (suite *CrosschainSuite) QueryParams() crosschaintypes.Params
func (*CrosschainSuite) SendCancelSendToExternal ¶
func (suite *CrosschainSuite) SendCancelSendToExternal(txId uint64)
func (*CrosschainSuite) SendConfirmBatch ¶
func (suite *CrosschainSuite) SendConfirmBatch()
func (*CrosschainSuite) SendOracleSetConfirm ¶
func (suite *CrosschainSuite) SendOracleSetConfirm()
func (*CrosschainSuite) SendToExternal ¶
func (suite *CrosschainSuite) SendToExternal(count int, amount sdk.Coin) (*sdk.TxResponse, uint64)
func (*CrosschainSuite) SendToExternalAndCancel ¶
func (suite *CrosschainSuite) SendToExternalAndCancel(coin sdk.Coin)
func (*CrosschainSuite) SendToExternalAndConfirm ¶
func (suite *CrosschainSuite) SendToExternalAndConfirm(coin sdk.Coin)
func (*CrosschainSuite) SendToFxClaim ¶
func (suite *CrosschainSuite) SendToFxClaim(receiver sdk.AccAddress, token string, amount sdkmath.Int)
func (*CrosschainSuite) SendUpdateChainOraclesProposal ¶
func (suite *CrosschainSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64)
func (*CrosschainSuite) SignatureCheckpoint ¶
func (suite *CrosschainSuite) SignatureCheckpoint(checkpoint []byte) []byte
func (*CrosschainSuite) UpdateParams ¶
func (suite *CrosschainSuite) UpdateParams(opts ...func(params *crosschaintypes.Params)) (*sdk.TxResponse, uint64)
type ERC20TokenSuite ¶
type ERC20TokenSuite struct { *EthSuite // contains filtered or unexported fields }
func NewERC20TokenSuite ¶
func (*ERC20TokenSuite) Allowance ¶
func (suite *ERC20TokenSuite) Allowance(owner, spender common.Address) *big.Int
func (*ERC20TokenSuite) Approve ¶
func (suite *ERC20TokenSuite) Approve(spender common.Address, value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) BalanceOf ¶
func (suite *ERC20TokenSuite) BalanceOf(account common.Address) *big.Int
func (*ERC20TokenSuite) Burn ¶
func (suite *ERC20TokenSuite) Burn(account common.Address, value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) CheckBalance ¶
func (suite *ERC20TokenSuite) CheckBalance(address common.Address, addValue *big.Int, f func())
func (*ERC20TokenSuite) Decimals ¶
func (suite *ERC20TokenSuite) Decimals() uint8
func (*ERC20TokenSuite) Deposit ¶
func (suite *ERC20TokenSuite) Deposit(value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) EqualAllowance ¶
func (suite *ERC20TokenSuite) EqualAllowance(owner, spender common.Address, value *big.Int)
func (*ERC20TokenSuite) EqualBalanceOf ¶
func (suite *ERC20TokenSuite) EqualBalanceOf(address common.Address, balance *big.Int)
func (*ERC20TokenSuite) Mint ¶
func (suite *ERC20TokenSuite) Mint(account common.Address, value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) Name ¶
func (suite *ERC20TokenSuite) Name() string
func (*ERC20TokenSuite) Owner ¶
func (suite *ERC20TokenSuite) Owner() common.Address
func (*ERC20TokenSuite) Symbol ¶
func (suite *ERC20TokenSuite) Symbol() string
func (*ERC20TokenSuite) TotalSupply ¶
func (suite *ERC20TokenSuite) TotalSupply() *big.Int
func (*ERC20TokenSuite) Transfer ¶
func (suite *ERC20TokenSuite) Transfer(recipient common.Address, value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) TransferFrom ¶
func (suite *ERC20TokenSuite) TransferFrom(sender, recipient common.Address, value *big.Int) *ethtypes.Transaction
func (*ERC20TokenSuite) TransferOwnership ¶
func (suite *ERC20TokenSuite) TransferOwnership(newOwner common.Address) *ethtypes.Transaction
func (*ERC20TokenSuite) WithSigner ¶
func (suite *ERC20TokenSuite) WithSigner(signer *helpers.Signer) *ERC20TokenSuite
func (*ERC20TokenSuite) Withdraw ¶
func (suite *ERC20TokenSuite) Withdraw(recipient common.Address, value *big.Int) *ethtypes.Transaction
type ERC721TokenSuite ¶
type ERC721TokenSuite struct { *EthSuite // contains filtered or unexported fields }
func NewERC721TokenSuite ¶
func (*ERC721TokenSuite) Approve ¶
func (suite *ERC721TokenSuite) Approve(operator common.Address, id *big.Int) *ethtypes.Transaction
func (*ERC721TokenSuite) BalanceOf ¶
func (suite *ERC721TokenSuite) BalanceOf(account common.Address) *big.Int
func (*ERC721TokenSuite) EqualBalanceOf ¶
func (suite *ERC721TokenSuite) EqualBalanceOf(account common.Address, value *big.Int)
func (*ERC721TokenSuite) IsApprovedForAll ¶
func (suite *ERC721TokenSuite) IsApprovedForAll(owner, operator common.Address) bool
func (*ERC721TokenSuite) SafeMint ¶
func (suite *ERC721TokenSuite) SafeMint(account common.Address) *ethtypes.Transaction
func (*ERC721TokenSuite) SafeTransferFrom ¶
func (suite *ERC721TokenSuite) SafeTransferFrom(from, to common.Address, id *big.Int) *ethtypes.Transaction
func (*ERC721TokenSuite) SetApprovalForAll ¶
func (suite *ERC721TokenSuite) SetApprovalForAll(operator common.Address, approved bool) *ethtypes.Transaction
func (*ERC721TokenSuite) WithSigner ¶
func (suite *ERC721TokenSuite) WithSigner(signer *helpers.Signer) *ERC721TokenSuite
type EthSuite ¶
func (*EthSuite) BlockHeight ¶
func (*EthSuite) DeployContract ¶
func (*EthSuite) DeployCrosschain ¶
func (*EthSuite) DeployERC20 ¶
func (*EthSuite) DeployERC721 ¶
func (*EthSuite) DeployProxy ¶
func (*EthSuite) DeployStaking ¶
func (*EthSuite) SendTransaction ¶
func (suite *EthSuite) SendTransaction(tx *ethtypes.Transaction) *ethtypes.Receipt
func (*EthSuite) TransactOpts ¶
func (suite *EthSuite) TransactOpts(signer *helpers.Signer) *bind.TransactOpts
type FxCoreSuite ¶
type FxCoreSuite struct { *EthSuite // contains filtered or unexported fields }
func (*FxCoreSuite) BlockNumber ¶
func (suite *FxCoreSuite) BlockNumber() int64
func (*FxCoreSuite) BroadcastProposalTxV1 ¶
func (suite *FxCoreSuite) BroadcastProposalTxV1(msgs ...sdk.Msg) (*sdk.TxResponse, uint64)
func (*FxCoreSuite) BroadcastTx ¶
func (suite *FxCoreSuite) BroadcastTx(signer *helpers.Signer, msgList ...sdk.Msg) *sdk.TxResponse
func (*FxCoreSuite) ConvertCoin ¶
func (suite *FxCoreSuite) ConvertCoin(signer *helpers.Signer, recipient common.Address, coin sdk.Coin) *sdk.TxResponse
func (*FxCoreSuite) CreateValidator ¶
func (suite *FxCoreSuite) CreateValidator(signer *helpers.Signer, toBondedVal bool) *sdk.TxResponse
func (*FxCoreSuite) Delegate ¶
func (suite *FxCoreSuite) Delegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
func (*FxCoreSuite) DelegationRewards ¶
func (suite *FxCoreSuite) DelegationRewards(delAddr, valAddr string) sdk.DecCoins
func (*FxCoreSuite) DistrQuery ¶
func (suite *FxCoreSuite) DistrQuery() distrtypes.QueryClient
func (*FxCoreSuite) ERC20Query ¶
func (suite *FxCoreSuite) ERC20Query() erc20types.QueryClient
func (*FxCoreSuite) EqualBalance ¶
func (suite *FxCoreSuite) EqualBalance(accAddress sdk.AccAddress, balance sdk.Coin)
func (*FxCoreSuite) EqualDelegate ¶
func (suite *FxCoreSuite) EqualDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, delegation sdk.Coin)
func (*FxCoreSuite) EqualProposal ¶
func (suite *FxCoreSuite) EqualProposal(proposalId uint64, _ govv1.ProposalStatus) govv1.Proposal
func (*FxCoreSuite) EqualRedelegate ¶
func (suite *FxCoreSuite) EqualRedelegate(delegatorAddr sdk.AccAddress, redelegationResponses stakingtypes.RedelegationResponses)
func (*FxCoreSuite) EqualUndelegate ¶
func (suite *FxCoreSuite) EqualUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, entries ...stakingtypes.UnbondingDelegationEntry)
func (*FxCoreSuite) EqualWithdrawAddr ¶
func (suite *FxCoreSuite) EqualWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)
func (*FxCoreSuite) FindValSigner ¶
func (suite *FxCoreSuite) FindValSigner(addr sdk.AccAddress) *helpers.Signer
func (*FxCoreSuite) GetAllBalances ¶
func (suite *FxCoreSuite) GetAllBalances(accAddress sdk.AccAddress) sdk.Coins
func (*FxCoreSuite) GetDelegation ¶
func (suite *FxCoreSuite) GetDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) *stakingtypes.DelegationResponse
func (*FxCoreSuite) GetDenomsMetadata ¶
func (suite *FxCoreSuite) GetDenomsMetadata() []banktypes.Metadata
func (*FxCoreSuite) GetErc20TokenAddress ¶
func (suite *FxCoreSuite) GetErc20TokenAddress(denom string) common.Address
func (*FxCoreSuite) GetMetadata ¶
func (suite *FxCoreSuite) GetMetadata(denom string) banktypes.Metadata
func (*FxCoreSuite) GetProposals ¶
func (suite *FxCoreSuite) GetProposals(depositor sdk.AccAddress) govv1.Proposals
func (*FxCoreSuite) GetValAddr ¶
func (suite *FxCoreSuite) GetValAddr() sdk.ValAddress
func (*FxCoreSuite) GetValSigner ¶
func (suite *FxCoreSuite) GetValSigner() *helpers.Signer
func (*FxCoreSuite) GetValSortByToken ¶
func (suite *FxCoreSuite) GetValSortByToken() sdk.ValAddress
func (*FxCoreSuite) NewStakingCoin ¶
func (suite *FxCoreSuite) NewStakingCoin(amount, power int64) sdk.Coin
func (*FxCoreSuite) ProposalDeposit ¶
func (suite *FxCoreSuite) ProposalDeposit(signer *helpers.Signer, proposalID uint64, amount sdk.Coin) *sdk.TxResponse
func (*FxCoreSuite) ProposalVote ¶
func (suite *FxCoreSuite) ProposalVote(signer *helpers.Signer, proposalID uint64, option govv1beta1.VoteOption) *sdk.TxResponse
func (*FxCoreSuite) QueryBlock ¶
func (suite *FxCoreSuite) QueryBlock(blockHeight int64) *cmtservice.Block
func (*FxCoreSuite) QueryBlockByTxHash ¶
func (suite *FxCoreSuite) QueryBlockByTxHash(txHash string) *cmtservice.Block
func (*FxCoreSuite) QueryModuleAccountByName ¶
func (suite *FxCoreSuite) QueryModuleAccountByName(moduleName string) sdk.AccAddress
func (*FxCoreSuite) QueryTx ¶
func (suite *FxCoreSuite) QueryTx(txHash string) *sdk.TxResponse
func (*FxCoreSuite) Redelegate ¶
func (suite *FxCoreSuite) Redelegate(signer *helpers.Signer, valSrc, valDest sdk.ValAddress, all bool) *sdk.TxResponse
func (*FxCoreSuite) Send ¶
func (suite *FxCoreSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse
func (*FxCoreSuite) SetWithdrawAddress ¶
func (suite *FxCoreSuite) SetWithdrawAddress(signer *helpers.Signer, withdrawAddr sdk.AccAddress) *sdk.TxResponse
func (*FxCoreSuite) StakingQuery ¶
func (suite *FxCoreSuite) StakingQuery() stakingtypes.QueryClient
func (*FxCoreSuite) ToggleTokenConversionProposal ¶
func (suite *FxCoreSuite) ToggleTokenConversionProposal(denom string) (*sdk.TxResponse, uint64)
func (*FxCoreSuite) Undelegate ¶
func (suite *FxCoreSuite) Undelegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse
func (*FxCoreSuite) WithGasPrices ¶
func (suite *FxCoreSuite) WithGasPrices(gasPrices ...sdk.Coin) *FxCoreSuite
func (*FxCoreSuite) WithProposalStatus ¶
func (suite *FxCoreSuite) WithProposalStatus(status govv1.ProposalStatus) *FxCoreSuite
func (*FxCoreSuite) WithdrawReward ¶
func (suite *FxCoreSuite) WithdrawReward(signer *helpers.Signer, valAddress sdk.ValAddress) *sdk.TxResponse
type StakingPrecompileSuite ¶
type StakingPrecompileSuite struct { *EthSuite // contains filtered or unexported fields }
func NewStakingSuite ¶
func (*StakingPrecompileSuite) AllowanceShares ¶
func (*StakingPrecompileSuite) ApproveShares ¶
func (*StakingPrecompileSuite) DelegateV2 ¶
func (*StakingPrecompileSuite) Delegation ¶
func (*StakingPrecompileSuite) RedelegateV2 ¶
func (*StakingPrecompileSuite) TransferFromShares ¶
func (*StakingPrecompileSuite) TransferShares ¶
func (*StakingPrecompileSuite) UnDelegateV2 ¶
func (*StakingPrecompileSuite) WithSigner ¶
func (suite *StakingPrecompileSuite) WithSigner(signer *helpers.Signer) *StakingPrecompileSuite
Click to show internal directories.
Click to hide internal directories.