Documentation ¶
Index ¶
- func GetAssocKey(base sdk.ValAddress, assoc sdk.ValAddress) []byte
- func GetAssocPrefix(base sdk.ValAddress) []byte
- func GetBaseKey(addr sdk.ValAddress) []byte
- type ValidatorSet
- func (valset ValidatorSet) Associate(ctx sdk.Context, base sdk.ValAddress, assoc sdk.ValAddress) bool
- func (valset ValidatorSet) Associations(ctx sdk.Context, base sdk.ValAddress) (res []sdk.ValAddress)
- func (valset ValidatorSet) Dissociate(ctx sdk.Context, base sdk.ValAddress, assoc sdk.ValAddress) bool
- func (valset ValidatorSet) Validator(ctx sdk.Context, addr sdk.ValAddress) (res sdk.Validator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssocKey ¶
func GetAssocKey(base sdk.ValAddress, assoc sdk.ValAddress) []byte
GetAssocKey :: (sdk.ValAddress, sdk.ValAddress) -> byte
func GetAssocPrefix ¶
func GetAssocPrefix(base sdk.ValAddress) []byte
GetAssocPrefix :: sdk.ValAddress -> (sdk.ValAddress -> byte)
func GetBaseKey ¶
func GetBaseKey(addr sdk.ValAddress) []byte
GetBaseKey :: sdk.ValAddress -> sdk.ValAddress
Types ¶
type ValidatorSet ¶
type ValidatorSet struct { sdk.ValidatorSet // contains filtered or unexported fields }
ValidatorSet defines
func NewValidatorSet ¶
func NewValidatorSet(cdc *codec.Codec, store sdk.KVStore, valset sdk.ValidatorSet, maxAssoc int, addrLen int) ValidatorSet
NewValidatorSet returns new ValidatorSet with underlying ValidatorSet
func (ValidatorSet) Associate ¶
func (valset ValidatorSet) Associate(ctx sdk.Context, base sdk.ValAddress, assoc sdk.ValAddress) bool
Associate associates new address with validator address nolint: unparam
func (ValidatorSet) Associations ¶
func (valset ValidatorSet) Associations(ctx sdk.Context, base sdk.ValAddress) (res []sdk.ValAddress)
Associations returns all associated addresses with a validator nolint: unparam
func (ValidatorSet) Dissociate ¶
func (valset ValidatorSet) Dissociate(ctx sdk.Context, base sdk.ValAddress, assoc sdk.ValAddress) bool
Dissociate removes association between addresses nolint: unparam
func (ValidatorSet) Validator ¶
func (valset ValidatorSet) Validator(ctx sdk.Context, addr sdk.ValAddress) (res sdk.Validator)
Implements sdk.ValidatorSet
Click to show internal directories.
Click to hide internal directories.