Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- type Keeper
- func (k Keeper) CreateDenom(ctx context.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAuthorityMetadata(ctx context.Context, denom string) (types.DenomAuthorityMetadata, error)
- func (k Keeper) GetBeforeSendHook(ctx context.Context, denom string) string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) Logger(ctx context.Context) log.Logger
- func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- type Querier
- func (q Querier) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error)
- func (q Querier) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error)
- func (q Querier) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFromCreatorRequest) (*types.QueryDenomsFromCreatorResponse, error)
- func (q Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for bank keeper
func (Hooks) BlockBeforeSend ¶
func (h Hooks) BlockBeforeSend(ctx context.Context, from, to sdk.AccAddress, amount sdk.Coins) error
TrackBeforeSend calls the before send listener contract returns any errors
func (Hooks) TrackBeforeSend ¶
TrackBeforeSend calls the before send listener contract suppresses any errors
type Keeper ¶
type Keeper struct { Schema collections.Schema // key = [creator,denom], value = metadata CreatorDenoms collections.KeySet[collections.Pair[string, string]] DenomAuthority collections.Map[string, types.DenomAuthorityMetadata] DenomHookAddr collections.Map[string, string] Params collections.Item[types.Params] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( ac address.Codec, cdc codec.Codec, storeService corestoretypes.KVStoreService, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, communityPoolKeeper types.CommunityPoolKeeper, authority string, ) Keeper
NewKeeper returns a new instance of the x/tokenfactory keeper
func (Keeper) CreateDenom ¶
func (k Keeper) CreateDenom(ctx context.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error)
ConvertToBaseToken converts a fee amount in a whitelisted fee token to the base fee token amount
func (Keeper) CreateModuleAccount ¶
CreateModuleAccount creates a module account with minting and burning capabilities This account isn't intended to store any coins, it purely mints and burns them on behalf of the admin of respective denoms, and sends to the relevant address.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the tokenfactory module's exported genesis.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/tokenfactory module's authority.
func (Keeper) GetAuthorityMetadata ¶
func (k Keeper) GetAuthorityMetadata(ctx context.Context, denom string) (types.DenomAuthorityMetadata, error)
GetAuthorityMetadata returns the authority metadata for a specific denom
func (Keeper) GetBeforeSendHook ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
InitGenesis initializes the tokenfactory module's state from a provided genesis state.
func (*Keeper) SetContractKeeper ¶
func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper)
Set the wasm keeper.
type Querier ¶
type Querier struct {
*Keeper
}
func (Querier) BeforeSendHookAddress ¶
func (q Querier) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error)
func (Querier) DenomAuthorityMetadata ¶
func (q Querier) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error)
func (Querier) DenomsFromCreator ¶
func (q Querier) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFromCreatorRequest) (*types.QueryDenomsFromCreatorResponse, error)
func (Querier) Params ¶
func (q Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)