Documentation ¶
Index ¶
- func NewMsgServer(k *Keeper) types.MsgServer
- func NewQueryServer(k *Keeper) types.QueryServer
- type Keeper
- func (k *Keeper) ExportGenesis(ctx sdk.Context) (*types.GenesisState, error)
- func (k *Keeper) GetAsset(ctx context.Context, denom string) (types.Asset, error)
- func (k *Keeper) GetAuthority() string
- func (k *Keeper) InitGenesis(ctx sdk.Context, state *types.GenesisState) error
- func (k *Keeper) Logger(ctx context.Context) log.Logger
- func (k *Keeper) RemoveAsset(ctx context.Context, denom string) error
- func (k *Keeper) SetAsset(ctx context.Context, asset types.Asset) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServer ¶
func NewQueryServer ¶
func NewQueryServer(k *Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Assets collections.Map[string, types.Asset] // denom => types.Asset TickerIndexes collections.KeySet[collections.Pair[string, string]] // ticker + denom => nil // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeService corestoretypes.KVStoreService, authority string, ) *Keeper
func (*Keeper) ExportGenesis ¶
ExportGenesis returns the GenesisState associated with the given context
func (*Keeper) GetAsset ¶
GetAsset retrieves an asset from the store. If the asset does not exist, a collections.ErrNotFound error is returned.
func (*Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (*Keeper) InitGenesis ¶
InitGenesis initializes the state from a GenesisState
func (*Keeper) RemoveAsset ¶
RemoveAsset removes the asset having the given denom from the store. If the asset does not exist, a collections.ErrNotFound error is returned.
Click to show internal directories.
Click to hide internal directories.