keeper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryServiceServer added in v0.6.0

func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer

Types

type Keeper

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

func NewKeeper

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

func (*Keeper) Add

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

Add is for adding the amount to the deposit account from the bank account of an address.

func (*Keeper) GetDeposit

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

GetDeposit is for getting the deposit of an address from KVStore.

func (*Keeper) GetDeposits added in v0.3.0

func (k *Keeper) GetDeposits(ctx sdk.Context, skip, limit int64) (items types.Deposits)

GetDeposits is for getting the deposits from KVStore.

func (*Keeper) IterateDeposits

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

IterateDeposits is for iterating over all the deposits to perform an action.

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) error

SendCoinsFromAccountToDeposit is for sending the amount from the bank account of from address to the deposit account of to address.

func (*Keeper) SendCoinsFromDepositToAccount added in v0.3.0

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

SendCoinsFromDepositToAccount is for sending the amount from the deposit account of from address to the bank account of to address.

func (*Keeper) SetDeposit

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

SetDeposit is for inserting a deposit into KVStore.

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) error

Subtract is for adding the amount to the bank account from the deposit account of an address.

func (*Keeper) WithBankKeeper added in v0.6.0

func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)

Jump to

Keyboard shortcuts

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