Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AddToken(ctx sdk.Context, token types.Token) error
- func (k Keeper) DeductIssueTokenFee(ctx sdk.Context, owner sdk.AccAddress, symbol string) error
- func (k Keeper) DeductMintTokenFee(ctx sdk.Context, owner sdk.AccAddress, symbol string) error
- func (k Keeper) EditToken(ctx sdk.Context, msg types.MsgEditToken) error
- func (k Keeper) Fees(c context.Context, req *types.QueryFeesRequest) (*types.QueryFeesResponse, error)
- func (k Keeper) GetParamSet(ctx sdk.Context) types.Params
- func (k Keeper) GetToken(ctx sdk.Context, denom string) (types.TokenI, error)
- func (k Keeper) GetTokenIssueFee(ctx sdk.Context, symbol string) sdk.Coin
- func (k Keeper) GetTokenMintFee(ctx sdk.Context, symbol string) sdk.Coin
- func (k Keeper) GetTokens(ctx sdk.Context, owner sdk.AccAddress) (tokens []types.TokenI)
- func (k Keeper) HasToken(ctx sdk.Context, denom string) bool
- func (k Keeper) IssueToken(ctx sdk.Context, msg types.MsgIssueToken) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintToken(ctx sdk.Context, msg types.MsgMintToken) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParamSet(ctx sdk.Context, params types.Params)
- 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)
- func (k Keeper) TransferTokenOwner(ctx sdk.Context, msg types.MsgTransferTokenOwner) error
- type ValidateTokenFeeDecorator
Constants ¶
View Source
const ( FeeFactorBase = 3 FeeFactorExp = 4 )
fee factor formula: (ln(len({name}))/ln{base})^{exp}
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Marshaler, key sdk.StoreKey, paramSpace paramstypes.Subspace, bankKeeper types.BankKeeper, feeCollectorName string, ) Keeper
func (Keeper) DeductIssueTokenFee ¶
DeductIssueTokenFee performs fee handling for issuing token
func (Keeper) DeductMintTokenFee ¶
DeductMintTokenFee performs fee handling for minting token
func (Keeper) Fees ¶
func (k Keeper) Fees(c context.Context, req *types.QueryFeesRequest) (*types.QueryFeesResponse, error)
func (Keeper) GetParamSet ¶
GetParamSet returns token params from the global param store
func (Keeper) GetTokenIssueFee ¶
GetTokenIssueFee returns the token issurance fee
func (Keeper) GetTokenMintFee ¶
GetTokenMintFee returns the token minting fee
func (Keeper) IssueToken ¶
IssueToken issues a new token
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetParamSet ¶
SetParamSet set token params from the global param store
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)
func (Keeper) TransferTokenOwner ¶
TransferTokenOwner transfers the owner of the specified token to a new one
type ValidateTokenFeeDecorator ¶
type ValidateTokenFeeDecorator struct {
// contains filtered or unexported fields
}
func NewValidateTokenFeeDecorator ¶
func NewValidateTokenFeeDecorator(k Keeper, bk types.BankKeeper) ValidateTokenFeeDecorator
func (ValidateTokenFeeDecorator) AnteHandle ¶
func (dtf ValidateTokenFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle returns an AnteHandler that checks if the balance of the fee payer is sufficient for token related fee
Click to show internal directories.
Click to hide internal directories.