Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- type Keeper
- func (k Keeper) AllBeforeSendHooksAddresses(ctx context.Context, req *types.QueryAllBeforeSendHooksAddressesRequest) (*types.QueryAllBeforeSendHooksAddressesResponse, error)
- func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error)
- func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context)
- func (k Keeper) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error)
- func (k Keeper) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFromCreatorRequest) (*types.QueryDenomsFromCreatorResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllBeforeSendHooks(ctx sdk.Context) ([]string, []string)
- func (k Keeper) GetAllDenomsIterator(ctx sdk.Context) storetypes.Iterator
- func (k Keeper) GetAuthorityMetadata(ctx sdk.Context, denom string) (types.DenomAuthorityMetadata, error)
- func (k Keeper) GetBeforeSendHook(ctx sdk.Context, denom string) string
- func (k Keeper) GetCreatorPrefixStore(ctx sdk.Context, creator string) storetypes.KVStore
- func (k Keeper) GetCreatorsPrefixStore(ctx sdk.Context) storetypes.KVStore
- func (k Keeper) GetDenomPrefixStore(ctx sdk.Context, denom string) storetypes.KVStore
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) IsModuleAcc(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper)
- func (k Keeper) SetParam(ctx sdk.Context, key []byte, value interface{})
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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 {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( storeKey storetypes.StoreKey, paramSpace paramtypes.Subspace, maccPerms map[string][]string, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, communityPoolKeeper types.CommunityPoolKeeper, ) Keeper
NewKeeper returns a new instance of the x/tokenfactory keeper
func (Keeper) AllBeforeSendHooksAddresses ¶
func (k Keeper) AllBeforeSendHooksAddresses(ctx context.Context, req *types.QueryAllBeforeSendHooksAddressesRequest) (*types.QueryAllBeforeSendHooksAddressesResponse, error)
func (Keeper) BeforeSendHookAddress ¶
func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error)
func (Keeper) CreateDenom ¶
func (k Keeper) CreateDenom(ctx sdk.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) DenomAuthorityMetadata ¶
func (k Keeper) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error)
func (Keeper) DenomsFromCreator ¶
func (k Keeper) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFromCreatorRequest) (*types.QueryDenomsFromCreatorResponse, error)
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the tokenfactory module's exported genesis.
func (Keeper) GetAllBeforeSendHooks ¶
func (Keeper) GetAllDenomsIterator ¶
func (k Keeper) GetAllDenomsIterator(ctx sdk.Context) storetypes.Iterator
func (Keeper) GetAuthorityMetadata ¶
func (k Keeper) GetAuthorityMetadata(ctx sdk.Context, denom string) (types.DenomAuthorityMetadata, error)
GetAuthorityMetadata returns the authority metadata for a specific denom
func (Keeper) GetBeforeSendHook ¶
func (Keeper) GetCreatorPrefixStore ¶
GetCreatorPrefixStore returns the substore for a specific creator address
func (Keeper) GetCreatorsPrefixStore ¶
func (k Keeper) GetCreatorsPrefixStore(ctx sdk.Context) storetypes.KVStore
GetCreatorsPrefixStore returns the substore that contains a list of creators
func (Keeper) GetDenomPrefixStore ¶
GetDenomPrefixStore returns the substore for a specific denom
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) IsModuleAcc ¶
IsModuleAcc checks if a given address is restricted
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (*Keeper) SetContractKeeper ¶
func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper)
Set the wasm keeper.