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
Click to show internal directories.
Click to hide internal directories.