Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllDenomsMetaData(ctx sdk.Context) []bank.Metadata
- func (k Keeper) GetAllToken(ctx sdk.Context) (list []types.Token)
- func (k Keeper) GetDenomHolders(ctx sdk.Context, denom string) []bank.Balance
- func (k Keeper) GetDenomMetaData(ctx sdk.Context, denom string) (bank.Metadata, bool)
- func (k Keeper) GetToken(ctx sdk.Context, id uint64) (token types.Token)
- func (k Keeper) GetTokenByDenom(ctx sdk.Context, denom string) types.Token
- func (k Keeper) GetTokenCount(ctx sdk.Context) uint64
- func (k Keeper) HasToken(ctx sdk.Context, id uint64) bool
- func (k Keeper) IssueToken(ctx sdk.Context, token types.Token) uint64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintToken(ctx sdk.Context, address string, amount sdk.Coin) error
- func (k Keeper) RemoveToken(ctx sdk.Context, id uint64)
- func (k Keeper) SetDenomMetaData(ctx sdk.Context, metadata bank.Metadata)
- func (k Keeper) SetToken(ctx sdk.Context, token types.Token)
- func (k Keeper) SetTokenCount(ctx sdk.Context, count uint64)
- func (k Keeper) Token(c context.Context, req *types.QueryGetTokenRequest) (*types.QueryGetTokenResponse, error)
- func (k Keeper) TokenAll(c context.Context, req *types.QueryAllTokenRequest) (*types.QueryAllTokenResponse, error)
- func (k Keeper) TokenByDenom(c context.Context, req *types.QueryTokenByDenomRequest) (*types.QueryGetTokenResponse, error)
- func (k Keeper) TokensByOwner(c context.Context, req *types.QueryTokensByOwnerRequest) (*types.QueryAllTokenResponse, error)
Constants ¶
This section is empty.
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 (Keeper) GetAllDenomsMetaData ¶
func (Keeper) GetAllToken ¶
GetAllToken returns all token
func (Keeper) GetDenomHolders ¶
func (Keeper) GetDenomMetaData ¶
func (Keeper) GetTokenByDenom ¶ added in v1.1.0
func (Keeper) GetTokenCount ¶
GetTokenCount get the total number of token
func (Keeper) IssueToken ¶
IssueToken appends a token in the store with a new id and update the count
func (Keeper) RemoveToken ¶
RemoveToken removes a token from the store
func (Keeper) SetDenomMetaData ¶
func (Keeper) SetTokenCount ¶
SetTokenCount set the total number of token
func (Keeper) Token ¶
func (k Keeper) Token(c context.Context, req *types.QueryGetTokenRequest) (*types.QueryGetTokenResponse, error)
func (Keeper) TokenAll ¶
func (k Keeper) TokenAll(c context.Context, req *types.QueryAllTokenRequest) (*types.QueryAllTokenResponse, error)
func (Keeper) TokenByDenom ¶ added in v1.1.0
func (k Keeper) TokenByDenom(c context.Context, req *types.QueryTokenByDenomRequest) (*types.QueryGetTokenResponse, error)
func (Keeper) TokensByOwner ¶ added in v1.1.0
func (k Keeper) TokensByOwner(c context.Context, req *types.QueryTokensByOwnerRequest) (*types.QueryAllTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.