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, totalSupply uint64) error
- func (k Keeper) GetAllTokenData(ctx sdk.Context) (list []types.TokenData)
- func (k Keeper) GetTokenData(ctx sdk.Context, tokenID string) (val types.TokenData, found bool)
- func (k Keeper) GetTokenList(goCtx context.Context, req *types.QueryGetTokenListRequest) (*types.QueryGetTokenListResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveTokenData(ctx sdk.Context, tokenID string)
- func (k Keeper) SetTokenData(ctx sdk.Context, tokenData types.TokenData)
- func (k Keeper) SetTokenDataToAccount(ctx sdk.Context, tokenData types.TokenData)
- func (k Keeper) TokenData(c context.Context, req *types.QueryGetTokenDataRequest) (*types.QueryGetTokenDataResponse, error)
- func (k Keeper) TokenDataAll(c context.Context, req *types.QueryAllTokenDataRequest) (*types.QueryAllTokenDataResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytesFromUInt64 ¶
GetBytesFromUInt64 returns the byte representation of the Uint64
func GetUInt64FromBytes ¶
GetUInt64FromBytes returns 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 sdk.StoreKey, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) CheckCommonError ¶
func (Keeper) GetAllTokenData ¶
GetAllTokenData returns all tokenData
func (Keeper) GetTokenData ¶
GetTokenData returns a tokenData from its index
func (Keeper) GetTokenList ¶
func (k Keeper) GetTokenList(goCtx context.Context, req *types.QueryGetTokenListRequest) (*types.QueryGetTokenListResponse, error)
func (Keeper) RemoveTokenData ¶
RemoveTokenData removes a tokenData from the store
func (Keeper) SetTokenData ¶
SetTokenData set a specific tokenData in the store from its index
func (Keeper) SetTokenDataToAccount ¶
func (Keeper) TokenData ¶
func (k Keeper) TokenData(c context.Context, req *types.QueryGetTokenDataRequest) (*types.QueryGetTokenDataResponse, error)
func (Keeper) TokenDataAll ¶
func (k Keeper) TokenDataAll(c context.Context, req *types.QueryAllTokenDataRequest) (*types.QueryAllTokenDataResponse, error)
Click to show internal directories.
Click to hide internal directories.