register

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepositData

type DepositData struct {
	Pubkey                string `json:"pubkey"`
	WithdrawalCredentials string `json:"withdrawal_credentials"`
	Amount                int64  `json:"amount"`
	Signature             string `json:"signature"`
	DepositMessageRoot    string `json:"deposit_message_root"`
	DepositDataRoot       string `json:"deposit_data_root"`
	ForkVersion           string `json:"fork_version"`
	NetworkName           string `json:"network_name"`
	DepositCliVersion     string `json:"deposit_cli_version"`
}

type RegisterValidator

type RegisterValidator struct {
	// contains filtered or unexported fields
}

RegisterValidator register validator

func NewRegisterValidator

func NewRegisterValidator(ctx context.Context, network, elAddr, controllerAddressPrivateKey string, maxGasPrice spec.Gwei) (*RegisterValidator, error)

NewRegisterValidator new RegisterValidator

func (*RegisterValidator) RegisterCount

func (e *RegisterValidator) RegisterCount(operatorId int64) (uint64, error)

RegisterCount Calculate the number of validators that can be registered with the operator ID

func (*RegisterValidator) RegisterValidatorForNodeDAO

func (e *RegisterValidator) RegisterValidatorForNodeDAO(operatorId int64, depositDatas []*DepositData) ([][]byte, error)

RegisterValidatorForNodeDAO register validator for node dao @return [][]byte pubkeys

Jump to

Keyboard shortcuts

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