gpos

package
v0.0.0-...-985cc99 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	ID               idx.ValidatorID
	Address          common.Address
	PubKey           validatorpk.PubKey
	CreationTime     inter.Timestamp
	CreationEpoch    idx.Epoch
	DeactivatedTime  inter.Timestamp
	DeactivatedEpoch idx.Epoch
	Status           uint64
}

Validator is a helper structure to define genesis validators

type Validators

type Validators []Validator

func (Validators) Addresses

func (gv Validators) Addresses() []common.Address

Addresses returns not sorted genesis addresses

func (Validators) Map

func (gv Validators) Map() map[idx.ValidatorID]Validator

Map converts Validators to map

func (Validators) PubKeys

func (gv Validators) PubKeys() []validatorpk.PubKey

PubKeys returns not sorted genesis pub keys

Jump to

Keyboard shortcuts

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