bank

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryBalance = "balance"
)

query endpoints supported by auth querier

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(am auth.AccountMapper) sdkTypes.Handler

func NewQuerier added in v0.2.0

func NewQuerier(am auth.AccountMapper, cdc *amino.Codec) sdk.Querier

func RegisterCodec

func RegisterCodec(cdc *amino.Codec) *amino.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.AccAddress,
	amt types.Coin,
) (types.Coins, sdk.Error)

func (Keeper) AddCoins

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

func (Keeper) GetCoins

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

func (Keeper) SetCoins

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

func (Keeper) SubtractCoin

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

func (Keeper) SubtractCoins

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

type QueryBalanceParams added in v0.2.0

type QueryBalanceParams struct {
	Address sdk.AccAddress
}

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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