# Functions
AggregateVoteHashFromHexString convert hex string to AggregateVoteHash.
BallotMapToSlice returns an array of sorted exchange rate ballots.
ClaimMapToSlices returns an array of sorted exchange rate ballots and uses the rewardSet to return a second array of claims that are eligible to earn rewards in the current Slash Window.
DefaultGenesisState returns the default genesesis state for the x/oracle module.
DefaultParams creates default oracle module parameters.
DefaultRewardBands returns a new default RewardBandList object.
GetAggregateExchangeRatePrevoteKey - stored by *Validator* address.
GetAggregateExchangeRateVoteKey - stored by *Validator* address.
GetAggregateVoteHash computes hash value of ExchangeRateVote to avoid redundant DecCoins stringify operation.
GetExchangeRateKey - stored by *denom*.
GetFeederDelegationKey - stored by *Validator* address.
GetGenesisStateFromAppState returns x/oracle GenesisState given raw application genesis state.
GetMissCounterKey - stored by *Validator* address.
KeyHistoricPrice - stored by *denom* and *block*.
KeyMedian - stored by *denom*.
KeyMedianDeviation - stored by *denom*.
KeyParamUpdatePlan - stored by *planHeight*.
KeyValidatorRewardSet - stored by *block*.
No description provided by the author
No description provided by the author
NewClaim generates a Claim instance.
NewGenesisState creates a new GenesisState object.
NewLegacyMsgUpdateParams will creates a new LegacyMsgUpdateParams instance.
No description provided by the author
No description provided by the author
No description provided by the author
NewMsgDelegateFeedConsent creates a MsgDelegateFeedConsent instance.
NewMsgGovAddDenoms will creates a new NewMsgGovAddDenoms instance.
NewMsgGovCancelUpdateParamPlan will creates a new MsgGovCancelUpdateParamPlan instance.
NewMsgGovRemoveCurrencyDeviationThresholds will creates a new NewMsgGovRemoveCurrencyDeviationThresholds instance.
NewMsgGovRemoveCurrencyPairProviders will creates a new NewMsgGovRemoveCurrencyPairProviders instance.
NewMsgUpdateParams will creates a new MsgUpdateParams instance.
No description provided by the author
No description provided by the author
NewVoteForTally returns a new VoteForTally instance.
ParamKeyTable returns the parameter key table.
ParseDenomAndBlockFromKey returns the denom and block contained in the *key* that has a uint64 at the end with a null prefix (length 9).
ParseExchangeRateDecCoins DecCoins parser.
RegisterInterfaces registers the x/oracle interfaces types with the interface registry.
RegisterLegacyAminoCodec registers the necessary x/oracle interfaces and concrete types on the provided LegacyAmino codec.
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
ValidateGenesis validates the oracle genesis state.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
oracle module event types.
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
window for 3 minutes.
retain for 3 days.
retain for 3 hours.
window for 3 hours.
window for a year.
window for a week.
Default parameter values.
No description provided by the author
No description provided by the author
No description provided by the author
oracle module event types.
must be 10^MaxVoteThresholdPrecision.
maxium number of decimals allowed for VoteThreshold.
No description provided by the author
ModuleName is the name of the oracle module.
No description provided by the author
No description provided by the author
No description provided by the author
QuerierRoute is the query router key for the oracle module.
RouterKey is the message route.
StoreKey is the string store representation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Default parameter values.
Default parameter values.
Default parameter values.
Default parameter values.
5%.
0.01%.
50%.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
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
Oracle sentinel errors.
Oracle sentinel errors.
nolint: lll.
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
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
nolint: lll.
nolint: lll.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
Oracle sentinel errors.
nolint: lll.
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
Oracle sentinel errors.
Oracle sentinel errors.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
prefix for each key to a aggregate prevote.
prefix for each key to a aggregate vote.
prefix for each key to a rate.
prefix for each key to a feeder delegation.
prefix for each key to a historic price.
prefix for each key to a price median.
prefix for each key to a price median standard deviation.
prefix for each key to a miss counter.
prefix for each key to a param update plan.
prefix for each key to a validator reward set.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
ModuleCdc references the global x/oracle module codec.
# Structs
AggregateExchangeRatePrevote - struct for aggregate prevoting on the ExchangeRateVote.
AggregateExchangeRateVote - struct for voting on the exchange rates of USD denominated in various assets.
BallotDenom is a convenience wrapper for setting rates deterministically.
Claim is an interface that directs its rewards to an attached bank account.
CurrencyDeviationThreshold defines a deviation theshold for a base denom.
CurrencyPairProviders defines a list of currency providers for the currency pair defined by base and quote.
Denom - the object to hold configurations of each denom.
EventDelegateFeedConsent is emitted on Msg/DelegateFeedConsent.
EventSetFxRate is emitted on exchange rate update.
No description provided by the author
No description provided by the author
FeederDelegation is the address for where oracle feeder authority are delegated to.
GasEstimate defines a gas estimate for a given network.
GenesisState defines the oracle module's genesis state.
InjectedVoteExtensionTx defines the vote extension tx injected by the prepare proposal handler.
MissCounter defines an miss counter and validator address pair used in oracle module's genesis state.
MsgAggregateExchangeRatePrevote represents a message to submit an aggregate exchange rate prevote.
MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type.
MsgAggregateExchangeRateVote represents a message to submit anaggregate exchange rate vote.
MsgAggregateExchangeRateVoteResponse defines the Msg/AggregateExchangeRateVote response type.
MsgDelegateFeedConsent represents a message to delegate oracle voting rights to another address.
MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response type.
MsgGovAddDenoms defines the Msg/GovAddDenoms request type.
MsgGovAddDenomResponse defines the Msg/GovAddDenomResponse response type.
MsgGovCancelUpdateParamPlan defines the Msg/GovCancelUpdateParamPlan request type.
MsgGovCancelUpdateParamPlanResponse defines the Msg/GovCancelUpdateParamPlanResponse response type.
MsgGovRemoveCurrencyDeviationThresholds defines the Msg/GovRemoveCurrencyDeviationThresholds request type.
MsgGovRemoveCurrencyDeviationThresholdsResponse defines the Msg/GovRemoveCurrencyDeviationThresholdsResponse response type.
MsgGovRemoveCurrencyPairProviders defines the Msg/GovRemoveCurrencyPairProviders request type.
MsgGovRemoveCurrencyPairProvidersResponse defines the Msg/GovRemoveCurrencyPairProvidersResponse response type.
MsgGovUpdateParams defines the Msg/GovUpdateParams request type.
MsgGovUpdateParamsResponse defines the Msg/GovUpdateParams response type.
MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type.
MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams response type.
OracleVoteExtension defines the vote extension structure used by the oracle module.
PairAddressProvider defines the uniswap pair address and provider for uniswap currency pair.
Params defines the parameters for the oracle module.
ParamUpdatePlan specifies updates to the Oracle module parameters and at which block height they should occur.
PriceStamp defines a stamp of a denom's exchange rate at the block number it was calculated in.
QueryActiveExchangeRates is the request type for the Query/ActiveExchangeRates RPC method.
QueryActiveExchangeRatesResponse is response type for the Query/ActiveExchangeRates RPC method.
QueryAggregatePrevote is the request type for the Query/AggregatePrevote RPC method.
QueryAggregatePrevoteResponse is response type for the Query/AggregatePrevote RPC method.
QueryAggregatePrevotes is the request type for the Query/AggregatePrevotes RPC method.
QueryAggregatePrevotesResponse is response type for the Query/AggregatePrevotes RPC method.
QueryAggregateVote is the request type for the Query/AggregateVote RPC method.
QueryAggregateVoteResponse is response type for the Query/AggregateVote RPC method.
QueryAggregateVotes is the request type for the Query/AggregateVotes RPC method.
QueryAggregateVotesResponse is response type for the Query/AggregateVotes RPC method.
QueryExchangeRates is the request type for the Query/ExchangeRate RPC method.
QueryExchangeRatesResponse is response type for the Query/ExchangeRates RPC method.
QueryFeederDelegation is the request type for the Query/FeederDelegation RPC method.
QueryFeederDelegationResponse is response type for the Query/FeederDelegation RPC method.
QueryMedianDeviations is the request type for the Query/MedianDeviations RPC Response.
QueryMedianDeviationsResponse is response type for the Query/MedianDeviations RPC method.
QueryMedians is the request type for the Query/Medians RPC Response.
QueryMediansResponse is response type for the Query/Medians RPC method.
QueryMissCounter is the request type for the Query/MissCounter RPC method.
QueryMissCounterResponse is response type for the Query/MissCounter RPC method.
QueryParams is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QuerySlashWindow is the request type for the Query/SlashWindow RPC method.
QuerySlashWindowResponse is response type for the Query/SlashWindow RPC method.
QueryValidatorRewardSet is the request type for the Query/ValidatorRewardSet RPC method.
QueryValidatorRewardSetResponse is the response type for the Query/ValidatorRewardSet RPC method.
RewardBand - the object to hold the reward band configuration for a given denom.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValidatorRewardSet is the set of validators that is earning rewards for voting on exchange rates based on their misscounter in a given Slash Window.
VoteForTally is a convenience wrapper to reduce redundant lookup cost.
# Interfaces
AccountKeeper defines the expected interface contract defined by the x/auth module.
BankKeeper defines the expected interface contract defined by the x/bank module.
DistributionKeeper defines the expected interface contract defined by the x/distribution module.
No description provided by the author
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.
StakingKeeper defines the expected interface contract defined by the x/staking module.
# Type aliases
AggregateVoteHash is hash value to hide vote exchange rates which is formatted as a HEX string: SHA256("{salt}:{symbol}:{exchangeRate},...,{symbol}:{exchangeRate}:{voter}").
CurrencyDeviationThresholdList is array of CurrencyDeviationThresholds.
CurrencyPairProvidersList is array of CurrencyPairProviders.
DenomList is array of Denom.
ExchangeRateBallot is a convenience wrapper around a ExchangeRateVote slice.
No description provided by the author
RewardBandList is array of RewardBand.
No description provided by the author