Documentation
¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) CreateDenom(ctx context.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error)
- func (k Keeper) CreateModuleAccount(ctx context.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllDenomsIterator(ctx context.Context) legacystoretypes.Iterator
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAuthorityMetadata(ctx context.Context, denom string) (types.DenomAuthorityMetadata, error)
- func (k Keeper) GetCreatorPrefixStore(ctx context.Context, creator string) legacystoretypes.KVStore
- func (k Keeper) GetCreatorsPrefixStore(ctx context.Context) legacystoretypes.KVStore
- func (k Keeper) GetDenomPrefixStore(ctx context.Context, denom string) legacystoretypes.KVStore
- func (k Keeper) GetDenomsFromCreator(ctx context.Context, creator string) []string
- func (k Keeper) GetParams(ctx context.Context) (p types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) IsModuleAcc(addr sdk.AccAddress) bool
- func (Keeper) Logger(ctx context.Context) log.Logger
- func (k Keeper) SetParams(ctx context.Context, p types.Params) error
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the x/mint MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService storetypes.KVStoreService, maccPerms map[string][]string, accountKeeper authkeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, distributionKeeper distrkeeper.Keeper, enabledCapabilities []string, 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) GetAllDenomsIterator ¶
func (k Keeper) GetAllDenomsIterator(ctx context.Context) legacystoretypes.Iterator
func (Keeper) GetAuthority ¶
GetAuthority returns the x/mint 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) GetCreatorPrefixStore ¶
GetCreatorPrefixStore returns the substore for a specific creator address
func (Keeper) GetCreatorsPrefixStore ¶
func (k Keeper) GetCreatorsPrefixStore(ctx context.Context) legacystoretypes.KVStore
GetCreatorsPrefixStore returns the substore that contains a list of creators
func (Keeper) GetDenomPrefixStore ¶
GetDenomPrefixStore returns the substore for a specific denom
func (Keeper) GetDenomsFromCreator ¶
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 ¶
func (k Keeper) IsModuleAcc(addr sdk.AccAddress) bool
IsModuleAcc checks if a given address is restricted