test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuctionTxWithSigners

func CreateAuctionTxWithSigners(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, signers []Account) (authsigning.Tx, error)

func CreateMsgAuctionBid

func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce uint64, numberMsgs int) (*buildertypes.MsgAuctionBid, error)

func CreateRandomMsgs

func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg

func CreateRandomTx

func CreateRandomTx(txCfg client.TxConfig, account Account, nonce, numberMsgs, timeout uint64) (authsigning.Tx, error)

func CreateTx

func CreateTx(txCfg client.TxConfig, account Account, nonce, timeout uint64, msgs []sdk.Msg) (authsigning.Tx, error)

func CreateTxWithSigners

func CreateTxWithSigners(txCfg client.TxConfig, nonce, timeout uint64, signers []Account) (authsigning.Tx, error)

Types

type Account

type Account struct {
	PrivKey cryptotypes.PrivKey
	PubKey  cryptotypes.PubKey
	Address sdk.AccAddress
	ConsKey cryptotypes.PrivKey
}

func RandomAccounts

func RandomAccounts(r *rand.Rand, n int) []Account

func (Account) Equals

func (acc Account) Equals(acc2 Account) bool

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 (*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 (*MockBankKeeper) GetAllBalances

func (m *MockBankKeeper) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

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) GetAllBalances

func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr 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 (*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 (*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

Jump to

Keyboard shortcuts

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