mocks

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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.

func NewVaultKeeper

func NewVaultKeeper(
	t testing.TB,
) (sdk.Context, *keeper.Keeper)

NewVaultKeeper returns an instance of the Keeper with all dependencies mocked.

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

func (m *MockAuthKeeper) NewAccount(_ context.Context, acc sdk.AccountI) sdk.AccountI

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)

Jump to

Keyboard shortcuts

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