# Packages
No description provided by the author
# Functions
DefaultGenesisState returns a default genesis state for the oracle module.
GetGenesisStateFromAppState returns x/oracle GenesisState given raw application genesis state.
No description provided by the author
No description provided by the author
NewCurrencyPairState returns a new CurrencyPairState given an ID, nonce, and QuotePrice.
NewGenesisState returns a new genesis-state from a set of CurrencyPairGeneses.
NewMsgAddCurrencyPairs returns a new message from a set of currency-pairs and an authority.
No description provided by the author
NewMsgRemoveCurrencyPairs returns a new message to remove a set of currency-pairs from the x/oracle module's state.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterInterfaces registers the x/oracle messages + message service w/ the InterfaceRegistry (registry).
RegisterLegacyAminoCodec registers the necessary x/oracle interfaces (messages) on the cdc.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
# Constants
ModuleName is the name of module for external use.
StoreKey is the top-level store key for the oracle module.
# Variables
CounterCodec is the collections.KeyCodec value used for the counter values.
CurrencyPairIDKeyPrefix is the key-prefix under which the next currency-pairID is stored.
CurrencyPairKeyPrefix is the key-prefix under which currency-pair state is stored.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IDIndexCurrencyPairKeyPrefix is the key-prefix under which a currency-pair index.
No description provided by the author
NumCPsKeyPrefix is the key-prefix under which the number CPs is stored.
NumRemovesKeyPrefix is the key-prefix under which the number of removed CPs is stored.
No description provided by the author
UniqueIndexCurrencyPairKeyPrefix is the key-prefix under which the unique index on currency-pairs is stored.
# Structs
No description provided by the author
CurrencyPairGenesis is the information necessary for initialization of a CurrencyPair.
No description provided by the author
CurrencyPairState represents the stateful information tracked by the x/oracle module per-currency-pair.
GenesisState is the genesis-state for the x/oracle module, it takes a set of predefined CurrencyPairGeneses.
No description provided by the author
GetAllCurrencyPairsResponse returns all CurrencyPairs that the module is currently tracking.
GetCurrencyPairMappingRequest is the GetCurrencyPairMapping request type.
GetCurrencyPairMappingResponse is the GetCurrencyPairMapping response type.
GetPriceRequest takes an identifier for the CurrencyPair in the format base/quote.
GetPriceResponse is the response from the GetPrice grpc method exposed from the x/oracle query service.
GetPricesRequest takes an identifier for the CurrencyPair in the format base/quote.
GetPricesResponse is the response from the GetPrices grpc method exposed from the x/oracle query service.
Given an authority + a set of CurrencyPairs, the x/oracle module will check to see that the authority has permissions to update the set of CurrencyPairs tracked in the oracle, and add the given CurrencyPairs to be tracked in each VoteExtension.
No description provided by the author
Given an authority + a set of CurrencyPairIDs, the x/oracle module's message service will remove all of the CurrencyPairs identified by each CurrencyPairID in the request from state.
No description provided by the author
QuotePrice is the representation of the aggregated prices for a CurrencyPair, where price represents the price of Base in terms of Quote.
No description provided by the author
QuotePriceWithNonce is a wrapper around the QuotePrice object which also contains a nonce.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
# Interfaces
MarketMapKeeper is the expected keeper interface for the market map keeper.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.