assoc

package
v0.26.0-iris Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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