keeper

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetSendRestriction added in v0.8.0

func AssetSendRestriction(k Keeper) banktypes.SendRestrictionFn

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	bankKeeper types.BankKeeper,

) *Keeper

func (Keeper) GetAllToken

func (k Keeper) GetAllToken(ctx sdk.Context) (list []types.Token)

GetAllToken returns all token

func (Keeper) GetParams added in v0.0.4

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

GetParams get all parameters as types.Params

func (Keeper) GetToken

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

) (val types.Token, found bool)

GetToken returns a token from its symbol

func (Keeper) IsAddressAuthorizedToSend

func (k Keeper) IsAddressAuthorizedToSend(ctx sdk.Context, symbol string, address sdk.AccAddress) (authorized bool)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params added in v0.0.4

func (Keeper) SetParams added in v0.0.4

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

SetParams set the params

func (Keeper) SetToken

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

SetToken set a specific token in the store from its symbol

func (Keeper) SetTransferRestrictionFn added in v0.8.0

func (k Keeper) SetTransferRestrictionFn()

SetTransferRestrictionFn Set genereric Authorization Send Transfer Restriction

func (Keeper) Token

func (Keeper) Tokens added in v0.6.0

Jump to

Keyboard shortcuts

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