Documentation
¶
Index ¶
- Constants
- func AnchoringKeeper(tb testing.TB) (keeper.Keeper, sdk.Context, address.Codec)
- func MustAddAnchoringRecord(tb testing.TB, k keeper.Keeper, ctx sdk.Context, ...) uint64
- func MustCreateAnchoringRegistry(tb testing.TB, k keeper.Keeper, ctx sdk.Context, sender, name string) uint64
- func TaxKeeper(tb testing.TB) (keeper.Keeper, sdk.Context, address.Codec)
- func TaxKeeperWithAuthAndBankKeeper(tb testing.TB, ak types.AccountKeeper, bk types.BankKeeper) (keeper.Keeper, sdk.Context, address.Codec)
- func TaxKeeperWithBankKeeper(tb testing.TB, bk types.BankKeeper) (keeper.Keeper, sdk.Context, address.Codec)
- type MockAuthKeeper
- type MockBankKeeper
- func (m *MockBankKeeper) BlockedAddr(addr sdk.AccAddress) bool
- func (m *MockBankKeeper) BurnCoins(_ context.Context, _ string, _ sdk.Coins) error
- func (m *MockBankKeeper) GetAllBalances(_ context.Context, addr sdk.AccAddress) sdk.Coins
- func (m *MockBankKeeper) GetBalance(_ context.Context, _ sdk.AccAddress, _ string) sdk.Coin
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(_ context.Context, _ string, recipientAddr sdk.AccAddress, _ sdk.Coins) error
Constants ¶
View Source
const TestSenderAddr = "nvnm1axznhnm82lah8qqvp9hxdad49yx3s5dc6h6p3s"
Variables ¶
This section is empty.
Functions ¶
func AnchoringKeeper ¶
func MustAddAnchoringRecord ¶
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) 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
Click to show internal directories.
Click to hide internal directories.