# Functions
DataSourceStoreKey returns the key to retrieve a specific data source from the store.
DefaultGenesisState returns the default oracle genesis state.
DefaultParams defines the default parameters.
GetGenesisStateFromAppState returns oracle GenesisState given raw application genesis state.
No description provided by the author
NewExecuteEnv creates a new environment instance for execution period.
NewGenesisState creates a new GenesisState instanc e.
NewIBCChannel creates a new IBCChannel instance.
NewMsgActivate creates a new MsgActivate instance.
No description provided by the author
NewMsgCreateDataSource creates a new MsgCreateDataSource instance.
NewMsgCreateOracleScript creates a new MsgCreateOracleScript instance.
NewMsgEditDataSource creates a new MsgEditDataSource instance.
NewMsgEditOracleScript creates a new MsgEditOracleScript instance.
NewMsgReportData creates a new MsgReportData instance.
NewMsgRequestData creates a new MsgRequestData instance.
No description provided by the author
NewOracleRequestPacketData contructs a new OracleRequestPacketData instance.
NewOracleResponsePacketData contructs a new OracleResponsePacketData instance.
No description provided by the author
NewParams creates a new parameter configuration for the oracle module.
NewPrepareEnv creates a new environment instance for prepare period.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewResult creates a new Result instance.
No description provided by the author
OracleScriptStoreKey returns the key to retrieve a specific oracle script from the store.
ParamKeyTable for oracle module.
QueryBadRequest creates and marshals a QueryResult instance with HTTP status BadRequest.
QueryNotFound creates and marshals a QueryResult instance with HTTP status NotFound.
QueryOK creates and marshals a QueryResult instance with HTTP status OK.
RegisterInterfaces register the oracle module interfaces to protobuf Any.
RegisterLegacyAminoCodec registers the necessary x/oracle interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
ReportsOfValidatorPrefixKey returns the prefix key to get all reports for a request from a validator.
ReportStoreKey returns the key to retrieve all data reports for a request.
RequestStoreKey returns the key to retrieve a specific request from the store.
ResultStoreKey returns the key to a request result in the store.
ValidatorStatusStoreKey returns the key to a validator's status.
WrapMaxError wraps an error message with additional info of the current and max values.
# Constants
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
256B.
Each value below is the default value for each parameter when generating the default genesis file.
512B.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
1MB.
nolint.
8kB.
nolint.
nolint.
nolint.
nolint.
512kB.
ModuleName is the name of the module.
PortID is the default port id that oracle module binds to.
QuerierRoute is the querier route for the oracle module.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Query endpoints supported by the oracle Querier.
Expired - the request does not get enough reports from validator within the timeframe.
Failure - an error occured during the request's resolve call.
Open - the request is not yet resolved.
Success - the request has been resolved successfully with no errors.
RouterKey is the msg router key for the oracle module.
StoreKey to be used when creating the KVStore.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
oracle message types.
Version defines the current version the IBC oracle module supports.
# Variables
AminoCdc is a amino codec created to support amino json compatible msgs.
DataSourceCountStoreKey is the key that keeps the total data source count.
DataSourceStoreKeyPrefix is the prefix for data source store.
nolint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GlobalStoreKeyPrefix is the prefix for global primitive state variables.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
Each value below is the key to store the respective oracle module parameter.
nolint.
nolint.
nolint.
nolint.
ModuleCdc references the global x/oracle module codec.
OracleScriptCountStoreKey is the key that keeps the total oracle sciprt count.
OracleScriptStoreKeyPrefix is the prefix for oracle script store.
PendingResolveListStoreKey is the key that keeps the list of pending-resolve requests.
PortKey defines the key to store the port ID in store.
ReportStoreKeyPrefix is the prefix for report store.
RequestCountStoreKey is the key that keeps the total request count.
RequestLastExpiredStoreKey is the key that keeps the ID of the last expired request, or 0 if none.
RequestStoreKeyPrefix is the prefix for request store.
No description provided by the author
No description provided by the author
ResultStoreKeyPrefix is the prefix for request result store.
RollingSeedSizeInBytes is the size of rolling block hash for random seed.
RollingSeedStoreKey is the key that keeps the seed based on the first 8-bit of the most recent 32 block hashes.
ValidatorStatusKeyPrefix is the prefix for validator status store.
# Structs
ActiveValidator is information of currently active validator.
BaseEnv combines shared functions used in prepare and execution Owasm program,.
DataSource is the data structure for storing data sources in the storage.
ExecuteEnv implements ExecEnv interface only expected function and panic on prepare related functions.
GenesisState defines the oracle module's genesis state.
IBCChannel is information of IBC protocol to allow communicating with other chain.
MsgEditOracleScript is a message for activating a validator to become an oracle provider.
MsgActivateResponse is response data for MsgActivate message.
MsgCreateDataSource is a message for creating a new data source.
MsgCreateDataSourceResponse is response data for MsgCreateDataSource message.
MsgCreateOracleScript is a message for creating an oracle script.
MsgCreateOracleScriptResponse is response data for MsgCreateOracleScript message.
MsgEditDataSource is a message for editing an existing data source.
MsgEditDataSourceResponse is response data for MsgEditDataSource message.
MsgEditOracleScript is a message for editing an existing oracle script.
MsgEditOracleScriptResponse is response data for MsgEditOracleScript message.
MsgReportData is a message for reporting to a data request by a validator.
MsgReportDataResponse is response data for MsgReportData message.
MsgRequestData is a message for sending a data oracle request.
MsgRequestDataResponse is response data for MsgRequestData message.
OracleRequestPacketAcknowledgement encodes an oracle request acknowledgement send back to requester chain.
OracleRequestPacketData encodes an oracle request sent from other blockchains to BandChain.
OracleResponsePacketData encodes an oracle response from BandChain to the requester.
OracleScript is the data structure for storing oracle scripts in the storage.
Params is the data structure that keeps the parameters of the oracle module.
PendingResolveList is a list of requests that are waiting to be resolved.
PrepareEnv implements ExecEnv interface only expected function and panic on non-prepare functions.
PriceResult is a result from standard price reference.
QueryActiveValidatorResult is the struct for the result of request active validators.
QueryActiveValidatorsRequest is request type for the Query/ActiveValidators RPC method.
QueryActiveValidatorsResponse is response type for the Query/ActiveValidators RPC method.
QueryCountsRequest is request type for the Query/Count RPC method.
QueryCountsResponse is response type for the Query/Count RPC method.
QueryCountsResult is the struct for the result of query counts.
QueryDataRequest is request type for the Query/Data RPC method.
QueryDataResponse is response type for the Query/Data RPC method.
QueryDataSourceRequest is request type for the Query/DataSource RPC method.
QueryDataSourceResponse is response type for the Query/DataSource RPC method.
QueryIsReporterRequest is request type for the Query/Reporter RPC method.
QueryIsReporterResponse is response type for the Query/Reporter RPC method.
QueryOracleScriptRequest is request type for the Query/OracleScript RPC method.
QueryOracleScriptResponse is response type for the Query/OracleScript RPC method.
QueryParamsRequest is request type for the Query/Params RPC method.
QueryParamsResponse is response type for the Query/Params RPC method.
QueryPendingRequestRequest is request type for the Query/PendingRequests RPC method.
QueryPendingRequestResponse is response type for the Query/PendingRequests RPC method.
QueryReportersRequest is request type for the Query/Reporters RPC method.
QueryReportersResponse is response type for the Query/Reporters RPC method.
QueryRequestPriceRequest is request type for the Query/RequestPrice RPC method.
QueryRequestPriceResponse is response type for the Query/RequestPrice RPC method.
QueryRequestRequest is request type for the Query/Request RPC method.
QueryRequestResponse is response type for the Query/Request RPC method.
QueryRequestResult is the struct for the result of request query.
QueryRequestSearchRequest is request type for the Query/RequestSearch RPC method.
QueryRequestSearchResponse is response type for the Query/RequestSearch RPC method.
QueryRequestVerificationRequest is request type for the Query/RequestVerification RPC.
QueryRequestVerificationResponse is response type for the Query/RequestVerification RPC.
QueryResult wraps querier result with HTTP status to return to application.
QueryValidatorRequest is request type for the Query/Validator RPC method.
QueryValidatorResponse is response type for the Query/Validator RPC method.
RawRequest is the data structure for storing raw reporter in the storage.
RawRequest is the data structure for storing raw requests in the storage.
Report is the data structure for storing reports in the storage.
Request is the data structure for storing requests in the storage.
RequestVerification is a message that is constructed and signed by a reporter to be used as a part of verification of oracle request.
Result encodes a result of request and store in chain.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValidatorStatus maintains whether a validator is an active oracle provider.
# Interfaces
AccountKeeper defines the expected account keeper.
AuthzKeeper defines the expected authz keeper.
BankKeeper defines the expected bank keeper.
ChannelKeeper defines the expected IBC channel keeper.
DistrKeeper defines the expected distribution keeper.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
PortKeeper defines the expected IBC port keeper.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
RequestSpec captures the essence of what it means to be a request-making object.
StakingKeeper defines the expected staking keeper.
# Type aliases
DataSourceID is the type-safe unique identifier type for data sources.
ExternalID is the type-safe unique identifier type for raw data requests.
OracleScriptID is the type-safe unique identifier type for oracle scripts.
RequestID is the type-safe unique identifier type for data requests.
ResolveStatus encodes the status of an oracle request.