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)
- type MockMetadataKeeper
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)
type MockMetadataKeeper ¶ added in v1.2.3
type MockMetadataKeeper struct {
// contains filtered or unexported fields
}
MockMetadataKeeper is an in-memory stand-in for the metadata keeper, holding the scopes that a value-owner NAV denom (nft/<scope-id>) may resolve to. An empty mock reports every scope as missing, which is what the NAV denom check expects for an unknown scope.
func NewMockMetadataKeeper ¶ added in v1.2.3
func NewMockMetadataKeeper() *MockMetadataKeeper
NewMockMetadataKeeper returns a MockMetadataKeeper holding no scopes.
func (*MockMetadataKeeper) GetScope ¶ added in v1.2.3
func (m *MockMetadataKeeper) GetScope(_ sdk.Context, id metadatatypes.MetadataAddress) (metadatatypes.Scope, bool)
func (*MockMetadataKeeper) SetScope ¶ added in v1.2.3
func (m *MockMetadataKeeper) SetScope(scope metadatatypes.Scope)
SetScope records a scope so lookups for its id, and for the value-owner denom derived from it, resolve as existing.