Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) AddOracleWhiteList(ctx sdk.Context, validator sdk.ValAddress)
- func (k Keeper) EnsureAddressIsInWhitelist(ctx sdk.Context, validatorAddress string) error
- func (k Keeper) Exists(ctx sdk.Context, key []byte) bool
- func (k Keeper) ExistsOracleWhiteList(ctx sdk.Context) bool
- func (k Keeper) GetAdminAccount(ctx sdk.Context) (adminAccount sdk.AccAddress)
- func (k Keeper) GetOracleWhiteList(ctx sdk.Context) []sdk.ValAddress
- func (k Keeper) GetProphecies(ctx sdk.Context) []types.Prophecy
- func (k Keeper) GetProphecy(ctx sdk.Context, id string) (types.Prophecy, bool)
- func (k Keeper) GetProphecyIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) IsAdminAccount(ctx sdk.Context, adminAccount sdk.AccAddress) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ProcessClaim(ctx sdk.Context, claim types.Claim) (types.Status, error)
- func (k Keeper) ProcessUpdateWhiteListValidator(ctx sdk.Context, cosmosSender sdk.AccAddress, validator sdk.ValAddress, ...) error
- func (k Keeper) RemoveOracleWhiteList(ctx sdk.Context, validator sdk.ValAddress)
- func (k Keeper) SetAdminAccount(ctx sdk.Context, adminAccount sdk.AccAddress)
- func (k Keeper) SetDBProphecy(ctx sdk.Context, prophecy types.DBProphecy)
- func (k Keeper) SetOracleWhiteList(ctx sdk.Context, validatorList []sdk.ValAddress)
- func (k Keeper) SetProphecy(ctx sdk.Context, prophecy types.Prophecy) error
- func (k Keeper) ValidateAddress(ctx sdk.Context, address sdk.ValAddress) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// 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.BinaryCodec, storeKey sdk.StoreKey, stakeKeeper types.StakingKeeper, consensusNeeded float64, ) Keeper
NewKeeper creates new instances of the oracle Keeper
func (Keeper) AddOracleWhiteList ¶
func (k Keeper) AddOracleWhiteList(ctx sdk.Context, validator sdk.ValAddress)
AddOracleWhiteList add new validator to whitelist
func (Keeper) EnsureAddressIsInWhitelist ¶
func (Keeper) GetAdminAccount ¶
func (k Keeper) GetAdminAccount(ctx sdk.Context) (adminAccount sdk.AccAddress)
func (Keeper) GetOracleWhiteList ¶
func (k Keeper) GetOracleWhiteList(ctx sdk.Context) []sdk.ValAddress
func (Keeper) GetProphecy ¶
GetProphecy gets the entire prophecy data struct for a given id
func (Keeper) GetProphecyIterator ¶ added in v0.15.0
func (Keeper) IsAdminAccount ¶
func (Keeper) ProcessClaim ¶
func (Keeper) ProcessUpdateWhiteListValidator ¶
func (k Keeper) ProcessUpdateWhiteListValidator(ctx sdk.Context, cosmosSender sdk.AccAddress, validator sdk.ValAddress, operationtype string) error
ProcessUpdateWhiteListValidator processes the update whitelist validator from admin
func (Keeper) RemoveOracleWhiteList ¶
func (k Keeper) RemoveOracleWhiteList(ctx sdk.Context, validator sdk.ValAddress)
RemoveOracleWhiteList remove a validator from whitelist
func (Keeper) SetAdminAccount ¶
func (k Keeper) SetAdminAccount(ctx sdk.Context, adminAccount sdk.AccAddress)
func (Keeper) SetDBProphecy ¶
func (k Keeper) SetDBProphecy(ctx sdk.Context, prophecy types.DBProphecy)
func (Keeper) SetOracleWhiteList ¶
func (k Keeper) SetOracleWhiteList(ctx sdk.Context, validatorList []sdk.ValAddress)
func (Keeper) SetProphecy ¶
SetProphecy saves a prophecy with an initial claim
func (Keeper) ValidateAddress ¶
ValidateAddress is a validator in whitelist
Click to show internal directories.
Click to hide internal directories.