Versions in this module Expand all Collapse all v1 v1.0.0 Nov 19, 2020 Changes in this version + const RollingSeedSizeInBytes + func ContainsEID(rawRequests []types.RawRequest, target types.ExternalID) bool + func ContainsVal(vals []sdk.ValAddress, target sdk.ValAddress) bool + func NewQuerier(keeper Keeper) sdk.Querier + func ParamKeyTable() params.KeyTable + type Keeper struct + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, fileDir string, feeCollectorName string, ...) Keeper + func (k Keeper) Activate(ctx sdk.Context, val sdk.ValAddress) error + func (k Keeper) AddDataSource(ctx sdk.Context, dataSource types.DataSource) types.DataSourceID + func (k Keeper) AddExecutableFile(file []byte) string + func (k Keeper) AddOracleScript(ctx sdk.Context, oracleScript types.OracleScript) types.OracleScriptID + func (k Keeper) AddOracleScriptFile(file []byte) (string, error) + func (k Keeper) AddPendingRequest(ctx sdk.Context, id types.RequestID) + func (k Keeper) AddReport(ctx sdk.Context, rid types.RequestID, rep types.Report) error + func (k Keeper) AddReporter(ctx sdk.Context, val sdk.ValAddress, addr sdk.AccAddress) error + func (k Keeper) AddRequest(ctx sdk.Context, req types.Request) types.RequestID + func (k Keeper) AllocateTokens(ctx sdk.Context, previousVotes []abci.VoteInfo) + func (k Keeper) DeleteReports(ctx sdk.Context, rid types.RequestID) + func (k Keeper) DeleteRequest(ctx sdk.Context, id types.RequestID) + func (k Keeper) GetAllDataSources(ctx sdk.Context) (dataSources []types.DataSource) + func (k Keeper) GetAllOracleScripts(ctx sdk.Context) (oracleScripts []types.OracleScript) + func (k Keeper) GetDataSource(ctx sdk.Context, id types.DataSourceID) (types.DataSource, error) + func (k Keeper) GetDataSourceCount(ctx sdk.Context) int64 + func (k Keeper) GetFile(name string) []byte + func (k Keeper) GetNextDataSourceID(ctx sdk.Context) types.DataSourceID + func (k Keeper) GetNextOracleScriptID(ctx sdk.Context) types.OracleScriptID + func (k Keeper) GetNextRequestID(ctx sdk.Context) types.RequestID + func (k Keeper) GetOracleScript(ctx sdk.Context, id types.OracleScriptID) (types.OracleScript, error) + func (k Keeper) GetOracleScriptCount(ctx sdk.Context) int64 + func (k Keeper) GetParam(ctx sdk.Context, key []byte) (res uint64) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPendingResolveList(ctx sdk.Context) (ids []types.RequestID) + func (k Keeper) GetRandomValidators(ctx sdk.Context, size int, id int64) ([]sdk.ValAddress, error) + func (k Keeper) GetReportCount(ctx sdk.Context, rid types.RequestID) (count uint64) + func (k Keeper) GetReportIterator(ctx sdk.Context, rid types.RequestID) sdk.Iterator + func (k Keeper) GetReporters(ctx sdk.Context, val sdk.ValAddress) (reporters []sdk.AccAddress) + func (k Keeper) GetReports(ctx sdk.Context, rid types.RequestID) (reports []types.Report) + func (k Keeper) GetRequest(ctx sdk.Context, id types.RequestID) (types.Request, error) + func (k Keeper) GetRequestCount(ctx sdk.Context) int64 + func (k Keeper) GetRequestLastExpired(ctx sdk.Context) types.RequestID + func (k Keeper) GetResult(ctx sdk.Context, id types.RequestID) (types.Result, error) + func (k Keeper) GetRollingSeed(ctx sdk.Context) []byte + func (k Keeper) GetValidatorStatus(ctx sdk.Context, val sdk.ValAddress) types.ValidatorStatus + func (k Keeper) HasDataSource(ctx sdk.Context, id types.DataSourceID) bool + func (k Keeper) HasOracleScript(ctx sdk.Context, id types.OracleScriptID) bool + func (k Keeper) HasReport(ctx sdk.Context, rid types.RequestID, val sdk.ValAddress) bool + func (k Keeper) HasRequest(ctx sdk.Context, id types.RequestID) bool + func (k Keeper) HasResult(ctx sdk.Context, id types.RequestID) bool + func (k Keeper) IsReporter(ctx sdk.Context, val sdk.ValAddress, addr sdk.AccAddress) bool + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MissReport(ctx sdk.Context, val sdk.ValAddress, requestTime time.Time) + func (k Keeper) MustEditDataSource(ctx sdk.Context, id types.DataSourceID, new types.DataSource) + func (k Keeper) MustEditOracleScript(ctx sdk.Context, id types.OracleScriptID, new types.OracleScript) + func (k Keeper) MustGetDataSource(ctx sdk.Context, id types.DataSourceID) types.DataSource + func (k Keeper) MustGetOracleScript(ctx sdk.Context, id types.OracleScriptID) types.OracleScript + func (k Keeper) MustGetRequest(ctx sdk.Context, id types.RequestID) types.Request + func (k Keeper) MustGetResult(ctx sdk.Context, id types.RequestID) types.Result + func (k Keeper) PrepareRequest(ctx sdk.Context, r types.RequestSpec) error + func (k Keeper) ProcessExpiredRequests(ctx sdk.Context) + func (k Keeper) RemoveReporter(ctx sdk.Context, val sdk.ValAddress, addr sdk.AccAddress) error + func (k Keeper) ResolveExpired(ctx sdk.Context, id types.RequestID) + func (k Keeper) ResolveFailure(ctx sdk.Context, id types.RequestID, reason string) + func (k Keeper) ResolveRequest(ctx sdk.Context, reqID types.RequestID) + func (k Keeper) ResolveSuccess(ctx sdk.Context, id types.RequestID, result []byte, gasUsed uint32) + func (k Keeper) SaveResult(ctx sdk.Context, id types.RequestID, status types.ResolveStatus, result []byte) + func (k Keeper) SetDataSource(ctx sdk.Context, id types.DataSourceID, dataSource types.DataSource) + func (k Keeper) SetDataSourceCount(ctx sdk.Context, count int64) + func (k Keeper) SetOracleScript(ctx sdk.Context, id types.OracleScriptID, oracleScript types.OracleScript) + func (k Keeper) SetOracleScriptCount(ctx sdk.Context, count int64) + func (k Keeper) SetParam(ctx sdk.Context, key []byte, value uint64) + func (k Keeper) SetPendingResolveList(ctx sdk.Context, ids []types.RequestID) + func (k Keeper) SetReport(ctx sdk.Context, rid types.RequestID, rep types.Report) + func (k Keeper) SetRequest(ctx sdk.Context, id types.RequestID, request types.Request) + func (k Keeper) SetRequestCount(ctx sdk.Context, count int64) + func (k Keeper) SetRequestLastExpired(ctx sdk.Context, id types.RequestID) + func (k Keeper) SetResult(ctx sdk.Context, reqID types.RequestID, result types.Result) + func (k Keeper) SetRollingSeed(ctx sdk.Context, rollingSeed []byte) + func (k Keeper) SetValidatorStatus(ctx sdk.Context, val sdk.ValAddress, status types.ValidatorStatus) Other modules containing this package github.com/bandprotocol/chain/v2 github.com/bandprotocol/chain/v3