tests

package
v2.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuite added in v2.3.0

type TestSuite struct {
	suite.Suite

	sync.Mutex
	// contains filtered or unexported fields
}

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 (suite *TestSuite) BlockNumber() int64

func (*TestSuite) BroadcastProposalTx added in v2.3.0

func (suite *TestSuite) BroadcastProposalTx(privKey cryptotypes.PrivKey, msgList ...sdk.Msg) (proposalId uint64)

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 (suite *TestSuite) CheckDeposit(proposalId uint64, depositor sdk.AccAddress, amount sdk.Coin)

func (*TestSuite) CheckProposal added in v2.3.0

func (suite *TestSuite) CheckProposal(proposalId uint64, status govtypes.ProposalStatus) govtypes.Proposal

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) Context added in v2.3.0

func (suite *TestSuite) Context() context.Context

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 (suite *TestSuite) GRPCClient() *grpc.Client

func (*TestSuite) GetFirstValidtor added in v2.3.0

func (suite *TestSuite) GetFirstValidtor() *network.Validator

func (*TestSuite) GetNetwork added in v2.3.0

func (suite *TestSuite) GetNetwork() *network.Network

func (*TestSuite) GetStakingDenom added in v2.3.0

func (suite *TestSuite) GetStakingDenom() string

func (*TestSuite) GetUseNetwork added in v2.3.0

func (suite *TestSuite) GetUseNetwork() bool

func (*TestSuite) NewCoin added in v2.3.0

func (suite *TestSuite) NewCoin(amount sdk.Int) sdk.Coin

func (*TestSuite) NodeClient added in v2.3.0

func (suite *TestSuite) NodeClient() *jsonrpc.NodeRPC

func (*TestSuite) ProposalDeposit added in v2.3.0

func (suite *TestSuite) ProposalDeposit(priv cryptotypes.PrivKey, proposalID uint64, amount sdk.Coin)

func (*TestSuite) ProposalSubmit added in v2.3.0

func (suite *TestSuite) ProposalSubmit(priv cryptotypes.PrivKey, deposit sdk.Coin) (proposalId uint64)

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 (suite *TestSuite) QueryBlock(blockHeight int64) *types.Block

func (*TestSuite) QueryBlockByTxHash added in v2.3.0

func (suite *TestSuite) QueryBlockByTxHash(txHash string) *types.Block

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 (suite *TestSuite) WithNetwork(network *network.Network)

func (*TestSuite) WithdrawReward added in v2.3.0

func (suite *TestSuite) WithdrawReward(priv cryptotypes.PrivKey, valAddress sdk.ValAddress)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL