common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KETHDecimals = 18

Functions

func CreateUrl

func CreateUrl(urlString string) (*url.URL, error)

func GetListOfBLSKeysFromSignedValidatorRegistration added in v0.0.3

func GetListOfBLSKeysFromSignedValidatorRegistration(payload []apiv1.SignedValidatorRegistration) (pubkeys []phase0.BLSPubKey, payloadMap map[string]apiv1.SignedValidatorRegistration)

Types

type CustomPayoutRepresentative added in v0.2.0

type CustomPayoutRepresentative struct {
	RepresentativeAddress common.Address `json:"representativeAddress"`
	FeeRecipientAddress   common.Address `json:"feeRecipientAddress"`
}

type ExcludedValidator added in v0.0.3

type ExcludedValidator struct {
	PublicKey                        phase0.BLSPubKey `json:"publicKey"`
	ExcludedFromProposerRegistration bool             `json:"excludedFromProposerRegistration"`
	ExcludedFromNativeDelegation     bool             `json:"excludedFromNativeDelegation"`
}

type K2Claim added in v0.0.5

type K2Claim struct {
	ValidatorPubKey  phase0.BLSPubKey
	ECDSASignature   balanceverifier.EcdsaSignature
	EffectiveBalance uint64
	ClaimAmount      uint64
	ClaimSuccess     bool
}

type K2Exit added in v0.0.5

type K2Exit struct {
	ValidatorPubKey       phase0.BLSPubKey
	ECDSASignature        balanceverifier.EcdsaSignature
	EffectiveBalance      uint64
	ExitSuccess           bool
	RepresentativeAddress common.Address
}

type K2ValidatorRegistration

type K2ValidatorRegistration struct {
	ECDSASignature              signatureswapper.EcdsaSignature
	RepresentativeAddress       common.Address
	SignedValidatorRegistration *apiv1.SignedValidatorRegistration
	ProposerRegistrySuccess     bool
	K2Success                   bool
}

type ValidatorWallet added in v0.2.0

type ValidatorWallet struct {
	PrivateKey *ecdsa.PrivateKey
	Address    common.Address
}

Jump to

Keyboard shortcuts

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