oracle

package
v0.3.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

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

View Source
const (
	DefaultCodespace                = types.DefaultCodespace
	CodeUnknownDenom                = types.CodeUnknownDenom
	CodeInvalidExchangeRate         = types.CodeInvalidExchangeRate
	CodeVoterNotValidator           = types.CodeVoterNotValidator
	CodeInvalidVote                 = types.CodeInvalidVote
	CodeNoVotingPermission          = types.CodeNoVotingPermission
	CodeInvalidHashLength           = types.CodeInvalidHashLength
	CodeInvalidPrevote              = types.CodeInvalidPrevote
	CodeVerificationFailed          = types.CodeVerificationFailed
	CodeNotRevealPeriod             = types.CodeNotRevealPeriod
	CodeInvalidSaltLength           = types.CodeInvalidSaltLength
	CodeInvalidMsgFormat            = types.CodeInvalidMsgFormat
	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
)

Variables

View Source
var (
	// functions aliases
	NewVoteForTally                = types.NewVoteForTally
	NewClaim                       = types.NewClaim
	RegisterCodec                  = types.RegisterCodec
	ErrInvalidHashLength           = types.ErrInvalidHashLength
	ErrUnknownDenomination         = types.ErrUnknownDenomination
	ErrInvalidExchangeRate         = types.ErrInvalidExchangeRate
	ErrVerificationFailed          = types.ErrVerificationFailed
	ErrNoPrevote                   = types.ErrNoPrevote
	ErrNoVote                      = types.ErrNoVote
	ErrNoVotingPermission          = types.ErrNoVotingPermission
	ErrNotRevealPeriod             = types.ErrNotRevealPeriod
	ErrInvalidSaltLength           = types.ErrInvalidSaltLength
	NewGenesisState                = types.NewGenesisState
	DefaultGenesisState            = types.DefaultGenesisState
	ValidateGenesis                = types.ValidateGenesis
	GetExchangeRatePrevoteKey      = types.GetExchangeRatePrevoteKey
	GetVoteKey                     = types.GetVoteKey
	GetExchangeRateKey             = types.GetExchangeRateKey
	GetFeederDelegationKey         = types.GetFeederDelegationKey
	GetMissCounterKey              = types.GetMissCounterKey
	NewMsgExchangeRatePrevote      = types.NewMsgExchangeRatePrevote
	NewMsgExchangeRateVote         = types.NewMsgExchangeRateVote
	NewMsgDelegateFeedConsent      = types.NewMsgDelegateFeedConsent
	DefaultParams                  = types.DefaultParams
	NewQueryExchangeRateParams     = types.NewQueryExchangeRateParams
	NewQueryPrevotesParams         = types.NewQueryPrevotesParams
	NewQueryVotesParams            = types.NewQueryVotesParams
	NewQueryFeederDelegationParams = types.NewQueryFeederDelegationParams
	NewQueryMissCounterParams      = types.NewQueryMissCounterParams
	NewExchangeRatePrevote         = types.NewExchangeRatePrevote
	VoteHash                       = types.VoteHash
	NewExchangeRateVote            = types.NewExchangeRateVote
	NewKeeper                      = keeper.NewKeeper
	ParamKeyTable                  = keeper.ParamKeyTable
	NewQuerier                     = keeper.NewQuerier

	// variable aliases
	ModuleCdc                             = types.ModuleCdc
	PrevoteKey                            = types.PrevoteKey
	VoteKey                               = types.VoteKey
	ExchangeRateKey                       = types.ExchangeRateKey
	FeederDelegationKey                   = types.FeederDelegationKey
	MissCounterKey                        = types.MissCounterKey
	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
	DefaultWhitelist                      = types.DefaultWhitelist
	DefaultSlashFraction                  = types.DefaultSlashFraction
	DefaultMinValidPerWindow              = types.DefaultMinValidPerWindow
)

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, k Keeper)

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

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for "oracle" type messages.

func SlashAndResetMissCounters added in v0.3.0

func SlashAndResetMissCounters(ctx sdk.Context, k Keeper)

SlashAndResetMissCounters do salsh any operator who over criteria & clear all operators miss counter to zero

Types

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) 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

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) 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) Name added in v0.3.0

func (AppModule) Name() string

Name returns the oracle module's name.

func (AppModule) NewHandler added in v0.3.0

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the oracle module.

func (AppModule) NewQuerierHandler added in v0.3.0

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the oracle module sdk.Querier.

func (AppModule) QuerierRoute added in v0.3.0

func (AppModule) QuerierRoute() string

QuerierRoute returns the oracle module's querier route name.

func (AppModule) RegisterInvariants added in v0.3.0

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) Route added in v0.3.0

func (AppModule) Route() string

Route returns the message routing key for the oracle module.

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 Claim added in v0.3.0

type Claim = types.Claim

type DenomList added in v0.2.2

type DenomList = types.DenomList

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 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 Keeper

type Keeper = keeper.Keeper

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 Params added in v0.0.4

type Params = types.Params

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 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

Directories

Path Synopsis
client
cli
internal
keeper
nolint:deadcode unused noalias
nolint:deadcode unused noalias
types
noalias nolint:deadcode unused noalias
noalias nolint:deadcode unused noalias

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL