Documentation ¶
Index ¶
- Variables
- type SlashingAdapter
- func (s SlashingAdapter) GetPubkey(ctx sdk.Context, address cryptotypes.Address) (cryptotypes.PubKey, error)
- func (s SlashingAdapter) HasValidatorSigningInfo(ctx sdk.Context, address sdk.ConsAddress) bool
- func (s SlashingAdapter) IsTombstoned(ctx sdk.Context, address sdk.ConsAddress) bool
- func (s SlashingAdapter) Jail(ctx sdk.Context, address sdk.ConsAddress)
- func (s SlashingAdapter) JailUntil(ctx sdk.Context, address sdk.ConsAddress, time time.Time)
- func (s SlashingAdapter) Slash(ctx sdk.Context, address sdk.ConsAddress, dec sdk.Dec, i int64, i2 int64)
- func (s SlashingAdapter) SlashFractionDoubleSign(ctx sdk.Context) sdk.Dec
- func (s SlashingAdapter) Tombstone(ctx sdk.Context, address sdk.ConsAddress)
- type StakingAdapter
- func (s StakingAdapter) ApplyAndReturnValidatorSetUpdates(ctx sdk.Context) (updates []abci.ValidatorUpdate, err error)
- func (s StakingAdapter) BondDenom(ctx sdk.Context) (res string)
- func (s StakingAdapter) BondedRatio(ctx sdk.Context) sdk.Dec
- func (s StakingAdapter) Delegation(ctx sdk.Context, address sdk.AccAddress, address2 sdk.ValAddress) stakingtypes.DelegationI
- func (s StakingAdapter) DelegationRewards(stdlibCtx context.Context, req *types.QueryDelegationRewardsRequest) (*types.QueryDelegationRewardsResponse, error)
- func (s StakingAdapter) GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation
- func (s StakingAdapter) GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
- func (s StakingAdapter) GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
- func (s StakingAdapter) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
- func (s StakingAdapter) HasReceivingRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) bool
- func (s StakingAdapter) IterateBondedValidatorsByPower(ctx sdk.Context, ...)
- func (s StakingAdapter) IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, ...)
- func (s StakingAdapter) IterateValidators(ctx sdk.Context, ...)
- func (s StakingAdapter) Jail(ctx sdk.Context, address sdk.ConsAddress)
- func (s StakingAdapter) MaxValidators(ctx sdk.Context) uint32
- func (s StakingAdapter) Slash(ctx sdk.Context, address sdk.ConsAddress, i int64, i2 int64, dec sdk.Dec)
- func (s StakingAdapter) StakingTokenSupply(ctx sdk.Context) sdk.Int
- func (s StakingAdapter) TotalBondedTokens(ctx sdk.Context) sdk.Int
- func (s StakingAdapter) Unjail(ctx sdk.Context, address sdk.ConsAddress)
- func (s StakingAdapter) Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI
- func (s StakingAdapter) ValidatorByConsAddr(ctx sdk.Context, address sdk.ConsAddress) stakingtypes.ValidatorI
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
This section is empty.
Types ¶
type SlashingAdapter ¶
type SlashingAdapter struct{}
func (SlashingAdapter) GetPubkey ¶
func (s SlashingAdapter) GetPubkey(ctx sdk.Context, address cryptotypes.Address) (cryptotypes.PubKey, error)
func (SlashingAdapter) HasValidatorSigningInfo ¶
func (s SlashingAdapter) HasValidatorSigningInfo(ctx sdk.Context, address sdk.ConsAddress) bool
func (SlashingAdapter) IsTombstoned ¶
func (s SlashingAdapter) IsTombstoned(ctx sdk.Context, address sdk.ConsAddress) bool
func (SlashingAdapter) Jail ¶
func (s SlashingAdapter) Jail(ctx sdk.Context, address sdk.ConsAddress)
func (SlashingAdapter) JailUntil ¶
func (s SlashingAdapter) JailUntil(ctx sdk.Context, address sdk.ConsAddress, time time.Time)
func (SlashingAdapter) Slash ¶
func (s SlashingAdapter) Slash(ctx sdk.Context, address sdk.ConsAddress, dec sdk.Dec, i int64, i2 int64)
func (SlashingAdapter) SlashFractionDoubleSign ¶
func (s SlashingAdapter) SlashFractionDoubleSign(ctx sdk.Context) sdk.Dec
func (SlashingAdapter) Tombstone ¶
func (s SlashingAdapter) Tombstone(ctx sdk.Context, address sdk.ConsAddress)
type StakingAdapter ¶
type StakingAdapter struct {
// contains filtered or unexported fields
}
func NewStakingAdapter ¶
func NewStakingAdapter(k poeKeeper, contractKeeper wasmtypes.ContractOpsKeeper) StakingAdapter
func (StakingAdapter) ApplyAndReturnValidatorSetUpdates ¶
func (s StakingAdapter) ApplyAndReturnValidatorSetUpdates(ctx sdk.Context) (updates []abci.ValidatorUpdate, err error)
func (StakingAdapter) BondedRatio ¶
func (s StakingAdapter) BondedRatio(ctx sdk.Context) sdk.Dec
func (StakingAdapter) Delegation ¶
func (s StakingAdapter) Delegation(ctx sdk.Context, address sdk.AccAddress, address2 sdk.ValAddress) stakingtypes.DelegationI
func (StakingAdapter) DelegationRewards ¶
func (s StakingAdapter) DelegationRewards(stdlibCtx context.Context, req *types.QueryDelegationRewardsRequest) (*types.QueryDelegationRewardsResponse, error)
func (StakingAdapter) GetAllDelegatorDelegations ¶
func (s StakingAdapter) GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation
func (StakingAdapter) GetBondedValidatorsByPower ¶
func (s StakingAdapter) GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
func (StakingAdapter) GetDelegation ¶
func (s StakingAdapter) GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
func (StakingAdapter) GetValidator ¶
func (s StakingAdapter) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
func (StakingAdapter) HasReceivingRedelegation ¶
func (s StakingAdapter) HasReceivingRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) bool
func (StakingAdapter) IterateBondedValidatorsByPower ¶
func (s StakingAdapter) IterateBondedValidatorsByPower(ctx sdk.Context, f func(index int64, validator stakingtypes.ValidatorI) (stop bool))
func (StakingAdapter) IterateDelegations ¶
func (s StakingAdapter) IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool))
func (StakingAdapter) IterateValidators ¶
func (s StakingAdapter) IterateValidators(ctx sdk.Context, f func(index int64, validator stakingtypes.ValidatorI) (stop bool))
func (StakingAdapter) Jail ¶
func (s StakingAdapter) Jail(ctx sdk.Context, address sdk.ConsAddress)
func (StakingAdapter) MaxValidators ¶
func (s StakingAdapter) MaxValidators(ctx sdk.Context) uint32
func (StakingAdapter) Slash ¶
func (s StakingAdapter) Slash(ctx sdk.Context, address sdk.ConsAddress, i int64, i2 int64, dec sdk.Dec)
func (StakingAdapter) StakingTokenSupply ¶
func (s StakingAdapter) StakingTokenSupply(ctx sdk.Context) sdk.Int
func (StakingAdapter) TotalBondedTokens ¶
func (s StakingAdapter) TotalBondedTokens(ctx sdk.Context) sdk.Int
func (StakingAdapter) Unjail ¶
func (s StakingAdapter) Unjail(ctx sdk.Context, address sdk.ConsAddress)
func (StakingAdapter) Validator ¶
func (s StakingAdapter) Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI
func (StakingAdapter) ValidatorByConsAddr ¶
func (s StakingAdapter) ValidatorByConsAddr(ctx sdk.Context, address sdk.ConsAddress) stakingtypes.ValidatorI
Click to show internal directories.
Click to hide internal directories.