package
1.5.0
Repository: https://github.com/nibiruchain/nibiru.git
Documentation: pkg.go.dev

# Functions

AggregateVoteHashFromHexString convert hex string to AggregateVoteHash.
DefaultGenesisState - default GenesisState.
DefaultParams creates default oracle module parameters.
GenerateRandomTestCase nolint.
GetAggregateVoteHash computes hash value of ExchangeRateVote to avoid redundant DecCoins stringify operation, use string argument TODO(mercilex): use ExchangeRateTuples.
GetGenesisStateFromAppState returns x/oracle GenesisState given raw application genesis state.
GrpcQueryServiceDesc represents the query server's RPC service specification.
IsPeriodLastBlock returns true if we are at the last block of the period.
NewAggregateExchangeRatePrevote returns AggregateExchangeRatePrevote object.
NewAggregateExchangeRateVote creates a AggregateExchangeRateVote instance.
NewDummyStakingKeeper returns new DummyStakingKeeper instance.
NewExchangeRateTuple creates a ExchangeRateTuple instance.
NewExchangeRateTupleFromString populates ExchangeRateTuple from a string, fails if the string is of invalid format.
No description provided by the author
NewExchangeRateVote returns a new ExchangeRateVote instance.
NewGenesisState creates a new GenesisState object.
No description provided by the author
NewMsgAggregateExchangeRatePrevote returns MsgAggregateExchangeRatePrevote instance.
NewMsgAggregateExchangeRateVote returns MsgAggregateExchangeRateVote instance TODO(mercilex): accept ExchangeRatesTuples.
No description provided by the author
NewMsgDelegateFeedConsent creates a MsgDelegateFeedConsent instance.
No description provided by the author
NewValidatorPerformance generates a ValidatorPerformance instance.
ParseExchangeRateTuples ExchangeRateTuple 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.
RegisterMsgHandler registers the http handlers for service Msg to "mux".
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux".
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux".
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

30 minutes.
minimum of 4 voters for a pair to become valid.
2 hours.
vote every 1 minute.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleName is the name of the oracle module.
OracleDecPrecision nolint.
QuerierRoute is the query router key for the oracle module.
RouterKey is the msg router key for the oracle module.
StoreKey is the string store representation.
oracle message types.
oracle message types.
oracle message types.
oracle message types.

# Variables

69%.
2% (-1, 1).
0.5%.
15 minutes.
0.05%.
33.33%.
Default parameter values.
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 Errors.
Oracle Errors.
Oracle 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 Errors.
Oracle Errors.
Oracle Errors.
Oracle Errors.
Oracle Errors.
Oracle Errors.
Oracle Errors.
Oracle 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 Errors.
Oracle Errors.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
ModuleCdc references the global x/oracle module codec.

# Structs

Struct for aggregate prevoting on the ExchangeRateVote.
MsgAggregateExchangeRateVote - struct for voting on the exchange rates different assets.
No description provided by the author
DummyStakingKeeper dummy staking keeper to test votes.
Emitted by MsgAggregateExchangePrevote when an aggregate prevote is added to state.
Emitted by MsgAggregateExchangeVote when an aggregate vote is added to state.
Emitted when a valoper delegates oracle voting rights to a feeder address.
Emitted when a price is posted.
ExchangeRateTuple - struct to store interpreted exchange rates data to store.
ExchangeRateVote is a convenience wrapper to reduce redundant lookup cost.
FeederDelegation is the address for where oracle feeder authority are delegated to.
GenesisState defines the oracle module's genesis state.
MissCounter defines an miss counter and validator address pair used in oracle module's genesis state.
MockValidator nolint.
MsgAggregateExchangeRatePrevote represents a message to submit aggregate exchange rate prevote.
MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type.
MsgAggregateExchangeRateVote represents a message to submit aggregate 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.
No description provided by the author
No description provided by the author
No description provided by the author
Params defines the module parameters for the x/oracle module.
a snapshot of the prices at a given point in time.
QueryActivesRequest is the request type for the Query/Actives RPC method.
QueryActivesResponse is response type for the Query/Actives RPC method.
QueryAggregatePrevoteRequest is the request type for the Query/AggregatePrevote RPC method.
QueryAggregatePrevoteResponse is response type for the Query/AggregatePrevote RPC method.
QueryAggregatePrevotesRequest is the request type for the Query/AggregatePrevotes RPC method.
QueryAggregatePrevotesResponse is response type for the Query/AggregatePrevotes RPC method.
QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC method.
QueryAggregateVoteResponse is response type for the Query/AggregateVote RPC method.
QueryAggregateVotesRequest is the request type for the Query/AggregateVotes RPC method.
QueryAggregateVotesResponse is response type for the Query/AggregateVotes RPC method.
QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC method.
QueryExchangeRateResponse is response type for the Query/ExchangeRate RPC method.
QueryExchangeRatesRequest is the request type for the Query/ExchangeRates RPC method.
QueryExchangeRatesResponse is response type for the Query/ExchangeRates RPC method.
QueryFeederDelegationRequest is the request type for the Query/FeederDelegation RPC method.
QueryFeederDelegationResponse is response type for the Query/FeederDelegation RPC method.
QueryMissCounterRequest is the request type for the Query/MissCounter RPC method.
QueryMissCounterResponse is response type for the Query/MissCounter RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryVoteTargetsRequest is the request type for the Query/VoteTargets RPC method.
QueryVoteTargetsResponse is response type for the Query/VoteTargets RPC method.
Rewards defines a credit object towards validators which provide prices faithfully for different pairs.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValidatorPerformance keeps track of a validator performance in the voting period.

# Interfaces

AccountKeeper is expected keeper for auth module.
BankKeeper defines the expected interface needed to retrieve account balances.
DistributionKeeper is expected keeper for distribution module.
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.
No description provided by the author
StakingKeeper is expected keeper for staking module.

# Type aliases

AggregateVoteHash is hash value to hide vote exchange rates which is formatted as hex string in SHA256("{salt}:({pair},{exchange_rate})|...|({pair},{exchange_rate}):{voter}").
ExchangeRateTuples - array of ExchangeRateTuple.
ExchangeRateVotes is a convenience wrapper around a ExchangeRateVote slice.
No description provided by the author