Documentation ¶
Index ¶
- func GetAssocKey(base sdk.AccAddress, assoc sdk.AccAddress) []byte
- func GetAssocPrefix(base sdk.AccAddress) []byte
- func GetBaseKey(addr sdk.AccAddress) []byte
- type ValidatorSet
- func (valset ValidatorSet) Associate(ctx sdk.Context, base sdk.AccAddress, assoc sdk.AccAddress) bool
- func (valset ValidatorSet) Associations(ctx sdk.Context, base sdk.AccAddress) (res []sdk.AccAddress)
- func (valset ValidatorSet) Dissociate(ctx sdk.Context, base sdk.AccAddress, assoc sdk.AccAddress) bool
- func (valset ValidatorSet) Validator(ctx sdk.Context, addr sdk.AccAddress) (res sdk.Validator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssocKey ¶
func GetAssocKey(base sdk.AccAddress, assoc sdk.AccAddress) []byte
GetAssocKey :: (sdk.AccAddress, sdk.AccAddress) -> byte
func GetAssocPrefix ¶
func GetAssocPrefix(base sdk.AccAddress) []byte
GetAssocPrefix :: sdk.AccAddress -> (sdk.AccAddress -> byte)
func GetBaseKey ¶
func GetBaseKey(addr sdk.AccAddress) []byte
GetBaseKey :: sdk.AccAddress -> sdk.AccAddress
Types ¶
type ValidatorSet ¶
type ValidatorSet struct { sdk.ValidatorSet // contains filtered or unexported fields }
ValidatorSet defines
func NewValidatorSet ¶
func NewValidatorSet(cdc *wire.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.AccAddress, assoc sdk.AccAddress) bool
Associate associates new address with validator address
func (ValidatorSet) Associations ¶
func (valset ValidatorSet) Associations(ctx sdk.Context, base sdk.AccAddress) (res []sdk.AccAddress)
Associations returns all associated addresses with a validator
func (ValidatorSet) Dissociate ¶
func (valset ValidatorSet) Dissociate(ctx sdk.Context, base sdk.AccAddress, assoc sdk.AccAddress) bool
Dissociate removes association between addresses
func (ValidatorSet) Validator ¶
func (valset ValidatorSet) Validator(ctx sdk.Context, addr sdk.AccAddress) (res sdk.Validator)
Implements sdk.ValidatorSet
Click to show internal directories.
Click to hide internal directories.