Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am 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 (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) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- 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 DataSource
- type DataSourceID
- type DataSourceQuerierInfo
- type ExecutionEnvironment
- func (env *ExecutionEnvironment) GetAggregateBlockTime() int64
- func (env *ExecutionEnvironment) GetCurrentRequestID() int64
- func (env *ExecutionEnvironment) GetExternalData(externalDataID int64, validatorIndex int64) ([]byte, uint8, error)
- func (env *ExecutionEnvironment) GetMaximumCalldataOfDataSourceSize() int64
- func (env *ExecutionEnvironment) GetMaximumResultSize() int64
- func (env *ExecutionEnvironment) GetPrepareBlockTime() int64
- func (env *ExecutionEnvironment) GetReceivedValidatorCount() int64
- func (env *ExecutionEnvironment) GetRequestedValidatorCount() int64
- func (env *ExecutionEnvironment) GetSufficientValidatorCount() int64
- func (env *ExecutionEnvironment) GetValidatorAddress(validatorIndex int64) ([]byte, error)
- func (env *ExecutionEnvironment) RequestExternalData(dataSourceID int64, externalDataID int64, calldata []byte) error
- type ExternalID
- type GenesisState
- type Keeper
- type MsgCreateDataSource
- type MsgCreateOracleScript
- type MsgEditDataSource
- type MsgEditOracleScript
- type MsgReportData
- type MsgRequestData
- type OracleScript
- type OracleScriptID
- type RawDataReport
- type RawDataReportWithID
- type RequestID
- type RequestQuerierInfo
Constants ¶
View Source
const ( ModuleName = types.ModuleName DefaultParamspace = types.DefaultParamspace RouterKey = types.RouterKey StoreKey = types.StoreKey EventTypeCreateDataSource = types.EventTypeCreateDataSource EventTypeEditDataSource = types.EventTypeEditDataSource EventTypeCreateOracleScript = types.EventTypeCreateOracleScript EventTypeEditOracleScript = types.EventTypeEditOracleScript EventTypeRequest = types.EventTypeRequest EventTypeReport = types.EventTypeReport AttributeKeyID = types.AttributeKeyID AttributeKeyRequestID = types.AttributeKeyRequestID AttributeKeyValidator = types.AttributeKeyValidator )
Variables ¶
View Source
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec NewMsgRequestData = types.NewMsgRequestData NewMsgReportData = types.NewMsgReportData NewMsgCreateOracleScript = types.NewMsgCreateOracleScript NewMsgEditOracleScript = types.NewMsgEditOracleScript NewMsgCreateDataSource = types.NewMsgCreateDataSource NewMsgEditDataSource = types.NewMsgEditDataSource RequestStoreKey = types.RequestStoreKey ResultStoreKey = types.ResultStoreKey DataSourceStoreKey = types.DataSourceStoreKey OracleScriptStoreKey = types.OracleScriptStoreKey NewParams = types.NewParams NewDataSource = types.NewDataSource NewOracleScript = types.NewOracleScript DefaultParams = types.DefaultParams NewRawDataReport = types.NewRawDataReport NewRawDataReportWithID = types.NewRawDataReportWithID KeyMaxDataSourceExecutableSize = types.KeyMaxDataSourceExecutableSize KeyMaxOracleScriptCodeSize = types.KeyMaxOracleScriptCodeSize KeyMaxCalldataSize = types.KeyMaxCalldataSize KeyMaxDataSourceCountPerRequest = types.KeyMaxDataSourceCountPerRequest KeyMaxRawDataReportSize = types.KeyMaxRawDataReportSize KeyMaxResultSize = types.KeyMaxResultSize QueryRequestByID = types.QueryRequestByID QueryRequests = types.QueryRequests QueryPending = types.QueryPending QueryRequestNumber = types.QueryRequestNumber QueryDataSourceByID = types.QueryDataSourceByID QueryDataSources = types.QueryDataSources QueryOracleScripts = types.QueryOracleScripts ParamKeyTable = keeper.ParamKeyTable )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate
func NewHandler ¶
NewHandler creates handler of this module
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func NewAppModule ¶
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModule Basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
Get the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
Get the root tx command of this module
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
Register rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
Validation check of the Genesis
type DataSource ¶
type DataSource = types.DataSource
type DataSourceID ¶
type DataSourceID = types.DataSourceID
type DataSourceQuerierInfo ¶
type DataSourceQuerierInfo = types.DataSourceQuerierInfo
type ExecutionEnvironment ¶
type ExecutionEnvironment struct {
// contains filtered or unexported fields
}
func NewExecutionEnvironment ¶
func (*ExecutionEnvironment) GetAggregateBlockTime ¶
func (env *ExecutionEnvironment) GetAggregateBlockTime() int64
func (*ExecutionEnvironment) GetCurrentRequestID ¶
func (env *ExecutionEnvironment) GetCurrentRequestID() int64
func (*ExecutionEnvironment) GetExternalData ¶
func (*ExecutionEnvironment) GetMaximumCalldataOfDataSourceSize ¶
func (env *ExecutionEnvironment) GetMaximumCalldataOfDataSourceSize() int64
func (*ExecutionEnvironment) GetMaximumResultSize ¶
func (env *ExecutionEnvironment) GetMaximumResultSize() int64
func (*ExecutionEnvironment) GetPrepareBlockTime ¶
func (env *ExecutionEnvironment) GetPrepareBlockTime() int64
func (*ExecutionEnvironment) GetReceivedValidatorCount ¶
func (env *ExecutionEnvironment) GetReceivedValidatorCount() int64
func (*ExecutionEnvironment) GetRequestedValidatorCount ¶
func (env *ExecutionEnvironment) GetRequestedValidatorCount() int64
func (*ExecutionEnvironment) GetSufficientValidatorCount ¶
func (env *ExecutionEnvironment) GetSufficientValidatorCount() int64
func (*ExecutionEnvironment) GetValidatorAddress ¶
func (env *ExecutionEnvironment) GetValidatorAddress(validatorIndex int64) ([]byte, error)
func (*ExecutionEnvironment) RequestExternalData ¶
func (env *ExecutionEnvironment) RequestExternalData( dataSourceID int64, externalDataID int64, calldata []byte, ) error
type ExternalID ¶
type ExternalID = types.ExternalID
type GenesisState ¶
type GenesisState struct { Params types.Params `json:"params" yaml:"params"` // module level parameters for zoracle DataSources []types.DataSource `json:"data_sources" yaml:"data_sources"` OracleScripts []types.OracleScript `json:"oracle_scripts" yaml:"oracle_scripts"` }
GenesisState is the zoracle state that must be provided at genesis.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns the default genesis state.
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
func NewGenesisState ¶
func NewGenesisState( params types.Params, dataSources []types.DataSource, oracleScripts []types.OracleScript, ) GenesisState
NewGenesisState creates a new genesis state.
type MsgCreateDataSource ¶
type MsgCreateDataSource = types.MsgCreateDataSource
type MsgCreateOracleScript ¶
type MsgCreateOracleScript = types.MsgCreateOracleScript
type MsgEditDataSource ¶
type MsgEditDataSource = types.MsgEditDataSource
type MsgEditOracleScript ¶
type MsgEditOracleScript = types.MsgEditOracleScript
type MsgReportData ¶
type MsgReportData = types.MsgReportData
type MsgRequestData ¶
type MsgRequestData = types.MsgRequestData
type OracleScript ¶
type OracleScript = types.OracleScript
type OracleScriptID ¶
type OracleScriptID = types.OracleScriptID
type RawDataReport ¶
type RawDataReport = types.RawDataReport
type RawDataReportWithID ¶
type RawDataReportWithID = types.RawDataReportWithID
type RequestQuerierInfo ¶
type RequestQuerierInfo = types.RequestQuerierInfo
Click to show internal directories.
Click to hide internal directories.