Documentation
¶
Index ¶
- Variables
- func CalcClusterId(owner common.Address, operatorIds []uint64) string
- func GetAllSSVEvent() map[common.Hash]abi.Event
- func GetOperatorName(network string, operatorId uint64) (string, error)
- func GetSSVRewardCumulativeClaimed(client *ethclient.Client, accounts []common.Address) ([]*big.Int, error)
- func GetSSVRewardMerkleRootOnChain(client *ethclient.Client) (string, error)
- type ApiOperatorData
- type BlockLogs
- type Cluster
- type ContractCreationInfo
- type ContractInfo
- type ISSVNetworkCoreCluster
- type LiquidationInfo
- type NetworkInfo
- type OperatorDeclaredFee
- type SSV
- func (s *SSV) CalcLiquidation(cluster Cluster) (uint64, uint64, uint64, string, error)
- func (s *SSV) GetCfg() *config.Config
- func (s *SSV) GetLastProcessedBlock() uint64
- func (s *SSV) GetNetworkFee() (uint64, uint64, error)
- func (s *SSV) GetNetworkInfo() (*NetworkInfo, error)
- func (s *SSV) GetOperatorDeclaredFee(operatorIds []uint64) ([]OperatorDeclaredFee, error)
- func (s *SSV) GetOperatorEarnings(operatorIds []uint64) ([]string, error)
- func (s *SSV) GetSSVLiquidationInfo(cluster Cluster) (*LiquidationInfo, error)
- func (s *SSV) ScanSSVEvent(startBlock, endBlock uint64) (uint64, error)
- func (s *SSV) ScanSSVEventLoop()
- func (s *SSV) SimulatedCalcLiquidation(cluster Cluster, networkFee uint64, operatorFees []string) (uint64, uint64, error)
- func (s *SSV) Start()
- func (s *SSV) Stop()
- func (s *SSV) UpdateClusterEoaOwnerLoop()
- func (s *SSV) UpdateClusterLiquidationLoop()
- func (s *SSV) UpdateClusterUpcomingLiquidationLoop()
- func (s *SSV) UpdateOperatorLoop()
- type Ssv
- type SsvAdminChanged
- type SsvAdminChangedIterator
- type SsvBeaconUpgraded
- type SsvBeaconUpgradedIterator
- type SsvCaller
- func (_Ssv *SsvCaller) GetBalance(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvCaller) GetBurnRate(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvCaller) GetLiquidationThresholdPeriod(opts *bind.CallOpts) (uint64, error)
- func (_Ssv *SsvCaller) GetMaximumOperatorFee(opts *bind.CallOpts) (uint64, error)
- func (_Ssv *SsvCaller) GetMinimumLiquidationCollateral(opts *bind.CallOpts) (*big.Int, error)
- func (_Ssv *SsvCaller) GetNetworkEarnings(opts *bind.CallOpts) (*big.Int, error)
- func (_Ssv *SsvCaller) GetNetworkFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Ssv *SsvCaller) GetNetworkValidatorsCount(opts *bind.CallOpts) (uint32, error)
- func (_Ssv *SsvCaller) GetOperatorById(opts *bind.CallOpts, operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
- func (_Ssv *SsvCaller) GetOperatorDeclaredFee(opts *bind.CallOpts, operatorId uint64) (bool, *big.Int, uint64, uint64, error)
- func (_Ssv *SsvCaller) GetOperatorEarnings(opts *bind.CallOpts, id uint64) (*big.Int, error)
- func (_Ssv *SsvCaller) GetOperatorFee(opts *bind.CallOpts, operatorId uint64) (*big.Int, error)
- func (_Ssv *SsvCaller) GetOperatorFeeIncreaseLimit(opts *bind.CallOpts) (uint64, error)
- func (_Ssv *SsvCaller) GetOperatorFeePeriods(opts *bind.CallOpts) (uint64, uint64, error)
- func (_Ssv *SsvCaller) GetValidator(opts *bind.CallOpts, clusterOwner common.Address, publicKey []byte) (bool, error)
- func (_Ssv *SsvCaller) GetValidatorsPerOperatorLimit(opts *bind.CallOpts) (uint32, error)
- func (_Ssv *SsvCaller) GetVersion(opts *bind.CallOpts) (string, error)
- func (_Ssv *SsvCaller) GetWhitelistedOperators(opts *bind.CallOpts, operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
- func (_Ssv *SsvCaller) IsAddressWhitelistedInWhitelistingContract(opts *bind.CallOpts, addressToCheck common.Address, operatorId *big.Int, ...) (bool, error)
- func (_Ssv *SsvCaller) IsLiquidatable(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvCaller) IsLiquidated(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvCaller) IsWhitelistingContract(opts *bind.CallOpts, contractAddress common.Address) (bool, error)
- func (_Ssv *SsvCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Ssv *SsvCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error)
- func (_Ssv *SsvCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
- func (_Ssv *SsvCaller) SsvNetwork(opts *bind.CallOpts) (common.Address, error)
- type SsvCallerRaw
- type SsvCallerSession
- func (_Ssv *SsvCallerSession) GetBalance(clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetBurnRate(clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetLiquidationThresholdPeriod() (uint64, error)
- func (_Ssv *SsvCallerSession) GetMaximumOperatorFee() (uint64, error)
- func (_Ssv *SsvCallerSession) GetMinimumLiquidationCollateral() (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetNetworkEarnings() (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetNetworkFee() (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetNetworkValidatorsCount() (uint32, error)
- func (_Ssv *SsvCallerSession) GetOperatorById(operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
- func (_Ssv *SsvCallerSession) GetOperatorDeclaredFee(operatorId uint64) (bool, *big.Int, uint64, uint64, error)
- func (_Ssv *SsvCallerSession) GetOperatorEarnings(id uint64) (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetOperatorFee(operatorId uint64) (*big.Int, error)
- func (_Ssv *SsvCallerSession) GetOperatorFeeIncreaseLimit() (uint64, error)
- func (_Ssv *SsvCallerSession) GetOperatorFeePeriods() (uint64, uint64, error)
- func (_Ssv *SsvCallerSession) GetValidator(clusterOwner common.Address, publicKey []byte) (bool, error)
- func (_Ssv *SsvCallerSession) GetValidatorsPerOperatorLimit() (uint32, error)
- func (_Ssv *SsvCallerSession) GetVersion() (string, error)
- func (_Ssv *SsvCallerSession) GetWhitelistedOperators(operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
- func (_Ssv *SsvCallerSession) IsAddressWhitelistedInWhitelistingContract(addressToCheck common.Address, operatorId *big.Int, ...) (bool, error)
- func (_Ssv *SsvCallerSession) IsLiquidatable(clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvCallerSession) IsLiquidated(clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvCallerSession) IsWhitelistingContract(contractAddress common.Address) (bool, error)
- func (_Ssv *SsvCallerSession) Owner() (common.Address, error)
- func (_Ssv *SsvCallerSession) PendingOwner() (common.Address, error)
- func (_Ssv *SsvCallerSession) ProxiableUUID() ([32]byte, error)
- func (_Ssv *SsvCallerSession) SsvNetwork() (common.Address, error)
- type SsvFilterer
- func (_Ssv *SsvFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*SsvAdminChangedIterator, error)
- func (_Ssv *SsvFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*SsvBeaconUpgradedIterator, error)
- func (_Ssv *SsvFilterer) FilterInitialized(opts *bind.FilterOpts) (*SsvInitializedIterator, error)
- func (_Ssv *SsvFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*SsvOwnershipTransferStartedIterator, error)
- func (_Ssv *SsvFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*SsvOwnershipTransferredIterator, error)
- func (_Ssv *SsvFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*SsvUpgradedIterator, error)
- func (_Ssv *SsvFilterer) ParseAdminChanged(log types.Log) (*SsvAdminChanged, error)
- func (_Ssv *SsvFilterer) ParseBeaconUpgraded(log types.Log) (*SsvBeaconUpgraded, error)
- func (_Ssv *SsvFilterer) ParseInitialized(log types.Log) (*SsvInitialized, error)
- func (_Ssv *SsvFilterer) ParseOwnershipTransferStarted(log types.Log) (*SsvOwnershipTransferStarted, error)
- func (_Ssv *SsvFilterer) ParseOwnershipTransferred(log types.Log) (*SsvOwnershipTransferred, error)
- func (_Ssv *SsvFilterer) ParseUpgraded(log types.Log) (*SsvUpgraded, error)
- func (_Ssv *SsvFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *SsvAdminChanged) (event.Subscription, error)
- func (_Ssv *SsvFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *SsvBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
- func (_Ssv *SsvFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SsvInitialized) (event.Subscription, error)
- func (_Ssv *SsvFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *SsvOwnershipTransferStarted, ...) (event.Subscription, error)
- func (_Ssv *SsvFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SsvOwnershipTransferred, ...) (event.Subscription, error)
- func (_Ssv *SsvFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SsvUpgraded, ...) (event.Subscription, error)
- type SsvInitialized
- type SsvInitializedIterator
- type SsvOwnershipTransferStarted
- type SsvOwnershipTransferStartedIterator
- type SsvOwnershipTransferred
- type SsvOwnershipTransferredIterator
- type SsvRaw
- type SsvSession
- func (_Ssv *SsvSession) AcceptOwnership() (*types.Transaction, error)
- func (_Ssv *SsvSession) GetBalance(clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvSession) GetBurnRate(clusterOwner common.Address, operatorIds []uint64, ...) (*big.Int, error)
- func (_Ssv *SsvSession) GetLiquidationThresholdPeriod() (uint64, error)
- func (_Ssv *SsvSession) GetMaximumOperatorFee() (uint64, error)
- func (_Ssv *SsvSession) GetMinimumLiquidationCollateral() (*big.Int, error)
- func (_Ssv *SsvSession) GetNetworkEarnings() (*big.Int, error)
- func (_Ssv *SsvSession) GetNetworkFee() (*big.Int, error)
- func (_Ssv *SsvSession) GetNetworkValidatorsCount() (uint32, error)
- func (_Ssv *SsvSession) GetOperatorById(operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
- func (_Ssv *SsvSession) GetOperatorDeclaredFee(operatorId uint64) (bool, *big.Int, uint64, uint64, error)
- func (_Ssv *SsvSession) GetOperatorEarnings(id uint64) (*big.Int, error)
- func (_Ssv *SsvSession) GetOperatorFee(operatorId uint64) (*big.Int, error)
- func (_Ssv *SsvSession) GetOperatorFeeIncreaseLimit() (uint64, error)
- func (_Ssv *SsvSession) GetOperatorFeePeriods() (uint64, uint64, error)
- func (_Ssv *SsvSession) GetValidator(clusterOwner common.Address, publicKey []byte) (bool, error)
- func (_Ssv *SsvSession) GetValidatorsPerOperatorLimit() (uint32, error)
- func (_Ssv *SsvSession) GetVersion() (string, error)
- func (_Ssv *SsvSession) GetWhitelistedOperators(operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
- func (_Ssv *SsvSession) Initialize(ssvNetwork_ common.Address) (*types.Transaction, error)
- func (_Ssv *SsvSession) IsAddressWhitelistedInWhitelistingContract(addressToCheck common.Address, operatorId *big.Int, ...) (bool, error)
- func (_Ssv *SsvSession) IsLiquidatable(clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvSession) IsLiquidated(clusterOwner common.Address, operatorIds []uint64, ...) (bool, error)
- func (_Ssv *SsvSession) IsWhitelistingContract(contractAddress common.Address) (bool, error)
- func (_Ssv *SsvSession) Owner() (common.Address, error)
- func (_Ssv *SsvSession) PendingOwner() (common.Address, error)
- func (_Ssv *SsvSession) ProxiableUUID() ([32]byte, error)
- func (_Ssv *SsvSession) RenounceOwnership() (*types.Transaction, error)
- func (_Ssv *SsvSession) SsvNetwork() (common.Address, error)
- func (_Ssv *SsvSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Ssv *SsvSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_Ssv *SsvSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type SsvTransactor
- func (_Ssv *SsvTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ssv *SsvTransactor) Initialize(opts *bind.TransactOpts, ssvNetwork_ common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ssv *SsvTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- type SsvTransactorRaw
- type SsvTransactorSession
- func (_Ssv *SsvTransactorSession) AcceptOwnership() (*types.Transaction, error)
- func (_Ssv *SsvTransactorSession) Initialize(ssvNetwork_ common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Ssv *SsvTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_Ssv *SsvTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type SsvUpgraded
- type SsvUpgradedIterator
Constants ¶
This section is empty.
Variables ¶
var ( // ssv cluster event ValidatorAdded = "ValidatorAdded" ValidatorRemoved = "ValidatorRemoved" ClusterLiquidated = "ClusterLiquidated" ClusterReactivated = "ClusterReactivated" ClusterWithdrawn = "ClusterWithdrawn" ClusterDeposited = "ClusterDeposited" ValidatorExited = "ValidatorExited" FeeRecipientAddressUpdated = "FeeRecipientAddressUpdated" // ssv operator event OperatorAdded = "OperatorAdded" OperatorRemoved = "OperatorRemoved" OperatorFeeDeclared = "OperatorFeeDeclared" OperatorFeeDeclarationCancelled = "OperatorFeeDeclarationCancelled" OperatorFeeExecuted = "OperatorFeeExecuted" OperatorWithdrawn = "OperatorWithdrawn" OperatorPrivacyStatusUpdated = "OperatorPrivacyStatusUpdated" OperatorMultipleWhitelistUpdated = "OperatorMultipleWhitelistUpdated" OperatorMultipleWhitelistRemoved = "OperatorMultipleWhitelistRemoved" OperatorWhitelistingContractUpdated = "OperatorWhitelistingContractUpdated" // ssv protocol event OperatorFeeIncreaseLimitUpdated = "OperatorFeeIncreaseLimitUpdated" DeclareOperatorFeePeriodUpdated = "DeclareOperatorFeePeriodUpdated" ExecuteOperatorFeePeriodUpdated = "ExecuteOperatorFeePeriodUpdated" LiquidationThresholdPeriodUpdated = "LiquidationThresholdPeriodUpdated" MinimumLiquidationCollateralUpdated = "MinimumLiquidationCollateralUpdated" NetworkFeeUpdated = "NetworkFeeUpdated" NetworkEarningsWithdrawn = "NetworkEarningsWithdrawn" OperatorMaximumFeeUpdated = "OperatorMaximumFeeUpdated" Initialized = "Initialized" AdminChanged = "AdminChanged" Upgraded = "Upgraded" ModuleUpgraded = "ModuleUpgraded" BeaconUpgraded = "BeaconUpgraded" OwnershipTransferred = "OwnershipTransferred" OwnershipTransferStarted = "OwnershipTransferStarted" // Removed OperatorWhitelistUpdated = "OperatorWhitelistUpdated" )
var SsvABI = SsvMetaData.ABI
SsvABI is the input ABI used to generate the binding from. Deprecated: Use SsvMetaData.ABI instead.
var SsvMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"AddressIsWhitelistingContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalNotWithinTimeframe\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"CallerNotOwnerWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotWhitelisted\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"CallerNotWhitelistedWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClusterAlreadyEnabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClusterDoesNotExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClusterIsLiquidated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClusterNotLiquidatable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyPublicKeysList\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"ExceedValidatorLimit\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"ExceedValidatorLimitWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeExceedsIncreaseLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeIncreaseNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectClusterState\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectValidatorState\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"IncorrectValidatorStateWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidContractAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOperatorIdsLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPublicKeyLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWhitelistAddressesLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"InvalidWhitelistingContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MaxValueExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NewBlockPeriodIsBelowMinimum\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoFeeDeclared\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAuthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperatorAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperatorDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperatorsListNotUnique\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicKeysSharesLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SameFeeChangeNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TargetModuleDoesNotExist\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"moduleId\",\"type\":\"uint8\"}],\"name\":\"TargetModuleDoesNotExistWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnsortedOperatorsList\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValidatorAlreadyExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"ValidatorAlreadyExistsWithData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValidatorDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddressNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"getBurnRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLiquidationThresholdPeriod\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMaximumOperatorFee\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinimumLiquidationCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNetworkEarnings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNetworkFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNetworkValidatorsCount\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"getOperatorById\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"getOperatorDeclaredFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"}],\"name\":\"getOperatorEarnings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"getOperatorFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOperatorFeeIncreaseLimit\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOperatorFeePeriods\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"getValidator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getValidatorsPerOperatorLimit\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"address\",\"name\":\"whitelistedAddress\",\"type\":\"address\"}],\"name\":\"getWhitelistedOperators\",\"outputs\":[{\"internalType\":\"uint64[]\",\"name\":\"whitelistedOperatorIds\",\"type\":\"uint64[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISSVViews\",\"name\":\"ssvNetwork_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addressToCheck\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"operatorId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"whitelistingContract\",\"type\":\"address\"}],\"name\":\"isAddressWhitelistedInWhitelistingContract\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isWhitelisted\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"isLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"isLiquidated\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"isWhitelistingContract\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ssvNetwork\",\"outputs\":[{\"internalType\":\"contractISSVViews\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
SsvMetaData contains all meta data concerning the Ssv contract.
Functions ¶
Types ¶
type ApiOperatorData ¶
type ApiOperatorData struct {
ID int `json:"id"`
IDStr string `json:"id_str"`
DeclaredFee string `json:"declared_fee"`
PreviousFee string `json:"previous_fee"`
Fee string `json:"fee"`
PublicKey string `json:"public_key"`
OwnerAddress string `json:"owner_address"`
AddressWhitelist string `json:"address_whitelist"`
IsPrivate bool `json:"is_private"`
WhitelistingContract string `json:"whitelisting_contract"`
Location string `json:"location"`
SetupProvider string `json:"setup_provider"`
Eth1NodeClient string `json:"eth1_node_client"`
Eth2NodeClient string `json:"eth2_node_client"`
MevRelays string `json:"mev_relays"`
Description string `json:"description"`
WebsiteURL string `json:"website_url"`
TwitterURL string `json:"twitter_url"`
LinkedinURL string `json:"linkedin_url"`
DkgAddress string `json:"dkg_address"`
Logo string `json:"logo"`
Type string `json:"type"`
Name string `json:"name"`
Performance struct {
Day float64 `json:"24h"`
Month float64 `json:"30d"`
} `json:"performance"`
IsValid bool `json:"is_valid"`
IsDeleted bool `json:"is_deleted"`
IsActive int `json:"is_active"`
Status string `json:"status"`
ValidatorsCount int `json:"validators_count"`
Version string `json:"version"`
Network string `json:"network"`
}
type Cluster ¶
type Cluster struct {
ClusterId string
Owner common.Address
OperatorIds []uint64
ClusterInfo ISSVNetworkCoreCluster
}
type ContractCreationInfo ¶
func GetContractCreator ¶
func GetContractCreator(address string, endpoint, apiKey string) (*ContractCreationInfo, error)
type ContractInfo ¶
type ContractInfo struct {
DeployBlock uint64
SSVNetwork common.Address
SSVNetworkView common.Address
}
func GetSSVContractInfo ¶
func GetSSVContractInfo(network string) (*ContractInfo, error)
type ISSVNetworkCoreCluster ¶
type ISSVNetworkCoreCluster struct {
ValidatorCount uint32
NetworkFeeIndex uint64
Index uint64
Active bool
Balance *big.Int
}
ISSVNetworkCoreCluster is an auto generated low-level Go binding around an user-defined struct.
type LiquidationInfo ¶
type NetworkInfo ¶
type OperatorDeclaredFee ¶
type SSV ¶
type SSV struct {
// contains filtered or unexported fields
}
func NewSSV ¶
func NewSSV(cfg *config.Config, client *client.Eth1Client, store *store.Store, alarm *alert.AlarmDaemon) (*SSV, error)
func (*SSV) CalcLiquidation ¶
func (*SSV) GetLastProcessedBlock ¶
func (*SSV) GetNetworkInfo ¶
func (s *SSV) GetNetworkInfo() (*NetworkInfo, error)
func (*SSV) GetOperatorDeclaredFee ¶
func (s *SSV) GetOperatorDeclaredFee(operatorIds []uint64) ([]OperatorDeclaredFee, error)
func (*SSV) GetOperatorEarnings ¶
func (*SSV) GetSSVLiquidationInfo ¶
func (s *SSV) GetSSVLiquidationInfo(cluster Cluster) (*LiquidationInfo, error)
func (*SSV) ScanSSVEventLoop ¶
func (s *SSV) ScanSSVEventLoop()
func (*SSV) SimulatedCalcLiquidation ¶
func (*SSV) UpdateClusterEoaOwnerLoop ¶
func (s *SSV) UpdateClusterEoaOwnerLoop()
func (*SSV) UpdateClusterLiquidationLoop ¶
func (s *SSV) UpdateClusterLiquidationLoop()
func (*SSV) UpdateClusterUpcomingLiquidationLoop ¶
func (s *SSV) UpdateClusterUpcomingLiquidationLoop()
func (*SSV) UpdateOperatorLoop ¶
func (s *SSV) UpdateOperatorLoop()
type Ssv ¶
type Ssv struct {
SsvCaller // Read-only binding to the contract
SsvTransactor // Write-only binding to the contract
SsvFilterer // Log filterer for contract events
}
Ssv is an auto generated Go binding around an Ethereum contract.
type SsvAdminChanged ¶
type SsvAdminChanged struct {
PreviousAdmin common.Address
NewAdmin common.Address
Raw types.Log // Blockchain specific contextual infos
}
SsvAdminChanged represents a AdminChanged event raised by the Ssv contract.
type SsvAdminChangedIterator ¶
type SsvAdminChangedIterator struct {
Event *SsvAdminChanged // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Ssv contract.
func (*SsvAdminChangedIterator) Close ¶
func (it *SsvAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvAdminChangedIterator) Error ¶
func (it *SsvAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvAdminChangedIterator) Next ¶
func (it *SsvAdminChangedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SsvBeaconUpgraded ¶
type SsvBeaconUpgraded struct {
Beacon common.Address
Raw types.Log // Blockchain specific contextual infos
}
SsvBeaconUpgraded represents a BeaconUpgraded event raised by the Ssv contract.
type SsvBeaconUpgradedIterator ¶
type SsvBeaconUpgradedIterator struct {
Event *SsvBeaconUpgraded // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Ssv contract.
func (*SsvBeaconUpgradedIterator) Close ¶
func (it *SsvBeaconUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvBeaconUpgradedIterator) Error ¶
func (it *SsvBeaconUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvBeaconUpgradedIterator) Next ¶
func (it *SsvBeaconUpgradedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SsvCaller ¶
type SsvCaller struct {
// contains filtered or unexported fields
}
SsvCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSsvCaller ¶
NewSsvCaller creates a new read-only instance of Ssv, bound to a specific deployed contract.
func (*SsvCaller) GetBalance ¶
func (_Ssv *SsvCaller) GetBalance(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBalance is a free data retrieval call binding the contract method 0xeb8ecfa7.
Solidity: function getBalance(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvCaller) GetBurnRate ¶
func (_Ssv *SsvCaller) GetBurnRate(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBurnRate is a free data retrieval call binding the contract method 0xca162e5e.
Solidity: function getBurnRate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvCaller) GetLiquidationThresholdPeriod ¶
GetLiquidationThresholdPeriod is a free data retrieval call binding the contract method 0x9040f7c3.
Solidity: function getLiquidationThresholdPeriod() view returns(uint64)
func (*SsvCaller) GetMaximumOperatorFee ¶
GetMaximumOperatorFee is a free data retrieval call binding the contract method 0xdf02ef7f.
Solidity: function getMaximumOperatorFee() view returns(uint64)
func (*SsvCaller) GetMinimumLiquidationCollateral ¶
GetMinimumLiquidationCollateral is a free data retrieval call binding the contract method 0x5ba3d62a.
Solidity: function getMinimumLiquidationCollateral() view returns(uint256)
func (*SsvCaller) GetNetworkEarnings ¶
GetNetworkEarnings is a free data retrieval call binding the contract method 0x777915cb.
Solidity: function getNetworkEarnings() view returns(uint256)
func (*SsvCaller) GetNetworkFee ¶
GetNetworkFee is a free data retrieval call binding the contract method 0xfc043830.
Solidity: function getNetworkFee() view returns(uint256)
func (*SsvCaller) GetNetworkValidatorsCount ¶
GetNetworkValidatorsCount is a free data retrieval call binding the contract method 0x9568f9d9.
Solidity: function getNetworkValidatorsCount() view returns(uint32)
func (*SsvCaller) GetOperatorById ¶
func (_Ssv *SsvCaller) GetOperatorById(opts *bind.CallOpts, operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
GetOperatorById is a free data retrieval call binding the contract method 0xbe3f058e.
Solidity: function getOperatorById(uint64 operatorId) view returns(address, uint256, uint32, address, bool, bool)
func (*SsvCaller) GetOperatorDeclaredFee ¶
func (_Ssv *SsvCaller) GetOperatorDeclaredFee(opts *bind.CallOpts, operatorId uint64) (bool, *big.Int, uint64, uint64, error)
GetOperatorDeclaredFee is a free data retrieval call binding the contract method 0x03b3d436.
Solidity: function getOperatorDeclaredFee(uint64 operatorId) view returns(bool, uint256, uint64, uint64)
func (*SsvCaller) GetOperatorEarnings ¶
GetOperatorEarnings is a free data retrieval call binding the contract method 0x6d0db0e4.
Solidity: function getOperatorEarnings(uint64 id) view returns(uint256)
func (*SsvCaller) GetOperatorFee ¶
GetOperatorFee is a free data retrieval call binding the contract method 0x9ad3c745.
Solidity: function getOperatorFee(uint64 operatorId) view returns(uint256)
func (*SsvCaller) GetOperatorFeeIncreaseLimit ¶
GetOperatorFeeIncreaseLimit is a free data retrieval call binding the contract method 0x68465f7d.
Solidity: function getOperatorFeeIncreaseLimit() view returns(uint64)
func (*SsvCaller) GetOperatorFeePeriods ¶
GetOperatorFeePeriods is a free data retrieval call binding the contract method 0xe6d2834d.
Solidity: function getOperatorFeePeriods() view returns(uint64, uint64)
func (*SsvCaller) GetValidator ¶
func (_Ssv *SsvCaller) GetValidator(opts *bind.CallOpts, clusterOwner common.Address, publicKey []byte) (bool, error)
GetValidator is a free data retrieval call binding the contract method 0x3e2ec160.
Solidity: function getValidator(address clusterOwner, bytes publicKey) view returns(bool)
func (*SsvCaller) GetValidatorsPerOperatorLimit ¶
GetValidatorsPerOperatorLimit is a free data retrieval call binding the contract method 0x14cb9d7b.
Solidity: function getValidatorsPerOperatorLimit() view returns(uint32)
func (*SsvCaller) GetVersion ¶
GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.
Solidity: function getVersion() view returns(string)
func (*SsvCaller) GetWhitelistedOperators ¶
func (_Ssv *SsvCaller) GetWhitelistedOperators(opts *bind.CallOpts, operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
GetWhitelistedOperators is a free data retrieval call binding the contract method 0xa9cf9eec.
Solidity: function getWhitelistedOperators(uint64[] operatorIds, address whitelistedAddress) view returns(uint64[] whitelistedOperatorIds)
func (*SsvCaller) IsAddressWhitelistedInWhitelistingContract ¶
func (_Ssv *SsvCaller) IsAddressWhitelistedInWhitelistingContract(opts *bind.CallOpts, addressToCheck common.Address, operatorId *big.Int, whitelistingContract common.Address) (bool, error)
IsAddressWhitelistedInWhitelistingContract is a free data retrieval call binding the contract method 0x46e6d917.
Solidity: function isAddressWhitelistedInWhitelistingContract(address addressToCheck, uint256 operatorId, address whitelistingContract) view returns(bool isWhitelisted)
func (*SsvCaller) IsLiquidatable ¶
func (_Ssv *SsvCaller) IsLiquidatable(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidatable is a free data retrieval call binding the contract method 0x16cff008.
Solidity: function isLiquidatable(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvCaller) IsLiquidated ¶
func (_Ssv *SsvCaller) IsLiquidated(opts *bind.CallOpts, clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidated is a free data retrieval call binding the contract method 0xa694695b.
Solidity: function isLiquidated(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvCaller) IsWhitelistingContract ¶
func (_Ssv *SsvCaller) IsWhitelistingContract(opts *bind.CallOpts, contractAddress common.Address) (bool, error)
IsWhitelistingContract is a free data retrieval call binding the contract method 0xbac69e6f.
Solidity: function isWhitelistingContract(address contractAddress) view returns(bool)
func (*SsvCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*SsvCaller) PendingOwner ¶
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*SsvCaller) ProxiableUUID ¶
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
type SsvCallerRaw ¶
type SsvCallerRaw struct {
Contract *SsvCaller // Generic read-only contract binding to access the raw methods on
}
SsvCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SsvCallerRaw) Call ¶
func (_Ssv *SsvCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type SsvCallerSession ¶
type SsvCallerSession struct {
Contract *SsvCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
SsvCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SsvCallerSession) GetBalance ¶
func (_Ssv *SsvCallerSession) GetBalance(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBalance is a free data retrieval call binding the contract method 0xeb8ecfa7.
Solidity: function getBalance(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvCallerSession) GetBurnRate ¶
func (_Ssv *SsvCallerSession) GetBurnRate(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBurnRate is a free data retrieval call binding the contract method 0xca162e5e.
Solidity: function getBurnRate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvCallerSession) GetLiquidationThresholdPeriod ¶
func (_Ssv *SsvCallerSession) GetLiquidationThresholdPeriod() (uint64, error)
GetLiquidationThresholdPeriod is a free data retrieval call binding the contract method 0x9040f7c3.
Solidity: function getLiquidationThresholdPeriod() view returns(uint64)
func (*SsvCallerSession) GetMaximumOperatorFee ¶
func (_Ssv *SsvCallerSession) GetMaximumOperatorFee() (uint64, error)
GetMaximumOperatorFee is a free data retrieval call binding the contract method 0xdf02ef7f.
Solidity: function getMaximumOperatorFee() view returns(uint64)
func (*SsvCallerSession) GetMinimumLiquidationCollateral ¶
func (_Ssv *SsvCallerSession) GetMinimumLiquidationCollateral() (*big.Int, error)
GetMinimumLiquidationCollateral is a free data retrieval call binding the contract method 0x5ba3d62a.
Solidity: function getMinimumLiquidationCollateral() view returns(uint256)
func (*SsvCallerSession) GetNetworkEarnings ¶
func (_Ssv *SsvCallerSession) GetNetworkEarnings() (*big.Int, error)
GetNetworkEarnings is a free data retrieval call binding the contract method 0x777915cb.
Solidity: function getNetworkEarnings() view returns(uint256)
func (*SsvCallerSession) GetNetworkFee ¶
func (_Ssv *SsvCallerSession) GetNetworkFee() (*big.Int, error)
GetNetworkFee is a free data retrieval call binding the contract method 0xfc043830.
Solidity: function getNetworkFee() view returns(uint256)
func (*SsvCallerSession) GetNetworkValidatorsCount ¶
func (_Ssv *SsvCallerSession) GetNetworkValidatorsCount() (uint32, error)
GetNetworkValidatorsCount is a free data retrieval call binding the contract method 0x9568f9d9.
Solidity: function getNetworkValidatorsCount() view returns(uint32)
func (*SsvCallerSession) GetOperatorById ¶
func (_Ssv *SsvCallerSession) GetOperatorById(operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
GetOperatorById is a free data retrieval call binding the contract method 0xbe3f058e.
Solidity: function getOperatorById(uint64 operatorId) view returns(address, uint256, uint32, address, bool, bool)
func (*SsvCallerSession) GetOperatorDeclaredFee ¶
func (_Ssv *SsvCallerSession) GetOperatorDeclaredFee(operatorId uint64) (bool, *big.Int, uint64, uint64, error)
GetOperatorDeclaredFee is a free data retrieval call binding the contract method 0x03b3d436.
Solidity: function getOperatorDeclaredFee(uint64 operatorId) view returns(bool, uint256, uint64, uint64)
func (*SsvCallerSession) GetOperatorEarnings ¶
func (_Ssv *SsvCallerSession) GetOperatorEarnings(id uint64) (*big.Int, error)
GetOperatorEarnings is a free data retrieval call binding the contract method 0x6d0db0e4.
Solidity: function getOperatorEarnings(uint64 id) view returns(uint256)
func (*SsvCallerSession) GetOperatorFee ¶
func (_Ssv *SsvCallerSession) GetOperatorFee(operatorId uint64) (*big.Int, error)
GetOperatorFee is a free data retrieval call binding the contract method 0x9ad3c745.
Solidity: function getOperatorFee(uint64 operatorId) view returns(uint256)
func (*SsvCallerSession) GetOperatorFeeIncreaseLimit ¶
func (_Ssv *SsvCallerSession) GetOperatorFeeIncreaseLimit() (uint64, error)
GetOperatorFeeIncreaseLimit is a free data retrieval call binding the contract method 0x68465f7d.
Solidity: function getOperatorFeeIncreaseLimit() view returns(uint64)
func (*SsvCallerSession) GetOperatorFeePeriods ¶
func (_Ssv *SsvCallerSession) GetOperatorFeePeriods() (uint64, uint64, error)
GetOperatorFeePeriods is a free data retrieval call binding the contract method 0xe6d2834d.
Solidity: function getOperatorFeePeriods() view returns(uint64, uint64)
func (*SsvCallerSession) GetValidator ¶
func (_Ssv *SsvCallerSession) GetValidator(clusterOwner common.Address, publicKey []byte) (bool, error)
GetValidator is a free data retrieval call binding the contract method 0x3e2ec160.
Solidity: function getValidator(address clusterOwner, bytes publicKey) view returns(bool)
func (*SsvCallerSession) GetValidatorsPerOperatorLimit ¶
func (_Ssv *SsvCallerSession) GetValidatorsPerOperatorLimit() (uint32, error)
GetValidatorsPerOperatorLimit is a free data retrieval call binding the contract method 0x14cb9d7b.
Solidity: function getValidatorsPerOperatorLimit() view returns(uint32)
func (*SsvCallerSession) GetVersion ¶
func (_Ssv *SsvCallerSession) GetVersion() (string, error)
GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.
Solidity: function getVersion() view returns(string)
func (*SsvCallerSession) GetWhitelistedOperators ¶
func (_Ssv *SsvCallerSession) GetWhitelistedOperators(operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
GetWhitelistedOperators is a free data retrieval call binding the contract method 0xa9cf9eec.
Solidity: function getWhitelistedOperators(uint64[] operatorIds, address whitelistedAddress) view returns(uint64[] whitelistedOperatorIds)
func (*SsvCallerSession) IsAddressWhitelistedInWhitelistingContract ¶
func (_Ssv *SsvCallerSession) IsAddressWhitelistedInWhitelistingContract(addressToCheck common.Address, operatorId *big.Int, whitelistingContract common.Address) (bool, error)
IsAddressWhitelistedInWhitelistingContract is a free data retrieval call binding the contract method 0x46e6d917.
Solidity: function isAddressWhitelistedInWhitelistingContract(address addressToCheck, uint256 operatorId, address whitelistingContract) view returns(bool isWhitelisted)
func (*SsvCallerSession) IsLiquidatable ¶
func (_Ssv *SsvCallerSession) IsLiquidatable(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidatable is a free data retrieval call binding the contract method 0x16cff008.
Solidity: function isLiquidatable(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvCallerSession) IsLiquidated ¶
func (_Ssv *SsvCallerSession) IsLiquidated(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidated is a free data retrieval call binding the contract method 0xa694695b.
Solidity: function isLiquidated(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvCallerSession) IsWhitelistingContract ¶
func (_Ssv *SsvCallerSession) IsWhitelistingContract(contractAddress common.Address) (bool, error)
IsWhitelistingContract is a free data retrieval call binding the contract method 0xbac69e6f.
Solidity: function isWhitelistingContract(address contractAddress) view returns(bool)
func (*SsvCallerSession) Owner ¶
func (_Ssv *SsvCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*SsvCallerSession) PendingOwner ¶
func (_Ssv *SsvCallerSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*SsvCallerSession) ProxiableUUID ¶
func (_Ssv *SsvCallerSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*SsvCallerSession) SsvNetwork ¶
func (_Ssv *SsvCallerSession) SsvNetwork() (common.Address, error)
SsvNetwork is a free data retrieval call binding the contract method 0x10d04858.
Solidity: function ssvNetwork() view returns(address)
type SsvFilterer ¶
type SsvFilterer struct {
// contains filtered or unexported fields
}
SsvFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSsvFilterer ¶
func NewSsvFilterer(address common.Address, filterer bind.ContractFilterer) (*SsvFilterer, error)
NewSsvFilterer creates a new log filterer instance of Ssv, bound to a specific deployed contract.
func (*SsvFilterer) FilterAdminChanged ¶
func (_Ssv *SsvFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*SsvAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SsvFilterer) FilterBeaconUpgraded ¶
func (_Ssv *SsvFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*SsvBeaconUpgradedIterator, error)
FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*SsvFilterer) FilterInitialized ¶
func (_Ssv *SsvFilterer) FilterInitialized(opts *bind.FilterOpts) (*SsvInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*SsvFilterer) FilterOwnershipTransferStarted ¶
func (_Ssv *SsvFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SsvOwnershipTransferStartedIterator, error)
FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) FilterOwnershipTransferred ¶
func (_Ssv *SsvFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SsvOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) FilterUpgraded ¶
func (_Ssv *SsvFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*SsvUpgradedIterator, error)
FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*SsvFilterer) ParseAdminChanged ¶
func (_Ssv *SsvFilterer) ParseAdminChanged(log types.Log) (*SsvAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SsvFilterer) ParseBeaconUpgraded ¶
func (_Ssv *SsvFilterer) ParseBeaconUpgraded(log types.Log) (*SsvBeaconUpgraded, error)
ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*SsvFilterer) ParseInitialized ¶
func (_Ssv *SsvFilterer) ParseInitialized(log types.Log) (*SsvInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*SsvFilterer) ParseOwnershipTransferStarted ¶
func (_Ssv *SsvFilterer) ParseOwnershipTransferStarted(log types.Log) (*SsvOwnershipTransferStarted, error)
ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) ParseOwnershipTransferred ¶
func (_Ssv *SsvFilterer) ParseOwnershipTransferred(log types.Log) (*SsvOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) ParseUpgraded ¶
func (_Ssv *SsvFilterer) ParseUpgraded(log types.Log) (*SsvUpgraded, error)
ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*SsvFilterer) WatchAdminChanged ¶
func (_Ssv *SsvFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *SsvAdminChanged) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SsvFilterer) WatchBeaconUpgraded ¶
func (_Ssv *SsvFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *SsvBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*SsvFilterer) WatchInitialized ¶
func (_Ssv *SsvFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SsvInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*SsvFilterer) WatchOwnershipTransferStarted ¶
func (_Ssv *SsvFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *SsvOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.
Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) WatchOwnershipTransferred ¶
func (_Ssv *SsvFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SsvOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*SsvFilterer) WatchUpgraded ¶
func (_Ssv *SsvFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SsvUpgraded, implementation []common.Address) (event.Subscription, error)
WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
type SsvInitialized ¶
SsvInitialized represents a Initialized event raised by the Ssv contract.
type SsvInitializedIterator ¶
type SsvInitializedIterator struct {
Event *SsvInitialized // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Ssv contract.
func (*SsvInitializedIterator) Close ¶
func (it *SsvInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvInitializedIterator) Error ¶
func (it *SsvInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvInitializedIterator) Next ¶
func (it *SsvInitializedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SsvOwnershipTransferStarted ¶
type SsvOwnershipTransferStarted struct {
PreviousOwner common.Address
NewOwner common.Address
Raw types.Log // Blockchain specific contextual infos
}
SsvOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the Ssv contract.
type SsvOwnershipTransferStartedIterator ¶
type SsvOwnershipTransferStartedIterator struct {
Event *SsvOwnershipTransferStarted // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the Ssv contract.
func (*SsvOwnershipTransferStartedIterator) Close ¶
func (it *SsvOwnershipTransferStartedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvOwnershipTransferStartedIterator) Error ¶
func (it *SsvOwnershipTransferStartedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvOwnershipTransferStartedIterator) Next ¶
func (it *SsvOwnershipTransferStartedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SsvOwnershipTransferred ¶
type SsvOwnershipTransferred struct {
PreviousOwner common.Address
NewOwner common.Address
Raw types.Log // Blockchain specific contextual infos
}
SsvOwnershipTransferred represents a OwnershipTransferred event raised by the Ssv contract.
type SsvOwnershipTransferredIterator ¶
type SsvOwnershipTransferredIterator struct {
Event *SsvOwnershipTransferred // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Ssv contract.
func (*SsvOwnershipTransferredIterator) Close ¶
func (it *SsvOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvOwnershipTransferredIterator) Error ¶
func (it *SsvOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvOwnershipTransferredIterator) Next ¶
func (it *SsvOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SsvRaw ¶
type SsvRaw struct {
Contract *Ssv // Generic contract binding to access the raw methods on
}
SsvRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SsvRaw) Call ¶
func (_Ssv *SsvRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*SsvRaw) Transact ¶
func (_Ssv *SsvRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SsvRaw) Transfer ¶
func (_Ssv *SsvRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type SsvSession ¶
type SsvSession struct {
Contract *Ssv // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
SsvSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SsvSession) AcceptOwnership ¶
func (_Ssv *SsvSession) AcceptOwnership() (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*SsvSession) GetBalance ¶
func (_Ssv *SsvSession) GetBalance(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBalance is a free data retrieval call binding the contract method 0xeb8ecfa7.
Solidity: function getBalance(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvSession) GetBurnRate ¶
func (_Ssv *SsvSession) GetBurnRate(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (*big.Int, error)
GetBurnRate is a free data retrieval call binding the contract method 0xca162e5e.
Solidity: function getBurnRate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(uint256)
func (*SsvSession) GetLiquidationThresholdPeriod ¶
func (_Ssv *SsvSession) GetLiquidationThresholdPeriod() (uint64, error)
GetLiquidationThresholdPeriod is a free data retrieval call binding the contract method 0x9040f7c3.
Solidity: function getLiquidationThresholdPeriod() view returns(uint64)
func (*SsvSession) GetMaximumOperatorFee ¶
func (_Ssv *SsvSession) GetMaximumOperatorFee() (uint64, error)
GetMaximumOperatorFee is a free data retrieval call binding the contract method 0xdf02ef7f.
Solidity: function getMaximumOperatorFee() view returns(uint64)
func (*SsvSession) GetMinimumLiquidationCollateral ¶
func (_Ssv *SsvSession) GetMinimumLiquidationCollateral() (*big.Int, error)
GetMinimumLiquidationCollateral is a free data retrieval call binding the contract method 0x5ba3d62a.
Solidity: function getMinimumLiquidationCollateral() view returns(uint256)
func (*SsvSession) GetNetworkEarnings ¶
func (_Ssv *SsvSession) GetNetworkEarnings() (*big.Int, error)
GetNetworkEarnings is a free data retrieval call binding the contract method 0x777915cb.
Solidity: function getNetworkEarnings() view returns(uint256)
func (*SsvSession) GetNetworkFee ¶
func (_Ssv *SsvSession) GetNetworkFee() (*big.Int, error)
GetNetworkFee is a free data retrieval call binding the contract method 0xfc043830.
Solidity: function getNetworkFee() view returns(uint256)
func (*SsvSession) GetNetworkValidatorsCount ¶
func (_Ssv *SsvSession) GetNetworkValidatorsCount() (uint32, error)
GetNetworkValidatorsCount is a free data retrieval call binding the contract method 0x9568f9d9.
Solidity: function getNetworkValidatorsCount() view returns(uint32)
func (*SsvSession) GetOperatorById ¶
func (_Ssv *SsvSession) GetOperatorById(operatorId uint64) (common.Address, *big.Int, uint32, common.Address, bool, bool, error)
GetOperatorById is a free data retrieval call binding the contract method 0xbe3f058e.
Solidity: function getOperatorById(uint64 operatorId) view returns(address, uint256, uint32, address, bool, bool)
func (*SsvSession) GetOperatorDeclaredFee ¶
func (_Ssv *SsvSession) GetOperatorDeclaredFee(operatorId uint64) (bool, *big.Int, uint64, uint64, error)
GetOperatorDeclaredFee is a free data retrieval call binding the contract method 0x03b3d436.
Solidity: function getOperatorDeclaredFee(uint64 operatorId) view returns(bool, uint256, uint64, uint64)
func (*SsvSession) GetOperatorEarnings ¶
func (_Ssv *SsvSession) GetOperatorEarnings(id uint64) (*big.Int, error)
GetOperatorEarnings is a free data retrieval call binding the contract method 0x6d0db0e4.
Solidity: function getOperatorEarnings(uint64 id) view returns(uint256)
func (*SsvSession) GetOperatorFee ¶
func (_Ssv *SsvSession) GetOperatorFee(operatorId uint64) (*big.Int, error)
GetOperatorFee is a free data retrieval call binding the contract method 0x9ad3c745.
Solidity: function getOperatorFee(uint64 operatorId) view returns(uint256)
func (*SsvSession) GetOperatorFeeIncreaseLimit ¶
func (_Ssv *SsvSession) GetOperatorFeeIncreaseLimit() (uint64, error)
GetOperatorFeeIncreaseLimit is a free data retrieval call binding the contract method 0x68465f7d.
Solidity: function getOperatorFeeIncreaseLimit() view returns(uint64)
func (*SsvSession) GetOperatorFeePeriods ¶
func (_Ssv *SsvSession) GetOperatorFeePeriods() (uint64, uint64, error)
GetOperatorFeePeriods is a free data retrieval call binding the contract method 0xe6d2834d.
Solidity: function getOperatorFeePeriods() view returns(uint64, uint64)
func (*SsvSession) GetValidator ¶
GetValidator is a free data retrieval call binding the contract method 0x3e2ec160.
Solidity: function getValidator(address clusterOwner, bytes publicKey) view returns(bool)
func (*SsvSession) GetValidatorsPerOperatorLimit ¶
func (_Ssv *SsvSession) GetValidatorsPerOperatorLimit() (uint32, error)
GetValidatorsPerOperatorLimit is a free data retrieval call binding the contract method 0x14cb9d7b.
Solidity: function getValidatorsPerOperatorLimit() view returns(uint32)
func (*SsvSession) GetVersion ¶
func (_Ssv *SsvSession) GetVersion() (string, error)
GetVersion is a free data retrieval call binding the contract method 0x0d8e6e2c.
Solidity: function getVersion() view returns(string)
func (*SsvSession) GetWhitelistedOperators ¶
func (_Ssv *SsvSession) GetWhitelistedOperators(operatorIds []uint64, whitelistedAddress common.Address) ([]uint64, error)
GetWhitelistedOperators is a free data retrieval call binding the contract method 0xa9cf9eec.
Solidity: function getWhitelistedOperators(uint64[] operatorIds, address whitelistedAddress) view returns(uint64[] whitelistedOperatorIds)
func (*SsvSession) Initialize ¶
func (_Ssv *SsvSession) Initialize(ssvNetwork_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address ssvNetwork_) returns()
func (*SsvSession) IsAddressWhitelistedInWhitelistingContract ¶
func (_Ssv *SsvSession) IsAddressWhitelistedInWhitelistingContract(addressToCheck common.Address, operatorId *big.Int, whitelistingContract common.Address) (bool, error)
IsAddressWhitelistedInWhitelistingContract is a free data retrieval call binding the contract method 0x46e6d917.
Solidity: function isAddressWhitelistedInWhitelistingContract(address addressToCheck, uint256 operatorId, address whitelistingContract) view returns(bool isWhitelisted)
func (*SsvSession) IsLiquidatable ¶
func (_Ssv *SsvSession) IsLiquidatable(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidatable is a free data retrieval call binding the contract method 0x16cff008.
Solidity: function isLiquidatable(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvSession) IsLiquidated ¶
func (_Ssv *SsvSession) IsLiquidated(clusterOwner common.Address, operatorIds []uint64, cluster ISSVNetworkCoreCluster) (bool, error)
IsLiquidated is a free data retrieval call binding the contract method 0xa694695b.
Solidity: function isLiquidated(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) view returns(bool)
func (*SsvSession) IsWhitelistingContract ¶
func (_Ssv *SsvSession) IsWhitelistingContract(contractAddress common.Address) (bool, error)
IsWhitelistingContract is a free data retrieval call binding the contract method 0xbac69e6f.
Solidity: function isWhitelistingContract(address contractAddress) view returns(bool)
func (*SsvSession) Owner ¶
func (_Ssv *SsvSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*SsvSession) PendingOwner ¶
func (_Ssv *SsvSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*SsvSession) ProxiableUUID ¶
func (_Ssv *SsvSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*SsvSession) RenounceOwnership ¶
func (_Ssv *SsvSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SsvSession) SsvNetwork ¶
func (_Ssv *SsvSession) SsvNetwork() (common.Address, error)
SsvNetwork is a free data retrieval call binding the contract method 0x10d04858.
Solidity: function ssvNetwork() view returns(address)
func (*SsvSession) TransferOwnership ¶
func (_Ssv *SsvSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*SsvSession) UpgradeTo ¶
func (_Ssv *SsvSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SsvSession) UpgradeToAndCall ¶
func (_Ssv *SsvSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type SsvTransactor ¶
type SsvTransactor struct {
// contains filtered or unexported fields
}
SsvTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSsvTransactor ¶
func NewSsvTransactor(address common.Address, transactor bind.ContractTransactor) (*SsvTransactor, error)
NewSsvTransactor creates a new write-only instance of Ssv, bound to a specific deployed contract.
func (*SsvTransactor) AcceptOwnership ¶
func (_Ssv *SsvTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*SsvTransactor) Initialize ¶
func (_Ssv *SsvTransactor) Initialize(opts *bind.TransactOpts, ssvNetwork_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address ssvNetwork_) returns()
func (*SsvTransactor) RenounceOwnership ¶
func (_Ssv *SsvTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SsvTransactor) TransferOwnership ¶
func (_Ssv *SsvTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*SsvTransactor) UpgradeTo ¶
func (_Ssv *SsvTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SsvTransactor) UpgradeToAndCall ¶
func (_Ssv *SsvTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type SsvTransactorRaw ¶
type SsvTransactorRaw struct {
Contract *SsvTransactor // Generic write-only contract binding to access the raw methods on
}
SsvTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SsvTransactorRaw) Transact ¶
func (_Ssv *SsvTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SsvTransactorRaw) Transfer ¶
func (_Ssv *SsvTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type SsvTransactorSession ¶
type SsvTransactorSession struct {
Contract *SsvTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
SsvTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SsvTransactorSession) AcceptOwnership ¶
func (_Ssv *SsvTransactorSession) AcceptOwnership() (*types.Transaction, error)
AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
Solidity: function acceptOwnership() returns()
func (*SsvTransactorSession) Initialize ¶
func (_Ssv *SsvTransactorSession) Initialize(ssvNetwork_ common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address ssvNetwork_) returns()
func (*SsvTransactorSession) RenounceOwnership ¶
func (_Ssv *SsvTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SsvTransactorSession) TransferOwnership ¶
func (_Ssv *SsvTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*SsvTransactorSession) UpgradeTo ¶
func (_Ssv *SsvTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SsvTransactorSession) UpgradeToAndCall ¶
func (_Ssv *SsvTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type SsvUpgraded ¶
type SsvUpgraded struct {
Implementation common.Address
Raw types.Log // Blockchain specific contextual infos
}
SsvUpgraded represents a Upgraded event raised by the Ssv contract.
type SsvUpgradedIterator ¶
type SsvUpgradedIterator struct {
Event *SsvUpgraded // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SsvUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Ssv contract.
func (*SsvUpgradedIterator) Close ¶
func (it *SsvUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SsvUpgradedIterator) Error ¶
func (it *SsvUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SsvUpgradedIterator) Next ¶
func (it *SsvUpgradedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.