Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (keeper Keeper) Aggregate(ctx sdk.Context, key string) error
- func (keeper Keeper) CreateOracleScript(ctx sdk.Context, msg types.MsgCreateOracleScript) error
- func (keeper Keeper) CreateReporter(ctx sdk.Context, msg types.MsgCreateReporter) error
- func (keeper Keeper) CreateRequest(ctx sdk.Context, msg types.MsgCreateRequest) error
- func (keeper Keeper) DeleteReporter(ctx sdk.Context, msg types.MsgDeleteReporter) error
- func (keeper Keeper) EditOracleScript(ctx sdk.Context, msg types.MsgEditOracleScript) error
- func (keeper Keeper) GetAllOracleScripts(ctx sdk.Context) []types.OracleScript
- func (keeper Keeper) GetAllPrices(ctx sdk.Context) []types.Prices
- func (keeper Keeper) GetAllReporters(ctx sdk.Context) []types.Reporter
- func (keeper Keeper) GetAllRequests(ctx sdk.Context) []types.Request
- func (keeper Keeper) GetClosedBlockRequestExternalids(ctx sdk.Context) []string
- func (keeper Keeper) GetLatestRequest(ctx sdk.Context) types.Request
- func (keeper Keeper) GetOracleScript(ctx sdk.Context, oracleScriptId string) types.OracleScript
- func (keeper Keeper) GetOracleScriptCount(ctx sdk.Context) int64
- func (keeper Keeper) GetOracleScriptCreator(ctx sdk.Context, oracleScriptId string) string
- func (keeper Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (keeper Keeper) GetPrices(ctx sdk.Context, symbol string) types.Prices
- func (keeper Keeper) GetReporter(ctx sdk.Context, key string) types.Reporter
- func (keeper Keeper) GetReporterCount(ctx sdk.Context) int64
- func (keeper Keeper) GetReporterCreator(ctx sdk.Context, key string) string
- func (keeper Keeper) GetRequest(ctx sdk.Context, key string) types.Request
- func (keeper Keeper) GetRequestCount(ctx sdk.Context) int64
- func (keeper Keeper) GetRequestRequester(ctx sdk.Context, key string) string
- func (keeper Keeper) HasOracleScript(ctx sdk.Context, key string) bool
- func (keeper Keeper) HasReporter(ctx sdk.Context, key string) bool
- func (keeper Keeper) HasRequest(ctx sdk.Context, key string) bool
- func (keeper Keeper) IsValidReport(ctx sdk.Context, request types.Request, report *types.Report) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (keeper Keeper) QueryOracleScript(context context.Context, request *types.QueryGetOracleScriptRequest) (*types.QueryGetOracleScriptResponse, error)
- func (keeper Keeper) QueryOracleScriptCount(context context.Context, request *types.QueryGetOracleScriptCountRequest) (*types.QueryGetOracleScriptCountResponse, error)
- func (keeper Keeper) QueryOracleScripts(context context.Context, request *types.QueryAllOracleScriptsRequest) (*types.QueryAllOracleScriptsResponse, error)
- func (keeper Keeper) QueryParams(context context.Context, request *types.QueryGetParamsRequest) (*types.QueryGetParamsReponse, error)
- func (keeper Keeper) QueryReporter(context context.Context, request *types.QueryGetReporterRequest) (*types.QueryGetReporterResponse, error)
- func (keeper Keeper) QueryReporterCount(context context.Context, request *types.QueryGetReporterCountRequest) (*types.QueryGetReporterCountResponse, error)
- func (keeper Keeper) QueryReporters(context context.Context, request *types.QueryAllReportersRequest) (*types.QueryAllReportersResponse, error)
- func (keeper Keeper) ReportToRequest(ctx sdk.Context, msg types.MsgCreateReport) error
- func (keeper Keeper) SetOracleScriptCount(ctx sdk.Context, count int64)
- func (keeper Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (keeper Keeper) SetPrices(ctx sdk.Context, calldata, result string, resolve_time int64) error
- func (keeper Keeper) SetReporterCount(ctx sdk.Context, count int64)
- func (keeper Keeper) SetRequest(ctx sdk.Context, request types.Request)
- func (keeper Keeper) SetRequestCount(ctx sdk.Context, count int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) Aggregate ¶
Aggregate does an aggregation of responses for a task and updated task result.
func (Keeper) CreateOracleScript ¶
create the oracle script
func (Keeper) CreateReporter ¶
create the reporter
func (Keeper) CreateRequest ¶
create the request
func (Keeper) DeleteReporter ¶
func (Keeper) EditOracleScript ¶
edit the oracle script
func (Keeper) GetAllOracleScripts ¶
func (keeper Keeper) GetAllOracleScripts(ctx sdk.Context) []types.OracleScript
func (Keeper) GetAllReporters ¶
func (Keeper) GetClosedBlockRequestExternalids ¶
func (Keeper) GetLatestRequest ¶
func (Keeper) GetOracleScript ¶
func (Keeper) GetOracleScriptCount ¶
GetOracleScriptCount get the total number of reporter
func (Keeper) GetOracleScriptCreator ¶
func (Keeper) GetReporter ¶
func (Keeper) GetReporterCount ¶
GetReporterCount get the total number of reporter
func (Keeper) GetReporterCreator ¶
func (Keeper) GetRequest ¶
func (Keeper) GetRequestCount ¶
GetRequestCount get the total number of request
func (Keeper) GetRequestRequester ¶
func (Keeper) HasOracleScript ¶
func (Keeper) IsValidReport ¶
func (keeper Keeper) IsValidReport(ctx sdk.Context, request types.Request, report *types.Report) error
IsValidReport returns error if a report is not valid
func (Keeper) QueryOracleScript ¶
func (keeper Keeper) QueryOracleScript(context context.Context, request *types.QueryGetOracleScriptRequest) (*types.QueryGetOracleScriptResponse, error)
func (Keeper) QueryOracleScriptCount ¶
func (keeper Keeper) QueryOracleScriptCount(context context.Context, request *types.QueryGetOracleScriptCountRequest) (*types.QueryGetOracleScriptCountResponse, error)
func (Keeper) QueryOracleScripts ¶
func (keeper Keeper) QueryOracleScripts(context context.Context, request *types.QueryAllOracleScriptsRequest) (*types.QueryAllOracleScriptsResponse, error)
func (Keeper) QueryParams ¶
func (keeper Keeper) QueryParams(context context.Context, request *types.QueryGetParamsRequest) (*types.QueryGetParamsReponse, error)
func (Keeper) QueryReporter ¶
func (keeper Keeper) QueryReporter(context context.Context, request *types.QueryGetReporterRequest) (*types.QueryGetReporterResponse, error)
func (Keeper) QueryReporterCount ¶
func (keeper Keeper) QueryReporterCount(context context.Context, request *types.QueryGetReporterCountRequest) (*types.QueryGetReporterCountResponse, error)
func (Keeper) QueryReporters ¶
func (keeper Keeper) QueryReporters(context context.Context, request *types.QueryAllReportersRequest) (*types.QueryAllReportersResponse, error)
func (Keeper) ReportToRequest ¶
report to request
func (Keeper) SetOracleScriptCount ¶
SetOracleScriptCount set the total number of repoter
func (Keeper) SetReporterCount ¶
SetReporterCount set the total number of repoter
func (Keeper) SetRequest ¶
SetRequest sets a request in KVStore
Click to show internal directories.
Click to hide internal directories.