Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samlaf/update contracts to eigenlayer middleware repo #72

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "contracts/lib/eigenlayer-contracts"]
path = contracts/lib/eigenlayer-contracts
url = https://github.com/Layr-Labs/eigenlayer-contracts.git
[submodule "contracts/lib/eigenlayer-middleware"]
path = contracts/lib/eigenlayer-middleware
url = git@github.com:Layr-Labs/eigenlayer-middleware.git
2 changes: 1 addition & 1 deletion contracts/bindings/BLSOperatorStateRetriever/binding.go

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions contracts/bindings/BLSRegistryCoordinatorWithIndices/binding.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions contracts/bindings/DelegationManager/binding.go

Large diffs are not rendered by default.

39 changes: 4 additions & 35 deletions contracts/bindings/EigenPod/binding.go

Large diffs are not rendered by default.

72 changes: 5 additions & 67 deletions contracts/bindings/EigenPodManager/binding.go

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

49 changes: 14 additions & 35 deletions 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.

30 changes: 18 additions & 12 deletions contracts/generate-bindings.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

# cd to the directory of this script so that this can be run from anywhere
script_path=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
pwd -P
)

function create_binding {
contract_dir=$1
contract=$2
Expand All @@ -19,20 +25,20 @@ function create_binding {
rm -rf ../data/tmp.abi ../data/tmp.bin
}

EIGENLAYER_CONTRACT_PATH=./lib/eigenlayer-contracts
cd $EIGENLAYER_CONTRACT_PATH

forge clean
EIGENLAYER_MIDDLEWARE_PATH=$script_path/lib/eigenlayer-middleware
cd $EIGENLAYER_MIDDLEWARE_PATH
forge build

el_contracts="DelegationManager Slasher StrategyManager IStrategy BLSPublicKeyCompendium EigenPodManager EigenPod"
for contract in $el_contracts; do
create_binding . $contract ./../../bindings
done

avs_contracts="BLSRegistryCoordinatorWithIndices BLSOperatorStateRetriever StakeRegistry BLSPubkeyRegistry IBLSSignatureChecker"
avs_contracts="BLSRegistryCoordinatorWithIndices BLSOperatorStateRetriever StakeRegistry BLSPubkeyRegistry IBLSSignatureChecker BLSPublicKeyCompendium"
for contract in $avs_contracts; do
create_binding . $contract ./../../bindings
create_binding . $contract ../../bindings
done

create_binding . IERC20 ./../../bindings
EIGENLAYER_CONTRACT_PATH=$EIGENLAYER_MIDDLEWARE_PATH/lib/eigenlayer-contracts
cd $EIGENLAYER_CONTRACT_PATH
forge build

el_contracts="DelegationManager Slasher StrategyManager IStrategy EigenPodManager EigenPod IERC20"
for contract in $el_contracts; do
create_binding . $contract ../../../../bindings
done
1 change: 0 additions & 1 deletion contracts/lib/eigenlayer-contracts
Submodule eigenlayer-contracts deleted from 3a0f7d
1 change: 1 addition & 0 deletions contracts/lib/eigenlayer-middleware
Submodule eigenlayer-middleware added at eed4be
Loading