bank

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(am auth.AccountMapper) sdk.Handler

func RegisterCodec

func RegisterCodec(cdc *wire.Codec) *wire.Codec

Types

type Keeper

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

func NewKeeper

func NewKeeper(_am auth.AccountMapper) Keeper

func (Keeper) AddCoin

func (k Keeper) AddCoin(
	ctx sdk.Context,
	addr sdk.Address,
	amt types.Coin,
) (types.Coins, sdk.Error)

func (Keeper) AddCoins

func (k Keeper) AddCoins(
	ctx sdk.Context,
	addr sdk.Address,
	amt types.Coins,
) (types.Coins, sdk.Error)

func (Keeper) GetCoins

func (k Keeper) GetCoins(
	ctx sdk.Context,
	addr sdk.Address,
) types.Coins

func (Keeper) SetCoins

func (k Keeper) SetCoins(
	ctx sdk.Context,
	addr sdk.Address,
	amt types.Coins,
) sdk.Error

func (Keeper) SubtractCoin

func (k Keeper) SubtractCoin(
	ctx sdk.Context,
	addr sdk.Address,
	amt types.Coin,
) (types.Coins, sdk.Error)

func (Keeper) SubtractCoins

func (k Keeper) SubtractCoins(
	ctx sdk.Context,
	addr sdk.Address,
	amt types.Coins,
) (types.Coins, sdk.Error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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