keeper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, bankKeeper bank.Keeper) Keeper

func (Keeper) Add

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

func (Keeper) GetAllDeposits

func (k Keeper) GetAllDeposits(ctx sdk.Context) (deposits []types.Deposit)

func (Keeper) GetDeposit

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

func (Keeper) IterateDeposits

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

nolint: dupl

func (Keeper) Receive

func (k Keeper) Receive(ctx sdk.Context, fromAddress, to sdk.AccAddress,
	coins sdk.Coins) (tags sdk.Tags, err sdk.Error)

func (Keeper) Send

func (k Keeper) Send(ctx sdk.Context, from, toAddress sdk.AccAddress,
	coins sdk.Coins) (tags sdk.Tags, err sdk.Error)

func (Keeper) SetDeposit

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

func (Keeper) Subtract

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

Jump to

Keyboard shortcuts

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