Documentation ¶
Index ¶
- func GetValidatorConsAddr(cdc codec.Marshaler, validator stakingtypes.Validator) (sdk.ConsAddress, error)
- func GetValidatorConsPubKey(cdc codec.Marshaler, validator stakingtypes.Validator) (cryptotypes.PubKey, error)
- func GetValidators(height int64, client stakingtypes.QueryClient) ([]stakingtypes.Validator, error)
- func UpdateValidatorsDelegations(height int64, validators []stakingtypes.Validator, ...)
- func UpdateValidatorsRedelegations(height int64, bondDenom string, validators []stakingtypes.Validator, ...)
- func UpdateValidatorsUnbondingDelegations(height int64, bondDenom string, validators []stakingtypes.Validator, ...)
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.
Click to show internal directories.
Click to hide internal directories.