Documentation ¶
Index ¶
- Constants
- func ParamTypeTable() param.TypeTable
- type Keeper
- func (k Keeper) DeleteProphecy(ctx sdk.Context, id string)
- func (k *Keeper) EnablePrometheusMetrics()
- func (k Keeper) GetConsensusNeeded(ctx sdk.Context) (consensusNeeded sdk.Dec)
- func (k Keeper) GetProphecy(ctx sdk.Context, id string) (types.Prophecy, bool)
- func (k Keeper) ProcessClaim(ctx sdk.Context, claim types.Claim) (types.Prophecy, sdk.Error)
- func (k *Keeper) PublishCrossAppFailEvent(ctx sdk.Context, from string, relayerFee int64, chainId string)
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) SetPbsbServer(p *pubsub.Server)
- func (k *Keeper) SubscribeParamChange(hub pTypes.ParamChangePublisher)
Constants ¶
View Source
const (
DefaultParamSpace = "oracle"
)
Parameter store
Variables ¶
This section is empty.
Functions ¶
func ParamTypeTable ¶
Types ¶
type Keeper ¶
type Keeper struct { Pool *sdk.Pool ScKeeper sidechain.Keeper IbcKeeper ibc.Keeper BkKeeper bank.Keeper Metrics *metrics.Metrics // contains filtered or unexported fields }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, paramSpace param.Subspace, stakeKeeper types.StakingKeeper, scKeeper sidechain.Keeper, ibcKeeper ibc.Keeper, bkKeeper bank.Keeper, pool *sdk.Pool, ) Keeper
NewKeeper creates new instances of the oracle Keeper
func (Keeper) DeleteProphecy ¶
DeleteProphecy delete prophecy for a given id
func (*Keeper) EnablePrometheusMetrics ¶
func (k *Keeper) EnablePrometheusMetrics()
func (Keeper) GetConsensusNeeded ¶
func (Keeper) GetProphecy ¶
GetProphecy gets the entire prophecy data struct for a given id
func (Keeper) ProcessClaim ¶
ProcessClaim ...
func (*Keeper) PublishCrossAppFailEvent ¶
func (*Keeper) SetPbsbServer ¶
func (*Keeper) SubscribeParamChange ¶
func (k *Keeper) SubscribeParamChange(hub pTypes.ParamChangePublisher)
Click to show internal directories.
Click to hide internal directories.