node

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddValidatorKeysWithAmount added in v1.5.0

func AddValidatorKeysWithAmount(
	pnr *stader.PermissionlessNodeRegistryContractManager,
	pubKeys [][]byte,
	preDepositSignatures [][]byte,
	depositSignatures [][]byte,
	utilityAmount *big.Int,
	referralID string,
	opts *bind.TransactOpts) (*types.Transaction, error)

func CalculateValidatorWithdrawVaultWithdrawShare

func CalculateValidatorWithdrawVaultWithdrawShare(executionClient stader.ExecutionClient, validatorWithdrawVaultAddress common.Address, opts *bind.CallOpts) (types2.RewardShare, error)

func ChangeSocializingPoolState

func ChangeSocializingPoolState(pnr *stader.PermissionlessNodeRegistryContractManager, socializeEl bool, opts *bind.TransactOpts) (*types.Transaction, error)

func ClaimOperatorRewardsWithAmount added in v1.5.0

func ClaimOperatorRewardsWithAmount(orc *stader.OperatorRewardsCollectorContractManager, amount *big.Int, 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 DistributeRewards

func DistributeRewards(executionClient stader.ExecutionClient, validatorWithdrawVaultAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

func EstimateAddValidatorKeys

func EstimateAddValidatorKeys(
	pnr *stader.PermissionlessNodeRegistryContractManager,
	utilityAmount *big.Int,
	pubKeys [][]byte,
	preDepositSignatures [][]byte,
	depositSignatures [][]byte,
	referralID string,
	opts *bind.TransactOpts,
) (stader.GasInfo, error)

func EstimateChangeSocializingPoolState

func EstimateChangeSocializingPoolState(pnr *stader.PermissionlessNodeRegistryContractManager, socializeEl bool, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateClaimOperatorRewardsWithAmount added in v1.5.0

func EstimateClaimOperatorRewardsWithAmount(orc *stader.OperatorRewardsCollectorContractManager, operatorAddress common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateDistributeRewards

func EstimateDistributeRewards(executionClient stader.ExecutionClient, validatorWithdrawVaultAddress common.Address, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateOnboardNodeOperator

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

func EstimateSetOperatorRewardAddress added in v1.4.0

func EstimateSetOperatorRewardAddress(
	pnr *stader.PermissionlessNodeRegistryContractManager,
	operatorAddress common.Address,
	operatorRewarderAddress common.Address,
	opts *bind.TransactOpts,
) (stader.GasInfo, error)

func EstimateSettleFunds

func EstimateSettleFunds(executionClient stader.ExecutionClient, validatorWithdrawVaultAddress common.Address, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateUpdateOperatorName added in v1.4.0

func EstimateUpdateOperatorName(pnr *stader.PermissionlessNodeRegistryContractManager, operatorName string, opts *bind.TransactOpts) (stader.GasInfo, error)

func EstimateWithdrawFromNodeElVault

func EstimateWithdrawFromNodeElVault(client stader.ExecutionClient, nevAddress common.Address, opts *bind.TransactOpts) (stader.GasInfo, error)

func GetAllValidatorsInfoByOperator

func GetAllValidatorsInfoByOperator(pnr *stader.PermissionlessNodeRegistryContractManager, operatorAddress common.Address, opts *bind.CallOpts) ([]contracts.Validator, error)

func GetNodeElRewardAddress

func GetNodeElRewardAddress(pnr *stader.PermissionlessNodeRegistryContractManager, poolId uint8, operatorId *big.Int, opts *bind.CallOpts) (common.Address, error)

func GetOperatorId

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

func GetOperatorRewardsCollectorBalance

func GetOperatorRewardsCollectorBalance(orc *stader.OperatorRewardsCollectorContractManager, operatorRewardAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

func GetSocializingPoolStateChangeBlock

func GetSocializingPoolStateChangeBlock(pnr *stader.PermissionlessNodeRegistryContractManager, operatorId *big.Int, opts *bind.CallOpts) (*big.Int, error)

func GetTotalNonTerminalValidatorKeys

func GetTotalNonTerminalValidatorKeys(pnr *stader.PermissionlessNodeRegistryContractManager, operatorAddress common.Address, maxPaginationIndex *big.Int, opts *bind.CallOpts) (uint64, error)

func GetTotalValidatorKeys

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

func GetValidatorIdByOperatorId

func GetValidatorIdByOperatorId(pnr *stader.PermissionlessNodeRegistryContractManager, operatorId *big.Int, validatorIndex *big.Int, opts *bind.CallOpts) (*big.Int, error)

func GetValidatorIdByPubKey

func GetValidatorIdByPubKey(pnr *stader.PermissionlessNodeRegistryContractManager, validatorPubKey []byte, opts *bind.CallOpts) (*big.Int, error)

func GetValidatorInfosByOperator

func GetValidatorInfosByOperator(pnr *stader.PermissionlessNodeRegistryContractManager, operatorAddress common.Address, pageNumber *big.Int, pageSize *big.Int, opts *bind.CallOpts) ([]contracts.Validator, 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 ProposeRewardAddress added in v1.4.0

func ProposeRewardAddress(pnr *stader.PermissionlessNodeRegistryContractManager, operatorAddress, rewardAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

func SettleFunds

func SettleFunds(executionClient stader.ExecutionClient, validatorWithdrawVaultAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

func UpdateOperatorName added in v1.4.0

func UpdateOperatorName(pnr *stader.PermissionlessNodeRegistryContractManager, operatorName string, opts *bind.TransactOpts) (*types.Transaction, error)

func WithdrawFromNodeElVault

func WithdrawFromNodeElVault(client stader.ExecutionClient, nevAddress common.Address, opts *bind.TransactOpts) (*types.Transaction, error)

func WithdrawableInEth added in v1.5.0

func WithdrawableInEth(orc *stader.OperatorRewardsCollectorContractManager, nodeAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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