Documentation ¶
Index ¶
- type TestSuite
- func (suite *TestSuite) AdminPrivateKey() cryptotypes.PrivKey
- func (suite *TestSuite) BlockNumber() int64
- func (suite *TestSuite) BroadcastProposalTx(privKey cryptotypes.PrivKey, msgList ...sdk.Msg) (proposalId 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, status govtypes.ProposalStatus) govtypes.Proposal
- func (suite *TestSuite) CheckProposals(depositor sdk.AccAddress) govtypes.Proposals
- func (suite *TestSuite) CheckRedelegate(delegatorAddr sdk.AccAddress, entries []stakingtypes.RedelegationResponses)
- 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)
- func (suite *TestSuite) Delegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin)
- func (suite *TestSuite) GRPCClient() *grpc.Client
- func (suite *TestSuite) GetFirstValidtor() *network.Validator
- func (suite *TestSuite) GetNetwork() *network.Network
- func (suite *TestSuite) GetStakingDenom() string
- func (suite *TestSuite) GetUseNetwork() bool
- func (suite *TestSuite) NewCoin(amount sdk.Int) sdk.Coin
- func (suite *TestSuite) NodeClient() *jsonrpc.NodeRPC
- func (suite *TestSuite) ProposalDeposit(priv cryptotypes.PrivKey, proposalID uint64, amount sdk.Coin)
- func (suite *TestSuite) ProposalSubmit(priv cryptotypes.PrivKey, deposit sdk.Coin) (proposalId uint64)
- func (suite *TestSuite) ProposalVote(priv cryptotypes.PrivKey, proposalID uint64, option govtypes.VoteOption)
- func (suite *TestSuite) QueryBalances(accAddress sdk.AccAddress) sdk.Coins
- func (suite *TestSuite) QueryBlock(blockHeight int64) *types.Block
- func (suite *TestSuite) QueryBlockByTxHash(txHash string) *types.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)
- func (suite *TestSuite) Send(toAddress sdk.AccAddress, amount sdk.Coin)
- func (suite *TestSuite) SendFrom(priv cryptotypes.PrivKey, toAddress sdk.AccAddress, amount sdk.Coin)
- func (suite *TestSuite) SetWithdrawAddr(priv cryptotypes.PrivKey, withdrawAddr sdk.AccAddress)
- func (suite *TestSuite) SetupSuite()
- func (suite *TestSuite) TearDownSuite()
- func (suite *TestSuite) Undelegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) string
- func (suite *TestSuite) ValAddress() sdk.ValAddress
- func (suite *TestSuite) WithNetwork(network *network.Network)
- func (suite *TestSuite) WithdrawReward(priv cryptotypes.PrivKey, valAddress sdk.ValAddress)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶ added in v2.3.0
func NewTestSuite ¶ added in v2.3.0
func NewTestSuite() *TestSuite
func (*TestSuite) AdminPrivateKey ¶ added in v2.3.0
func (suite *TestSuite) AdminPrivateKey() cryptotypes.PrivKey
func (*TestSuite) BlockNumber ¶ added in v2.3.0
func (*TestSuite) BroadcastProposalTx ¶ added in v2.3.0
func (*TestSuite) BroadcastTx ¶ added in v2.3.0
func (suite *TestSuite) BroadcastTx(privKey cryptotypes.PrivKey, msgList ...sdk.Msg) *sdk.TxResponse
func (*TestSuite) CheckBalance ¶ added in v2.3.0
func (suite *TestSuite) CheckBalance(accAddress sdk.AccAddress, balance sdk.Coin)
func (*TestSuite) CheckDelegate ¶ added in v2.3.0
func (suite *TestSuite) CheckDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, delegation sdk.Coin)
func (*TestSuite) CheckDeposit ¶ added in v2.3.0
func (*TestSuite) CheckProposal ¶ added in v2.3.0
func (*TestSuite) CheckProposals ¶ added in v2.3.0
func (suite *TestSuite) CheckProposals(depositor sdk.AccAddress) govtypes.Proposals
func (*TestSuite) CheckRedelegate ¶ added in v2.3.0
func (suite *TestSuite) CheckRedelegate(delegatorAddr sdk.AccAddress, entries []stakingtypes.RedelegationResponses)
func (*TestSuite) CheckUndelegate ¶ added in v2.3.0
func (suite *TestSuite) CheckUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, entries ...stakingtypes.UnbondingDelegationEntry)
func (*TestSuite) CheckWithdrawAddr ¶ added in v2.3.0
func (suite *TestSuite) CheckWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)
func (*TestSuite) CreateValidator ¶ added in v2.3.0
func (suite *TestSuite) CreateValidator(valPriv cryptotypes.PrivKey)
func (*TestSuite) Delegate ¶ added in v2.3.0
func (suite *TestSuite) Delegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin)
func (*TestSuite) GRPCClient ¶ added in v2.3.0
func (*TestSuite) GetFirstValidtor ¶ added in v2.3.0
func (*TestSuite) GetNetwork ¶ added in v2.3.0
func (*TestSuite) GetStakingDenom ¶ added in v2.3.0
func (*TestSuite) GetUseNetwork ¶ added in v2.3.0
func (*TestSuite) NodeClient ¶ added in v2.3.0
func (*TestSuite) ProposalDeposit ¶ added in v2.3.0
func (*TestSuite) ProposalSubmit ¶ added in v2.3.0
func (*TestSuite) ProposalVote ¶ added in v2.3.0
func (suite *TestSuite) ProposalVote(priv cryptotypes.PrivKey, proposalID uint64, option govtypes.VoteOption)
func (*TestSuite) QueryBalances ¶ added in v2.3.0
func (suite *TestSuite) QueryBalances(accAddress sdk.AccAddress) sdk.Coins
func (*TestSuite) QueryBlock ¶ added in v2.3.0
func (*TestSuite) QueryBlockByTxHash ¶ added in v2.3.0
func (*TestSuite) QueryTx ¶ added in v2.3.0
func (suite *TestSuite) QueryTx(txHash string) *sdk.TxResponse
func (*TestSuite) QueryValidatorByToken ¶ added in v2.3.0
func (suite *TestSuite) QueryValidatorByToken() sdk.ValAddress
func (*TestSuite) Redelegate ¶ added in v2.3.0
func (suite *TestSuite) Redelegate(priv cryptotypes.PrivKey, valSrc, valDest sdk.ValAddress, all bool)
func (*TestSuite) Send ¶ added in v2.3.0
func (suite *TestSuite) Send(toAddress sdk.AccAddress, amount sdk.Coin)
func (*TestSuite) SendFrom ¶ added in v2.3.0
func (suite *TestSuite) SendFrom(priv cryptotypes.PrivKey, toAddress sdk.AccAddress, amount sdk.Coin)
func (*TestSuite) SetWithdrawAddr ¶ added in v2.3.0
func (suite *TestSuite) SetWithdrawAddr(priv cryptotypes.PrivKey, withdrawAddr sdk.AccAddress)
func (*TestSuite) SetupSuite ¶ added in v2.3.0
func (suite *TestSuite) SetupSuite()
func (*TestSuite) TearDownSuite ¶ added in v2.3.0
func (suite *TestSuite) TearDownSuite()
func (*TestSuite) Undelegate ¶ added in v2.3.0
func (suite *TestSuite) Undelegate(priv cryptotypes.PrivKey, valAddress sdk.ValAddress, amount sdk.Coin) string
func (*TestSuite) ValAddress ¶ added in v2.3.0
func (suite *TestSuite) ValAddress() sdk.ValAddress
func (*TestSuite) WithNetwork ¶ added in v2.3.0
func (*TestSuite) WithdrawReward ¶ added in v2.3.0
func (suite *TestSuite) WithdrawReward(priv cryptotypes.PrivKey, valAddress sdk.ValAddress)
Click to show internal directories.
Click to hide internal directories.