Documentation ¶
Overview ¶
nolint
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddFanToken(ctx sdk.Context, token *types.FanToken) error
- func (k Keeper) Burn(ctx sdk.Context, coin sdk.Coin, owner sdk.AccAddress) error
- func (k Keeper) FanToken(c context.Context, req *types.QueryFanTokenRequest) (*types.QueryFanTokenResponse, error)
- func (k Keeper) FanTokens(c context.Context, req *types.QueryFanTokensRequest) (*types.QueryFanTokensResponse, error)
- func (k Keeper) GetFanToken(ctx sdk.Context, denom string) (*types.FanToken, error)
- func (k Keeper) GetFanTokens(ctx sdk.Context, owner sdk.AccAddress) (fantokens []types.FanToken)
- func (k Keeper) GetParamSet(ctx sdk.Context) types.Params
- func (k Keeper) HasFanToken(ctx sdk.Context, denom string) bool
- func (k Keeper) Issue(ctx sdk.Context, name, symbol, uri string, maxSupply sdk.Int, ...) (denom string, err error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, minter, recipient sdk.AccAddress, coin sdk.Coin) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetAuthority(ctx sdk.Context, denom string, oldAuthority, newAuthority sdk.AccAddress) error
- func (k Keeper) SetMinter(ctx sdk.Context, denom string, oldMinter, newMinter sdk.AccAddress) error
- func (k Keeper) SetParamSet(ctx sdk.Context, params types.Params)
- func (k Keeper) SetUri(ctx sdk.Context, denom, newUri string, authority sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the token MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, key sdk.StoreKey, paramSpace types.ParamSubspace, ak types.AccountKeeper, bankKeeper types.BankKeeper, distrKeeper types.DistrKeeper, blockedAddrs map[string]bool, ) Keeper
func (Keeper) AddFanToken ¶
AddFanToken saves a new token
func (Keeper) FanToken ¶
func (k Keeper) FanToken(c context.Context, req *types.QueryFanTokenRequest) (*types.QueryFanTokenResponse, error)
func (Keeper) FanTokens ¶
func (k Keeper) FanTokens(c context.Context, req *types.QueryFanTokensRequest) (*types.QueryFanTokensResponse, error)
func (Keeper) GetFanToken ¶
GetFanToken returns the fantoken of the specified denom
func (Keeper) GetFanTokens ¶
GetFanTokens returns all existing fantokens
func (Keeper) GetParamSet ¶
GetParamSet returns fantoken params from the global param store
func (Keeper) HasFanToken ¶
HasFanToken asserts a fantoken exists
func (Keeper) Issue ¶
func (k Keeper) Issue(ctx sdk.Context, name, symbol, uri string, maxSupply sdk.Int, minter, authority sdk.AccAddress) (denom string, err error)
Issue issues a new fantoken
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params return the all the parameter in fantoken module
func (Keeper) SetAuthority ¶
func (k Keeper) SetAuthority(ctx sdk.Context, denom string, oldAuthority, newAuthority sdk.AccAddress) error
SetAuthority transfers the authority of the specified fantoken to a new one
func (Keeper) SetParamSet ¶
SetParamSet sets fantoken params to the global param store
Click to show internal directories.
Click to hide internal directories.