diff --git a/contracts/abigen-with-interfaces.Dockerfile b/contracts/abigen-with-interfaces.Dockerfile deleted file mode 100644 index 3f20c4017..000000000 --- a/contracts/abigen-with-interfaces.Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -# use the below command to build this docker image locally -# docker build -t abigen-with-interfaces -f abigen-with-interfaces.Dockerfile . -FROM golang:1.21 as build - -# this installs our fork of abigen with also creates interfaces for the binding structs -# See https://github.com/ethereum/go-ethereum/pull/28279 -RUN apt update && \ - apt install git -y && \ - git clone https://github.com/samlaf/go-ethereum.git && \ - cd go-ethereum/cmd/abigen && \ - git checkout issue-28278/abigen-interfaces && \ - go build . - - -FROM debian:latest -COPY --from=build /go/go-ethereum/cmd/abigen/abigen /usr/local/bin/abigen -ENTRYPOINT [ "abigen"] \ No newline at end of file diff --git a/contracts/abigen.Dockerfile b/contracts/abigen.Dockerfile new file mode 100644 index 000000000..eda11c2ac --- /dev/null +++ b/contracts/abigen.Dockerfile @@ -0,0 +1,11 @@ +# use the below command to build this docker image locally +# docker build -t abigen -f abigen.Dockerfile . +FROM golang:1.22 AS build + +RUN git clone https://github.com/ethereum/go-ethereum.git && \ + cd go-ethereum/cmd/abigen && \ + go build . + +FROM debian:latest +COPY --from=build /go/go-ethereum/cmd/abigen/abigen /usr/local/bin/abigen +ENTRYPOINT [ "abigen"] \ No newline at end of file diff --git a/contracts/bindings/AVSDirectory/binding.go b/contracts/bindings/AVSDirectory/binding.go index bd3671731..dd8fd9c83 100644 --- a/contracts/bindings/AVSDirectory/binding.go +++ b/contracts/bindings/AVSDirectory/binding.go @@ -67,98 +67,6 @@ func DeployContractAVSDirectory(auth *bind.TransactOpts, backend bind.ContractBa return address, tx, &ContractAVSDirectory{ContractAVSDirectoryCaller: ContractAVSDirectoryCaller{contract: contract}, ContractAVSDirectoryTransactor: ContractAVSDirectoryTransactor{contract: contract}, ContractAVSDirectoryFilterer: ContractAVSDirectoryFilterer{contract: contract}}, nil } -// ContractAVSDirectoryMethods is an auto generated interface around an Ethereum contract. -type ContractAVSDirectoryMethods interface { - ContractAVSDirectoryCalls - ContractAVSDirectoryTransacts - ContractAVSDirectoryFilters -} - -// ContractAVSDirectoryCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractAVSDirectoryCalls interface { - OPERATORAVSREGISTRATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - OPERATORSETFORCEDEREGISTRATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - OPERATORSETREGISTRATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - AvsOperatorStatus(opts *bind.CallOpts, avs common.Address, operator common.Address) (uint8, error) - - CalculateOperatorAVSRegistrationDigestHash(opts *bind.CallOpts, operator common.Address, avs common.Address, salt [32]byte, expiry *big.Int) ([32]byte, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - DomainSeparator(opts *bind.CallOpts) ([32]byte, error) - - OperatorSaltIsSpent(opts *bind.CallOpts, operator common.Address, salt [32]byte) (bool, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) -} - -// ContractAVSDirectoryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractAVSDirectoryTransacts interface { - CancelSalt(opts *bind.TransactOpts, salt [32]byte) (*types.Transaction, error) - - DeregisterOperatorFromAVS(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, initialPausedStatus *big.Int) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - RegisterOperatorToAVS(opts *bind.TransactOpts, operator common.Address, operatorSignature ISignatureUtilsSignatureWithSaltAndExpiry) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - UpdateAVSMetadataURI(opts *bind.TransactOpts, metadataURI string) (*types.Transaction, error) -} - -// ContractAVSDirectoryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractAVSDirectoryFilters interface { - FilterAVSMetadataURIUpdated(opts *bind.FilterOpts, avs []common.Address) (*ContractAVSDirectoryAVSMetadataURIUpdatedIterator, error) - WatchAVSMetadataURIUpdated(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryAVSMetadataURIUpdated, avs []common.Address) (event.Subscription, error) - ParseAVSMetadataURIUpdated(log types.Log) (*ContractAVSDirectoryAVSMetadataURIUpdated, error) - - FilterAVSMigratedToOperatorSets(opts *bind.FilterOpts, avs []common.Address) (*ContractAVSDirectoryAVSMigratedToOperatorSetsIterator, error) - WatchAVSMigratedToOperatorSets(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryAVSMigratedToOperatorSets, avs []common.Address) (event.Subscription, error) - ParseAVSMigratedToOperatorSets(log types.Log) (*ContractAVSDirectoryAVSMigratedToOperatorSets, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractAVSDirectoryInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractAVSDirectoryInitialized, error) - - FilterOperatorAVSRegistrationStatusUpdated(opts *bind.FilterOpts, operator []common.Address, avs []common.Address) (*ContractAVSDirectoryOperatorAVSRegistrationStatusUpdatedIterator, error) - WatchOperatorAVSRegistrationStatusUpdated(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryOperatorAVSRegistrationStatusUpdated, operator []common.Address, avs []common.Address) (event.Subscription, error) - ParseOperatorAVSRegistrationStatusUpdated(log types.Log) (*ContractAVSDirectoryOperatorAVSRegistrationStatusUpdated, error) - - FilterOperatorMigratedToOperatorSets(opts *bind.FilterOpts, operator []common.Address, avs []common.Address) (*ContractAVSDirectoryOperatorMigratedToOperatorSetsIterator, error) - WatchOperatorMigratedToOperatorSets(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryOperatorMigratedToOperatorSets, operator []common.Address, avs []common.Address) (event.Subscription, error) - ParseOperatorMigratedToOperatorSets(log types.Log) (*ContractAVSDirectoryOperatorMigratedToOperatorSets, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractAVSDirectoryOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractAVSDirectoryOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractAVSDirectoryPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractAVSDirectoryPaused, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractAVSDirectoryUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractAVSDirectoryUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractAVSDirectoryUnpaused, error) -} - // ContractAVSDirectory is an auto generated Go binding around an Ethereum contract. type ContractAVSDirectory struct { ContractAVSDirectoryCaller // Read-only binding to the contract @@ -166,33 +74,21 @@ type ContractAVSDirectory struct { ContractAVSDirectoryFilterer // Log filterer for contract events } -// ContractAVSDirectory implements the ContractAVSDirectoryMethods interface. -var _ ContractAVSDirectoryMethods = (*ContractAVSDirectory)(nil) - // ContractAVSDirectoryCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractAVSDirectoryCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAVSDirectoryCaller implements the ContractAVSDirectoryCalls interface. -var _ ContractAVSDirectoryCalls = (*ContractAVSDirectoryCaller)(nil) - // ContractAVSDirectoryTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractAVSDirectoryTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAVSDirectoryTransactor implements the ContractAVSDirectoryTransacts interface. -var _ ContractAVSDirectoryTransacts = (*ContractAVSDirectoryTransactor)(nil) - // ContractAVSDirectoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractAVSDirectoryFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAVSDirectoryFilterer implements the ContractAVSDirectoryFilters interface. -var _ ContractAVSDirectoryFilters = (*ContractAVSDirectoryFilterer)(nil) - // ContractAVSDirectorySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractAVSDirectorySession struct { diff --git a/contracts/bindings/AllocationManager/binding.go b/contracts/bindings/AllocationManager/binding.go index cc818e873..745b6d1bd 100644 --- a/contracts/bindings/AllocationManager/binding.go +++ b/contracts/bindings/AllocationManager/binding.go @@ -109,178 +109,6 @@ func DeployContractAllocationManager(auth *bind.TransactOpts, backend bind.Contr return address, tx, &ContractAllocationManager{ContractAllocationManagerCaller: ContractAllocationManagerCaller{contract: contract}, ContractAllocationManagerTransactor: ContractAllocationManagerTransactor{contract: contract}, ContractAllocationManagerFilterer: ContractAllocationManagerFilterer{contract: contract}}, nil } -// ContractAllocationManagerMethods is an auto generated interface around an Ethereum contract. -type ContractAllocationManagerMethods interface { - ContractAllocationManagerCalls - ContractAllocationManagerTransacts - ContractAllocationManagerFilters -} - -// ContractAllocationManagerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractAllocationManagerCalls interface { - ALLOCATIONCONFIGURATIONDELAY(opts *bind.CallOpts) (uint32, error) - - DEALLOCATIONDELAY(opts *bind.CallOpts) (uint32, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - EncumberedMagnitude(opts *bind.CallOpts, operator common.Address, strategy common.Address) (uint64, error) - - GetAVSRegistrar(opts *bind.CallOpts, avs common.Address) (common.Address, error) - - GetAllocatableMagnitude(opts *bind.CallOpts, operator common.Address, strategy common.Address) (uint64, error) - - GetAllocatedSets(opts *bind.CallOpts, operator common.Address) ([]OperatorSet, error) - - GetAllocatedStrategies(opts *bind.CallOpts, operator common.Address, operatorSet OperatorSet) ([]common.Address, error) - - GetAllocation(opts *bind.CallOpts, operator common.Address, operatorSet OperatorSet, strategy common.Address) (IAllocationManagerTypesAllocation, error) - - GetAllocationDelay(opts *bind.CallOpts, operator common.Address) (bool, uint32, error) - - GetAllocations(opts *bind.CallOpts, operators []common.Address, operatorSet OperatorSet, strategy common.Address) ([]IAllocationManagerTypesAllocation, error) - - GetMaxMagnitude(opts *bind.CallOpts, operator common.Address, strategy common.Address) (uint64, error) - - GetMaxMagnitudes(opts *bind.CallOpts, operators []common.Address, strategy common.Address) ([]uint64, error) - - GetMaxMagnitudes0(opts *bind.CallOpts, operator common.Address, strategies []common.Address) ([]uint64, error) - - GetMaxMagnitudesAtBlock(opts *bind.CallOpts, operator common.Address, strategies []common.Address, blockNumber uint32) ([]uint64, error) - - GetMemberCount(opts *bind.CallOpts, operatorSet OperatorSet) (*big.Int, error) - - GetMembers(opts *bind.CallOpts, operatorSet OperatorSet) ([]common.Address, error) - - GetMinimumSlashableStake(opts *bind.CallOpts, operatorSet OperatorSet, operators []common.Address, strategies []common.Address, futureBlock uint32) ([][]*big.Int, error) - - GetOperatorSetCount(opts *bind.CallOpts, avs common.Address) (*big.Int, error) - - GetRegisteredSets(opts *bind.CallOpts, operator common.Address) ([]OperatorSet, error) - - GetStrategiesInOperatorSet(opts *bind.CallOpts, operatorSet OperatorSet) ([]common.Address, error) - - GetStrategyAllocations(opts *bind.CallOpts, operator common.Address, strategy common.Address) ([]OperatorSet, []IAllocationManagerTypesAllocation, error) - - IsMemberOfOperatorSet(opts *bind.CallOpts, operator common.Address, operatorSet OperatorSet) (bool, error) - - IsOperatorSet(opts *bind.CallOpts, operatorSet OperatorSet) (bool, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) - - PermissionController(opts *bind.CallOpts) (common.Address, error) -} - -// ContractAllocationManagerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractAllocationManagerTransacts interface { - AddStrategiesToOperatorSet(opts *bind.TransactOpts, avs common.Address, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - ClearDeallocationQueue(opts *bind.TransactOpts, operator common.Address, strategies []common.Address, numToClear []uint16) (*types.Transaction, error) - - CreateOperatorSets(opts *bind.TransactOpts, avs common.Address, params []IAllocationManagerTypesCreateSetParams) (*types.Transaction, error) - - DeregisterFromOperatorSets(opts *bind.TransactOpts, params IAllocationManagerTypesDeregisterParams) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, initialPausedStatus *big.Int) (*types.Transaction, error) - - ModifyAllocations(opts *bind.TransactOpts, operator common.Address, params []IAllocationManagerTypesAllocateParams) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - RegisterForOperatorSets(opts *bind.TransactOpts, operator common.Address, params IAllocationManagerTypesRegisterParams) (*types.Transaction, error) - - RemoveStrategiesFromOperatorSet(opts *bind.TransactOpts, avs common.Address, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - SetAVSRegistrar(opts *bind.TransactOpts, avs common.Address, registrar common.Address) (*types.Transaction, error) - - SetAllocationDelay(opts *bind.TransactOpts, operator common.Address, delay uint32) (*types.Transaction, error) - - SlashOperator(opts *bind.TransactOpts, avs common.Address, params IAllocationManagerTypesSlashingParams) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - UpdateAVSMetadataURI(opts *bind.TransactOpts, avs common.Address, metadataURI string) (*types.Transaction, error) -} - -// ContractAllocationManagerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractAllocationManagerFilters interface { - FilterAVSMetadataURIUpdated(opts *bind.FilterOpts, avs []common.Address) (*ContractAllocationManagerAVSMetadataURIUpdatedIterator, error) - WatchAVSMetadataURIUpdated(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerAVSMetadataURIUpdated, avs []common.Address) (event.Subscription, error) - ParseAVSMetadataURIUpdated(log types.Log) (*ContractAllocationManagerAVSMetadataURIUpdated, error) - - FilterAVSRegistrarSet(opts *bind.FilterOpts) (*ContractAllocationManagerAVSRegistrarSetIterator, error) - WatchAVSRegistrarSet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerAVSRegistrarSet) (event.Subscription, error) - ParseAVSRegistrarSet(log types.Log) (*ContractAllocationManagerAVSRegistrarSet, error) - - FilterAllocationDelaySet(opts *bind.FilterOpts) (*ContractAllocationManagerAllocationDelaySetIterator, error) - WatchAllocationDelaySet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerAllocationDelaySet) (event.Subscription, error) - ParseAllocationDelaySet(log types.Log) (*ContractAllocationManagerAllocationDelaySet, error) - - FilterAllocationUpdated(opts *bind.FilterOpts) (*ContractAllocationManagerAllocationUpdatedIterator, error) - WatchAllocationUpdated(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerAllocationUpdated) (event.Subscription, error) - ParseAllocationUpdated(log types.Log) (*ContractAllocationManagerAllocationUpdated, error) - - FilterEncumberedMagnitudeUpdated(opts *bind.FilterOpts) (*ContractAllocationManagerEncumberedMagnitudeUpdatedIterator, error) - WatchEncumberedMagnitudeUpdated(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerEncumberedMagnitudeUpdated) (event.Subscription, error) - ParseEncumberedMagnitudeUpdated(log types.Log) (*ContractAllocationManagerEncumberedMagnitudeUpdated, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractAllocationManagerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractAllocationManagerInitialized, error) - - FilterMaxMagnitudeUpdated(opts *bind.FilterOpts) (*ContractAllocationManagerMaxMagnitudeUpdatedIterator, error) - WatchMaxMagnitudeUpdated(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerMaxMagnitudeUpdated) (event.Subscription, error) - ParseMaxMagnitudeUpdated(log types.Log) (*ContractAllocationManagerMaxMagnitudeUpdated, error) - - FilterOperatorAddedToOperatorSet(opts *bind.FilterOpts, operator []common.Address) (*ContractAllocationManagerOperatorAddedToOperatorSetIterator, error) - WatchOperatorAddedToOperatorSet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerOperatorAddedToOperatorSet, operator []common.Address) (event.Subscription, error) - ParseOperatorAddedToOperatorSet(log types.Log) (*ContractAllocationManagerOperatorAddedToOperatorSet, error) - - FilterOperatorRemovedFromOperatorSet(opts *bind.FilterOpts, operator []common.Address) (*ContractAllocationManagerOperatorRemovedFromOperatorSetIterator, error) - WatchOperatorRemovedFromOperatorSet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerOperatorRemovedFromOperatorSet, operator []common.Address) (event.Subscription, error) - ParseOperatorRemovedFromOperatorSet(log types.Log) (*ContractAllocationManagerOperatorRemovedFromOperatorSet, error) - - FilterOperatorSetCreated(opts *bind.FilterOpts) (*ContractAllocationManagerOperatorSetCreatedIterator, error) - WatchOperatorSetCreated(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerOperatorSetCreated) (event.Subscription, error) - ParseOperatorSetCreated(log types.Log) (*ContractAllocationManagerOperatorSetCreated, error) - - FilterOperatorSlashed(opts *bind.FilterOpts) (*ContractAllocationManagerOperatorSlashedIterator, error) - WatchOperatorSlashed(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerOperatorSlashed) (event.Subscription, error) - ParseOperatorSlashed(log types.Log) (*ContractAllocationManagerOperatorSlashed, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractAllocationManagerOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractAllocationManagerOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractAllocationManagerPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractAllocationManagerPaused, error) - - FilterStrategyAddedToOperatorSet(opts *bind.FilterOpts) (*ContractAllocationManagerStrategyAddedToOperatorSetIterator, error) - WatchStrategyAddedToOperatorSet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerStrategyAddedToOperatorSet) (event.Subscription, error) - ParseStrategyAddedToOperatorSet(log types.Log) (*ContractAllocationManagerStrategyAddedToOperatorSet, error) - - FilterStrategyRemovedFromOperatorSet(opts *bind.FilterOpts) (*ContractAllocationManagerStrategyRemovedFromOperatorSetIterator, error) - WatchStrategyRemovedFromOperatorSet(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerStrategyRemovedFromOperatorSet) (event.Subscription, error) - ParseStrategyRemovedFromOperatorSet(log types.Log) (*ContractAllocationManagerStrategyRemovedFromOperatorSet, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractAllocationManagerUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractAllocationManagerUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractAllocationManagerUnpaused, error) -} - // ContractAllocationManager is an auto generated Go binding around an Ethereum contract. type ContractAllocationManager struct { ContractAllocationManagerCaller // Read-only binding to the contract @@ -288,33 +116,21 @@ type ContractAllocationManager struct { ContractAllocationManagerFilterer // Log filterer for contract events } -// ContractAllocationManager implements the ContractAllocationManagerMethods interface. -var _ ContractAllocationManagerMethods = (*ContractAllocationManager)(nil) - // ContractAllocationManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractAllocationManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAllocationManagerCaller implements the ContractAllocationManagerCalls interface. -var _ ContractAllocationManagerCalls = (*ContractAllocationManagerCaller)(nil) - // ContractAllocationManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractAllocationManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAllocationManagerTransactor implements the ContractAllocationManagerTransacts interface. -var _ ContractAllocationManagerTransacts = (*ContractAllocationManagerTransactor)(nil) - // ContractAllocationManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractAllocationManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractAllocationManagerFilterer implements the ContractAllocationManagerFilters interface. -var _ ContractAllocationManagerFilters = (*ContractAllocationManagerFilterer)(nil) - // ContractAllocationManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractAllocationManagerSession struct { diff --git a/contracts/bindings/BLSApkRegistry/binding.go b/contracts/bindings/BLSApkRegistry/binding.go index 27ad4a9ce..1b1789462 100644 --- a/contracts/bindings/BLSApkRegistry/binding.go +++ b/contracts/bindings/BLSApkRegistry/binding.go @@ -86,84 +86,6 @@ func DeployContractBLSApkRegistry(auth *bind.TransactOpts, backend bind.Contract return address, tx, &ContractBLSApkRegistry{ContractBLSApkRegistryCaller: ContractBLSApkRegistryCaller{contract: contract}, ContractBLSApkRegistryTransactor: ContractBLSApkRegistryTransactor{contract: contract}, ContractBLSApkRegistryFilterer: ContractBLSApkRegistryFilterer{contract: contract}}, nil } -// ContractBLSApkRegistryMethods is an auto generated interface around an Ethereum contract. -type ContractBLSApkRegistryMethods interface { - ContractBLSApkRegistryCalls - ContractBLSApkRegistryTransacts - ContractBLSApkRegistryFilters -} - -// ContractBLSApkRegistryCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractBLSApkRegistryCalls interface { - ApkHistory(opts *bind.CallOpts, arg0 uint8, arg1 *big.Int) (struct { - ApkHash [24]byte - UpdateBlockNumber uint32 - NextUpdateBlockNumber uint32 - }, error) - - CurrentApk(opts *bind.CallOpts, arg0 uint8) (struct { - X *big.Int - Y *big.Int - }, error) - - GetApk(opts *bind.CallOpts, quorumNumber uint8) (BN254G1Point, error) - - GetApkHashAtBlockNumberAndIndex(opts *bind.CallOpts, quorumNumber uint8, blockNumber uint32, index *big.Int) ([24]byte, error) - - GetApkHistoryLength(opts *bind.CallOpts, quorumNumber uint8) (uint32, error) - - GetApkIndicesAtBlockNumber(opts *bind.CallOpts, quorumNumbers []byte, blockNumber *big.Int) ([]uint32, error) - - GetApkUpdateAtIndex(opts *bind.CallOpts, quorumNumber uint8, index *big.Int) (IBLSApkRegistryApkUpdate, error) - - GetOperatorFromPubkeyHash(opts *bind.CallOpts, pubkeyHash [32]byte) (common.Address, error) - - GetOperatorId(opts *bind.CallOpts, operator common.Address) ([32]byte, error) - - GetRegisteredPubkey(opts *bind.CallOpts, operator common.Address) (BN254G1Point, [32]byte, error) - - OperatorToPubkey(opts *bind.CallOpts, arg0 common.Address) (struct { - X *big.Int - Y *big.Int - }, error) - - OperatorToPubkeyHash(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error) - - PubkeyHashToOperator(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error) - - RegistryCoordinator(opts *bind.CallOpts) (common.Address, error) -} - -// ContractBLSApkRegistryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractBLSApkRegistryTransacts interface { - DeregisterOperator(opts *bind.TransactOpts, operator common.Address, quorumNumbers []byte) (*types.Transaction, error) - - InitializeQuorum(opts *bind.TransactOpts, quorumNumber uint8) (*types.Transaction, error) - - RegisterBLSPublicKey(opts *bind.TransactOpts, operator common.Address, params IBLSApkRegistryPubkeyRegistrationParams, pubkeyRegistrationMessageHash BN254G1Point) (*types.Transaction, error) - - RegisterOperator(opts *bind.TransactOpts, operator common.Address, quorumNumbers []byte) (*types.Transaction, error) -} - -// ContractBLSApkRegistryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractBLSApkRegistryFilters interface { - FilterInitialized(opts *bind.FilterOpts) (*ContractBLSApkRegistryInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractBLSApkRegistryInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractBLSApkRegistryInitialized, error) - - FilterNewPubkeyRegistration(opts *bind.FilterOpts, operator []common.Address) (*ContractBLSApkRegistryNewPubkeyRegistrationIterator, error) - WatchNewPubkeyRegistration(opts *bind.WatchOpts, sink chan<- *ContractBLSApkRegistryNewPubkeyRegistration, operator []common.Address) (event.Subscription, error) - ParseNewPubkeyRegistration(log types.Log) (*ContractBLSApkRegistryNewPubkeyRegistration, error) - - FilterOperatorAddedToQuorums(opts *bind.FilterOpts) (*ContractBLSApkRegistryOperatorAddedToQuorumsIterator, error) - WatchOperatorAddedToQuorums(opts *bind.WatchOpts, sink chan<- *ContractBLSApkRegistryOperatorAddedToQuorums) (event.Subscription, error) - ParseOperatorAddedToQuorums(log types.Log) (*ContractBLSApkRegistryOperatorAddedToQuorums, error) - - FilterOperatorRemovedFromQuorums(opts *bind.FilterOpts) (*ContractBLSApkRegistryOperatorRemovedFromQuorumsIterator, error) - WatchOperatorRemovedFromQuorums(opts *bind.WatchOpts, sink chan<- *ContractBLSApkRegistryOperatorRemovedFromQuorums) (event.Subscription, error) - ParseOperatorRemovedFromQuorums(log types.Log) (*ContractBLSApkRegistryOperatorRemovedFromQuorums, error) -} - // ContractBLSApkRegistry is an auto generated Go binding around an Ethereum contract. type ContractBLSApkRegistry struct { ContractBLSApkRegistryCaller // Read-only binding to the contract @@ -171,33 +93,21 @@ type ContractBLSApkRegistry struct { ContractBLSApkRegistryFilterer // Log filterer for contract events } -// ContractBLSApkRegistry implements the ContractBLSApkRegistryMethods interface. -var _ ContractBLSApkRegistryMethods = (*ContractBLSApkRegistry)(nil) - // ContractBLSApkRegistryCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractBLSApkRegistryCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractBLSApkRegistryCaller implements the ContractBLSApkRegistryCalls interface. -var _ ContractBLSApkRegistryCalls = (*ContractBLSApkRegistryCaller)(nil) - // ContractBLSApkRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractBLSApkRegistryTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractBLSApkRegistryTransactor implements the ContractBLSApkRegistryTransacts interface. -var _ ContractBLSApkRegistryTransacts = (*ContractBLSApkRegistryTransactor)(nil) - // ContractBLSApkRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractBLSApkRegistryFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractBLSApkRegistryFilterer implements the ContractBLSApkRegistryFilters interface. -var _ ContractBLSApkRegistryFilters = (*ContractBLSApkRegistryFilterer)(nil) - // ContractBLSApkRegistrySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractBLSApkRegistrySession struct { diff --git a/contracts/bindings/ContractsRegistry/binding.go b/contracts/bindings/ContractsRegistry/binding.go index a9db55d27..b7b1fe2e7 100644 --- a/contracts/bindings/ContractsRegistry/binding.go +++ b/contracts/bindings/ContractsRegistry/binding.go @@ -60,31 +60,6 @@ func DeployContractContractsRegistry(auth *bind.TransactOpts, backend bind.Contr return address, tx, &ContractContractsRegistry{ContractContractsRegistryCaller: ContractContractsRegistryCaller{contract: contract}, ContractContractsRegistryTransactor: ContractContractsRegistryTransactor{contract: contract}, ContractContractsRegistryFilterer: ContractContractsRegistryFilterer{contract: contract}}, nil } -// ContractContractsRegistryMethods is an auto generated interface around an Ethereum contract. -type ContractContractsRegistryMethods interface { - ContractContractsRegistryCalls - ContractContractsRegistryTransacts - ContractContractsRegistryFilters -} - -// ContractContractsRegistryCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractContractsRegistryCalls interface { - ContractCount(opts *bind.CallOpts) (*big.Int, error) - - ContractNames(opts *bind.CallOpts, arg0 *big.Int) (string, error) - - Contracts(opts *bind.CallOpts, arg0 string) (common.Address, error) -} - -// ContractContractsRegistryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractContractsRegistryTransacts interface { - RegisterContract(opts *bind.TransactOpts, name string, _contract common.Address) (*types.Transaction, error) -} - -// ContractContractsRegistryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractContractsRegistryFilters interface { -} - // ContractContractsRegistry is an auto generated Go binding around an Ethereum contract. type ContractContractsRegistry struct { ContractContractsRegistryCaller // Read-only binding to the contract @@ -92,33 +67,21 @@ type ContractContractsRegistry struct { ContractContractsRegistryFilterer // Log filterer for contract events } -// ContractContractsRegistry implements the ContractContractsRegistryMethods interface. -var _ ContractContractsRegistryMethods = (*ContractContractsRegistry)(nil) - // ContractContractsRegistryCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractContractsRegistryCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractContractsRegistryCaller implements the ContractContractsRegistryCalls interface. -var _ ContractContractsRegistryCalls = (*ContractContractsRegistryCaller)(nil) - // ContractContractsRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractContractsRegistryTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractContractsRegistryTransactor implements the ContractContractsRegistryTransacts interface. -var _ ContractContractsRegistryTransacts = (*ContractContractsRegistryTransactor)(nil) - // ContractContractsRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractContractsRegistryFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractContractsRegistryFilterer implements the ContractContractsRegistryFilters interface. -var _ ContractContractsRegistryFilters = (*ContractContractsRegistryFilterer)(nil) - // ContractContractsRegistrySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractContractsRegistrySession struct { diff --git a/contracts/bindings/DelegationManager/binding.go b/contracts/bindings/DelegationManager/binding.go index 348278454..304db4551 100644 --- a/contracts/bindings/DelegationManager/binding.go +++ b/contracts/bindings/DelegationManager/binding.go @@ -84,196 +84,6 @@ func DeployContractDelegationManager(auth *bind.TransactOpts, backend bind.Contr return address, tx, &ContractDelegationManager{ContractDelegationManagerCaller: ContractDelegationManagerCaller{contract: contract}, ContractDelegationManagerTransactor: ContractDelegationManagerTransactor{contract: contract}, ContractDelegationManagerFilterer: ContractDelegationManagerFilterer{contract: contract}}, nil } -// ContractDelegationManagerMethods is an auto generated interface around an Ethereum contract. -type ContractDelegationManagerMethods interface { - ContractDelegationManagerCalls - ContractDelegationManagerTransacts - ContractDelegationManagerFilters -} - -// ContractDelegationManagerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractDelegationManagerCalls interface { - DELEGATIONAPPROVALTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - AllocationManager(opts *bind.CallOpts) (common.Address, error) - - BeaconChainETHStrategy(opts *bind.CallOpts) (common.Address, error) - - CalculateDelegationApprovalDigestHash(opts *bind.CallOpts, staker common.Address, operator common.Address, approver common.Address, approverSalt [32]byte, expiry *big.Int) ([32]byte, error) - - CalculateWithdrawalRoot(opts *bind.CallOpts, withdrawal IDelegationManagerTypesWithdrawal) ([32]byte, error) - - CumulativeWithdrawalsQueued(opts *bind.CallOpts, staker common.Address) (*big.Int, error) - - DelegatedTo(opts *bind.CallOpts, staker common.Address) (common.Address, error) - - DelegationApprover(opts *bind.CallOpts, operator common.Address) (common.Address, error) - - DelegationApproverSaltIsSpent(opts *bind.CallOpts, delegationApprover common.Address, salt [32]byte) (bool, error) - - DepositScalingFactor(opts *bind.CallOpts, staker common.Address, strategy common.Address) (*big.Int, error) - - DomainSeparator(opts *bind.CallOpts) ([32]byte, error) - - EigenPodManager(opts *bind.CallOpts) (common.Address, error) - - GetDepositedShares(opts *bind.CallOpts, staker common.Address) ([]common.Address, []*big.Int, error) - - GetOperatorShares(opts *bind.CallOpts, operator common.Address, strategies []common.Address) ([]*big.Int, error) - - GetOperatorsShares(opts *bind.CallOpts, operators []common.Address, strategies []common.Address) ([][]*big.Int, error) - - GetQueuedWithdrawals(opts *bind.CallOpts, staker common.Address) (struct { - Withdrawals []IDelegationManagerTypesWithdrawal - Shares [][]*big.Int - }, error) - - GetSlashableSharesInQueue(opts *bind.CallOpts, operator common.Address, strategy common.Address) (*big.Int, error) - - GetWithdrawableShares(opts *bind.CallOpts, staker common.Address, strategies []common.Address) (struct { - WithdrawableShares []*big.Int - DepositShares []*big.Int - }, error) - - IsDelegated(opts *bind.CallOpts, staker common.Address) (bool, error) - - IsOperator(opts *bind.CallOpts, operator common.Address) (bool, error) - - MinWithdrawalDelayBlocks(opts *bind.CallOpts) (uint32, error) - - OperatorShares(opts *bind.CallOpts, operator common.Address, strategy common.Address) (*big.Int, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) - - PendingWithdrawals(opts *bind.CallOpts, withdrawalRoot [32]byte) (bool, error) - - PermissionController(opts *bind.CallOpts) (common.Address, error) - - QueuedWithdrawals(opts *bind.CallOpts, withdrawalRoot [32]byte) (struct { - Staker common.Address - DelegatedTo common.Address - Withdrawer common.Address - Nonce *big.Int - StartBlock uint32 - }, error) - - StrategyManager(opts *bind.CallOpts) (common.Address, error) -} - -// ContractDelegationManagerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractDelegationManagerTransacts interface { - BurnOperatorShares(opts *bind.TransactOpts, operator common.Address, strategy common.Address, prevMaxMagnitude uint64, newMaxMagnitude uint64) (*types.Transaction, error) - - CompleteQueuedWithdrawal(opts *bind.TransactOpts, withdrawal IDelegationManagerTypesWithdrawal, tokens []common.Address, receiveAsTokens bool) (*types.Transaction, error) - - CompleteQueuedWithdrawals(opts *bind.TransactOpts, tokens [][]common.Address, receiveAsTokens []bool, numToComplete *big.Int) (*types.Transaction, error) - - CompleteQueuedWithdrawals0(opts *bind.TransactOpts, withdrawals []IDelegationManagerTypesWithdrawal, tokens [][]common.Address, receiveAsTokens []bool) (*types.Transaction, error) - - DecreaseDelegatedShares(opts *bind.TransactOpts, staker common.Address, curDepositShares *big.Int, beaconChainSlashingFactorDecrease uint64) (*types.Transaction, error) - - DelegateTo(opts *bind.TransactOpts, operator common.Address, approverSignatureAndExpiry ISignatureUtilsSignatureWithExpiry, approverSalt [32]byte) (*types.Transaction, error) - - IncreaseDelegatedShares(opts *bind.TransactOpts, staker common.Address, strategy common.Address, prevDepositShares *big.Int, addedShares *big.Int) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, initialPausedStatus *big.Int) (*types.Transaction, error) - - ModifyOperatorDetails(opts *bind.TransactOpts, operator common.Address, newDelegationApprover common.Address) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - QueueWithdrawals(opts *bind.TransactOpts, params []IDelegationManagerTypesQueuedWithdrawalParams) (*types.Transaction, error) - - Redelegate(opts *bind.TransactOpts, newOperator common.Address, newOperatorApproverSig ISignatureUtilsSignatureWithExpiry, approverSalt [32]byte) (*types.Transaction, error) - - RegisterAsOperator(opts *bind.TransactOpts, initDelegationApprover common.Address, allocationDelay uint32, metadataURI string) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Undelegate(opts *bind.TransactOpts, staker common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - UpdateOperatorMetadataURI(opts *bind.TransactOpts, operator common.Address, metadataURI string) (*types.Transaction, error) -} - -// ContractDelegationManagerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractDelegationManagerFilters interface { - FilterDelegationApproverUpdated(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerDelegationApproverUpdatedIterator, error) - WatchDelegationApproverUpdated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerDelegationApproverUpdated, operator []common.Address) (event.Subscription, error) - ParseDelegationApproverUpdated(log types.Log) (*ContractDelegationManagerDelegationApproverUpdated, error) - - FilterDepositScalingFactorUpdated(opts *bind.FilterOpts) (*ContractDelegationManagerDepositScalingFactorUpdatedIterator, error) - WatchDepositScalingFactorUpdated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerDepositScalingFactorUpdated) (event.Subscription, error) - ParseDepositScalingFactorUpdated(log types.Log) (*ContractDelegationManagerDepositScalingFactorUpdated, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractDelegationManagerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractDelegationManagerInitialized, error) - - FilterOperatorMetadataURIUpdated(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerOperatorMetadataURIUpdatedIterator, error) - WatchOperatorMetadataURIUpdated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOperatorMetadataURIUpdated, operator []common.Address) (event.Subscription, error) - ParseOperatorMetadataURIUpdated(log types.Log) (*ContractDelegationManagerOperatorMetadataURIUpdated, error) - - FilterOperatorRegistered(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerOperatorRegisteredIterator, error) - WatchOperatorRegistered(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOperatorRegistered, operator []common.Address) (event.Subscription, error) - ParseOperatorRegistered(log types.Log) (*ContractDelegationManagerOperatorRegistered, error) - - FilterOperatorSharesBurned(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerOperatorSharesBurnedIterator, error) - WatchOperatorSharesBurned(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOperatorSharesBurned, operator []common.Address) (event.Subscription, error) - ParseOperatorSharesBurned(log types.Log) (*ContractDelegationManagerOperatorSharesBurned, error) - - FilterOperatorSharesDecreased(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerOperatorSharesDecreasedIterator, error) - WatchOperatorSharesDecreased(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOperatorSharesDecreased, operator []common.Address) (event.Subscription, error) - ParseOperatorSharesDecreased(log types.Log) (*ContractDelegationManagerOperatorSharesDecreased, error) - - FilterOperatorSharesIncreased(opts *bind.FilterOpts, operator []common.Address) (*ContractDelegationManagerOperatorSharesIncreasedIterator, error) - WatchOperatorSharesIncreased(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOperatorSharesIncreased, operator []common.Address) (event.Subscription, error) - ParseOperatorSharesIncreased(log types.Log) (*ContractDelegationManagerOperatorSharesIncreased, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractDelegationManagerOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractDelegationManagerOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractDelegationManagerPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractDelegationManagerPaused, error) - - FilterSlashingWithdrawalCompleted(opts *bind.FilterOpts) (*ContractDelegationManagerSlashingWithdrawalCompletedIterator, error) - WatchSlashingWithdrawalCompleted(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerSlashingWithdrawalCompleted) (event.Subscription, error) - ParseSlashingWithdrawalCompleted(log types.Log) (*ContractDelegationManagerSlashingWithdrawalCompleted, error) - - FilterSlashingWithdrawalQueued(opts *bind.FilterOpts) (*ContractDelegationManagerSlashingWithdrawalQueuedIterator, error) - WatchSlashingWithdrawalQueued(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerSlashingWithdrawalQueued) (event.Subscription, error) - ParseSlashingWithdrawalQueued(log types.Log) (*ContractDelegationManagerSlashingWithdrawalQueued, error) - - FilterStakerDelegated(opts *bind.FilterOpts, staker []common.Address, operator []common.Address) (*ContractDelegationManagerStakerDelegatedIterator, error) - WatchStakerDelegated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerStakerDelegated, staker []common.Address, operator []common.Address) (event.Subscription, error) - ParseStakerDelegated(log types.Log) (*ContractDelegationManagerStakerDelegated, error) - - FilterStakerForceUndelegated(opts *bind.FilterOpts, staker []common.Address, operator []common.Address) (*ContractDelegationManagerStakerForceUndelegatedIterator, error) - WatchStakerForceUndelegated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerStakerForceUndelegated, staker []common.Address, operator []common.Address) (event.Subscription, error) - ParseStakerForceUndelegated(log types.Log) (*ContractDelegationManagerStakerForceUndelegated, error) - - FilterStakerUndelegated(opts *bind.FilterOpts, staker []common.Address, operator []common.Address) (*ContractDelegationManagerStakerUndelegatedIterator, error) - WatchStakerUndelegated(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerStakerUndelegated, staker []common.Address, operator []common.Address) (event.Subscription, error) - ParseStakerUndelegated(log types.Log) (*ContractDelegationManagerStakerUndelegated, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractDelegationManagerUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractDelegationManagerUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractDelegationManagerUnpaused, error) -} - // ContractDelegationManager is an auto generated Go binding around an Ethereum contract. type ContractDelegationManager struct { ContractDelegationManagerCaller // Read-only binding to the contract @@ -281,33 +91,21 @@ type ContractDelegationManager struct { ContractDelegationManagerFilterer // Log filterer for contract events } -// ContractDelegationManager implements the ContractDelegationManagerMethods interface. -var _ ContractDelegationManagerMethods = (*ContractDelegationManager)(nil) - // ContractDelegationManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractDelegationManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractDelegationManagerCaller implements the ContractDelegationManagerCalls interface. -var _ ContractDelegationManagerCalls = (*ContractDelegationManagerCaller)(nil) - // ContractDelegationManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractDelegationManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractDelegationManagerTransactor implements the ContractDelegationManagerTransacts interface. -var _ ContractDelegationManagerTransacts = (*ContractDelegationManagerTransactor)(nil) - // ContractDelegationManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractDelegationManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractDelegationManagerFilterer implements the ContractDelegationManagerFilters interface. -var _ ContractDelegationManagerFilters = (*ContractDelegationManagerFilterer)(nil) - // ContractDelegationManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractDelegationManagerSession struct { diff --git a/contracts/bindings/EigenPod/binding.go b/contracts/bindings/EigenPod/binding.go index 4f2078a2c..4fe7dc853 100644 --- a/contracts/bindings/EigenPod/binding.go +++ b/contracts/bindings/EigenPod/binding.go @@ -102,116 +102,6 @@ func DeployContractEigenPod(auth *bind.TransactOpts, backend bind.ContractBacken return address, tx, &ContractEigenPod{ContractEigenPodCaller: ContractEigenPodCaller{contract: contract}, ContractEigenPodTransactor: ContractEigenPodTransactor{contract: contract}, ContractEigenPodFilterer: ContractEigenPodFilterer{contract: contract}}, nil } -// ContractEigenPodMethods is an auto generated interface around an Ethereum contract. -type ContractEigenPodMethods interface { - ContractEigenPodCalls - ContractEigenPodTransacts - ContractEigenPodFilters -} - -// ContractEigenPodCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractEigenPodCalls interface { - GENESISTIME(opts *bind.CallOpts) (uint64, error) - - ActiveValidatorCount(opts *bind.CallOpts) (*big.Int, error) - - CheckpointBalanceExitedGwei(opts *bind.CallOpts, arg0 uint64) (uint64, error) - - CurrentCheckpoint(opts *bind.CallOpts) (IEigenPodTypesCheckpoint, error) - - CurrentCheckpointTimestamp(opts *bind.CallOpts) (uint64, error) - - EigenPodManager(opts *bind.CallOpts) (common.Address, error) - - EthPOS(opts *bind.CallOpts) (common.Address, error) - - GetParentBlockRoot(opts *bind.CallOpts, timestamp uint64) ([32]byte, error) - - LastCheckpointTimestamp(opts *bind.CallOpts) (uint64, error) - - PodOwner(opts *bind.CallOpts) (common.Address, error) - - ProofSubmitter(opts *bind.CallOpts) (common.Address, error) - - ValidatorPubkeyHashToInfo(opts *bind.CallOpts, validatorPubkeyHash [32]byte) (IEigenPodTypesValidatorInfo, error) - - ValidatorPubkeyToInfo(opts *bind.CallOpts, validatorPubkey []byte) (IEigenPodTypesValidatorInfo, error) - - ValidatorStatus(opts *bind.CallOpts, validatorPubkey []byte) (uint8, error) - - ValidatorStatus0(opts *bind.CallOpts, pubkeyHash [32]byte) (uint8, error) - - WithdrawableRestakedExecutionLayerGwei(opts *bind.CallOpts) (uint64, error) -} - -// ContractEigenPodTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractEigenPodTransacts interface { - Initialize(opts *bind.TransactOpts, _podOwner common.Address) (*types.Transaction, error) - - RecoverTokens(opts *bind.TransactOpts, tokenList []common.Address, amountsToWithdraw []*big.Int, recipient common.Address) (*types.Transaction, error) - - SetProofSubmitter(opts *bind.TransactOpts, newProofSubmitter common.Address) (*types.Transaction, error) - - Stake(opts *bind.TransactOpts, pubkey []byte, signature []byte, depositDataRoot [32]byte) (*types.Transaction, error) - - StartCheckpoint(opts *bind.TransactOpts, revertIfNoBalance bool) (*types.Transaction, error) - - VerifyCheckpointProofs(opts *bind.TransactOpts, balanceContainerProof BeaconChainProofsBalanceContainerProof, proofs []BeaconChainProofsBalanceProof) (*types.Transaction, error) - - VerifyStaleBalance(opts *bind.TransactOpts, beaconTimestamp uint64, stateRootProof BeaconChainProofsStateRootProof, proof BeaconChainProofsValidatorProof) (*types.Transaction, error) - - VerifyWithdrawalCredentials(opts *bind.TransactOpts, beaconTimestamp uint64, stateRootProof BeaconChainProofsStateRootProof, validatorIndices []*big.Int, validatorFieldsProofs [][]byte, validatorFields [][][32]byte) (*types.Transaction, error) - - WithdrawRestakedBeaconChainETH(opts *bind.TransactOpts, recipient common.Address, amountWei *big.Int) (*types.Transaction, error) -} - -// ContractEigenPodFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractEigenPodFilters interface { - FilterCheckpointCreated(opts *bind.FilterOpts, checkpointTimestamp []uint64, beaconBlockRoot [][32]byte) (*ContractEigenPodCheckpointCreatedIterator, error) - WatchCheckpointCreated(opts *bind.WatchOpts, sink chan<- *ContractEigenPodCheckpointCreated, checkpointTimestamp []uint64, beaconBlockRoot [][32]byte) (event.Subscription, error) - ParseCheckpointCreated(log types.Log) (*ContractEigenPodCheckpointCreated, error) - - FilterCheckpointFinalized(opts *bind.FilterOpts, checkpointTimestamp []uint64) (*ContractEigenPodCheckpointFinalizedIterator, error) - WatchCheckpointFinalized(opts *bind.WatchOpts, sink chan<- *ContractEigenPodCheckpointFinalized, checkpointTimestamp []uint64) (event.Subscription, error) - ParseCheckpointFinalized(log types.Log) (*ContractEigenPodCheckpointFinalized, error) - - FilterEigenPodStaked(opts *bind.FilterOpts) (*ContractEigenPodEigenPodStakedIterator, error) - WatchEigenPodStaked(opts *bind.WatchOpts, sink chan<- *ContractEigenPodEigenPodStaked) (event.Subscription, error) - ParseEigenPodStaked(log types.Log) (*ContractEigenPodEigenPodStaked, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractEigenPodInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractEigenPodInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractEigenPodInitialized, error) - - FilterNonBeaconChainETHReceived(opts *bind.FilterOpts) (*ContractEigenPodNonBeaconChainETHReceivedIterator, error) - WatchNonBeaconChainETHReceived(opts *bind.WatchOpts, sink chan<- *ContractEigenPodNonBeaconChainETHReceived) (event.Subscription, error) - ParseNonBeaconChainETHReceived(log types.Log) (*ContractEigenPodNonBeaconChainETHReceived, error) - - FilterProofSubmitterUpdated(opts *bind.FilterOpts) (*ContractEigenPodProofSubmitterUpdatedIterator, error) - WatchProofSubmitterUpdated(opts *bind.WatchOpts, sink chan<- *ContractEigenPodProofSubmitterUpdated) (event.Subscription, error) - ParseProofSubmitterUpdated(log types.Log) (*ContractEigenPodProofSubmitterUpdated, error) - - FilterRestakedBeaconChainETHWithdrawn(opts *bind.FilterOpts, recipient []common.Address) (*ContractEigenPodRestakedBeaconChainETHWithdrawnIterator, error) - WatchRestakedBeaconChainETHWithdrawn(opts *bind.WatchOpts, sink chan<- *ContractEigenPodRestakedBeaconChainETHWithdrawn, recipient []common.Address) (event.Subscription, error) - ParseRestakedBeaconChainETHWithdrawn(log types.Log) (*ContractEigenPodRestakedBeaconChainETHWithdrawn, error) - - FilterValidatorBalanceUpdated(opts *bind.FilterOpts) (*ContractEigenPodValidatorBalanceUpdatedIterator, error) - WatchValidatorBalanceUpdated(opts *bind.WatchOpts, sink chan<- *ContractEigenPodValidatorBalanceUpdated) (event.Subscription, error) - ParseValidatorBalanceUpdated(log types.Log) (*ContractEigenPodValidatorBalanceUpdated, error) - - FilterValidatorCheckpointed(opts *bind.FilterOpts, checkpointTimestamp []uint64, validatorIndex []*big.Int) (*ContractEigenPodValidatorCheckpointedIterator, error) - WatchValidatorCheckpointed(opts *bind.WatchOpts, sink chan<- *ContractEigenPodValidatorCheckpointed, checkpointTimestamp []uint64, validatorIndex []*big.Int) (event.Subscription, error) - ParseValidatorCheckpointed(log types.Log) (*ContractEigenPodValidatorCheckpointed, error) - - FilterValidatorRestaked(opts *bind.FilterOpts) (*ContractEigenPodValidatorRestakedIterator, error) - WatchValidatorRestaked(opts *bind.WatchOpts, sink chan<- *ContractEigenPodValidatorRestaked) (event.Subscription, error) - ParseValidatorRestaked(log types.Log) (*ContractEigenPodValidatorRestaked, error) - - FilterValidatorWithdrawn(opts *bind.FilterOpts, checkpointTimestamp []uint64, validatorIndex []*big.Int) (*ContractEigenPodValidatorWithdrawnIterator, error) - WatchValidatorWithdrawn(opts *bind.WatchOpts, sink chan<- *ContractEigenPodValidatorWithdrawn, checkpointTimestamp []uint64, validatorIndex []*big.Int) (event.Subscription, error) - ParseValidatorWithdrawn(log types.Log) (*ContractEigenPodValidatorWithdrawn, error) -} - // ContractEigenPod is an auto generated Go binding around an Ethereum contract. type ContractEigenPod struct { ContractEigenPodCaller // Read-only binding to the contract @@ -219,33 +109,21 @@ type ContractEigenPod struct { ContractEigenPodFilterer // Log filterer for contract events } -// ContractEigenPod implements the ContractEigenPodMethods interface. -var _ ContractEigenPodMethods = (*ContractEigenPod)(nil) - // ContractEigenPodCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractEigenPodCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodCaller implements the ContractEigenPodCalls interface. -var _ ContractEigenPodCalls = (*ContractEigenPodCaller)(nil) - // ContractEigenPodTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractEigenPodTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodTransactor implements the ContractEigenPodTransacts interface. -var _ ContractEigenPodTransacts = (*ContractEigenPodTransactor)(nil) - // ContractEigenPodFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractEigenPodFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodFilterer implements the ContractEigenPodFilters interface. -var _ ContractEigenPodFilters = (*ContractEigenPodFilterer)(nil) - // ContractEigenPodSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractEigenPodSession struct { diff --git a/contracts/bindings/EigenPodManager/binding.go b/contracts/bindings/EigenPodManager/binding.go index 13b69e0a4..b96989401 100644 --- a/contracts/bindings/EigenPodManager/binding.go +++ b/contracts/bindings/EigenPodManager/binding.go @@ -60,116 +60,6 @@ func DeployContractEigenPodManager(auth *bind.TransactOpts, backend bind.Contrac return address, tx, &ContractEigenPodManager{ContractEigenPodManagerCaller: ContractEigenPodManagerCaller{contract: contract}, ContractEigenPodManagerTransactor: ContractEigenPodManagerTransactor{contract: contract}, ContractEigenPodManagerFilterer: ContractEigenPodManagerFilterer{contract: contract}}, nil } -// ContractEigenPodManagerMethods is an auto generated interface around an Ethereum contract. -type ContractEigenPodManagerMethods interface { - ContractEigenPodManagerCalls - ContractEigenPodManagerTransacts - ContractEigenPodManagerFilters -} - -// ContractEigenPodManagerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractEigenPodManagerCalls interface { - BeaconChainETHStrategy(opts *bind.CallOpts) (common.Address, error) - - BeaconChainSlashingFactor(opts *bind.CallOpts, podOwner common.Address) (uint64, error) - - DelegationManager(opts *bind.CallOpts) (common.Address, error) - - EigenPodBeacon(opts *bind.CallOpts) (common.Address, error) - - EthPOS(opts *bind.CallOpts) (common.Address, error) - - GetPod(opts *bind.CallOpts, podOwner common.Address) (common.Address, error) - - HasPod(opts *bind.CallOpts, podOwner common.Address) (bool, error) - - NumPods(opts *bind.CallOpts) (*big.Int, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - OwnerToPod(opts *bind.CallOpts, podOwner common.Address) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) - - PodOwnerDepositShares(opts *bind.CallOpts, podOwner common.Address) (*big.Int, error) - - StakerDepositShares(opts *bind.CallOpts, user common.Address, strategy common.Address) (*big.Int, error) -} - -// ContractEigenPodManagerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractEigenPodManagerTransacts interface { - AddShares(opts *bind.TransactOpts, staker common.Address, strategy common.Address, arg2 common.Address, shares *big.Int) (*types.Transaction, error) - - CreatePod(opts *bind.TransactOpts) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, _initPausedStatus *big.Int) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - RecordBeaconChainETHBalanceUpdate(opts *bind.TransactOpts, podOwner common.Address, prevRestakedBalanceWei *big.Int, balanceDeltaWei *big.Int) (*types.Transaction, error) - - RemoveDepositShares(opts *bind.TransactOpts, staker common.Address, strategy common.Address, depositSharesToRemove *big.Int) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - Stake(opts *bind.TransactOpts, pubkey []byte, signature []byte, depositDataRoot [32]byte) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - WithdrawSharesAsTokens(opts *bind.TransactOpts, staker common.Address, strategy common.Address, arg2 common.Address, shares *big.Int) (*types.Transaction, error) -} - -// ContractEigenPodManagerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractEigenPodManagerFilters interface { - FilterBeaconChainETHDeposited(opts *bind.FilterOpts, podOwner []common.Address) (*ContractEigenPodManagerBeaconChainETHDepositedIterator, error) - WatchBeaconChainETHDeposited(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerBeaconChainETHDeposited, podOwner []common.Address) (event.Subscription, error) - ParseBeaconChainETHDeposited(log types.Log) (*ContractEigenPodManagerBeaconChainETHDeposited, error) - - FilterBeaconChainETHWithdrawalCompleted(opts *bind.FilterOpts, podOwner []common.Address) (*ContractEigenPodManagerBeaconChainETHWithdrawalCompletedIterator, error) - WatchBeaconChainETHWithdrawalCompleted(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerBeaconChainETHWithdrawalCompleted, podOwner []common.Address) (event.Subscription, error) - ParseBeaconChainETHWithdrawalCompleted(log types.Log) (*ContractEigenPodManagerBeaconChainETHWithdrawalCompleted, error) - - FilterBeaconChainSlashingFactorDecreased(opts *bind.FilterOpts) (*ContractEigenPodManagerBeaconChainSlashingFactorDecreasedIterator, error) - WatchBeaconChainSlashingFactorDecreased(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerBeaconChainSlashingFactorDecreased) (event.Subscription, error) - ParseBeaconChainSlashingFactorDecreased(log types.Log) (*ContractEigenPodManagerBeaconChainSlashingFactorDecreased, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractEigenPodManagerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractEigenPodManagerInitialized, error) - - FilterNewTotalShares(opts *bind.FilterOpts, podOwner []common.Address) (*ContractEigenPodManagerNewTotalSharesIterator, error) - WatchNewTotalShares(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerNewTotalShares, podOwner []common.Address) (event.Subscription, error) - ParseNewTotalShares(log types.Log) (*ContractEigenPodManagerNewTotalShares, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractEigenPodManagerOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractEigenPodManagerOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractEigenPodManagerPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractEigenPodManagerPaused, error) - - FilterPodDeployed(opts *bind.FilterOpts, eigenPod []common.Address, podOwner []common.Address) (*ContractEigenPodManagerPodDeployedIterator, error) - WatchPodDeployed(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerPodDeployed, eigenPod []common.Address, podOwner []common.Address) (event.Subscription, error) - ParsePodDeployed(log types.Log) (*ContractEigenPodManagerPodDeployed, error) - - FilterPodSharesUpdated(opts *bind.FilterOpts, podOwner []common.Address) (*ContractEigenPodManagerPodSharesUpdatedIterator, error) - WatchPodSharesUpdated(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerPodSharesUpdated, podOwner []common.Address) (event.Subscription, error) - ParsePodSharesUpdated(log types.Log) (*ContractEigenPodManagerPodSharesUpdated, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractEigenPodManagerUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractEigenPodManagerUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractEigenPodManagerUnpaused, error) -} - // ContractEigenPodManager is an auto generated Go binding around an Ethereum contract. type ContractEigenPodManager struct { ContractEigenPodManagerCaller // Read-only binding to the contract @@ -177,33 +67,21 @@ type ContractEigenPodManager struct { ContractEigenPodManagerFilterer // Log filterer for contract events } -// ContractEigenPodManager implements the ContractEigenPodManagerMethods interface. -var _ ContractEigenPodManagerMethods = (*ContractEigenPodManager)(nil) - // ContractEigenPodManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractEigenPodManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodManagerCaller implements the ContractEigenPodManagerCalls interface. -var _ ContractEigenPodManagerCalls = (*ContractEigenPodManagerCaller)(nil) - // ContractEigenPodManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractEigenPodManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodManagerTransactor implements the ContractEigenPodManagerTransacts interface. -var _ ContractEigenPodManagerTransacts = (*ContractEigenPodManagerTransactor)(nil) - // ContractEigenPodManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractEigenPodManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractEigenPodManagerFilterer implements the ContractEigenPodManagerFilters interface. -var _ ContractEigenPodManagerFilters = (*ContractEigenPodManagerFilterer)(nil) - // ContractEigenPodManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractEigenPodManagerSession struct { diff --git a/contracts/bindings/IBLSSignatureChecker/binding.go b/contracts/bindings/IBLSSignatureChecker/binding.go index a2002a8e0..c7a9e91a3 100644 --- a/contracts/bindings/IBLSSignatureChecker/binding.go +++ b/contracts/bindings/IBLSSignatureChecker/binding.go @@ -68,37 +68,6 @@ var ContractIBLSSignatureCheckerMetaData = &bind.MetaData{ // Deprecated: Use ContractIBLSSignatureCheckerMetaData.ABI instead. var ContractIBLSSignatureCheckerABI = ContractIBLSSignatureCheckerMetaData.ABI -// ContractIBLSSignatureCheckerMethods is an auto generated interface around an Ethereum contract. -type ContractIBLSSignatureCheckerMethods interface { - ContractIBLSSignatureCheckerCalls - ContractIBLSSignatureCheckerTransacts - ContractIBLSSignatureCheckerFilters -} - -// ContractIBLSSignatureCheckerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractIBLSSignatureCheckerCalls interface { - BlsApkRegistry(opts *bind.CallOpts) (common.Address, error) - - CheckSignatures(opts *bind.CallOpts, msgHash [32]byte, quorumNumbers []byte, referenceBlockNumber uint32, nonSignerStakesAndSignature IBLSSignatureCheckerNonSignerStakesAndSignature) (IBLSSignatureCheckerQuorumStakeTotals, [32]byte, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - RegistryCoordinator(opts *bind.CallOpts) (common.Address, error) - - StakeRegistry(opts *bind.CallOpts) (common.Address, error) -} - -// ContractIBLSSignatureCheckerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractIBLSSignatureCheckerTransacts interface { -} - -// ContractIBLSSignatureCheckerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractIBLSSignatureCheckerFilters interface { - FilterStaleStakesForbiddenUpdate(opts *bind.FilterOpts) (*ContractIBLSSignatureCheckerStaleStakesForbiddenUpdateIterator, error) - WatchStaleStakesForbiddenUpdate(opts *bind.WatchOpts, sink chan<- *ContractIBLSSignatureCheckerStaleStakesForbiddenUpdate) (event.Subscription, error) - ParseStaleStakesForbiddenUpdate(log types.Log) (*ContractIBLSSignatureCheckerStaleStakesForbiddenUpdate, error) -} - // ContractIBLSSignatureChecker is an auto generated Go binding around an Ethereum contract. type ContractIBLSSignatureChecker struct { ContractIBLSSignatureCheckerCaller // Read-only binding to the contract @@ -106,33 +75,21 @@ type ContractIBLSSignatureChecker struct { ContractIBLSSignatureCheckerFilterer // Log filterer for contract events } -// ContractIBLSSignatureChecker implements the ContractIBLSSignatureCheckerMethods interface. -var _ ContractIBLSSignatureCheckerMethods = (*ContractIBLSSignatureChecker)(nil) - // ContractIBLSSignatureCheckerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractIBLSSignatureCheckerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIBLSSignatureCheckerCaller implements the ContractIBLSSignatureCheckerCalls interface. -var _ ContractIBLSSignatureCheckerCalls = (*ContractIBLSSignatureCheckerCaller)(nil) - // ContractIBLSSignatureCheckerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractIBLSSignatureCheckerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIBLSSignatureCheckerTransactor implements the ContractIBLSSignatureCheckerTransacts interface. -var _ ContractIBLSSignatureCheckerTransacts = (*ContractIBLSSignatureCheckerTransactor)(nil) - // ContractIBLSSignatureCheckerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractIBLSSignatureCheckerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIBLSSignatureCheckerFilterer implements the ContractIBLSSignatureCheckerFilters interface. -var _ ContractIBLSSignatureCheckerFilters = (*ContractIBLSSignatureCheckerFilterer)(nil) - // ContractIBLSSignatureCheckerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractIBLSSignatureCheckerSession struct { diff --git a/contracts/bindings/IERC20/binding.go b/contracts/bindings/IERC20/binding.go index 99f1c0a5b..81afc37f6 100644 --- a/contracts/bindings/IERC20/binding.go +++ b/contracts/bindings/IERC20/binding.go @@ -38,48 +38,6 @@ var ContractIERC20MetaData = &bind.MetaData{ // Deprecated: Use ContractIERC20MetaData.ABI instead. var ContractIERC20ABI = ContractIERC20MetaData.ABI -// ContractIERC20Methods is an auto generated interface around an Ethereum contract. -type ContractIERC20Methods interface { - ContractIERC20Calls - ContractIERC20Transacts - ContractIERC20Filters -} - -// ContractIERC20Calls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractIERC20Calls interface { - Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) - - BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) - - Decimals(opts *bind.CallOpts) (uint8, error) - - Name(opts *bind.CallOpts) (string, error) - - Symbol(opts *bind.CallOpts) (string, error) - - TotalSupply(opts *bind.CallOpts) (*big.Int, error) -} - -// ContractIERC20Transacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractIERC20Transacts interface { - Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) - - Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) - - TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) -} - -// ContractIERC20Filterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractIERC20Filters interface { - FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ContractIERC20ApprovalIterator, error) - WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractIERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) - ParseApproval(log types.Log) (*ContractIERC20Approval, error) - - FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ContractIERC20TransferIterator, error) - WatchTransfer(opts *bind.WatchOpts, sink chan<- *ContractIERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) - ParseTransfer(log types.Log) (*ContractIERC20Transfer, error) -} - // ContractIERC20 is an auto generated Go binding around an Ethereum contract. type ContractIERC20 struct { ContractIERC20Caller // Read-only binding to the contract @@ -87,33 +45,21 @@ type ContractIERC20 struct { ContractIERC20Filterer // Log filterer for contract events } -// ContractIERC20 implements the ContractIERC20Methods interface. -var _ ContractIERC20Methods = (*ContractIERC20)(nil) - // ContractIERC20Caller is an auto generated read-only Go binding around an Ethereum contract. type ContractIERC20Caller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIERC20Caller implements the ContractIERC20Calls interface. -var _ ContractIERC20Calls = (*ContractIERC20Caller)(nil) - // ContractIERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. type ContractIERC20Transactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIERC20Transactor implements the ContractIERC20Transacts interface. -var _ ContractIERC20Transacts = (*ContractIERC20Transactor)(nil) - // ContractIERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractIERC20Filterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIERC20Filterer implements the ContractIERC20Filters interface. -var _ ContractIERC20Filters = (*ContractIERC20Filterer)(nil) - // ContractIERC20Session is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractIERC20Session struct { diff --git a/contracts/bindings/IRewardsCoordinator/binding.go b/contracts/bindings/IRewardsCoordinator/binding.go index 653170d00..32f79f014 100644 --- a/contracts/bindings/IRewardsCoordinator/binding.go +++ b/contracts/bindings/IRewardsCoordinator/binding.go @@ -100,154 +100,6 @@ var ContractIRewardsCoordinatorMetaData = &bind.MetaData{ // Deprecated: Use ContractIRewardsCoordinatorMetaData.ABI instead. var ContractIRewardsCoordinatorABI = ContractIRewardsCoordinatorMetaData.ABI -// ContractIRewardsCoordinatorMethods is an auto generated interface around an Ethereum contract. -type ContractIRewardsCoordinatorMethods interface { - ContractIRewardsCoordinatorCalls - ContractIRewardsCoordinatorTransacts - ContractIRewardsCoordinatorFilters -} - -// ContractIRewardsCoordinatorCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractIRewardsCoordinatorCalls interface { - CALCULATIONINTERVALSECONDS(opts *bind.CallOpts) (uint32, error) - - GENESISREWARDSTIMESTAMP(opts *bind.CallOpts) (uint32, error) - - MAXFUTURELENGTH(opts *bind.CallOpts) (uint32, error) - - MAXRETROACTIVELENGTH(opts *bind.CallOpts) (uint32, error) - - MAXREWARDSDURATION(opts *bind.CallOpts) (uint32, error) - - ActivationDelay(opts *bind.CallOpts) (uint32, error) - - CalculateEarnerLeafHash(opts *bind.CallOpts, leaf IRewardsCoordinatorTypesEarnerTreeMerkleLeaf) ([32]byte, error) - - CalculateTokenLeafHash(opts *bind.CallOpts, leaf IRewardsCoordinatorTypesTokenTreeMerkleLeaf) ([32]byte, error) - - CheckClaim(opts *bind.CallOpts, claim IRewardsCoordinatorTypesRewardsMerkleClaim) (bool, error) - - ClaimerFor(opts *bind.CallOpts, earner common.Address) (common.Address, error) - - CumulativeClaimed(opts *bind.CallOpts, claimer common.Address, token common.Address) (*big.Int, error) - - CurrRewardsCalculationEndTimestamp(opts *bind.CallOpts) (uint32, error) - - DefaultOperatorSplitBips(opts *bind.CallOpts) (uint16, error) - - GetCurrentClaimableDistributionRoot(opts *bind.CallOpts) (IRewardsCoordinatorTypesDistributionRoot, error) - - GetCurrentDistributionRoot(opts *bind.CallOpts) (IRewardsCoordinatorTypesDistributionRoot, error) - - GetDistributionRootAtIndex(opts *bind.CallOpts, index *big.Int) (IRewardsCoordinatorTypesDistributionRoot, error) - - GetDistributionRootsLength(opts *bind.CallOpts) (*big.Int, error) - - GetOperatorAVSSplit(opts *bind.CallOpts, operator common.Address, avs common.Address) (uint16, error) - - GetOperatorPISplit(opts *bind.CallOpts, operator common.Address) (uint16, error) - - GetRootIndexFromHash(opts *bind.CallOpts, rootHash [32]byte) (uint32, error) - - RewardsUpdater(opts *bind.CallOpts) (common.Address, error) -} - -// ContractIRewardsCoordinatorTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractIRewardsCoordinatorTransacts interface { - CreateAVSRewardsSubmission(opts *bind.TransactOpts, rewardsSubmissions []IRewardsCoordinatorTypesRewardsSubmission) (*types.Transaction, error) - - CreateOperatorDirectedAVSRewardsSubmission(opts *bind.TransactOpts, avs common.Address, operatorDirectedRewardsSubmissions []IRewardsCoordinatorTypesOperatorDirectedRewardsSubmission) (*types.Transaction, error) - - CreateRewardsForAllEarners(opts *bind.TransactOpts, rewardsSubmissions []IRewardsCoordinatorTypesRewardsSubmission) (*types.Transaction, error) - - CreateRewardsForAllSubmission(opts *bind.TransactOpts, rewardsSubmissions []IRewardsCoordinatorTypesRewardsSubmission) (*types.Transaction, error) - - DisableRoot(opts *bind.TransactOpts, rootIndex uint32) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, initialPausedStatus *big.Int, _rewardsUpdater common.Address, _activationDelay uint32, _defaultSplitBips uint16) (*types.Transaction, error) - - ProcessClaim(opts *bind.TransactOpts, claim IRewardsCoordinatorTypesRewardsMerkleClaim, recipient common.Address) (*types.Transaction, error) - - ProcessClaims(opts *bind.TransactOpts, claims []IRewardsCoordinatorTypesRewardsMerkleClaim, recipient common.Address) (*types.Transaction, error) - - SetActivationDelay(opts *bind.TransactOpts, _activationDelay uint32) (*types.Transaction, error) - - SetClaimerFor(opts *bind.TransactOpts, claimer common.Address) (*types.Transaction, error) - - SetClaimerFor0(opts *bind.TransactOpts, earner common.Address, claimer common.Address) (*types.Transaction, error) - - SetDefaultOperatorSplit(opts *bind.TransactOpts, split uint16) (*types.Transaction, error) - - SetOperatorAVSSplit(opts *bind.TransactOpts, operator common.Address, avs common.Address, split uint16) (*types.Transaction, error) - - SetOperatorPISplit(opts *bind.TransactOpts, operator common.Address, split uint16) (*types.Transaction, error) - - SetRewardsForAllSubmitter(opts *bind.TransactOpts, _submitter common.Address, _newValue bool) (*types.Transaction, error) - - SetRewardsUpdater(opts *bind.TransactOpts, _rewardsUpdater common.Address) (*types.Transaction, error) - - SubmitRoot(opts *bind.TransactOpts, root [32]byte, rewardsCalculationEndTimestamp uint32) (*types.Transaction, error) -} - -// ContractIRewardsCoordinatorFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractIRewardsCoordinatorFilters interface { - FilterAVSRewardsSubmissionCreated(opts *bind.FilterOpts, avs []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (*ContractIRewardsCoordinatorAVSRewardsSubmissionCreatedIterator, error) - WatchAVSRewardsSubmissionCreated(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorAVSRewardsSubmissionCreated, avs []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (event.Subscription, error) - ParseAVSRewardsSubmissionCreated(log types.Log) (*ContractIRewardsCoordinatorAVSRewardsSubmissionCreated, error) - - FilterActivationDelaySet(opts *bind.FilterOpts) (*ContractIRewardsCoordinatorActivationDelaySetIterator, error) - WatchActivationDelaySet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorActivationDelaySet) (event.Subscription, error) - ParseActivationDelaySet(log types.Log) (*ContractIRewardsCoordinatorActivationDelaySet, error) - - FilterClaimerForSet(opts *bind.FilterOpts, earner []common.Address, oldClaimer []common.Address, claimer []common.Address) (*ContractIRewardsCoordinatorClaimerForSetIterator, error) - WatchClaimerForSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorClaimerForSet, earner []common.Address, oldClaimer []common.Address, claimer []common.Address) (event.Subscription, error) - ParseClaimerForSet(log types.Log) (*ContractIRewardsCoordinatorClaimerForSet, error) - - FilterDefaultOperatorSplitBipsSet(opts *bind.FilterOpts) (*ContractIRewardsCoordinatorDefaultOperatorSplitBipsSetIterator, error) - WatchDefaultOperatorSplitBipsSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorDefaultOperatorSplitBipsSet) (event.Subscription, error) - ParseDefaultOperatorSplitBipsSet(log types.Log) (*ContractIRewardsCoordinatorDefaultOperatorSplitBipsSet, error) - - FilterDistributionRootDisabled(opts *bind.FilterOpts, rootIndex []uint32) (*ContractIRewardsCoordinatorDistributionRootDisabledIterator, error) - WatchDistributionRootDisabled(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorDistributionRootDisabled, rootIndex []uint32) (event.Subscription, error) - ParseDistributionRootDisabled(log types.Log) (*ContractIRewardsCoordinatorDistributionRootDisabled, error) - - FilterDistributionRootSubmitted(opts *bind.FilterOpts, rootIndex []uint32, root [][32]byte, rewardsCalculationEndTimestamp []uint32) (*ContractIRewardsCoordinatorDistributionRootSubmittedIterator, error) - WatchDistributionRootSubmitted(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorDistributionRootSubmitted, rootIndex []uint32, root [][32]byte, rewardsCalculationEndTimestamp []uint32) (event.Subscription, error) - ParseDistributionRootSubmitted(log types.Log) (*ContractIRewardsCoordinatorDistributionRootSubmitted, error) - - FilterOperatorAVSSplitBipsSet(opts *bind.FilterOpts, caller []common.Address, operator []common.Address, avs []common.Address) (*ContractIRewardsCoordinatorOperatorAVSSplitBipsSetIterator, error) - WatchOperatorAVSSplitBipsSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorOperatorAVSSplitBipsSet, caller []common.Address, operator []common.Address, avs []common.Address) (event.Subscription, error) - ParseOperatorAVSSplitBipsSet(log types.Log) (*ContractIRewardsCoordinatorOperatorAVSSplitBipsSet, error) - - FilterOperatorDirectedAVSRewardsSubmissionCreated(opts *bind.FilterOpts, caller []common.Address, avs []common.Address, operatorDirectedRewardsSubmissionHash [][32]byte) (*ContractIRewardsCoordinatorOperatorDirectedAVSRewardsSubmissionCreatedIterator, error) - WatchOperatorDirectedAVSRewardsSubmissionCreated(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorOperatorDirectedAVSRewardsSubmissionCreated, caller []common.Address, avs []common.Address, operatorDirectedRewardsSubmissionHash [][32]byte) (event.Subscription, error) - ParseOperatorDirectedAVSRewardsSubmissionCreated(log types.Log) (*ContractIRewardsCoordinatorOperatorDirectedAVSRewardsSubmissionCreated, error) - - FilterOperatorPISplitBipsSet(opts *bind.FilterOpts, caller []common.Address, operator []common.Address) (*ContractIRewardsCoordinatorOperatorPISplitBipsSetIterator, error) - WatchOperatorPISplitBipsSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorOperatorPISplitBipsSet, caller []common.Address, operator []common.Address) (event.Subscription, error) - ParseOperatorPISplitBipsSet(log types.Log) (*ContractIRewardsCoordinatorOperatorPISplitBipsSet, error) - - FilterRewardsClaimed(opts *bind.FilterOpts, earner []common.Address, claimer []common.Address, recipient []common.Address) (*ContractIRewardsCoordinatorRewardsClaimedIterator, error) - WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorRewardsClaimed, earner []common.Address, claimer []common.Address, recipient []common.Address) (event.Subscription, error) - ParseRewardsClaimed(log types.Log) (*ContractIRewardsCoordinatorRewardsClaimed, error) - - FilterRewardsForAllSubmitterSet(opts *bind.FilterOpts, rewardsForAllSubmitter []common.Address, oldValue []bool, newValue []bool) (*ContractIRewardsCoordinatorRewardsForAllSubmitterSetIterator, error) - WatchRewardsForAllSubmitterSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorRewardsForAllSubmitterSet, rewardsForAllSubmitter []common.Address, oldValue []bool, newValue []bool) (event.Subscription, error) - ParseRewardsForAllSubmitterSet(log types.Log) (*ContractIRewardsCoordinatorRewardsForAllSubmitterSet, error) - - FilterRewardsSubmissionForAllCreated(opts *bind.FilterOpts, submitter []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (*ContractIRewardsCoordinatorRewardsSubmissionForAllCreatedIterator, error) - WatchRewardsSubmissionForAllCreated(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorRewardsSubmissionForAllCreated, submitter []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (event.Subscription, error) - ParseRewardsSubmissionForAllCreated(log types.Log) (*ContractIRewardsCoordinatorRewardsSubmissionForAllCreated, error) - - FilterRewardsSubmissionForAllEarnersCreated(opts *bind.FilterOpts, tokenHopper []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (*ContractIRewardsCoordinatorRewardsSubmissionForAllEarnersCreatedIterator, error) - WatchRewardsSubmissionForAllEarnersCreated(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorRewardsSubmissionForAllEarnersCreated, tokenHopper []common.Address, submissionNonce []*big.Int, rewardsSubmissionHash [][32]byte) (event.Subscription, error) - ParseRewardsSubmissionForAllEarnersCreated(log types.Log) (*ContractIRewardsCoordinatorRewardsSubmissionForAllEarnersCreated, error) - - FilterRewardsUpdaterSet(opts *bind.FilterOpts, oldRewardsUpdater []common.Address, newRewardsUpdater []common.Address) (*ContractIRewardsCoordinatorRewardsUpdaterSetIterator, error) - WatchRewardsUpdaterSet(opts *bind.WatchOpts, sink chan<- *ContractIRewardsCoordinatorRewardsUpdaterSet, oldRewardsUpdater []common.Address, newRewardsUpdater []common.Address) (event.Subscription, error) - ParseRewardsUpdaterSet(log types.Log) (*ContractIRewardsCoordinatorRewardsUpdaterSet, error) -} - // ContractIRewardsCoordinator is an auto generated Go binding around an Ethereum contract. type ContractIRewardsCoordinator struct { ContractIRewardsCoordinatorCaller // Read-only binding to the contract @@ -255,33 +107,21 @@ type ContractIRewardsCoordinator struct { ContractIRewardsCoordinatorFilterer // Log filterer for contract events } -// ContractIRewardsCoordinator implements the ContractIRewardsCoordinatorMethods interface. -var _ ContractIRewardsCoordinatorMethods = (*ContractIRewardsCoordinator)(nil) - // ContractIRewardsCoordinatorCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractIRewardsCoordinatorCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIRewardsCoordinatorCaller implements the ContractIRewardsCoordinatorCalls interface. -var _ ContractIRewardsCoordinatorCalls = (*ContractIRewardsCoordinatorCaller)(nil) - // ContractIRewardsCoordinatorTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractIRewardsCoordinatorTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIRewardsCoordinatorTransactor implements the ContractIRewardsCoordinatorTransacts interface. -var _ ContractIRewardsCoordinatorTransacts = (*ContractIRewardsCoordinatorTransactor)(nil) - // ContractIRewardsCoordinatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractIRewardsCoordinatorFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIRewardsCoordinatorFilterer implements the ContractIRewardsCoordinatorFilters interface. -var _ ContractIRewardsCoordinatorFilters = (*ContractIRewardsCoordinatorFilterer)(nil) - // ContractIRewardsCoordinatorSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractIRewardsCoordinatorSession struct { diff --git a/contracts/bindings/IStrategy/binding.go b/contracts/bindings/IStrategy/binding.go index e9a51a00a..6a9042672 100644 --- a/contracts/bindings/IStrategy/binding.go +++ b/contracts/bindings/IStrategy/binding.go @@ -38,54 +38,6 @@ var ContractIStrategyMetaData = &bind.MetaData{ // Deprecated: Use ContractIStrategyMetaData.ABI instead. var ContractIStrategyABI = ContractIStrategyMetaData.ABI -// ContractIStrategyMethods is an auto generated interface around an Ethereum contract. -type ContractIStrategyMethods interface { - ContractIStrategyCalls - ContractIStrategyTransacts - ContractIStrategyFilters -} - -// ContractIStrategyCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractIStrategyCalls interface { - Explanation(opts *bind.CallOpts) (string, error) - - Shares(opts *bind.CallOpts, user common.Address) (*big.Int, error) - - SharesToUnderlyingView(opts *bind.CallOpts, amountShares *big.Int) (*big.Int, error) - - TotalShares(opts *bind.CallOpts) (*big.Int, error) - - UnderlyingToSharesView(opts *bind.CallOpts, amountUnderlying *big.Int) (*big.Int, error) - - UnderlyingToken(opts *bind.CallOpts) (common.Address, error) - - UserUnderlyingView(opts *bind.CallOpts, user common.Address) (*big.Int, error) -} - -// ContractIStrategyTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractIStrategyTransacts interface { - Deposit(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) - - SharesToUnderlying(opts *bind.TransactOpts, amountShares *big.Int) (*types.Transaction, error) - - UnderlyingToShares(opts *bind.TransactOpts, amountUnderlying *big.Int) (*types.Transaction, error) - - UserUnderlying(opts *bind.TransactOpts, user common.Address) (*types.Transaction, error) - - Withdraw(opts *bind.TransactOpts, recipient common.Address, token common.Address, amountShares *big.Int) (*types.Transaction, error) -} - -// ContractIStrategyFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractIStrategyFilters interface { - FilterExchangeRateEmitted(opts *bind.FilterOpts) (*ContractIStrategyExchangeRateEmittedIterator, error) - WatchExchangeRateEmitted(opts *bind.WatchOpts, sink chan<- *ContractIStrategyExchangeRateEmitted) (event.Subscription, error) - ParseExchangeRateEmitted(log types.Log) (*ContractIStrategyExchangeRateEmitted, error) - - FilterStrategyTokenSet(opts *bind.FilterOpts) (*ContractIStrategyStrategyTokenSetIterator, error) - WatchStrategyTokenSet(opts *bind.WatchOpts, sink chan<- *ContractIStrategyStrategyTokenSet) (event.Subscription, error) - ParseStrategyTokenSet(log types.Log) (*ContractIStrategyStrategyTokenSet, error) -} - // ContractIStrategy is an auto generated Go binding around an Ethereum contract. type ContractIStrategy struct { ContractIStrategyCaller // Read-only binding to the contract @@ -93,33 +45,21 @@ type ContractIStrategy struct { ContractIStrategyFilterer // Log filterer for contract events } -// ContractIStrategy implements the ContractIStrategyMethods interface. -var _ ContractIStrategyMethods = (*ContractIStrategy)(nil) - // ContractIStrategyCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractIStrategyCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIStrategyCaller implements the ContractIStrategyCalls interface. -var _ ContractIStrategyCalls = (*ContractIStrategyCaller)(nil) - // ContractIStrategyTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractIStrategyTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIStrategyTransactor implements the ContractIStrategyTransacts interface. -var _ ContractIStrategyTransacts = (*ContractIStrategyTransactor)(nil) - // ContractIStrategyFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractIStrategyFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIStrategyFilterer implements the ContractIStrategyFilters interface. -var _ ContractIStrategyFilters = (*ContractIStrategyFilterer)(nil) - // ContractIStrategySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractIStrategySession struct { diff --git a/contracts/bindings/IndexRegistry/binding.go b/contracts/bindings/IndexRegistry/binding.go index 4d8756aa9..8c9aaf530 100644 --- a/contracts/bindings/IndexRegistry/binding.go +++ b/contracts/bindings/IndexRegistry/binding.go @@ -72,54 +72,6 @@ func DeployContractIndexRegistry(auth *bind.TransactOpts, backend bind.ContractB return address, tx, &ContractIndexRegistry{ContractIndexRegistryCaller: ContractIndexRegistryCaller{contract: contract}, ContractIndexRegistryTransactor: ContractIndexRegistryTransactor{contract: contract}, ContractIndexRegistryFilterer: ContractIndexRegistryFilterer{contract: contract}}, nil } -// ContractIndexRegistryMethods is an auto generated interface around an Ethereum contract. -type ContractIndexRegistryMethods interface { - ContractIndexRegistryCalls - ContractIndexRegistryTransacts - ContractIndexRegistryFilters -} - -// ContractIndexRegistryCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractIndexRegistryCalls interface { - OPERATORDOESNOTEXISTID(opts *bind.CallOpts) ([32]byte, error) - - CurrentOperatorIndex(opts *bind.CallOpts, arg0 uint8, arg1 [32]byte) (uint32, error) - - GetLatestOperatorUpdate(opts *bind.CallOpts, quorumNumber uint8, operatorIndex uint32) (IIndexRegistryOperatorUpdate, error) - - GetLatestQuorumUpdate(opts *bind.CallOpts, quorumNumber uint8) (IIndexRegistryQuorumUpdate, error) - - GetOperatorListAtBlockNumber(opts *bind.CallOpts, quorumNumber uint8, blockNumber uint32) ([][32]byte, error) - - GetOperatorUpdateAtIndex(opts *bind.CallOpts, quorumNumber uint8, operatorIndex uint32, arrayIndex uint32) (IIndexRegistryOperatorUpdate, error) - - GetQuorumUpdateAtIndex(opts *bind.CallOpts, quorumNumber uint8, quorumIndex uint32) (IIndexRegistryQuorumUpdate, error) - - RegistryCoordinator(opts *bind.CallOpts) (common.Address, error) - - TotalOperatorsForQuorum(opts *bind.CallOpts, quorumNumber uint8) (uint32, error) -} - -// ContractIndexRegistryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractIndexRegistryTransacts interface { - DeregisterOperator(opts *bind.TransactOpts, operatorId [32]byte, quorumNumbers []byte) (*types.Transaction, error) - - InitializeQuorum(opts *bind.TransactOpts, quorumNumber uint8) (*types.Transaction, error) - - RegisterOperator(opts *bind.TransactOpts, operatorId [32]byte, quorumNumbers []byte) (*types.Transaction, error) -} - -// ContractIndexRegistryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractIndexRegistryFilters interface { - FilterInitialized(opts *bind.FilterOpts) (*ContractIndexRegistryInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractIndexRegistryInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractIndexRegistryInitialized, error) - - FilterQuorumIndexUpdate(opts *bind.FilterOpts, operatorId [][32]byte) (*ContractIndexRegistryQuorumIndexUpdateIterator, error) - WatchQuorumIndexUpdate(opts *bind.WatchOpts, sink chan<- *ContractIndexRegistryQuorumIndexUpdate, operatorId [][32]byte) (event.Subscription, error) - ParseQuorumIndexUpdate(log types.Log) (*ContractIndexRegistryQuorumIndexUpdate, error) -} - // ContractIndexRegistry is an auto generated Go binding around an Ethereum contract. type ContractIndexRegistry struct { ContractIndexRegistryCaller // Read-only binding to the contract @@ -127,33 +79,21 @@ type ContractIndexRegistry struct { ContractIndexRegistryFilterer // Log filterer for contract events } -// ContractIndexRegistry implements the ContractIndexRegistryMethods interface. -var _ ContractIndexRegistryMethods = (*ContractIndexRegistry)(nil) - // ContractIndexRegistryCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractIndexRegistryCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIndexRegistryCaller implements the ContractIndexRegistryCalls interface. -var _ ContractIndexRegistryCalls = (*ContractIndexRegistryCaller)(nil) - // ContractIndexRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractIndexRegistryTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIndexRegistryTransactor implements the ContractIndexRegistryTransacts interface. -var _ ContractIndexRegistryTransacts = (*ContractIndexRegistryTransactor)(nil) - // ContractIndexRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractIndexRegistryFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractIndexRegistryFilterer implements the ContractIndexRegistryFilters interface. -var _ ContractIndexRegistryFilters = (*ContractIndexRegistryFilterer)(nil) - // ContractIndexRegistrySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractIndexRegistrySession struct { diff --git a/contracts/bindings/MockAvsServiceManager/binding.go b/contracts/bindings/MockAvsServiceManager/binding.go index 7f7eb4996..70b740fde 100644 --- a/contracts/bindings/MockAvsServiceManager/binding.go +++ b/contracts/bindings/MockAvsServiceManager/binding.go @@ -127,119 +127,6 @@ func DeployContractMockAvsServiceManager(auth *bind.TransactOpts, backend bind.C return address, tx, &ContractMockAvsServiceManager{ContractMockAvsServiceManagerCaller: ContractMockAvsServiceManagerCaller{contract: contract}, ContractMockAvsServiceManagerTransactor: ContractMockAvsServiceManagerTransactor{contract: contract}, ContractMockAvsServiceManagerFilterer: ContractMockAvsServiceManagerFilterer{contract: contract}}, nil } -// ContractMockAvsServiceManagerMethods is an auto generated interface around an Ethereum contract. -type ContractMockAvsServiceManagerMethods interface { - ContractMockAvsServiceManagerCalls - ContractMockAvsServiceManagerTransacts - ContractMockAvsServiceManagerFilters -} - -// ContractMockAvsServiceManagerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractMockAvsServiceManagerCalls interface { - SLASHERPROPOSALDELAY(opts *bind.CallOpts) (*big.Int, error) - - AllocationManager(opts *bind.CallOpts) (common.Address, error) - - AvsDirectory(opts *bind.CallOpts) (common.Address, error) - - BlsApkRegistry(opts *bind.CallOpts) (common.Address, error) - - CheckSignatures(opts *bind.CallOpts, msgHash [32]byte, quorumNumbers []byte, referenceBlockNumber uint32, params IBLSSignatureCheckerNonSignerStakesAndSignature) (IBLSSignatureCheckerQuorumStakeTotals, [32]byte, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - GetOperatorRestakedStrategies(opts *bind.CallOpts, operator common.Address) ([]common.Address, error) - - GetRestakeableStrategies(opts *bind.CallOpts) ([]common.Address, error) - - MigrationFinalized(opts *bind.CallOpts) (bool, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - ProposedSlasher(opts *bind.CallOpts) (common.Address, error) - - RegistryCoordinator(opts *bind.CallOpts) (common.Address, error) - - RewardsInitiator(opts *bind.CallOpts) (common.Address, error) - - Slasher(opts *bind.CallOpts) (common.Address, error) - - SlasherProposalTimestamp(opts *bind.CallOpts) (*big.Int, error) - - StakeRegistry(opts *bind.CallOpts) (common.Address, error) - - StaleStakesForbidden(opts *bind.CallOpts) (bool, error) - - TrySignatureAndApkVerification(opts *bind.CallOpts, msgHash [32]byte, apk BN254G1Point, apkG2 BN254G2Point, sigma BN254G1Point) (struct { - PairingSuccessful bool - SiganatureIsValid bool - }, error) -} - -// ContractMockAvsServiceManagerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractMockAvsServiceManagerTransacts interface { - AcceptProposedSlasher(opts *bind.TransactOpts) (*types.Transaction, error) - - AddStrategyToOperatorSet(opts *bind.TransactOpts, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - CreateAVSRewardsSubmission(opts *bind.TransactOpts, rewardsSubmissions []IRewardsCoordinatorTypesRewardsSubmission) (*types.Transaction, error) - - CreateOperatorSets(opts *bind.TransactOpts, params []IAllocationManagerTypesCreateSetParams) (*types.Transaction, error) - - DeregisterOperatorFromAVS(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error) - - DeregisterOperatorFromOperatorSets(opts *bind.TransactOpts, operator common.Address, operatorSetIds []uint32) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, _initialOwner common.Address) (*types.Transaction, error) - - ProposeNewSlasher(opts *bind.TransactOpts, newSlasher common.Address) (*types.Transaction, error) - - RegisterOperatorToAVS(opts *bind.TransactOpts, operator common.Address, operatorSignature ISignatureUtilsSignatureWithSaltAndExpiry) (*types.Transaction, error) - - RemoveStrategiesFromOperatorSet(opts *bind.TransactOpts, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - SetAVSRegistrar(opts *bind.TransactOpts, registrar common.Address) (*types.Transaction, error) - - SetRewardsInitiator(opts *bind.TransactOpts, newRewardsInitiator common.Address) (*types.Transaction, error) - - SetStaleStakesForbidden(opts *bind.TransactOpts, value bool) (*types.Transaction, error) - - SlashOperator(opts *bind.TransactOpts, params IAllocationManagerTypesSlashingParams) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - UpdateAVSMetadataURI(opts *bind.TransactOpts, _metadataURI string) (*types.Transaction, error) -} - -// ContractMockAvsServiceManagerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractMockAvsServiceManagerFilters interface { - FilterInitialized(opts *bind.FilterOpts) (*ContractMockAvsServiceManagerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractMockAvsServiceManagerInitialized, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractMockAvsServiceManagerOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractMockAvsServiceManagerOwnershipTransferred, error) - - FilterRewardsInitiatorUpdated(opts *bind.FilterOpts) (*ContractMockAvsServiceManagerRewardsInitiatorUpdatedIterator, error) - WatchRewardsInitiatorUpdated(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerRewardsInitiatorUpdated) (event.Subscription, error) - ParseRewardsInitiatorUpdated(log types.Log) (*ContractMockAvsServiceManagerRewardsInitiatorUpdated, error) - - FilterSlasherProposed(opts *bind.FilterOpts) (*ContractMockAvsServiceManagerSlasherProposedIterator, error) - WatchSlasherProposed(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerSlasherProposed) (event.Subscription, error) - ParseSlasherProposed(log types.Log) (*ContractMockAvsServiceManagerSlasherProposed, error) - - FilterSlasherUpdated(opts *bind.FilterOpts) (*ContractMockAvsServiceManagerSlasherUpdatedIterator, error) - WatchSlasherUpdated(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerSlasherUpdated) (event.Subscription, error) - ParseSlasherUpdated(log types.Log) (*ContractMockAvsServiceManagerSlasherUpdated, error) - - FilterStaleStakesForbiddenUpdate(opts *bind.FilterOpts) (*ContractMockAvsServiceManagerStaleStakesForbiddenUpdateIterator, error) - WatchStaleStakesForbiddenUpdate(opts *bind.WatchOpts, sink chan<- *ContractMockAvsServiceManagerStaleStakesForbiddenUpdate) (event.Subscription, error) - ParseStaleStakesForbiddenUpdate(log types.Log) (*ContractMockAvsServiceManagerStaleStakesForbiddenUpdate, error) -} - // ContractMockAvsServiceManager is an auto generated Go binding around an Ethereum contract. type ContractMockAvsServiceManager struct { ContractMockAvsServiceManagerCaller // Read-only binding to the contract @@ -247,33 +134,21 @@ type ContractMockAvsServiceManager struct { ContractMockAvsServiceManagerFilterer // Log filterer for contract events } -// ContractMockAvsServiceManager implements the ContractMockAvsServiceManagerMethods interface. -var _ ContractMockAvsServiceManagerMethods = (*ContractMockAvsServiceManager)(nil) - // ContractMockAvsServiceManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractMockAvsServiceManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockAvsServiceManagerCaller implements the ContractMockAvsServiceManagerCalls interface. -var _ ContractMockAvsServiceManagerCalls = (*ContractMockAvsServiceManagerCaller)(nil) - // ContractMockAvsServiceManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractMockAvsServiceManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockAvsServiceManagerTransactor implements the ContractMockAvsServiceManagerTransacts interface. -var _ ContractMockAvsServiceManagerTransacts = (*ContractMockAvsServiceManagerTransactor)(nil) - // ContractMockAvsServiceManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractMockAvsServiceManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockAvsServiceManagerFilterer implements the ContractMockAvsServiceManagerFilters interface. -var _ ContractMockAvsServiceManagerFilters = (*ContractMockAvsServiceManagerFilterer)(nil) - // ContractMockAvsServiceManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractMockAvsServiceManagerSession struct { diff --git a/contracts/bindings/MockERC20/binding.go b/contracts/bindings/MockERC20/binding.go index de7fc24b6..518699933 100644 --- a/contracts/bindings/MockERC20/binding.go +++ b/contracts/bindings/MockERC20/binding.go @@ -60,54 +60,6 @@ func DeployContractMockERC20(auth *bind.TransactOpts, backend bind.ContractBacke return address, tx, &ContractMockERC20{ContractMockERC20Caller: ContractMockERC20Caller{contract: contract}, ContractMockERC20Transactor: ContractMockERC20Transactor{contract: contract}, ContractMockERC20Filterer: ContractMockERC20Filterer{contract: contract}}, nil } -// ContractMockERC20Methods is an auto generated interface around an Ethereum contract. -type ContractMockERC20Methods interface { - ContractMockERC20Calls - ContractMockERC20Transacts - ContractMockERC20Filters -} - -// ContractMockERC20Calls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractMockERC20Calls interface { - Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) - - BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) - - Decimals(opts *bind.CallOpts) (uint8, error) - - Name(opts *bind.CallOpts) (string, error) - - Symbol(opts *bind.CallOpts) (string, error) - - TotalSupply(opts *bind.CallOpts) (*big.Int, error) -} - -// ContractMockERC20Transacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractMockERC20Transacts interface { - Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) - - DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) - - IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) - - Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error) - - Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) - - TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) -} - -// ContractMockERC20Filterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractMockERC20Filters interface { - FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ContractMockERC20ApprovalIterator, error) - WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractMockERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) - ParseApproval(log types.Log) (*ContractMockERC20Approval, error) - - FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ContractMockERC20TransferIterator, error) - WatchTransfer(opts *bind.WatchOpts, sink chan<- *ContractMockERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) - ParseTransfer(log types.Log) (*ContractMockERC20Transfer, error) -} - // ContractMockERC20 is an auto generated Go binding around an Ethereum contract. type ContractMockERC20 struct { ContractMockERC20Caller // Read-only binding to the contract @@ -115,33 +67,21 @@ type ContractMockERC20 struct { ContractMockERC20Filterer // Log filterer for contract events } -// ContractMockERC20 implements the ContractMockERC20Methods interface. -var _ ContractMockERC20Methods = (*ContractMockERC20)(nil) - // ContractMockERC20Caller is an auto generated read-only Go binding around an Ethereum contract. type ContractMockERC20Caller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockERC20Caller implements the ContractMockERC20Calls interface. -var _ ContractMockERC20Calls = (*ContractMockERC20Caller)(nil) - // ContractMockERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. type ContractMockERC20Transactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockERC20Transactor implements the ContractMockERC20Transacts interface. -var _ ContractMockERC20Transacts = (*ContractMockERC20Transactor)(nil) - // ContractMockERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractMockERC20Filterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractMockERC20Filterer implements the ContractMockERC20Filters interface. -var _ ContractMockERC20Filters = (*ContractMockERC20Filterer)(nil) - // ContractMockERC20Session is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractMockERC20Session struct { diff --git a/contracts/bindings/OperatorStateRetriever/binding.go b/contracts/bindings/OperatorStateRetriever/binding.go index ed8f28d99..ac1230923 100644 --- a/contracts/bindings/OperatorStateRetriever/binding.go +++ b/contracts/bindings/OperatorStateRetriever/binding.go @@ -75,36 +75,6 @@ func DeployContractOperatorStateRetriever(auth *bind.TransactOpts, backend bind. return address, tx, &ContractOperatorStateRetriever{ContractOperatorStateRetrieverCaller: ContractOperatorStateRetrieverCaller{contract: contract}, ContractOperatorStateRetrieverTransactor: ContractOperatorStateRetrieverTransactor{contract: contract}, ContractOperatorStateRetrieverFilterer: ContractOperatorStateRetrieverFilterer{contract: contract}}, nil } -// ContractOperatorStateRetrieverMethods is an auto generated interface around an Ethereum contract. -type ContractOperatorStateRetrieverMethods interface { - ContractOperatorStateRetrieverCalls - ContractOperatorStateRetrieverTransacts - ContractOperatorStateRetrieverFilters -} - -// ContractOperatorStateRetrieverCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractOperatorStateRetrieverCalls interface { - GetBatchOperatorFromId(opts *bind.CallOpts, registryCoordinator common.Address, operatorIds [][32]byte) ([]common.Address, error) - - GetBatchOperatorId(opts *bind.CallOpts, registryCoordinator common.Address, operators []common.Address) ([][32]byte, error) - - GetCheckSignaturesIndices(opts *bind.CallOpts, registryCoordinator common.Address, referenceBlockNumber uint32, quorumNumbers []byte, nonSignerOperatorIds [][32]byte) (OperatorStateRetrieverCheckSignaturesIndices, error) - - GetOperatorState(opts *bind.CallOpts, registryCoordinator common.Address, quorumNumbers []byte, blockNumber uint32) ([][]OperatorStateRetrieverOperator, error) - - GetOperatorState0(opts *bind.CallOpts, registryCoordinator common.Address, operatorId [32]byte, blockNumber uint32) (*big.Int, [][]OperatorStateRetrieverOperator, error) - - GetQuorumBitmapsAtBlockNumber(opts *bind.CallOpts, registryCoordinator common.Address, operatorIds [][32]byte, blockNumber uint32) ([]*big.Int, error) -} - -// ContractOperatorStateRetrieverTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractOperatorStateRetrieverTransacts interface { -} - -// ContractOperatorStateRetrieverFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractOperatorStateRetrieverFilters interface { -} - // ContractOperatorStateRetriever is an auto generated Go binding around an Ethereum contract. type ContractOperatorStateRetriever struct { ContractOperatorStateRetrieverCaller // Read-only binding to the contract @@ -112,33 +82,21 @@ type ContractOperatorStateRetriever struct { ContractOperatorStateRetrieverFilterer // Log filterer for contract events } -// ContractOperatorStateRetriever implements the ContractOperatorStateRetrieverMethods interface. -var _ ContractOperatorStateRetrieverMethods = (*ContractOperatorStateRetriever)(nil) - // ContractOperatorStateRetrieverCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractOperatorStateRetrieverCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractOperatorStateRetrieverCaller implements the ContractOperatorStateRetrieverCalls interface. -var _ ContractOperatorStateRetrieverCalls = (*ContractOperatorStateRetrieverCaller)(nil) - // ContractOperatorStateRetrieverTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractOperatorStateRetrieverTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractOperatorStateRetrieverTransactor implements the ContractOperatorStateRetrieverTransacts interface. -var _ ContractOperatorStateRetrieverTransacts = (*ContractOperatorStateRetrieverTransactor)(nil) - // ContractOperatorStateRetrieverFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractOperatorStateRetrieverFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractOperatorStateRetrieverFilterer implements the ContractOperatorStateRetrieverFilters interface. -var _ ContractOperatorStateRetrieverFilters = (*ContractOperatorStateRetrieverFilterer)(nil) - // ContractOperatorStateRetrieverSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractOperatorStateRetrieverSession struct { diff --git a/contracts/bindings/PermissionController/binding.go b/contracts/bindings/PermissionController/binding.go index ba96d83c2..9484a193b 100644 --- a/contracts/bindings/PermissionController/binding.go +++ b/contracts/bindings/PermissionController/binding.go @@ -60,76 +60,6 @@ func DeployContractPermissionController(auth *bind.TransactOpts, backend bind.Co return address, tx, &ContractPermissionController{ContractPermissionControllerCaller: ContractPermissionControllerCaller{contract: contract}, ContractPermissionControllerTransactor: ContractPermissionControllerTransactor{contract: contract}, ContractPermissionControllerFilterer: ContractPermissionControllerFilterer{contract: contract}}, nil } -// ContractPermissionControllerMethods is an auto generated interface around an Ethereum contract. -type ContractPermissionControllerMethods interface { - ContractPermissionControllerCalls - ContractPermissionControllerTransacts - ContractPermissionControllerFilters -} - -// ContractPermissionControllerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractPermissionControllerCalls interface { - CanCall(opts *bind.CallOpts, account common.Address, caller common.Address, target common.Address, selector [4]byte) (bool, error) - - GetAdmins(opts *bind.CallOpts, account common.Address) ([]common.Address, error) - - GetAppointeePermissions(opts *bind.CallOpts, account common.Address, appointee common.Address) ([]common.Address, [][4]byte, error) - - GetAppointees(opts *bind.CallOpts, account common.Address, target common.Address, selector [4]byte) ([]common.Address, error) - - GetPendingAdmins(opts *bind.CallOpts, account common.Address) ([]common.Address, error) - - IsAdmin(opts *bind.CallOpts, account common.Address, caller common.Address) (bool, error) - - IsPendingAdmin(opts *bind.CallOpts, account common.Address, pendingAdmin common.Address) (bool, error) -} - -// ContractPermissionControllerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractPermissionControllerTransacts interface { - AcceptAdmin(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error) - - AddPendingAdmin(opts *bind.TransactOpts, account common.Address, admin common.Address) (*types.Transaction, error) - - RemoveAdmin(opts *bind.TransactOpts, account common.Address, admin common.Address) (*types.Transaction, error) - - RemoveAppointee(opts *bind.TransactOpts, account common.Address, appointee common.Address, target common.Address, selector [4]byte) (*types.Transaction, error) - - RemovePendingAdmin(opts *bind.TransactOpts, account common.Address, admin common.Address) (*types.Transaction, error) - - SetAppointee(opts *bind.TransactOpts, account common.Address, appointee common.Address, target common.Address, selector [4]byte) (*types.Transaction, error) -} - -// ContractPermissionControllerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractPermissionControllerFilters interface { - FilterAdminRemoved(opts *bind.FilterOpts, account []common.Address) (*ContractPermissionControllerAdminRemovedIterator, error) - WatchAdminRemoved(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerAdminRemoved, account []common.Address) (event.Subscription, error) - ParseAdminRemoved(log types.Log) (*ContractPermissionControllerAdminRemoved, error) - - FilterAdminSet(opts *bind.FilterOpts, account []common.Address) (*ContractPermissionControllerAdminSetIterator, error) - WatchAdminSet(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerAdminSet, account []common.Address) (event.Subscription, error) - ParseAdminSet(log types.Log) (*ContractPermissionControllerAdminSet, error) - - FilterAppointeeRemoved(opts *bind.FilterOpts, account []common.Address, appointee []common.Address) (*ContractPermissionControllerAppointeeRemovedIterator, error) - WatchAppointeeRemoved(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerAppointeeRemoved, account []common.Address, appointee []common.Address) (event.Subscription, error) - ParseAppointeeRemoved(log types.Log) (*ContractPermissionControllerAppointeeRemoved, error) - - FilterAppointeeSet(opts *bind.FilterOpts, account []common.Address, appointee []common.Address) (*ContractPermissionControllerAppointeeSetIterator, error) - WatchAppointeeSet(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerAppointeeSet, account []common.Address, appointee []common.Address) (event.Subscription, error) - ParseAppointeeSet(log types.Log) (*ContractPermissionControllerAppointeeSet, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractPermissionControllerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractPermissionControllerInitialized, error) - - FilterPendingAdminAdded(opts *bind.FilterOpts, account []common.Address) (*ContractPermissionControllerPendingAdminAddedIterator, error) - WatchPendingAdminAdded(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerPendingAdminAdded, account []common.Address) (event.Subscription, error) - ParsePendingAdminAdded(log types.Log) (*ContractPermissionControllerPendingAdminAdded, error) - - FilterPendingAdminRemoved(opts *bind.FilterOpts, account []common.Address) (*ContractPermissionControllerPendingAdminRemovedIterator, error) - WatchPendingAdminRemoved(opts *bind.WatchOpts, sink chan<- *ContractPermissionControllerPendingAdminRemoved, account []common.Address) (event.Subscription, error) - ParsePendingAdminRemoved(log types.Log) (*ContractPermissionControllerPendingAdminRemoved, error) -} - // ContractPermissionController is an auto generated Go binding around an Ethereum contract. type ContractPermissionController struct { ContractPermissionControllerCaller // Read-only binding to the contract @@ -137,33 +67,21 @@ type ContractPermissionController struct { ContractPermissionControllerFilterer // Log filterer for contract events } -// ContractPermissionController implements the ContractPermissionControllerMethods interface. -var _ ContractPermissionControllerMethods = (*ContractPermissionController)(nil) - // ContractPermissionControllerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractPermissionControllerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractPermissionControllerCaller implements the ContractPermissionControllerCalls interface. -var _ ContractPermissionControllerCalls = (*ContractPermissionControllerCaller)(nil) - // ContractPermissionControllerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractPermissionControllerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractPermissionControllerTransactor implements the ContractPermissionControllerTransacts interface. -var _ ContractPermissionControllerTransacts = (*ContractPermissionControllerTransactor)(nil) - // ContractPermissionControllerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractPermissionControllerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractPermissionControllerFilterer implements the ContractPermissionControllerFilters interface. -var _ ContractPermissionControllerFilters = (*ContractPermissionControllerFilterer)(nil) - // ContractPermissionControllerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractPermissionControllerSession struct { diff --git a/contracts/bindings/RegistryCoordinator/binding.go b/contracts/bindings/RegistryCoordinator/binding.go index 51964da9a..fcaad5c8c 100644 --- a/contracts/bindings/RegistryCoordinator/binding.go +++ b/contracts/bindings/RegistryCoordinator/binding.go @@ -118,180 +118,6 @@ func DeployContractRegistryCoordinator(auth *bind.TransactOpts, backend bind.Con return address, tx, &ContractRegistryCoordinator{ContractRegistryCoordinatorCaller: ContractRegistryCoordinatorCaller{contract: contract}, ContractRegistryCoordinatorTransactor: ContractRegistryCoordinatorTransactor{contract: contract}, ContractRegistryCoordinatorFilterer: ContractRegistryCoordinatorFilterer{contract: contract}}, nil } -// ContractRegistryCoordinatorMethods is an auto generated interface around an Ethereum contract. -type ContractRegistryCoordinatorMethods interface { - ContractRegistryCoordinatorCalls - ContractRegistryCoordinatorTransacts - ContractRegistryCoordinatorFilters -} - -// ContractRegistryCoordinatorCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractRegistryCoordinatorCalls interface { - OPERATORCHURNAPPROVALTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - PUBKEYREGISTRATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - AvsDirectory(opts *bind.CallOpts) (common.Address, error) - - BlsApkRegistry(opts *bind.CallOpts) (common.Address, error) - - CalculateOperatorChurnApprovalDigestHash(opts *bind.CallOpts, registeringOperator common.Address, registeringOperatorId [32]byte, operatorKickParams []IRegistryCoordinatorOperatorKickParam, salt [32]byte, expiry *big.Int) ([32]byte, error) - - ChurnApprover(opts *bind.CallOpts) (common.Address, error) - - EjectionCooldown(opts *bind.CallOpts) (*big.Int, error) - - Ejector(opts *bind.CallOpts) (common.Address, error) - - GetCurrentQuorumBitmap(opts *bind.CallOpts, operatorId [32]byte) (*big.Int, error) - - GetOperator(opts *bind.CallOpts, operator common.Address) (IRegistryCoordinatorOperatorInfo, error) - - GetOperatorFromId(opts *bind.CallOpts, operatorId [32]byte) (common.Address, error) - - GetOperatorId(opts *bind.CallOpts, operator common.Address) ([32]byte, error) - - GetOperatorSetParams(opts *bind.CallOpts, quorumNumber uint8) (IRegistryCoordinatorOperatorSetParam, error) - - GetOperatorStatus(opts *bind.CallOpts, operator common.Address) (uint8, error) - - GetQuorumBitmapAtBlockNumberByIndex(opts *bind.CallOpts, operatorId [32]byte, blockNumber uint32, index *big.Int) (*big.Int, error) - - GetQuorumBitmapHistoryLength(opts *bind.CallOpts, operatorId [32]byte) (*big.Int, error) - - GetQuorumBitmapIndicesAtBlockNumber(opts *bind.CallOpts, blockNumber uint32, operatorIds [][32]byte) ([]uint32, error) - - GetQuorumBitmapUpdateByIndex(opts *bind.CallOpts, operatorId [32]byte, index *big.Int) (IRegistryCoordinatorQuorumBitmapUpdate, error) - - IndexRegistry(opts *bind.CallOpts) (common.Address, error) - - IsChurnApproverSaltUsed(opts *bind.CallOpts, arg0 [32]byte) (bool, error) - - IsM2Quorum(opts *bind.CallOpts, arg0 uint8) (bool, error) - - IsOperatorSetAVS(opts *bind.CallOpts) (bool, error) - - IsUsingOperatorSets(opts *bind.CallOpts) (bool, error) - - LastEjectionTimestamp(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) - - NumRegistries(opts *bind.CallOpts) (*big.Int, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) - - PubkeyRegistrationMessageHash(opts *bind.CallOpts, operator common.Address) (BN254G1Point, error) - - QuorumCount(opts *bind.CallOpts) (uint8, error) - - QuorumUpdateBlockNumber(opts *bind.CallOpts, arg0 uint8) (*big.Int, error) - - Registries(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) - - ServiceManager(opts *bind.CallOpts) (common.Address, error) - - StakeRegistry(opts *bind.CallOpts) (common.Address, error) -} - -// ContractRegistryCoordinatorTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractRegistryCoordinatorTransacts interface { - CreateSlashableStakeQuorum(opts *bind.TransactOpts, operatorSetParams IRegistryCoordinatorOperatorSetParam, minimumStake *big.Int, strategyParams []IStakeRegistryStrategyParams, lookAheadPeriod uint32) (*types.Transaction, error) - - CreateTotalDelegatedStakeQuorum(opts *bind.TransactOpts, operatorSetParams IRegistryCoordinatorOperatorSetParam, minimumStake *big.Int, strategyParams []IStakeRegistryStrategyParams) (*types.Transaction, error) - - DeregisterOperator(opts *bind.TransactOpts, operator common.Address, operatorSetIds []uint32) (*types.Transaction, error) - - DeregisterOperator0(opts *bind.TransactOpts, quorumNumbers []byte) (*types.Transaction, error) - - EjectOperator(opts *bind.TransactOpts, operator common.Address, quorumNumbers []byte) (*types.Transaction, error) - - EnableOperatorSets(opts *bind.TransactOpts) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, _initialOwner common.Address, _churnApprover common.Address, _ejector common.Address, _initialPausedStatus *big.Int, _operatorSetParams []IRegistryCoordinatorOperatorSetParam, _minimumStakes []*big.Int, _strategyParams [][]IStakeRegistryStrategyParams, _stakeTypes []uint8, _lookAheadPeriods []uint32) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - RegisterOperator(opts *bind.TransactOpts, quorumNumbers []byte, socket string, params IBLSApkRegistryPubkeyRegistrationParams, operatorSignature ISignatureUtilsSignatureWithSaltAndExpiry) (*types.Transaction, error) - - RegisterOperator0(opts *bind.TransactOpts, operator common.Address, operatorSetIds []uint32, data []byte) (*types.Transaction, error) - - RegisterOperatorWithChurn(opts *bind.TransactOpts, quorumNumbers []byte, socket string, params IBLSApkRegistryPubkeyRegistrationParams, operatorKickParams []IRegistryCoordinatorOperatorKickParam, churnApproverSignature ISignatureUtilsSignatureWithSaltAndExpiry, operatorSignature ISignatureUtilsSignatureWithSaltAndExpiry) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - SetChurnApprover(opts *bind.TransactOpts, _churnApprover common.Address) (*types.Transaction, error) - - SetEjectionCooldown(opts *bind.TransactOpts, _ejectionCooldown *big.Int) (*types.Transaction, error) - - SetEjector(opts *bind.TransactOpts, _ejector common.Address) (*types.Transaction, error) - - SetOperatorSetParams(opts *bind.TransactOpts, quorumNumber uint8, operatorSetParams IRegistryCoordinatorOperatorSetParam) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - UpdateOperators(opts *bind.TransactOpts, operators []common.Address) (*types.Transaction, error) - - UpdateOperatorsForQuorum(opts *bind.TransactOpts, operatorsPerQuorum [][]common.Address, quorumNumbers []byte) (*types.Transaction, error) - - UpdateSocket(opts *bind.TransactOpts, socket string) (*types.Transaction, error) -} - -// ContractRegistryCoordinatorFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractRegistryCoordinatorFilters interface { - FilterChurnApproverUpdated(opts *bind.FilterOpts) (*ContractRegistryCoordinatorChurnApproverUpdatedIterator, error) - WatchChurnApproverUpdated(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorChurnApproverUpdated) (event.Subscription, error) - ParseChurnApproverUpdated(log types.Log) (*ContractRegistryCoordinatorChurnApproverUpdated, error) - - FilterEjectorUpdated(opts *bind.FilterOpts) (*ContractRegistryCoordinatorEjectorUpdatedIterator, error) - WatchEjectorUpdated(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorEjectorUpdated) (event.Subscription, error) - ParseEjectorUpdated(log types.Log) (*ContractRegistryCoordinatorEjectorUpdated, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractRegistryCoordinatorInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractRegistryCoordinatorInitialized, error) - - FilterOperatorDeregistered(opts *bind.FilterOpts, operator []common.Address, operatorId [][32]byte) (*ContractRegistryCoordinatorOperatorDeregisteredIterator, error) - WatchOperatorDeregistered(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorOperatorDeregistered, operator []common.Address, operatorId [][32]byte) (event.Subscription, error) - ParseOperatorDeregistered(log types.Log) (*ContractRegistryCoordinatorOperatorDeregistered, error) - - FilterOperatorRegistered(opts *bind.FilterOpts, operator []common.Address, operatorId [][32]byte) (*ContractRegistryCoordinatorOperatorRegisteredIterator, error) - WatchOperatorRegistered(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorOperatorRegistered, operator []common.Address, operatorId [][32]byte) (event.Subscription, error) - ParseOperatorRegistered(log types.Log) (*ContractRegistryCoordinatorOperatorRegistered, error) - - FilterOperatorSetParamsUpdated(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractRegistryCoordinatorOperatorSetParamsUpdatedIterator, error) - WatchOperatorSetParamsUpdated(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorOperatorSetParamsUpdated, quorumNumber []uint8) (event.Subscription, error) - ParseOperatorSetParamsUpdated(log types.Log) (*ContractRegistryCoordinatorOperatorSetParamsUpdated, error) - - FilterOperatorSocketUpdate(opts *bind.FilterOpts, operatorId [][32]byte) (*ContractRegistryCoordinatorOperatorSocketUpdateIterator, error) - WatchOperatorSocketUpdate(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorOperatorSocketUpdate, operatorId [][32]byte) (event.Subscription, error) - ParseOperatorSocketUpdate(log types.Log) (*ContractRegistryCoordinatorOperatorSocketUpdate, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractRegistryCoordinatorOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractRegistryCoordinatorOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractRegistryCoordinatorPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractRegistryCoordinatorPaused, error) - - FilterQuorumBlockNumberUpdated(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractRegistryCoordinatorQuorumBlockNumberUpdatedIterator, error) - WatchQuorumBlockNumberUpdated(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorQuorumBlockNumberUpdated, quorumNumber []uint8) (event.Subscription, error) - ParseQuorumBlockNumberUpdated(log types.Log) (*ContractRegistryCoordinatorQuorumBlockNumberUpdated, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractRegistryCoordinatorUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractRegistryCoordinatorUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractRegistryCoordinatorUnpaused, error) -} - // ContractRegistryCoordinator is an auto generated Go binding around an Ethereum contract. type ContractRegistryCoordinator struct { ContractRegistryCoordinatorCaller // Read-only binding to the contract @@ -299,33 +125,21 @@ type ContractRegistryCoordinator struct { ContractRegistryCoordinatorFilterer // Log filterer for contract events } -// ContractRegistryCoordinator implements the ContractRegistryCoordinatorMethods interface. -var _ ContractRegistryCoordinatorMethods = (*ContractRegistryCoordinator)(nil) - // ContractRegistryCoordinatorCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractRegistryCoordinatorCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractRegistryCoordinatorCaller implements the ContractRegistryCoordinatorCalls interface. -var _ ContractRegistryCoordinatorCalls = (*ContractRegistryCoordinatorCaller)(nil) - // ContractRegistryCoordinatorTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractRegistryCoordinatorTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractRegistryCoordinatorTransactor implements the ContractRegistryCoordinatorTransacts interface. -var _ ContractRegistryCoordinatorTransacts = (*ContractRegistryCoordinatorTransactor)(nil) - // ContractRegistryCoordinatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractRegistryCoordinatorFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractRegistryCoordinatorFilterer implements the ContractRegistryCoordinatorFilters interface. -var _ ContractRegistryCoordinatorFilters = (*ContractRegistryCoordinatorFilterer)(nil) - // ContractRegistryCoordinatorSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractRegistryCoordinatorSession struct { diff --git a/contracts/bindings/ServiceManagerBase/binding.go b/contracts/bindings/ServiceManagerBase/binding.go index 4b9ecfc18..3d7726d9e 100644 --- a/contracts/bindings/ServiceManagerBase/binding.go +++ b/contracts/bindings/ServiceManagerBase/binding.go @@ -75,94 +75,6 @@ var ContractServiceManagerBaseMetaData = &bind.MetaData{ // Deprecated: Use ContractServiceManagerBaseMetaData.ABI instead. var ContractServiceManagerBaseABI = ContractServiceManagerBaseMetaData.ABI -// ContractServiceManagerBaseMethods is an auto generated interface around an Ethereum contract. -type ContractServiceManagerBaseMethods interface { - ContractServiceManagerBaseCalls - ContractServiceManagerBaseTransacts - ContractServiceManagerBaseFilters -} - -// ContractServiceManagerBaseCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractServiceManagerBaseCalls interface { - SLASHERPROPOSALDELAY(opts *bind.CallOpts) (*big.Int, error) - - AllocationManager(opts *bind.CallOpts) (common.Address, error) - - AvsDirectory(opts *bind.CallOpts) (common.Address, error) - - GetOperatorRestakedStrategies(opts *bind.CallOpts, operator common.Address) ([]common.Address, error) - - GetRestakeableStrategies(opts *bind.CallOpts) ([]common.Address, error) - - MigrationFinalized(opts *bind.CallOpts) (bool, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - ProposedSlasher(opts *bind.CallOpts) (common.Address, error) - - RewardsInitiator(opts *bind.CallOpts) (common.Address, error) - - Slasher(opts *bind.CallOpts) (common.Address, error) - - SlasherProposalTimestamp(opts *bind.CallOpts) (*big.Int, error) -} - -// ContractServiceManagerBaseTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractServiceManagerBaseTransacts interface { - AcceptProposedSlasher(opts *bind.TransactOpts) (*types.Transaction, error) - - AddStrategyToOperatorSet(opts *bind.TransactOpts, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - CreateAVSRewardsSubmission(opts *bind.TransactOpts, rewardsSubmissions []IRewardsCoordinatorTypesRewardsSubmission) (*types.Transaction, error) - - CreateOperatorSets(opts *bind.TransactOpts, params []IAllocationManagerTypesCreateSetParams) (*types.Transaction, error) - - DeregisterOperatorFromAVS(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error) - - DeregisterOperatorFromOperatorSets(opts *bind.TransactOpts, operator common.Address, operatorSetIds []uint32) (*types.Transaction, error) - - ProposeNewSlasher(opts *bind.TransactOpts, newSlasher common.Address) (*types.Transaction, error) - - RegisterOperatorToAVS(opts *bind.TransactOpts, operator common.Address, operatorSignature ISignatureUtilsSignatureWithSaltAndExpiry) (*types.Transaction, error) - - RemoveStrategiesFromOperatorSet(opts *bind.TransactOpts, operatorSetId uint32, strategies []common.Address) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - SetAVSRegistrar(opts *bind.TransactOpts, registrar common.Address) (*types.Transaction, error) - - SetRewardsInitiator(opts *bind.TransactOpts, newRewardsInitiator common.Address) (*types.Transaction, error) - - SlashOperator(opts *bind.TransactOpts, params IAllocationManagerTypesSlashingParams) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - UpdateAVSMetadataURI(opts *bind.TransactOpts, _metadataURI string) (*types.Transaction, error) -} - -// ContractServiceManagerBaseFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractServiceManagerBaseFilters interface { - FilterInitialized(opts *bind.FilterOpts) (*ContractServiceManagerBaseInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractServiceManagerBaseInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractServiceManagerBaseInitialized, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractServiceManagerBaseOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractServiceManagerBaseOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractServiceManagerBaseOwnershipTransferred, error) - - FilterRewardsInitiatorUpdated(opts *bind.FilterOpts) (*ContractServiceManagerBaseRewardsInitiatorUpdatedIterator, error) - WatchRewardsInitiatorUpdated(opts *bind.WatchOpts, sink chan<- *ContractServiceManagerBaseRewardsInitiatorUpdated) (event.Subscription, error) - ParseRewardsInitiatorUpdated(log types.Log) (*ContractServiceManagerBaseRewardsInitiatorUpdated, error) - - FilterSlasherProposed(opts *bind.FilterOpts) (*ContractServiceManagerBaseSlasherProposedIterator, error) - WatchSlasherProposed(opts *bind.WatchOpts, sink chan<- *ContractServiceManagerBaseSlasherProposed) (event.Subscription, error) - ParseSlasherProposed(log types.Log) (*ContractServiceManagerBaseSlasherProposed, error) - - FilterSlasherUpdated(opts *bind.FilterOpts) (*ContractServiceManagerBaseSlasherUpdatedIterator, error) - WatchSlasherUpdated(opts *bind.WatchOpts, sink chan<- *ContractServiceManagerBaseSlasherUpdated) (event.Subscription, error) - ParseSlasherUpdated(log types.Log) (*ContractServiceManagerBaseSlasherUpdated, error) -} - // ContractServiceManagerBase is an auto generated Go binding around an Ethereum contract. type ContractServiceManagerBase struct { ContractServiceManagerBaseCaller // Read-only binding to the contract @@ -170,33 +82,21 @@ type ContractServiceManagerBase struct { ContractServiceManagerBaseFilterer // Log filterer for contract events } -// ContractServiceManagerBase implements the ContractServiceManagerBaseMethods interface. -var _ ContractServiceManagerBaseMethods = (*ContractServiceManagerBase)(nil) - // ContractServiceManagerBaseCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractServiceManagerBaseCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractServiceManagerBaseCaller implements the ContractServiceManagerBaseCalls interface. -var _ ContractServiceManagerBaseCalls = (*ContractServiceManagerBaseCaller)(nil) - // ContractServiceManagerBaseTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractServiceManagerBaseTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractServiceManagerBaseTransactor implements the ContractServiceManagerBaseTransacts interface. -var _ ContractServiceManagerBaseTransacts = (*ContractServiceManagerBaseTransactor)(nil) - // ContractServiceManagerBaseFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractServiceManagerBaseFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractServiceManagerBaseFilterer implements the ContractServiceManagerBaseFilters interface. -var _ ContractServiceManagerBaseFilters = (*ContractServiceManagerBaseFilterer)(nil) - // ContractServiceManagerBaseSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractServiceManagerBaseSession struct { diff --git a/contracts/bindings/StakeRegistry/binding.go b/contracts/bindings/StakeRegistry/binding.go index 83f7154e0..4431b61c8 100644 --- a/contracts/bindings/StakeRegistry/binding.go +++ b/contracts/bindings/StakeRegistry/binding.go @@ -73,135 +73,6 @@ func DeployContractStakeRegistry(auth *bind.TransactOpts, backend bind.ContractB return address, tx, &ContractStakeRegistry{ContractStakeRegistryCaller: ContractStakeRegistryCaller{contract: contract}, ContractStakeRegistryTransactor: ContractStakeRegistryTransactor{contract: contract}, ContractStakeRegistryFilterer: ContractStakeRegistryFilterer{contract: contract}}, nil } -// ContractStakeRegistryMethods is an auto generated interface around an Ethereum contract. -type ContractStakeRegistryMethods interface { - ContractStakeRegistryCalls - ContractStakeRegistryTransacts - ContractStakeRegistryFilters -} - -// ContractStakeRegistryCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractStakeRegistryCalls interface { - MAXWEIGHINGFUNCTIONLENGTH(opts *bind.CallOpts) (uint8, error) - - WEIGHTINGDIVISOR(opts *bind.CallOpts) (*big.Int, error) - - AvsDirectory(opts *bind.CallOpts) (common.Address, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - GetCurrentStake(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8) (*big.Int, error) - - GetCurrentTotalStake(opts *bind.CallOpts, quorumNumber uint8) (*big.Int, error) - - GetLatestStakeUpdate(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8) (IStakeRegistryStakeUpdate, error) - - GetStakeAtBlockNumber(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8, blockNumber uint32) (*big.Int, error) - - GetStakeAtBlockNumberAndIndex(opts *bind.CallOpts, quorumNumber uint8, blockNumber uint32, operatorId [32]byte, index *big.Int) (*big.Int, error) - - GetStakeHistory(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8) ([]IStakeRegistryStakeUpdate, error) - - GetStakeHistoryLength(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8) (*big.Int, error) - - GetStakeUpdateAtIndex(opts *bind.CallOpts, quorumNumber uint8, operatorId [32]byte, index *big.Int) (IStakeRegistryStakeUpdate, error) - - GetStakeUpdateIndexAtBlockNumber(opts *bind.CallOpts, operatorId [32]byte, quorumNumber uint8, blockNumber uint32) (uint32, error) - - GetTotalStakeAtBlockNumberFromIndex(opts *bind.CallOpts, quorumNumber uint8, blockNumber uint32, index *big.Int) (*big.Int, error) - - GetTotalStakeHistoryLength(opts *bind.CallOpts, quorumNumber uint8) (*big.Int, error) - - GetTotalStakeIndicesAtBlockNumber(opts *bind.CallOpts, blockNumber uint32, quorumNumbers []byte) ([]uint32, error) - - GetTotalStakeUpdateAtIndex(opts *bind.CallOpts, quorumNumber uint8, index *big.Int) (IStakeRegistryStakeUpdate, error) - - IsOperatorSetQuorum(opts *bind.CallOpts, quorumNumber uint8) (bool, error) - - MinimumStakeForQuorum(opts *bind.CallOpts, arg0 uint8) (*big.Int, error) - - RegistryCoordinator(opts *bind.CallOpts) (common.Address, error) - - ServiceManager(opts *bind.CallOpts) (common.Address, error) - - SlashableStakeLookAheadPerQuorum(opts *bind.CallOpts, arg0 uint8) (uint32, error) - - StakeTypePerQuorum(opts *bind.CallOpts, arg0 uint8) (uint8, error) - - StrategiesPerQuorum(opts *bind.CallOpts, arg0 uint8, arg1 *big.Int) (common.Address, error) - - StrategyParams(opts *bind.CallOpts, arg0 uint8, arg1 *big.Int) (struct { - Strategy common.Address - Multiplier *big.Int - }, error) - - StrategyParamsByIndex(opts *bind.CallOpts, quorumNumber uint8, index *big.Int) (IStakeRegistryStrategyParams, error) - - StrategyParamsLength(opts *bind.CallOpts, quorumNumber uint8) (*big.Int, error) - - WeightOfOperatorForQuorum(opts *bind.CallOpts, quorumNumber uint8, operator common.Address) (*big.Int, error) -} - -// ContractStakeRegistryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractStakeRegistryTransacts interface { - AddStrategies(opts *bind.TransactOpts, quorumNumber uint8, _strategyParams []IStakeRegistryStrategyParams) (*types.Transaction, error) - - DeregisterOperator(opts *bind.TransactOpts, operatorId [32]byte, quorumNumbers []byte) (*types.Transaction, error) - - InitializeDelegatedStakeQuorum(opts *bind.TransactOpts, quorumNumber uint8, minimumStake *big.Int, _strategyParams []IStakeRegistryStrategyParams) (*types.Transaction, error) - - InitializeSlashableStakeQuorum(opts *bind.TransactOpts, quorumNumber uint8, minimumStake *big.Int, lookAheadPeriod uint32, _strategyParams []IStakeRegistryStrategyParams) (*types.Transaction, error) - - ModifyStrategyParams(opts *bind.TransactOpts, quorumNumber uint8, strategyIndices []*big.Int, newMultipliers []*big.Int) (*types.Transaction, error) - - RegisterOperator(opts *bind.TransactOpts, operator common.Address, operatorId [32]byte, quorumNumbers []byte) (*types.Transaction, error) - - RemoveStrategies(opts *bind.TransactOpts, quorumNumber uint8, indicesToRemove []*big.Int) (*types.Transaction, error) - - SetMinimumStakeForQuorum(opts *bind.TransactOpts, quorumNumber uint8, minimumStake *big.Int) (*types.Transaction, error) - - SetSlashableStakeLookahead(opts *bind.TransactOpts, quorumNumber uint8, _lookAheadPeriod uint32) (*types.Transaction, error) - - SetStakeType(opts *bind.TransactOpts, quorumNumber uint8, _stakeType uint8) (*types.Transaction, error) - - UpdateOperatorStake(opts *bind.TransactOpts, operator common.Address, operatorId [32]byte, quorumNumbers []byte) (*types.Transaction, error) -} - -// ContractStakeRegistryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractStakeRegistryFilters interface { - FilterLookAheadPeriodChanged(opts *bind.FilterOpts) (*ContractStakeRegistryLookAheadPeriodChangedIterator, error) - WatchLookAheadPeriodChanged(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryLookAheadPeriodChanged) (event.Subscription, error) - ParseLookAheadPeriodChanged(log types.Log) (*ContractStakeRegistryLookAheadPeriodChanged, error) - - FilterMinimumStakeForQuorumUpdated(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractStakeRegistryMinimumStakeForQuorumUpdatedIterator, error) - WatchMinimumStakeForQuorumUpdated(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryMinimumStakeForQuorumUpdated, quorumNumber []uint8) (event.Subscription, error) - ParseMinimumStakeForQuorumUpdated(log types.Log) (*ContractStakeRegistryMinimumStakeForQuorumUpdated, error) - - FilterOperatorStakeUpdate(opts *bind.FilterOpts, operatorId [][32]byte) (*ContractStakeRegistryOperatorStakeUpdateIterator, error) - WatchOperatorStakeUpdate(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryOperatorStakeUpdate, operatorId [][32]byte) (event.Subscription, error) - ParseOperatorStakeUpdate(log types.Log) (*ContractStakeRegistryOperatorStakeUpdate, error) - - FilterQuorumCreated(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractStakeRegistryQuorumCreatedIterator, error) - WatchQuorumCreated(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryQuorumCreated, quorumNumber []uint8) (event.Subscription, error) - ParseQuorumCreated(log types.Log) (*ContractStakeRegistryQuorumCreated, error) - - FilterStakeTypeSet(opts *bind.FilterOpts) (*ContractStakeRegistryStakeTypeSetIterator, error) - WatchStakeTypeSet(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryStakeTypeSet) (event.Subscription, error) - ParseStakeTypeSet(log types.Log) (*ContractStakeRegistryStakeTypeSet, error) - - FilterStrategyAddedToQuorum(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractStakeRegistryStrategyAddedToQuorumIterator, error) - WatchStrategyAddedToQuorum(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryStrategyAddedToQuorum, quorumNumber []uint8) (event.Subscription, error) - ParseStrategyAddedToQuorum(log types.Log) (*ContractStakeRegistryStrategyAddedToQuorum, error) - - FilterStrategyMultiplierUpdated(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractStakeRegistryStrategyMultiplierUpdatedIterator, error) - WatchStrategyMultiplierUpdated(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryStrategyMultiplierUpdated, quorumNumber []uint8) (event.Subscription, error) - ParseStrategyMultiplierUpdated(log types.Log) (*ContractStakeRegistryStrategyMultiplierUpdated, error) - - FilterStrategyRemovedFromQuorum(opts *bind.FilterOpts, quorumNumber []uint8) (*ContractStakeRegistryStrategyRemovedFromQuorumIterator, error) - WatchStrategyRemovedFromQuorum(opts *bind.WatchOpts, sink chan<- *ContractStakeRegistryStrategyRemovedFromQuorum, quorumNumber []uint8) (event.Subscription, error) - ParseStrategyRemovedFromQuorum(log types.Log) (*ContractStakeRegistryStrategyRemovedFromQuorum, error) -} - // ContractStakeRegistry is an auto generated Go binding around an Ethereum contract. type ContractStakeRegistry struct { ContractStakeRegistryCaller // Read-only binding to the contract @@ -209,33 +80,21 @@ type ContractStakeRegistry struct { ContractStakeRegistryFilterer // Log filterer for contract events } -// ContractStakeRegistry implements the ContractStakeRegistryMethods interface. -var _ ContractStakeRegistryMethods = (*ContractStakeRegistry)(nil) - // ContractStakeRegistryCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractStakeRegistryCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStakeRegistryCaller implements the ContractStakeRegistryCalls interface. -var _ ContractStakeRegistryCalls = (*ContractStakeRegistryCaller)(nil) - // ContractStakeRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractStakeRegistryTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStakeRegistryTransactor implements the ContractStakeRegistryTransacts interface. -var _ ContractStakeRegistryTransacts = (*ContractStakeRegistryTransactor)(nil) - // ContractStakeRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractStakeRegistryFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStakeRegistryFilterer implements the ContractStakeRegistryFilters interface. -var _ ContractStakeRegistryFilters = (*ContractStakeRegistryFilterer)(nil) - // ContractStakeRegistrySession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractStakeRegistrySession struct { diff --git a/contracts/bindings/StrategyManager/binding.go b/contracts/bindings/StrategyManager/binding.go index 465ee740b..318a08049 100644 --- a/contracts/bindings/StrategyManager/binding.go +++ b/contracts/bindings/StrategyManager/binding.go @@ -60,118 +60,6 @@ func DeployContractStrategyManager(auth *bind.TransactOpts, backend bind.Contrac return address, tx, &ContractStrategyManager{ContractStrategyManagerCaller: ContractStrategyManagerCaller{contract: contract}, ContractStrategyManagerTransactor: ContractStrategyManagerTransactor{contract: contract}, ContractStrategyManagerFilterer: ContractStrategyManagerFilterer{contract: contract}}, nil } -// ContractStrategyManagerMethods is an auto generated interface around an Ethereum contract. -type ContractStrategyManagerMethods interface { - ContractStrategyManagerCalls - ContractStrategyManagerTransacts - ContractStrategyManagerFilters -} - -// ContractStrategyManagerCalls is an auto generated interface that defines the call methods available for an Ethereum contract. -type ContractStrategyManagerCalls interface { - DEFAULTBURNADDRESS(opts *bind.CallOpts) (common.Address, error) - - DEPOSITTYPEHASH(opts *bind.CallOpts) ([32]byte, error) - - CalculateStrategyDepositDigestHash(opts *bind.CallOpts, staker common.Address, strategy common.Address, token common.Address, amount *big.Int, nonce *big.Int, expiry *big.Int) ([32]byte, error) - - Delegation(opts *bind.CallOpts) (common.Address, error) - - DomainSeparator(opts *bind.CallOpts) ([32]byte, error) - - GetDeposits(opts *bind.CallOpts, staker common.Address) ([]common.Address, []*big.Int, error) - - GetStakerStrategyList(opts *bind.CallOpts, staker common.Address) ([]common.Address, error) - - Nonces(opts *bind.CallOpts, signer common.Address) (*big.Int, error) - - Owner(opts *bind.CallOpts) (common.Address, error) - - Paused(opts *bind.CallOpts, index uint8) (bool, error) - - Paused0(opts *bind.CallOpts) (*big.Int, error) - - PauserRegistry(opts *bind.CallOpts) (common.Address, error) - - StakerDepositShares(opts *bind.CallOpts, staker common.Address, strategy common.Address) (*big.Int, error) - - StakerStrategyList(opts *bind.CallOpts, staker common.Address, arg1 *big.Int) (common.Address, error) - - StakerStrategyListLength(opts *bind.CallOpts, staker common.Address) (*big.Int, error) - - StrategyIsWhitelistedForDeposit(opts *bind.CallOpts, strategy common.Address) (bool, error) - - StrategyWhitelister(opts *bind.CallOpts) (common.Address, error) -} - -// ContractStrategyManagerTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract. -type ContractStrategyManagerTransacts interface { - AddShares(opts *bind.TransactOpts, staker common.Address, strategy common.Address, token common.Address, shares *big.Int) (*types.Transaction, error) - - AddStrategiesToDepositWhitelist(opts *bind.TransactOpts, strategiesToWhitelist []common.Address) (*types.Transaction, error) - - BurnShares(opts *bind.TransactOpts, strategy common.Address, sharesToBurn *big.Int) (*types.Transaction, error) - - DepositIntoStrategy(opts *bind.TransactOpts, strategy common.Address, token common.Address, amount *big.Int) (*types.Transaction, error) - - DepositIntoStrategyWithSignature(opts *bind.TransactOpts, strategy common.Address, token common.Address, amount *big.Int, staker common.Address, expiry *big.Int, signature []byte) (*types.Transaction, error) - - Initialize(opts *bind.TransactOpts, initialOwner common.Address, initialStrategyWhitelister common.Address, initialPausedStatus *big.Int) (*types.Transaction, error) - - Pause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - PauseAll(opts *bind.TransactOpts) (*types.Transaction, error) - - RemoveDepositShares(opts *bind.TransactOpts, staker common.Address, strategy common.Address, depositSharesToRemove *big.Int) (*types.Transaction, error) - - RemoveStrategiesFromDepositWhitelist(opts *bind.TransactOpts, strategiesToRemoveFromWhitelist []common.Address) (*types.Transaction, error) - - RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) - - SetStrategyWhitelister(opts *bind.TransactOpts, newStrategyWhitelister common.Address) (*types.Transaction, error) - - TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) - - Unpause(opts *bind.TransactOpts, newPausedStatus *big.Int) (*types.Transaction, error) - - WithdrawSharesAsTokens(opts *bind.TransactOpts, staker common.Address, strategy common.Address, token common.Address, shares *big.Int) (*types.Transaction, error) -} - -// ContractStrategyManagerFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract. -type ContractStrategyManagerFilters interface { - FilterDeposit(opts *bind.FilterOpts) (*ContractStrategyManagerDepositIterator, error) - WatchDeposit(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerDeposit) (event.Subscription, error) - ParseDeposit(log types.Log) (*ContractStrategyManagerDeposit, error) - - FilterInitialized(opts *bind.FilterOpts) (*ContractStrategyManagerInitializedIterator, error) - WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerInitialized) (event.Subscription, error) - ParseInitialized(log types.Log) (*ContractStrategyManagerInitialized, error) - - FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractStrategyManagerOwnershipTransferredIterator, error) - WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) - ParseOwnershipTransferred(log types.Log) (*ContractStrategyManagerOwnershipTransferred, error) - - FilterPaused(opts *bind.FilterOpts, account []common.Address) (*ContractStrategyManagerPausedIterator, error) - WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerPaused, account []common.Address) (event.Subscription, error) - ParsePaused(log types.Log) (*ContractStrategyManagerPaused, error) - - FilterStrategyAddedToDepositWhitelist(opts *bind.FilterOpts) (*ContractStrategyManagerStrategyAddedToDepositWhitelistIterator, error) - WatchStrategyAddedToDepositWhitelist(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerStrategyAddedToDepositWhitelist) (event.Subscription, error) - ParseStrategyAddedToDepositWhitelist(log types.Log) (*ContractStrategyManagerStrategyAddedToDepositWhitelist, error) - - FilterStrategyRemovedFromDepositWhitelist(opts *bind.FilterOpts) (*ContractStrategyManagerStrategyRemovedFromDepositWhitelistIterator, error) - WatchStrategyRemovedFromDepositWhitelist(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerStrategyRemovedFromDepositWhitelist) (event.Subscription, error) - ParseStrategyRemovedFromDepositWhitelist(log types.Log) (*ContractStrategyManagerStrategyRemovedFromDepositWhitelist, error) - - FilterStrategyWhitelisterChanged(opts *bind.FilterOpts) (*ContractStrategyManagerStrategyWhitelisterChangedIterator, error) - WatchStrategyWhitelisterChanged(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerStrategyWhitelisterChanged) (event.Subscription, error) - ParseStrategyWhitelisterChanged(log types.Log) (*ContractStrategyManagerStrategyWhitelisterChanged, error) - - FilterUnpaused(opts *bind.FilterOpts, account []common.Address) (*ContractStrategyManagerUnpausedIterator, error) - WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractStrategyManagerUnpaused, account []common.Address) (event.Subscription, error) - ParseUnpaused(log types.Log) (*ContractStrategyManagerUnpaused, error) -} - // ContractStrategyManager is an auto generated Go binding around an Ethereum contract. type ContractStrategyManager struct { ContractStrategyManagerCaller // Read-only binding to the contract @@ -179,33 +67,21 @@ type ContractStrategyManager struct { ContractStrategyManagerFilterer // Log filterer for contract events } -// ContractStrategyManager implements the ContractStrategyManagerMethods interface. -var _ ContractStrategyManagerMethods = (*ContractStrategyManager)(nil) - // ContractStrategyManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractStrategyManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStrategyManagerCaller implements the ContractStrategyManagerCalls interface. -var _ ContractStrategyManagerCalls = (*ContractStrategyManagerCaller)(nil) - // ContractStrategyManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractStrategyManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStrategyManagerTransactor implements the ContractStrategyManagerTransacts interface. -var _ ContractStrategyManagerTransacts = (*ContractStrategyManagerTransactor)(nil) - // ContractStrategyManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractStrategyManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// ContractStrategyManagerFilterer implements the ContractStrategyManagerFilters interface. -var _ ContractStrategyManagerFilters = (*ContractStrategyManagerFilterer)(nil) - // ContractStrategyManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractStrategyManagerSession struct { diff --git a/contracts/generate-bindings.sh b/contracts/generate-bindings.sh index 3813dcb63..a3e461f97 100755 --- a/contracts/generate-bindings.sh +++ b/contracts/generate-bindings.sh @@ -8,9 +8,9 @@ script_path=$( pwd -P ) -# build abigen-with-interfaces docker image if it doesn't exist -if [[ "$(docker images -q abigen-with-interfaces 2>/dev/null)" == "" ]]; then - docker build -t abigen-with-interfaces -f abigen-with-interfaces.Dockerfile $script_path +# build abigen docker image if it doesn't exist +if [[ "$(docker images -q abigen 2>/dev/null)" == "" ]]; then + docker build -t abigen -f abigen.Dockerfile $script_path fi # TODO: refactor this function.. it got really ugly with the dockerizing of abigen @@ -29,7 +29,7 @@ function create_binding { echo ${solc_bin} >data/tmp.bin rm -f $binding_dir/${contract}/binding.go - docker run -v $(realpath $binding_dir):/home/binding_dir -v .:/home/repo abigen-with-interfaces --bin=/home/repo/data/tmp.bin --abi=/home/repo/data/tmp.abi --pkg=contract${contract} --out=/home/binding_dir/${contract}/binding.go + docker run --rm -v $(realpath $binding_dir):/home/binding_dir -v .:/home/repo abigen --bin=/home/repo/data/tmp.bin --abi=/home/repo/data/tmp.abi --pkg=contract${contract} --out=/home/binding_dir/${contract}/binding.go rm -rf data/tmp.abi data/tmp.bin }