Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) oracle.MsgServer
- func NewQueryServerImpl(k Keeper) oracle.QueryServer
- type AggregatedProviderPrices
- type CurrencyPair
- type Keeper
- func (k *Keeper) ExportGenesis(ctx context.Context) (*oracle.GenesisState, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetOraclePrices(ctx context.Context) (map[string]math.LegacyDec, error)
- func (k Keeper) GetSupportedPairs(_ context.Context) []CurrencyPair
- func (k *Keeper) InitGenesis(ctx context.Context, data *oracle.GenesisState) error
- func (k Keeper) SetOraclePrices(ctx context.Context, prices map[string]math.LegacyDec) error
- type Migrator
- type TickerPrice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) oracle.QueryServer
NewQueryServerImpl returns an implementation of the module QueryServer.
Types ¶
type AggregatedProviderPrices ¶
type AggregatedProviderPrices map[string]map[string]TickerPrice
AggregatedProviderPrices defines a type alias for a map of provider -> asset -> TickerPrice (e.g. Binance -> ATOM/USD -> 11.98)
type CurrencyPair ¶
func (CurrencyPair) String ¶
func (cp CurrencyPair) String() string
type Keeper ¶
type Keeper struct { // state management Schema collections.Schema Counter collections.Map[string, uint64] Prices collections.Map[string, []byte] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService, authority string) Keeper
NewKeeper creates a new Keeper instance
func (*Keeper) ExportGenesis ¶
ExportGenesis exports the module state to a genesis state.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetOraclePrices ¶
func (Keeper) GetSupportedPairs ¶
func (k Keeper) GetSupportedPairs(_ context.Context) []CurrencyPair
func (*Keeper) InitGenesis ¶
InitGenesis initializes the module state from a genesis state.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func NewMigrator ¶
NewMigrator returns Migrator instance for the state migration.
Click to show internal directories.
Click to hide internal directories.