Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, k Keeper)
- func EndBlocker(ctx sdk.Context, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx 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 (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (am AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- type Keeper
- type MsgCreateTask
- type MsgTaskResponse
Constants ¶
const ( ModuleName = types.ModuleName QuerierRoute = types.QuerierRoute StoreKey = types.StoreKey DefaultParamSpace = types.ModuleName )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier NewMsgTaskResponse = types.NewMsgTaskResponse DefaultGenesisState = types.DefaultGenesisState TaskStoreKeyPrefix = types.TaskStoreKeyPrefix ClosingTaskStoreKeyPrefix = types.ClosingTaskStoreKeyPrefix )
Functions ¶
func BeginBlocker ¶
func ExportGenesis ¶
ExportGenesis extracts all data from store to genesis state.
func InitGenesis ¶
InitGenesis puts all data from genesis state into store.
func NewHandler ¶
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 ¶
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 ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewHandler ¶
NewHandler returns an sdk.Handler for the oracle module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the oracle module sdk.Querier.
func (AppModule) ProposalContents ¶
func (AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns functions that generate gov proposals for the module.
func (AppModule) QuerierRoute ¶
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) 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 MsgCreateTask ¶
type MsgCreateTask = types.MsgCreateTask
type MsgTaskResponse ¶
type MsgTaskResponse = types.MsgTaskResponse