Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/oracle/internal/types/ ALIASGEN: github.com/terra-project/core/x/oracle/internal/keeper/
nolint:deadcode unused DONTCOVER
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- func SlashAndResetMissCounters(ctx sdk.Context, k Keeper)
- type AggregateExchangeRatePrevote
- type AggregateExchangeRateVote
- type AggregateVoteHash
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Claim
- type Denom
- type DenomList
- type DistributionKeeper
- type ExchangeRateBallot
- type ExchangeRatePrevote
- type ExchangeRatePrevotes
- type ExchangeRateTuple
- type ExchangeRateTuples
- type ExchangeRateVote
- type ExchangeRateVotes
- type GenesisState
- type Keeper
- type MsgAggregateExchangeRatePrevote
- type MsgAggregateExchangeRateVote
- type MsgDelegateFeedConsent
- type MsgExchangeRatePrevote
- type MsgExchangeRateVote
- type Params
- type QueryAggregatePrevoteParams
- type QueryAggregateVoteParams
- type QueryExchangeRateParams
- type QueryFeederDelegationParams
- type QueryMissCounterParams
- type QueryPrevotesParams
- type QueryTobinTaxParams
- type QueryVotesParams
- type StakingKeeper
- type SupplyKeeper
- type VoteForTally
- type VoteHash
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = types.DefaultParamspace DefaultVotePeriod = types.DefaultVotePeriod DefaultSlashWindow = types.DefaultSlashWindow DefaultRewardDistributionWindow = types.DefaultRewardDistributionWindow QueryParameters = types.QueryParameters QueryExchangeRate = types.QueryExchangeRate QueryExchangeRates = types.QueryExchangeRates QueryActives = types.QueryActives QueryPrevotes = types.QueryPrevotes QueryVotes = types.QueryVotes QueryFeederDelegation = types.QueryFeederDelegation QueryMissCounter = types.QueryMissCounter QueryAggregatePrevote = types.QueryAggregatePrevote QueryAggregateVote = types.QueryAggregateVote QueryVoteTargets = types.QueryVoteTargets QueryTobinTax = types.QueryTobinTax QueryTobinTaxes = types.QueryTobinTaxes )
Variables ¶
var ( // functions aliases NewVoteForTally = types.NewVoteForTally NewClaim = types.NewClaim RegisterCodec = types.RegisterCodec NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis GetVoteHash = types.GetVoteHash VoteHashFromHexString = types.VoteHashFromHexString GetAggregateVoteHash = types.GetAggregateVoteHash AggregateVoteHashFromHexString = types.AggregateVoteHashFromHexString GetExchangeRatePrevoteKey = types.GetExchangeRatePrevoteKey GetVoteKey = types.GetVoteKey GetExchangeRateKey = types.GetExchangeRateKey GetFeederDelegationKey = types.GetFeederDelegationKey GetMissCounterKey = types.GetMissCounterKey GetAggregateExchangeRatePrevoteKey = types.GetAggregateExchangeRatePrevoteKey GetAggregateExchangeRateVoteKey = types.GetAggregateExchangeRateVoteKey GetTobinTaxKey = types.GetTobinTaxKey ExtractDenomFromTobinTaxKey = types.ExtractDenomFromTobinTaxKey NewMsgExchangeRatePrevote = types.NewMsgExchangeRatePrevote NewMsgExchangeRateVote = types.NewMsgExchangeRateVote NewMsgDelegateFeedConsent = types.NewMsgDelegateFeedConsent NewMsgAggregateExchangeRatePrevote = types.NewMsgAggregateExchangeRatePrevote NewMsgAggregateExchangeRateVote = types.NewMsgAggregateExchangeRateVote DefaultParams = types.DefaultParams ParamKeyTable = types.ParamKeyTable NewQueryExchangeRateParams = types.NewQueryExchangeRateParams NewQueryPrevotesParams = types.NewQueryPrevotesParams NewQueryVotesParams = types.NewQueryVotesParams NewQueryFeederDelegationParams = types.NewQueryFeederDelegationParams NewQueryMissCounterParams = types.NewQueryMissCounterParams NewQueryAggregatePrevoteParams = types.NewQueryAggregatePrevoteParams NewQueryAggregateVoteParams = types.NewQueryAggregateVoteParams NewQueryTobinTaxParams = types.NewQueryTobinTaxParams NewExchangeRatePrevote = types.NewExchangeRatePrevote NewExchangeRateVote = types.NewExchangeRateVote NewAggregateExchangeRatePrevote = types.NewAggregateExchangeRatePrevote ParseExchangeRateTuples = types.ParseExchangeRateTuples NewAggregateExchangeRateVote = types.NewAggregateExchangeRateVote NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier // variable aliases ModuleCdc = types.ModuleCdc ErrInternal = types.ErrInternal ErrUnknownDenom = types.ErrUnknownDenom ErrInvalidExchangeRate = types.ErrInvalidExchangeRate ErrNoPrevote = types.ErrNoPrevote ErrNoVote = types.ErrNoVote ErrNoVotingPermission = types.ErrNoVotingPermission ErrInvalidHash = types.ErrInvalidHash ErrInvalidHashLength = types.ErrInvalidHashLength ErrVerificationFailed = types.ErrVerificationFailed ErrRevealPeriodMissMatch = types.ErrRevealPeriodMissMatch ErrInvalidSaltLength = types.ErrInvalidSaltLength ErrNoAggregatePrevote = types.ErrNoAggregatePrevote ErrNoAggregateVote = types.ErrNoAggregateVote ErrNoTobinTax = types.ErrNoTobinTax PrevoteKey = types.PrevoteKey VoteKey = types.VoteKey ExchangeRateKey = types.ExchangeRateKey FeederDelegationKey = types.FeederDelegationKey MissCounterKey = types.MissCounterKey AggregateExchangeRatePrevoteKey = types.AggregateExchangeRatePrevoteKey AggregateExchangeRateVoteKey = types.AggregateExchangeRateVoteKey TobinTaxKey = types.TobinTaxKey ParamStoreKeyVotePeriod = types.ParamStoreKeyVotePeriod ParamStoreKeyVoteThreshold = types.ParamStoreKeyVoteThreshold ParamStoreKeyRewardBand = types.ParamStoreKeyRewardBand ParamStoreKeyRewardDistributionWindow = types.ParamStoreKeyRewardDistributionWindow ParamStoreKeyWhitelist = types.ParamStoreKeyWhitelist ParamStoreKeySlashFraction = types.ParamStoreKeySlashFraction ParamStoreKeySlashWindow = types.ParamStoreKeySlashWindow ParamStoreKeyMinValidPerWindow = types.ParamStoreKeyMinValidPerWindow DefaultVoteThreshold = types.DefaultVoteThreshold DefaultRewardBand = types.DefaultRewardBand DefaultTobinTax = types.DefaultTobinTax DefaultWhitelist = types.DefaultWhitelist DefaultSlashFraction = types.DefaultSlashFraction DefaultMinValidPerWindow = types.DefaultMinValidPerWindow )
Functions ¶
func EndBlocker ¶
EndBlocker is called at the end of every block
func InitGenesis ¶ added in v0.0.4
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis initialize default parameters and the keeper's address to pubkey map
func NewHandler ¶
NewHandler returns a handler for "oracle" type messages.
func SlashAndResetMissCounters ¶ added in v0.3.0
SlashAndResetMissCounters do salsh any operator who over criteria & clear all operators miss counter to zero
Types ¶
type AggregateExchangeRatePrevote ¶ added in v0.4.0
type AggregateExchangeRatePrevote = types.AggregateExchangeRatePrevote
type AggregateExchangeRateVote ¶ added in v0.4.0
type AggregateExchangeRateVote = types.AggregateExchangeRateVote
type AggregateVoteHash ¶ added in v0.4.0
type AggregateVoteHash = types.AggregateVoteHash
type AppModule ¶ added in v0.3.0
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the oracle module.
func NewAppModule ¶ added in v0.3.0
func NewAppModule(keeper Keeper, accountKeeper auth.AccountKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶ added in v0.3.0
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the oracle module.
func (AppModule) EndBlock ¶ added in v0.3.0
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the oracle module.
func (AppModule) ExportGenesis ¶ added in v0.3.0
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the oracle module.
func (AppModule) GenerateGenesisState ¶ added in v0.4.0
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the distribution module.
func (AppModule) InitGenesis ¶ added in v0.3.0
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the oracle module.
func (AppModule) NewHandler ¶ added in v0.3.0
NewHandler returns an sdk.Handler for the oracle module.
func (AppModule) NewQuerierHandler ¶ added in v0.3.0
NewQuerierHandler returns the oracle module sdk.Querier.
func (AppModule) ProposalContents ¶ added in v0.4.0
func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns all the distribution content functions used to simulate governance proposals.
func (AppModule) QuerierRoute ¶ added in v0.3.0
QuerierRoute returns the oracle module's querier route name.
func (AppModule) RandomizedParams ¶ added in v0.4.0
func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized distribution param changes for the simulator.
func (AppModule) RegisterInvariants ¶ added in v0.3.0
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
func (AppModule) RegisterStoreDecoder ¶ added in v0.4.0
func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for distribution module's types
func (AppModule) Route ¶ added in v0.3.0
Route returns the message routing key for the oracle module.
func (AppModule) WeightedOperations ¶ added in v0.4.0
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
type AppModuleBasic ¶ added in v0.3.0
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the oracle module.
func (AppModuleBasic) DefaultGenesis ¶ added in v0.3.0
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the oracle module.
func (AppModuleBasic) GetQueryCmd ¶ added in v0.3.0
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the oracle module.
func (AppModuleBasic) GetTxCmd ¶ added in v0.3.0
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the oracle module.
func (AppModuleBasic) Name ¶ added in v0.3.0
func (AppModuleBasic) Name() string
Name returns the oracle module's name
func (AppModuleBasic) RegisterCodec ¶ added in v0.3.0
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the oracle module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶ added in v0.3.0
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the oracle module.
func (AppModuleBasic) ValidateGenesis ¶ added in v0.3.0
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the oracle module.
type DistributionKeeper ¶ added in v0.2.0
type DistributionKeeper = types.DistributionKeeper
type ExchangeRateBallot ¶ added in v0.3.0
type ExchangeRateBallot = types.ExchangeRateBallot
type ExchangeRatePrevote ¶ added in v0.3.0
type ExchangeRatePrevote = types.ExchangeRatePrevote
type ExchangeRatePrevotes ¶ added in v0.3.0
type ExchangeRatePrevotes = types.ExchangeRatePrevotes
type ExchangeRateTuple ¶ added in v0.4.0
type ExchangeRateTuple = types.ExchangeRateTuple
type ExchangeRateTuples ¶ added in v0.4.0
type ExchangeRateTuples = types.ExchangeRateTuples
type ExchangeRateVote ¶ added in v0.3.0
type ExchangeRateVote = types.ExchangeRateVote
type ExchangeRateVotes ¶ added in v0.3.0
type ExchangeRateVotes = types.ExchangeRateVotes
type GenesisState ¶ added in v0.0.4
type GenesisState = types.GenesisState
func ExportGenesis ¶ added in v0.0.4
func ExportGenesis(ctx sdk.Context, keeper Keeper) (data GenesisState)
ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis
type MsgAggregateExchangeRatePrevote ¶ added in v0.4.0
type MsgAggregateExchangeRatePrevote = types.MsgAggregateExchangeRatePrevote
type MsgAggregateExchangeRateVote ¶ added in v0.4.0
type MsgAggregateExchangeRateVote = types.MsgAggregateExchangeRateVote
type MsgDelegateFeedConsent ¶ added in v0.3.0
type MsgDelegateFeedConsent = types.MsgDelegateFeedConsent
type MsgExchangeRatePrevote ¶ added in v0.3.0
type MsgExchangeRatePrevote = types.MsgExchangeRatePrevote
type MsgExchangeRateVote ¶ added in v0.3.0
type MsgExchangeRateVote = types.MsgExchangeRateVote
type QueryAggregatePrevoteParams ¶ added in v0.4.0
type QueryAggregatePrevoteParams = types.QueryAggregatePrevoteParams
type QueryAggregateVoteParams ¶ added in v0.4.0
type QueryAggregateVoteParams = types.QueryAggregateVoteParams
type QueryExchangeRateParams ¶ added in v0.3.0
type QueryExchangeRateParams = types.QueryExchangeRateParams
type QueryFeederDelegationParams ¶ added in v0.2.0
type QueryFeederDelegationParams = types.QueryFeederDelegationParams
type QueryMissCounterParams ¶ added in v0.3.0
type QueryMissCounterParams = types.QueryMissCounterParams
type QueryPrevotesParams ¶ added in v0.2.2
type QueryPrevotesParams = types.QueryPrevotesParams
type QueryTobinTaxParams ¶ added in v0.4.0
type QueryTobinTaxParams = types.QueryTobinTaxParams
type QueryVotesParams ¶ added in v0.2.2
type QueryVotesParams = types.QueryVotesParams
type StakingKeeper ¶ added in v0.3.0
type StakingKeeper = types.StakingKeeper
type SupplyKeeper ¶ added in v0.3.0
type SupplyKeeper = types.SupplyKeeper
type VoteForTally ¶ added in v0.3.0
type VoteForTally = types.VoteForTally