Documentation
¶
Index ¶
- func CreateAuctionTx(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, ...) (sdk.Tx, []sdk.Tx, error)
- func CreateAuctionTxWithSignerBz(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, ...) ([]byte, error)
- func CreateAuctionTxWithSigners(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, ...) (authsigning.Tx, error)
- func CreateBaseSDKContext(t *testing.T) sdk.Context
- func CreateFreeTx(txCfg client.TxConfig, account Account, nonce, timeout uint64, ...) (authsigning.Tx, error)
- func CreateMempool() *block.LanedMempool
- func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce uint64, ...) (*auctiontypes.MsgAuctionBid, error)
- func CreateNAuctionTx(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, ...) (sdk.Tx, []sdk.Tx, error)
- func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg
- func CreateRandomTx(txCfg client.TxConfig, account Account, nonce, numberMsgs, timeout uint64, ...) (authsigning.Tx, error)
- func CreateRandomTxBz(txCfg client.TxConfig, account Account, ...) ([]byte, error)
- func CreateRandomTxMultipleSigners(txCfg client.TxConfig, accounts []Account, nonce, numberMsgs, timeout uint64, ...) (authsigning.Tx, error)
- func CreateTx(txCfg client.TxConfig, account Account, nonce, timeout uint64, msgs []sdk.Msg, ...) (authsigning.Tx, error)
- func CreateTxWithSigners(txCfg client.TxConfig, nonce, timeout uint64, signers []Account) (authsigning.Tx, error)
- type Account
- type EncodingConfig
- type MockAccountKeeper
- type MockAccountKeeperMockRecorder
- type MockBankKeeper
- type MockBankKeeperMockRecorder
- type MockDistributionKeeper
- type MockDistributionKeeperRecorder
- type MockStakingKeeper
- type MockStakingKeeperRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuctionTx ¶
func CreateBaseSDKContext ¶ added in v1.3.0
CreateBaseSDKContext creates a base sdk context with the default store key and transient key.
func CreateFreeTx ¶
func CreateMempool ¶ added in v1.3.0
func CreateMempool() *block.LanedMempool
func CreateMsgAuctionBid ¶
func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce uint64, numberMsgs int) (*auctiontypes.MsgAuctionBid, error)
func CreateNAuctionTx ¶ added in v1.4.8
func CreateRandomMsgs ¶
func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg
func CreateRandomTx ¶
func CreateRandomTxBz ¶
func CreateRandomTxMultipleSigners ¶ added in v1.4.0
func CreateTxWithSigners ¶
Types ¶
type Account ¶
type Account struct { PrivKey cryptotypes.PrivKey PubKey cryptotypes.PubKey Address sdk.AccAddress ConsKey cryptotypes.PrivKey }
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Codec codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
func CreateTestEncodingConfig ¶
func CreateTestEncodingConfig() EncodingConfig
type MockAccountKeeper ¶
type MockAccountKeeper struct {
// contains filtered or unexported fields
}
func NewMockAccountKeeper ¶
func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper
func (*MockAccountKeeper) EXPECT ¶
func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
func (*MockAccountKeeper) GetModuleAddress ¶
func (m *MockAccountKeeper) GetModuleAddress(name string) sdk.AccAddress
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
func (*MockAccountKeeperMockRecorder) GetModuleAddress ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call
type MockBankKeeper ¶
type MockBankKeeper struct {
// contains filtered or unexported fields
}
func NewMockBankKeeper ¶
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
func (*MockBankKeeper) EXPECT ¶
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
func (*MockBankKeeper) GetBalance ¶
func (m *MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
func (*MockBankKeeper) SendCoins ¶
func (m *MockBankKeeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
type MockBankKeeperMockRecorder ¶
type MockBankKeeperMockRecorder struct {
// contains filtered or unexported fields
}
func (*MockBankKeeperMockRecorder) GetBalance ¶
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) SendCoins ¶
func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt interface{}) *gomock.Call
type MockDistributionKeeper ¶
type MockDistributionKeeper struct {
// contains filtered or unexported fields
}
func NewMockDistributionKeeper ¶
func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper
func (*MockDistributionKeeper) EXPECT ¶
func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperRecorder
func (*MockDistributionKeeper) GetPreviousProposerConsAddr ¶
func (m *MockDistributionKeeper) GetPreviousProposerConsAddr(ctx sdk.Context) sdk.ConsAddress
type MockDistributionKeeperRecorder ¶
type MockDistributionKeeperRecorder struct {
// contains filtered or unexported fields
}
func (*MockDistributionKeeperRecorder) GetPreviousProposerConsAddr ¶
func (mr *MockDistributionKeeperRecorder) GetPreviousProposerConsAddr(ctx any) *gomock.Call
type MockStakingKeeper ¶
type MockStakingKeeper struct {
// contains filtered or unexported fields
}
func NewMockStakingKeeper ¶
func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperRecorder
func (*MockStakingKeeper) ValidatorByConsAddr ¶
func (m *MockStakingKeeper) ValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) stakingtypes.ValidatorI
type MockStakingKeeperRecorder ¶
type MockStakingKeeperRecorder struct {
// contains filtered or unexported fields
}
func (*MockStakingKeeperRecorder) ValidatorByConsAddr ¶
func (mr *MockStakingKeeperRecorder) ValidatorByConsAddr(ctx, consAddr any) *gomock.Call
Directories
¶
Path | Synopsis |
---|---|
Package keeper provides methods to initialize SDK keepers with local storage for test purposes
|
Package keeper provides methods to initialize SDK keepers with local storage for test purposes |
Package networksuite provides a base test suite for tests that need a local network instance
|
Package networksuite provides a base test suite for tests that need a local network instance |
Click to show internal directories.
Click to hide internal directories.