package
1.2.6
Repository: https://github.com/bandprotocol/bandchain.git
Documentation: pkg.go.dev

# Functions

DataSourceStoreKey returns the key to retrieve a specific data source from the store.
DefaultParams defines the default parameters.
No description provided by the author
NewExecuteEnv creates a new environment instance for execution 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
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
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
NewResult creates a new Result instance.
No description provided by the author
DataSourceStoreKey returns the key to retrieve a specific oracle script from the store.
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.
RegisterCodec registers the module's concrete types on the codec.
ReportersOfValidatorPrefixKey returns the prefix key to get all reporters of a validator.
ReporterStoreKey returns the key to check whether an address is a reporter of a validator.
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 specfic 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.
Each value below is the default value for each parameter when generating the default genesis file.
nolint.
DefaultParamspace is the parameter namespace key for this module - "oracle".
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
1MB.
256B.
nolint.
8kB.
nolint.
nolint.
nolint.
512kB.
ModuleName is the name of the module.
Default PortID that oracle module binds to.
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 name of the oracle module.
StoreKey to be used when creating the KVStore.
nolint.
nolint.

# Variables

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
GlobalStoreKeyPrefix is the prefix for global primitive state variables.
nolint.
nolint.
nolint.
nolint.
Each value below is the key to store the respective oracle module parameter.
nolint.
nolint.
nolint.
ModuleCdc is the codec for the module.
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.
ReporterStoreKeyPrefix is the prefix for reporter 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

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.
MsgEditOracleScript is a message for activating a validator to become an oracle provider.
MsgAddReporter is a message for adding a new reporter for a validator.
MsgCreateDataSource is a message for creating a new data source.
MsgCreateOracleScript is a message for creating an oracle script.
MsgEditDataSource is a message for editing an existing data source.
MsgEditOracleScript is a message for editing an existing oracle script.
MsgAddReporter is a message for removing an existing reporter from a validator.
MsgReportData is a message for reporting to a data request by a validator.
MsgRequestData is a message for sending a data oracle request.
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.
PrepareEnv implements ExecEnv interface only expected function and panic on non-prepare functions.
QueryActiveValidatorResult is the struct for the result of request active validators.
QueryCountsResult is the struct for the result of query counts.
QueryRequestResult is the struct for the result of request query.
QueryResult wraps querier result with HTTP status to return to application.
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.
Result is a convenience struct that keeps both request and response packets of a request.
ValidatorStatus maintains whether a validator is an active oracle provider.

# Interfaces

AccountKeeper defines the expected account keeper.
DistrKeeper defines the expected distribution keeper.
RequestSpec captures the essence of what it means to be a request-making object.
StakingKeeper defines the expected staking keeper.
SupplyKeeper defines the expected supply 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.