keeper

package
v0.0.0-...-df98d5b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 5 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, key sdk.StoreKey, supply expected.SupplyKeeper) Keeper

func (Keeper) Add

func (k Keeper) Add(ctx sdk.Context, i uint64, coins sdk.Coins) error

func (Keeper) DeleteTransferForDeadline

func (k Keeper) DeleteTransferForDeadline(ctx sdk.Context, at time.Time, i uint64)

func (Keeper) Deposit

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

func (Keeper) GetAccount

func (k Keeper) GetAccount(ctx sdk.Context, i uint64) (account types.Account, found bool)

func (Keeper) GetAccounts

func (k Keeper) GetAccounts(ctx sdk.Context) (items types.Accounts)

func (Keeper) GetAccountsCount

func (k Keeper) GetAccountsCount(ctx sdk.Context) (count uint64)

func (Keeper) GetTransfer

func (k Keeper) GetTransfer(ctx sdk.Context, i uint64) (transfer types.Transfer, found bool)

func (Keeper) GetTransfers

func (k Keeper) GetTransfers(ctx sdk.Context) (items types.Transfers)

func (Keeper) GetTransfersCount

func (k Keeper) GetTransfersCount(ctx sdk.Context) (count uint64)

func (Keeper) IterateTransfersForDeadline

func (k Keeper) IterateTransfersForDeadline(ctx sdk.Context, end time.Time, fn func(index int, item types.Transfer) bool)

func (Keeper) Send

func (k Keeper) Send(ctx sdk.Context, to sdk.AccAddress, coins sdk.Coins) error

func (Keeper) SetAccount

func (k Keeper) SetAccount(ctx sdk.Context, account types.Account)

func (Keeper) SetAccountsCount

func (k Keeper) SetAccountsCount(ctx sdk.Context, count uint64)

func (Keeper) SetTransfer

func (k Keeper) SetTransfer(ctx sdk.Context, transfer types.Transfer)

func (Keeper) SetTransferForDeadline

func (k Keeper) SetTransferForDeadline(ctx sdk.Context, at time.Time, i uint64)

func (Keeper) SetTransfersCount

func (k Keeper) SetTransfersCount(ctx sdk.Context, count uint64)

func (Keeper) Subtract

func (k Keeper) Subtract(ctx sdk.Context, i uint64, coins sdk.Coins) error

func (Keeper) Withdraw

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

Jump to

Keyboard shortcuts

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