node

package
v0.0.0-...-a5a7577 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddValidatorKeys

func AddValidatorKeys(pnr *stader.PermissionlessNodeRegistryContractManager, validatorPubKeys [][]byte, validatorSignatures [][]byte, depositDataRoots [][32]byte, opts *bind.TransactOpts) (*types.Transaction, error)

func ComputeWithdrawVaultAddress

func ComputeWithdrawVaultAddress(vfcm *stader.VaultFactoryContractManager, poolType uint8, operatorId *big.Int, validatorCount *big.Int, opts *bind.CallOpts) (common.Address, error)

func Deposit

func Deposit(excm *stader.PermissionlessNodeRegistryContractManager, minimumNodeFee float64, validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, salt *big.Int, expectedMinipoolAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

Make a node deposit

func EstimateAddValidatorKeys

func EstimateAddValidatorKeys(pnr *stader.PermissionlessNodeRegistryContractManager, validatorPubKeys [][]byte, validatorSignatures [][]byte, depositDataRoots [][32]byte, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateDepositGas

func EstimateDepositGas(rp *stader.PermissionlessNodeRegistryContractManager, minimumNodeFee float64, validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, salt *big.Int, expectedMinipoolAddress common.Address, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of Deposit

func EstimateOnboardNodeOperator

func EstimateOnboardNodeOperator(pnr *stader.PermissionlessNodeRegistryContractManager, mevSocialize bool, operatorName string, operatorRewarderAddress common.Address, opts *bind.TransactOpts) (stader.GasInfo, error)

func GetDepositType

Get the type of a deposit based on the amount

func GetOperatorRegistry

func GetOperatorRegistry(pnr *stader.PermissionlessNodeRegistryContractManager, nodeAddress common.Address, opts *bind.CallOpts) (struct {
	OptedForSocializingPool   bool
	OperatorName              string
	OperatorRewardAddress     common.Address
	OperatorId                *big.Int
	InitializedValidatorCount *big.Int
	QueuedValidatorCount      *big.Int
	ActiveValidatorCount      *big.Int
	WithdrawnValidatorCount   *big.Int
}, error)

func GetTotalValidatorKeys

func GetTotalValidatorKeys(pnr *stader.PermissionlessNodeRegistryContractManager, nodeAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

func GetValidatorWithdrawalCredential

func GetValidatorWithdrawalCredential(vfcm *stader.VaultFactoryContractManager, withdrawVaultAddress common.Address, opts *bind.CallOpts) (common.Hash, error)

func IsPermissionlessNodeRegistryPaused

func IsPermissionlessNodeRegistryPaused(pnr *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (bool, error)

func OnboardNodeOperator

func OnboardNodeOperator(pnr *stader.PermissionlessNodeRegistryContractManager, mevSocialize bool, operatorName string, operatorRewarderAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

func StaderNodeDeposit

func StaderNodeDeposit(excm *stader.PermissionlessNodeRegistryContractManager, minimumNodeFee float64, validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, operatorRewardAddress common.Address, operatorName string, opts *bind.TransactOpts) (*types.Transaction, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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