Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddDenomFromCreator(ctx sdk.Context, creator, denom string)
- func (k Keeper) CreateDenom(ctx sdk.Context, creator string, subdenom string) (newTokenDenom string, err error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllDenomsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetAuthorityMetadata(ctx sdk.Context, denom string) types.DenomAuthorityMetadata
- func (k Keeper) GetCreatorPrefixStore(ctx sdk.Context, creator string) sdk.KVStore
- func (k Keeper) GetCreatorsPrefixStore(ctx sdk.Context) sdk.KVStore
- func (k Keeper) GetDenomPrefixStore(ctx sdk.Context, denom string) sdk.KVStore
- func (k Keeper) GetDenomsFromCreator(ctx sdk.Context, creator string) []string
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(ctx context.Context, request *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetAuthorityMetadata(ctx sdk.Context, denom string, metadata types.DenomAuthorityMetadata) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SubspaceDenoms(ctx context.Context, request *types.QuerySubspaceDenomsRequest) (*types.QuerySubspaceDenomsResponse, error)
- func (k Keeper) ValidateManageTokenPermission(ctx sdk.Context, subspace subspacestypes.Subspace, sender string, denom string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the stored MsgServer interface for the provided keeper
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( storeKey storetypes.StoreKey, cdc codec.BinaryCodec, sk types.SubspacesKeeper, ak types.AccountKeeper, bk types.BankKeeper, authority string, ) Keeper
NewKeeper returns a new instance of the x/tokenfactory keeper
func (Keeper) AddDenomFromCreator ¶
func (Keeper) CreateDenom ¶
func (k Keeper) CreateDenom(ctx sdk.Context, creator 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) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the tokenfactory module's exported genesis.
func (Keeper) GetAllDenomsIterator ¶
func (Keeper) GetAuthorityMetadata ¶
GetAuthorityMetadata returns the authority metadata for a specific denom
func (Keeper) GetCreatorPrefixStore ¶
GetCreatorPrefixStore returns the substore for a specific creator address
func (Keeper) GetCreatorsPrefixStore ¶
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) Params ¶
func (k Keeper) Params(ctx context.Context, request *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params implements the Query/Params gRPC method
func (Keeper) SetAuthorityMetadata ¶
func (k Keeper) SetAuthorityMetadata(ctx sdk.Context, denom string, metadata types.DenomAuthorityMetadata) error
SetAuthorityMetadata stores authority metadata for a specific denom
func (Keeper) SubspaceDenoms ¶
func (k Keeper) SubspaceDenoms(ctx context.Context, request *types.QuerySubspaceDenomsRequest) (*types.QuerySubspaceDenomsResponse, error)
SubspaceDenoms implements the Query/SubspaceDenoms gRPC method
func (Keeper) ValidateManageTokenPermission ¶
func (k Keeper) ValidateManageTokenPermission(ctx sdk.Context, subspace subspacestypes.Subspace, sender string, denom string) error
ValidateManageTokenPermission validates the sender has the manage denom permission to the subspace tokens inside the given subspace