assoc

package
v0.23.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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.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, key sdk.KVStoreGetter, 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

Jump to

Keyboard shortcuts

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