Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddToken(ctx sdk.Context, token types.Token) error
- func (k Keeper) BurnToken(ctx sdk.Context, symbol string, amount uint64, owner sdk.AccAddress) error
- func (k Keeper) DeductIssueTokenFee(ctx sdk.Context, owner sdk.AccAddress, symbol string) error
- func (k Keeper) DeductOperateTokenFee(ctx sdk.Context, owner sdk.AccAddress, symbol string) error
- func (k Keeper) EditToken(ctx sdk.Context, symbol, name string, maxSupply uint64, owner sdk.AccAddress) error
- func (q Keeper) Fees(c context.Context, req *types.QueryFeesRequest) (*types.QueryFeesResponse, error)
- func (k Keeper) GetIssueTokenFee(ctx sdk.Context, symbol string) (sdk.Coin, error)
- func (k Keeper) GetOperateTokenFee(ctx sdk.Context, symbol string) (sdk.Coin, error)
- func (k Keeper) GetParamSet(ctx sdk.Context) types.Params
- func (k Keeper) GetToken(ctx sdk.Context, denom string) (types.TokenI, error)
- func (k Keeper) GetTokens(ctx sdk.Context, owner sdk.AccAddress) (tokens []types.TokenI)
- func (k Keeper) HasSymbol(ctx sdk.Context, symbol string) bool
- func (k Keeper) HasToken(ctx sdk.Context, denom string) bool
- func (k Keeper) IssueToken(ctx sdk.Context, symbol, name, minUnit string, scale uint32, ...) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintToken(ctx sdk.Context, symbol string, amount uint64, to, owner sdk.AccAddress) error
- func (q Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParamSet(ctx sdk.Context, params types.Params)
- func (q Keeper) Token(c context.Context, req *types.QueryTokenRequest) (*types.QueryTokenResponse, error)
- func (q Keeper) Tokens(c context.Context, req *types.QueryTokensRequest) (*types.QueryTokensResponse, error)
- func (k Keeper) TransferOwnerToken(ctx sdk.Context, symbol string, owner, to sdk.AccAddress) error
Constants ¶
View Source
const ( FeeBase = types.MinSymbolLen FeeExp = 3 )
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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.Codec, storeKey sdk.StoreKey, paramSpace paramstypes.Subspace, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, moduleAddr map[string]bool, ) *Keeper
func (Keeper) DeductIssueTokenFee ¶
DeductIssueTokenFee performs fee handling for issuing token
func (Keeper) DeductOperateTokenFee ¶
DeductOperateTokenFee performs fee handling for operate token
func (Keeper) Fees ¶
func (q Keeper) Fees(c context.Context, req *types.QueryFeesRequest) (*types.QueryFeesResponse, error)
func (Keeper) GetIssueTokenFee ¶
GetIssueTokenFee returns operate token fee
func (Keeper) GetOperateTokenFee ¶
GetOperateTokenFee returns operate token fee
func (Keeper) GetParamSet ¶
GetParamSet returns token params from the global param store
func (Keeper) IssueToken ¶
func (Keeper) Params ¶
func (q Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetParamSet ¶
SetParamSet sets token params to the global param store
func (Keeper) Token ¶
func (q Keeper) Token(c context.Context, req *types.QueryTokenRequest) (*types.QueryTokenResponse, error)
func (Keeper) Tokens ¶
func (q Keeper) Tokens(c context.Context, req *types.QueryTokensRequest) (*types.QueryTokensResponse, error)
func (Keeper) TransferOwnerToken ¶
Click to show internal directories.
Click to hide internal directories.