oracle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName        = types.ModuleName
	QuerierRoute      = types.QuerierRoute
	StoreKey          = types.StoreKey
	DefaultParamSpace = types.ModuleName
)

Variables

View Source
var (
	NewKeeper           = keeper.NewKeeper
	NewQuerier          = keeper.NewQuerier
	NewMsgTaskResponse  = types.NewMsgTaskResponse
	DefaultGenesisState = types.DefaultGenesisState
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k Keeper)

func EndBlocker

func EndBlocker(ctx sdk.Context, k keeper.Keeper)

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState

ExportGenesis extracts all data from store to genesis state.

func InitGenesis

func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState)

InitGenesis puts all data from genesis state into store.

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for oracle type messages.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule is the main ctk module app type.

func NewAppModule

func NewAppModule(
	oracleKeeper Keeper,
) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)

BeginBlock implements the Cosmos SDK BeginBlock module function.

func (AppModule) EndBlock

EndBlock implements the Cosmos SDK EndBlock module function.

func (AppModule) ExportGenesis

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

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the oracle module.

func (AppModule) Name

func (am AppModule) Name() string

Name returns the oracle module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the oracle module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the oracle module sdk.Querier.

func (AppModule) ProposalContents

ProposalContents returns functions that generate gov proposals for the module.

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns the oracle module's querier route name.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants registers the this module invariants.

func (AppModule) Route

func (am AppModule) Route() string

Route returns the message routing key for the oracle module.

func (AppModule) WeightedOperations

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation

WeightedOperations returns oracle operations for use in simulations.

type AppModuleBasic

type AppModuleBasic struct {
	common.AppModuleBasic
}

AppModuleBasic specifies the app module basics object.

func NewAppModuleBasic

func NewAppModuleBasic() AppModuleBasic

NewAppModuleBasic creates a new AppModuleBasic object in cert module.

func (AppModuleBasic) GenerateGenesisState

func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of this module.

func (AppModuleBasic) RandomizedParams

func (AppModuleBasic) RandomizedParams(r *rand.Rand) []sim.ParamChange

RandomizedParams returns functions that generate params for the module.

func (AppModuleBasic) RegisterStoreDecoder

func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for oracle module.

type Keeper

type Keeper = keeper.Keeper

type MsgCreateTask

type MsgCreateTask = types.MsgCreateTask

type MsgTaskResponse

type MsgTaskResponse = types.MsgTaskResponse

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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