stakingadapter

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) BondDenom

func (s StakingAdapter) BondDenom(ctx sdk.Context) (res string)

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL