Skip to content

Commit

Permalink
chore: update middleware to latest operator set (#327)
Browse files Browse the repository at this point in the history
* chore: update middleware to latest operator set

* make fmt

* add another method
  • Loading branch information
shrimalmadhur authored Aug 15, 2024
1 parent 29e8aa0 commit 4654b5c
Show file tree
Hide file tree
Showing 16 changed files with 1,754 additions and 929 deletions.
20 changes: 20 additions & 0 deletions chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,23 @@ func (r *ChainReader) CurrRewardsCalculationEndTimestamp(opts *bind.CallOpts) (u

return r.rewardsCoordinator.CurrRewardsCalculationEndTimestamp(opts)
}

func (r *ChainReader) GetCurrentClaimableDistributionRoot(
opts *bind.CallOpts,
) (rewardscoordinator.IRewardsCoordinatorDistributionRoot, error) {
if r.rewardsCoordinator == nil {
return rewardscoordinator.IRewardsCoordinatorDistributionRoot{}, errors.New(
"RewardsCoordinator contract not provided",
)
}

return r.rewardsCoordinator.GetCurrentClaimableDistributionRoot(opts)
}

func (r *ChainReader) GetRootIndexFromHash(opts *bind.CallOpts, rootHash [32]byte) (uint32, error) {
if r.rewardsCoordinator == nil {
return 0, errors.New("RewardsCoordinator contract not provided")
}

return r.rewardsCoordinator.GetRootIndexFromHash(opts, rootHash)
}
2 changes: 1 addition & 1 deletion contracts/bindings/BLSApkRegistry/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/DelegationManager/binding.go

Large diffs are not rendered by default.

1,225 changes: 687 additions & 538 deletions contracts/bindings/EigenPod/binding.go

Large diffs are not rendered by default.

446 changes: 82 additions & 364 deletions contracts/bindings/EigenPodManager/binding.go

Large diffs are not rendered by default.

94 changes: 80 additions & 14 deletions contracts/bindings/IAVSDirectory/binding.go

Large diffs are not rendered by default.

236 changes: 235 additions & 1 deletion contracts/bindings/IRewardsCoordinator/binding.go

Large diffs are not rendered by default.

278 changes: 277 additions & 1 deletion contracts/bindings/IStrategy/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/IndexRegistry/binding.go

Large diffs are not rendered by default.

185 changes: 183 additions & 2 deletions contracts/bindings/MockAvsServiceManager/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/OperatorStateRetriever/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/RegistryCoordinator/binding.go

Large diffs are not rendered by default.

183 changes: 182 additions & 1 deletion contracts/bindings/ServiceManagerBase/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/StakeRegistry/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/StrategyManager/binding.go

Large diffs are not rendered by default.

0 comments on commit 4654b5c

Please sign in to comment.