common

package
v0.0.0-...-52431d2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidatorConsAddr

func GetValidatorConsAddr(cdc codec.Marshaler, validator stakingtypes.Validator) (sdk.ConsAddress, error)

GetValidatorConsAddr returns the consensus address of the given validator

func GetValidatorConsPubKey

func GetValidatorConsPubKey(cdc codec.Marshaler, validator stakingtypes.Validator) (cryptotypes.PubKey, error)

GetValidatorConsPubKey returns the consensus public key of the given validator

func GetValidators

func GetValidators(height int64, client stakingtypes.QueryClient) ([]stakingtypes.Validator, error)

GetValidators returns the validators list at the given height

func UpdateValidatorsDelegations

func UpdateValidatorsDelegations(
	height int64, validators []stakingtypes.Validator, client stakingtypes.QueryClient, db *database.BigDipperDb,
)

UpdateValidatorsDelegations updates the delegations for all the given validators at the provided height

func UpdateValidatorsRedelegations

func UpdateValidatorsRedelegations(
	height int64, bondDenom string, validators []stakingtypes.Validator,
	client stakingtypes.QueryClient, db *database.BigDipperDb,
)

UpdateValidatorsRedelegations updates the redelegations for all the validators provided

func UpdateValidatorsUnbondingDelegations

func UpdateValidatorsUnbondingDelegations(
	height int64, bondDenom string, validators []stakingtypes.Validator,
	client stakingtypes.QueryClient, db *database.BigDipperDb,
)

UpdateValidatorsUnbondingDelegations updates the unbonding delegations for all the validators provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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