Skip to content

Commit

Permalink
Merge pull request #224 from chainbound/lore/feat/eigenlayer-commitme…
Browse files Browse the repository at this point in the history
…nt-registry-2

Commitment Registry: EigenLayer support (take 2)
  • Loading branch information
merklefruit authored Sep 11, 2024
2 parents fabc5ab + d8263b8 commit 9bfc6cd
Show file tree
Hide file tree
Showing 14 changed files with 1,364 additions and 113 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "bolt-contracts/lib/core"]
path = bolt-contracts/lib/core
url = https://github.com/symbioticfi/core
[submodule "bolt-contracts/lib/eigenlayer-contracts"]
path = bolt-contracts/lib/eigenlayer-contracts
url = https://github.com/layr-labs/eigenlayer-contracts
30 changes: 29 additions & 1 deletion bolt-contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,35 @@ gas_reports = ["*"]
# silence some warnings during compilation
# https://book.getfoundry.sh/reference/config/solidity-compiler#ignored_error_codes
ignored_error_codes = [3628, 1878, 5574]
ignored_warnings_from = ["lib/openzeppelin-contracts/contracts", "lib/core"]
ignored_warnings_from = [
"lib/openzeppelin-contracts/contracts",
"lib/core",
"lib/eigenlayer-contracts",
]

remappings = [
# Bolt remappings
"@relic/=lib/relic-sdk/packages/contracts",
"@symbiotic/=lib/core/src/",
"@eigenlayer/=lib/eigenlayer-contracts/",

# Symbiotic remappings contexts
"lib/core/:forge-std/=lib/core/lib/forge-std/src/",
"lib/core/:@openzeppelin/contracts/=lib/core/lib/openzeppelin-contracts/contracts/",
"lib/core/:@openzeppelin/contracts-upgradeable/=lib/core/lib/openzeppelin-contracts-upgradeable/contracts/",

# Eigenlayer remappings contexts
"lib/eigenlayer-contracts/:@openzeppelin-upgrades/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable/",
"lib/eigenlayer-contracts/:@openzeppelin/=lib/eigenlayer-contracts/lib/openzeppelin-contracts/",
"lib/eigenlayer-contracts/:@openzeppelin-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-v4.9.0/",
"lib/eigenlayer-contracts/:@openzeppelin-upgrades-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable-v4.9.0/",
"lib/eigenlayer-contracts/:ds-test/=lib/eigenlayer-contracts/lib/ds-test/src/",
"lib/eigenlayer-contracts/:forge-std/=lib/eigenlayer-contracts/lib/forge-std/src/",
"lib/eigenlayer-contracts/lib/openzeppelin-contracts/:@openzeppelin/contracts/=lib/eigenlayer-contracts/lib/openzeppelin-contracts/contracts/",

# OpenZeppelin remappings contexts
"lib/openzeppelin-contracts/:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
]

[rpc_endpoints]
mainnet = "${ETH_RPC_URL}"
Expand Down
1 change: 1 addition & 0 deletions bolt-contracts/lib/eigenlayer-contracts
Submodule eigenlayer-contracts added at 00fc4b
3 changes: 0 additions & 3 deletions bolt-contracts/remappings.txt

This file was deleted.

10 changes: 8 additions & 2 deletions bolt-contracts/script/DeployManager.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ contract DeployBoltManager is Script {
address symbioticNetwork,
address symbioticOperatorRegistry,
address symbioticOperatorNetOptIn,
address symbioticVaultRegistry
address symbioticVaultRegistry,
address eigenlayerAVSDirectory,
address eigenlayerDelegationManager,
address eigenlayerStrategyManager
) public {
vm.startBroadcast();

Expand All @@ -27,7 +30,10 @@ contract DeployBoltManager is Script {
symbioticNetwork,
symbioticOperatorRegistry,
symbioticOperatorNetOptIn,
symbioticVaultRegistry
symbioticVaultRegistry,
eigenlayerAVSDirectory,
eigenlayerDelegationManager,
eigenlayerStrategyManager
);
console.log("BoltManager deployed at", address(manager));

Expand Down
Loading

0 comments on commit 9bfc6cd

Please sign in to comment.