keeper

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTestCodec added in v0.2.0

func MakeTestCodec() *codec.Codec

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func CreateTestInput added in v0.2.0

func CreateTestInput(t *testing.T, isCheckTx bool) (sdk.Context, Keeper, bank.Keeper)

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey) Keeper

func (Keeper) Add

func (k Keeper) Add(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) sdk.Error

func (Keeper) GetDeposit

func (k Keeper) GetDeposit(ctx sdk.Context, address sdk.AccAddress) (deposit types.Deposit, found bool)

func (Keeper) GetDeposits added in v0.3.0

func (k Keeper) GetDeposits(ctx sdk.Context) (items types.Deposits)

func (Keeper) IterateDeposits

func (k Keeper) IterateDeposits(ctx sdk.Context, fn func(index int64, item types.Deposit) (stop bool))

func (Keeper) Logger added in v0.3.0

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) SendCoinsFromAccountToDeposit added in v0.3.0

func (k Keeper) SendCoinsFromAccountToDeposit(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) sdk.Error

func (Keeper) SendCoinsFromDepositToAccount added in v0.3.0

func (k Keeper) SendCoinsFromDepositToAccount(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) sdk.Error

func (Keeper) SetDeposit

func (k Keeper) SetDeposit(ctx sdk.Context, deposit types.Deposit)

func (Keeper) Store added in v0.3.0

func (k Keeper) Store(ctx sdk.Context) sdk.KVStore

func (Keeper) Subtract

func (k Keeper) Subtract(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) sdk.Error

func (*Keeper) WithSupplyKeeper added in v0.3.0

func (k *Keeper) WithSupplyKeeper(keeper expected.SupplyKeeper)

Jump to

Keyboard shortcuts

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