Documentation
¶
Index ¶
- func MakeTestEncodingConfig(prefix string, modules ...module.AppModuleBasic) moduletestutil.TestEncodingConfig
- func NewVaultKeeper(t testing.TB) (sdk.Context, *keeper.Keeper)
- type MockAuthKeeper
- func (m *MockAuthKeeper) GetAccount(_ context.Context, addr sdk.AccAddress) sdk.AccountI
- func (m *MockAuthKeeper) GetAllAccounts(_ context.Context) []sdk.AccountI
- func (m *MockAuthKeeper) GetModuleAddress(moduleName string) sdk.AccAddress
- func (m *MockAuthKeeper) HasAccount(_ context.Context, addr sdk.AccAddress) bool
- func (m *MockAuthKeeper) NewAccount(_ context.Context, acc sdk.AccountI) sdk.AccountI
- func (m *MockAuthKeeper) NewAccountWithAddress(_ context.Context, addr sdk.AccAddress) sdk.AccountI
- func (m *MockAuthKeeper) SetAccount(_ context.Context, acc sdk.AccountI)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTestEncodingConfig ¶
func MakeTestEncodingConfig(prefix string, modules ...module.AppModuleBasic) moduletestutil.TestEncodingConfig
MakeTestEncodingConfig is a modified testutil.MakeTestEncodingConfig that sets a custom Bech32 prefix in the interface registry.
Types ¶
type MockAuthKeeper ¶
type MockAuthKeeper struct {
// contains filtered or unexported fields
}
func NewMockAuthKeeper ¶
func NewMockAuthKeeper() *MockAuthKeeper
func (*MockAuthKeeper) GetAccount ¶
func (m *MockAuthKeeper) GetAccount(_ context.Context, addr sdk.AccAddress) sdk.AccountI
func (*MockAuthKeeper) GetAllAccounts ¶
func (m *MockAuthKeeper) GetAllAccounts(_ context.Context) []sdk.AccountI
func (*MockAuthKeeper) GetModuleAddress ¶
func (m *MockAuthKeeper) GetModuleAddress(moduleName string) sdk.AccAddress
func (*MockAuthKeeper) HasAccount ¶
func (m *MockAuthKeeper) HasAccount(_ context.Context, addr sdk.AccAddress) bool
func (*MockAuthKeeper) NewAccount ¶
NewAccount assigns an account number if needed and returns the (possibly updated) account.
func (*MockAuthKeeper) NewAccountWithAddress ¶
func (m *MockAuthKeeper) NewAccountWithAddress(_ context.Context, addr sdk.AccAddress) sdk.AccountI
func (*MockAuthKeeper) SetAccount ¶
func (m *MockAuthKeeper) SetAccount(_ context.Context, acc sdk.AccountI)
Click to show internal directories.
Click to hide internal directories.