Documentation ¶
Index ¶
- func GetSymbolBytes(symbol string) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewTokenFromMsg(msg *types.MsgIssueToken, txHash string) types.Token
- type Keeper
- func (k Keeper) GetAllToken(ctx sdk.Context) (list []types.Token)
- func (k Keeper) GetToken(ctx sdk.Context, symbol string) types.Token
- func (k Keeper) HasToken(ctx sdk.Context, symbol string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetToken(ctx sdk.Context, token types.Token)
- func (k Keeper) Token(c context.Context, req *types.QueryTokenRequest) (*types.QueryTokenResponse, error)
- func (k Keeper) Tokens(c context.Context, req *types.QueryTokensRequest) (*types.QueryTokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSymbolBytes ¶
GetSymbolBytes returns the byte representation of the symbol
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
func NewTokenFromMsg ¶
func NewTokenFromMsg(msg *types.MsgIssueToken, txHash string) types.Token
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) GetAllToken ¶
GetAllToken returns all token
func (Keeper) Token ¶
func (k Keeper) Token(c context.Context, req *types.QueryTokenRequest) (*types.QueryTokenResponse, error)
func (Keeper) Tokens ¶
func (k Keeper) Tokens(c context.Context, req *types.QueryTokensRequest) (*types.QueryTokensResponse, error)
Click to show internal directories.
Click to hide internal directories.