Documentation ¶
Index ¶
- func GridnodeKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- func NewMockBankKeeper() types.BankKeeper
- type MockAccountKeeper
- func (m *MockAccountKeeper) AddressCodec() address.Codec
- func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
- func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI
- func (m *MockAccountKeeper) NewAccountWithAddress(ctx context.Context, addr types.AccAddress) types.AccountI
- func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types.AccountI)
- type MockAccountKeeperMockRecorder
- func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call
- type MockBankKeeper
- func (m *MockBankKeeper) AddCoins(ctx context.Context, addr sdk.AccAddress, amt sdk.Coins) error
- func (m *MockBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, from sdk.AccAddress, to string, coins sdk.Coins) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, module string, addr sdk.AccAddress, amt sdk.Coins) error
- func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockBankKeeper ¶
func NewMockBankKeeper() types.BankKeeper
Create a function to create an instance of the mock BankKeeper
Types ¶
type MockAccountKeeper ¶
type MockAccountKeeper struct {
// contains filtered or unexported fields
}
MockAccountKeeper is a mock of AccountKeeper interface.
func NewMockAccountKeeper ¶
func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper
NewMockAccountKeeper creates a new mock instance.
func (*MockAccountKeeper) AddressCodec ¶
func (m *MockAccountKeeper) AddressCodec() address.Codec
AddressCodec mocks base method.
func (*MockAccountKeeper) EXPECT ¶
func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountKeeper) GetAccount ¶
func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI
GetAccount mocks base method.
func (*MockAccountKeeper) NewAccountWithAddress ¶
func (m *MockAccountKeeper) NewAccountWithAddress(ctx context.Context, addr types.AccAddress) types.AccountI
NewAccountWithAddress mocks base method.
func (*MockAccountKeeper) SetAccount ¶
func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types.AccountI)
SetAccount mocks base method.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
func (*MockAccountKeeperMockRecorder) AddressCodec ¶
func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
AddressCodec indicates an expected call of AddressCodec.
func (*MockAccountKeeperMockRecorder) GetAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockAccountKeeperMockRecorder) NewAccountWithAddress ¶
func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call
NewAccountWithAddress indicates an expected call of NewAccountWithAddress.
func (*MockAccountKeeperMockRecorder) SetAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call
SetAccount indicates an expected call of SetAccount.
type MockBankKeeper ¶
type MockBankKeeper struct { }
Define a struct that implements the types.BankKeeper interface
func (*MockBankKeeper) AddCoins ¶
func (m *MockBankKeeper) AddCoins(ctx context.Context, addr sdk.AccAddress, amt sdk.Coins) error
Implement the AddCoins method
func (*MockBankKeeper) GetBalance ¶
func (m *MockBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
Implement the missing GetBalance method
func (*MockBankKeeper) SendCoinsFromAccountToModule ¶
func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, from sdk.AccAddress, to string, coins sdk.Coins) error
Implement the SendCoinsFromAccountToModule method
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, module string, addr sdk.AccAddress, amt sdk.Coins) error
Implement the missing SendCoinsFromModuleToAccount method
func (*MockBankKeeper) SpendableCoins ¶
func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
Implement the SpendableCoins method