keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const TestSenderAddr = "nvnm1axznhnm82lah8qqvp9hxdad49yx3s5dc6h6p3s"

Variables

This section is empty.

Functions

func AnchoringKeeper

func AnchoringKeeper(tb testing.TB) (keeper.Keeper, sdk.Context, address.Codec)

func MustAddAnchoringRecord

func MustAddAnchoringRecord(tb testing.TB, k keeper.Keeper, ctx sdk.Context, sender, registryName, checksum, checksumAlgo string) uint64

func MustCreateAnchoringRegistry

func MustCreateAnchoringRegistry(tb testing.TB, k keeper.Keeper, ctx sdk.Context, sender, name string) uint64

func TaxKeeper

func TaxKeeper(tb testing.TB) (keeper.Keeper, sdk.Context, address.Codec)

func TaxKeeperWithAuthAndBankKeeper

func TaxKeeperWithAuthAndBankKeeper(tb testing.TB, ak types.AccountKeeper, bk types.BankKeeper) (keeper.Keeper, sdk.Context, address.Codec)

func TaxKeeperWithBankKeeper

func TaxKeeperWithBankKeeper(tb testing.TB, bk types.BankKeeper) (keeper.Keeper, sdk.Context, address.Codec)

Types

type MockAuthKeeper

type MockAuthKeeper struct {
	ModuleAccounts map[string]sdk.ModuleAccountI
}

MockAuthKeeper is a minimal auth keeper for tests.

func (*MockAuthKeeper) GetModuleAccount

func (m *MockAuthKeeper) GetModuleAccount(_ context.Context, name string) sdk.ModuleAccountI

type MockBankKeeper

type MockBankKeeper struct {
	BlockedAddrs map[string]bool
	// Balances holds per-address balances returned by GetAllBalances.
	Balances map[string]sdk.Coins
}

MockBankKeeper is a minimal bank keeper for tests that need BlockedAddr behaviour.

func (*MockBankKeeper) BlockedAddr

func (m *MockBankKeeper) BlockedAddr(addr sdk.AccAddress) bool

func (*MockBankKeeper) BurnCoins

func (m *MockBankKeeper) BurnCoins(_ context.Context, _ string, _ sdk.Coins) error

func (*MockBankKeeper) GetAllBalances

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

func (*MockBankKeeper) GetBalance

func (m *MockBankKeeper) GetBalance(_ context.Context, _ sdk.AccAddress, _ string) sdk.Coin

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(_ context.Context, _ string, recipientAddr sdk.AccAddress, _ sdk.Coins) error

Jump to

Keyboard shortcuts

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