package
0.0.0-20200112091419-def7031ee614
Repository: https://github.com/cicizeo/hilo.git
Documentation: pkg.go.dev

# Functions

AggregateVoteHashFromHexString convert hex string to AggregateVoteHash.
DefaultGenesisState returns the default genesesis state for the x/oracle module.
DefaultParams creates default oracle module parameters.
ExtractDenomFromTobinTaxKey - split denom from the tobin tax key.
GenerateRandomTestCase nolint.
GetAggregateExchangeRatePrevoteKey - stored by *Validator* address.
GetAggregateExchangeRateVoteKey - stored by *Validator* address.
GetAggregateVoteHash computes hash value of ExchangeRateVote to avoid redundant DecCoins stringify operation, use string argument.
GetExchangeRateKey - stored by *denom*.
GetFeederDelegationKey - stored by *Validator* address.
GetGenesisStateFromAppState returns x/oracle GenesisState given raw application genesis state.
GetMissCounterKey - stored by *Validator* address.
GetTobinTaxKey - stored by *denom* bytes.
No description provided by the author
No description provided by the author
NewClaim generates a Claim instance.
NewDummyStakingKeeper returns new DummyStakingKeeper instance.
NewExchangeRateTuple creates a ExchangeRateTuple instance.
NewGenesisState creates a new GenesisState object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMsgDelegateFeedConsent creates a MsgDelegateFeedConsent instance.
NewQueryAggregatePrevoteParams returns params for feeder delegation query.
NewQueryAggregateVoteParams returns params for feeder delegation query.
No description provided by the author
NewQueryExchangeRateParams returns params for exchange_rate query.
NewQueryFeederDelegationParams returns params for feeder delegation query.
NewQueryMissCounterParams returns params for feeder delegation query.
NewQueryPrevotesParams returns params for exchange_rate prevotes query.
NewQueryTobinTaxParams returns params for tobin tax query.
NewQueryVotesParams returns params for exchange_rate votes query.
NewVoteForTally returns a new VoteForTally instance.
ParamKeyTable returns the parameter key table.
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.
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

Denomination constants.
Denomination constants.
Denomination constants.
Denomination constants.
Denomination constants.
Denomination constants.
window for a year.
window for a week.
30 seconds.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Oracle module event types.
Denomination constants.
Denomination constants.
Denomination constants.
ModuleName is the name of the oracle module.
OracleDecPrecision nolint.
QuerierRoute is the query router key for the oracle module.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
Defines the prefix of each query path.
RouterKey is the msg router key for the oracle module.
StoreKey is the string store representation.
Messages types constants.
Messages types constants.
Messages types constants.
Denomination constants.

# Variables

prefix for each key to a aggregate prevote.
prefix for each key to a aggregate vote.
5%.
2% (-1, 1).
0.01%.
0.25%.
50%.
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
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
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
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
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
Oracle sentinel errors nolint: lll.
Oracle sentinel errors nolint: lll.
prefix for each key to a rate.
prefix for each key to a feeder delegation.
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 miss counter.
prefix for each key to a tobin tax.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
prefix for each key to a miss counter.
ModuleCdc references the global x/oracle module codec.
prefix for each key to a tobin tax.

# Structs

struct for aggregate prevoting on the ExchangeRateVote.
MsgAggregateExchangeRateVote - struct for voting on the exchange rates of USD denominated in various assets.
Claim is an interface that directs its rewards to an attached bank account.
Denom - the object to hold configurations of each denom.
DummyStakingKeeper dummy staking keeper to test ballot.
No description provided by the author
ExchangeRateTuple - struct to store interpreted exchange rates data to store.
No description provided by the author
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 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.
Params defines the parameters for the oracle module.
QueryActivesRequest is the request type for the Query/Actives RPC method.
QueryActivesResponse is response type for the Query/Actives RPC method.
QueryAggregatePrevoteParams defines the params for the following queries: - 'custom/oracle/aggregatePrevote'.
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.
QueryAggregateVoteParams defines the params for the following queries: - 'custom/oracle/aggregateVote'.
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.
QueryExchangeRateParams defines the params for the following queries: - 'custom/oracle/exchange_rate'.
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.
QueryFeederDelegationParams defeins the params for the following queries: - 'custom/oracle/feederDelegation'.
QueryFeederDelegationRequest is the request type for the Query/FeederDelegation RPC method.
QueryFeederDelegationResponse is response type for the Query/FeederDelegation RPC method.
QueryMissCounterParams defines the params for the following queries: - 'custom/oracle/missCounter'.
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.
QueryPrevotesParams defines the params for the following queries: - 'custom/oracle/prevotes'.
QueryTobinTaxesRequest is the request type for the Query/TobinTaxes RPC method.
QueryTobinTaxesResponse is response type for the Query/TobinTaxes RPC method.
QueryTobinTaxParams defines the params for the following queries: - 'custom/oracle/tobinTax'.
QueryTobinTaxRequest is the request type for the Query/TobinTax RPC method.
QueryTobinTaxResponse is response type for the Query/TobinTax RPC method.
QueryVotesParams defines the params for the following queries: - 'custom/oracle/votes'.
QueryVoteTargetsRequest is the request type for the Query/VoteTargets RPC method.
QueryVoteTargetsResponse is response type for the Query/VoteTargets RPC method.
TobinTax defines an denom and tobin_tax pair used in oracle module's genesis state.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
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.
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 hex string in SHA256("{salt}:{exchange rate}{denom},...,{exchange rate}{denom}:{voter}").
DenomList is array of Denom.
ExchangeRateBallot is a convenience wrapper around a ExchangeRateVote slice.
ExchangeRateTuples - array of ExchangeRateTuple.
No description provided by the author