Documentation ¶
Index ¶
- func GetBytesFromUint64(id uint64) []byte
- func GetUInt64FromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) CheckCommonError(tokenId string, symbol string, name string, supply uint64) error
- func (k Keeper) GetAllToken(ctx sdk.Context) (list []types.Token)
- func (k Keeper) GetToken(ctx sdk.Context, id string) (val types.Token, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveToken(ctx sdk.Context, id string)
- func (k Keeper) SetToken(ctx sdk.Context, token types.Token)
- func (k Keeper) SetTokenToAccount(ctx sdk.Context, token types.Token)
- 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) TokenList(c context.Context, req *types.QueryTokenListRequest) (*types.QueryTokenListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytesFromUint64 ¶
GetBytesFromUint64 returns the byte representation of the ID
func GetUInt64FromBytes ¶
GetUInt64FromBytes returns ID in uint64 format from a byte array
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.BinaryCodec, storeKey, memKey storetypes.StoreKey, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) CheckCommonError ¶
func (Keeper) GetAllToken ¶
GetAllToken returns all token
func (Keeper) RemoveToken ¶
RemoveToken removes a token from the store
func (Keeper) SetTokenToAccount ¶
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) TokenList ¶
func (k Keeper) TokenList(c context.Context, req *types.QueryTokenListRequest) (*types.QueryTokenListResponse, error)
Click to show internal directories.
Click to hide internal directories.