keeper

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultParamspace for params keeper
	DefaultParamspace = types.ModuleName
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

creates a querier for staking REST endpoints

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamTable for issuing new assets

Types

type Keeper

type Keeper struct {
	SupplyKeeper types.SupplyKeeper
	// contains filtered or unexported fields
}

Keeper of the distribution store

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace, supplyKeeper types.SupplyKeeper, codespace sdk.CodespaceType) Keeper

NewKeeper creates a new distribution Keeper instance

func (*Keeper) DecodeToToken

func (k *Keeper) DecodeToToken(bz []byte) *types.Token

func (*Keeper) EncodeToken

func (k *Keeper) EncodeToken(token *types.Token) []byte

func (Keeper) GetIssueFee

func (k Keeper) GetIssueFee(ctx sdk.Context) sdk.Coins

nolint: errcheck

func (Keeper) GetMaxDecimal

func (k Keeper) GetMaxDecimal(ctx sdk.Context) int8

nolint: errcheck

func (Keeper) GetMintFee

func (k Keeper) GetMintFee(ctx sdk.Context) sdk.Coins

nolint: errcheck

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) *types.Params

Get all parameteras as Params

func (*Keeper) GetToken

func (k *Keeper) GetToken(ctx sdk.Context, symbol string) *types.Token

func (*Keeper) IsTokenExist

func (k *Keeper) IsTokenExist(ctx sdk.Context, symbol string) bool

func (*Keeper) ListToken

func (k *Keeper) ListToken(ctx sdk.Context) sdk.Iterator

func (Keeper) SetIssueFee

func (k Keeper) SetIssueFee(ctx sdk.Context, issueFee sdk.Coins)

nolint: errcheck

func (Keeper) SetMaxDecimal

func (k Keeper) SetMaxDecimal(ctx sdk.Context, maxDecimal int8)

nolint: errcheck

func (Keeper) SetMintFee

func (k Keeper) SetMintFee(ctx sdk.Context, mintFee sdk.Coins)

nolint: errcheck

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params *types.Params)

set the params

func (*Keeper) SetToken

func (k *Keeper) SetToken(ctx sdk.Context, token *types.Token)

func (*Keeper) UpdateToken

func (k *Keeper) UpdateToken(ctx sdk.Context, token *types.Token)

Jump to

Keyboard shortcuts

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