Skip to content

Commit

Permalink
feat!(macros): eigenlayer context methods and relevant tests wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjemmmic committed Nov 6, 2024
1 parent 2c74234 commit 72edb32
Show file tree
Hide file tree
Showing 15 changed files with 1,149 additions and 160 deletions.
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@
[submodule "blueprints/examples/contracts/lib/forge-std"]
path = blueprints/examples/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std

# For the example blueprint
[submodule "blueprints/examples/contracts/lib/eigenlayer-middleware"]
path = blueprints/examples/contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-Labs/eigenlayer-middleware
[submodule "blueprints/examples/contracts/lib/forge-std"]
path = blueprints/examples/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 22 additions & 16 deletions blueprints/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,38 @@ repository.workspace = true
publish = false

[dependencies]
async-trait = { workspace = true }
gadget-sdk = { workspace = true, features = ["std"] }
eigensdk = { workspace = true }
color-eyre = { workspace = true }
reqwest = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tokio-util = { workspace = true }
tracing = { workspace = true }
uuid = { workspace = true }

alloy-primitives = "0.7.2"
alloy-json-abi = "0.7.2"
alloy-sol-types = "0.7.2"
alloy-rpc-client = "0.4.2"
alloy-rpc-types = { version = "0.1" }
alloy-rpc-types-eth = { version = "0.1" }
alloy-provider = { version = "0.1", features = ["reqwest", "ws"] }
alloy-pubsub = { version = "0.1" }
alloy-signer = { version = "0.1" }
alloy-signer-local = { version = "0.1" }
alloy-network = { version = "0.1" }
alloy-node-bindings = "0.4.2"
alloy-contract = { version = "0.1" }
alloy-consensus = { version = "0.1" }
alloy-transport = { version = "0.1" }
alloy-transport-http = { version = "0.1" }
alloy-primitives = { workspace = true }
alloy-json-abi = { workspace = true }
alloy-sol-types = { workspace = true }
alloy-rpc-client = { workspace = true }
alloy-rpc-types = { workspace = true }
alloy-rpc-types-eth = { workspace = true }
alloy-provider = { workspace = true }
alloy-pubsub = { workspace = true }
alloy-signer = { workspace = true }
alloy-signer-local = { workspace = true }
alloy-network = { workspace = true }
alloy-node-bindings = { workspace = true }
alloy-contract = { workspace = true }
alloy-consensus = { workspace = true }
alloy-transport = { workspace = true }
alloy-transport-http = { workspace = true }

[build-dependencies]
blueprint-metadata = { workspace = true }
blueprint-build-utils = { workspace = true }

[features]
default = ["std"]
Expand Down
8 changes: 7 additions & 1 deletion blueprints/examples/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
fn main() {
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=src/main.rs");
// blueprint_metadata::generate_json();
blueprint_metadata::generate_json();
blueprint_build_utils::build_contracts(vec![
"./contracts/lib/eigenlayer-middleware/lib/eigenlayer-contracts",
"./contracts/lib/eigenlayer-middleware",
"./contracts/lib/forge-std",
"./contracts",
]);
}
1 change: 1 addition & 0 deletions blueprints/examples/contracts/lib/eigenlayer-middleware
Submodule eigenlayer-middleware added at 7d49b5
8 changes: 8 additions & 0 deletions blueprints/examples/contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@openzeppelin-upgrades/=lib/eigenlayer-middleware/lib/openzeppelin-contracts-upgradeable/
@openzeppelin/=lib/eigenlayer-middleware/lib/openzeppelin-contracts/
ds-test/=lib/ds-test/src/
@eigenlayer/=lib/eigenlayer-middleware/lib/eigenlayer-contracts/src
@eigenlayer-middleware/=lib/eigenlayer-middleware/
forge-std/=lib/forge-std/src/
tnt-core/=lib/tnt-core/src/
incredible-squaring/=src/
Loading

0 comments on commit 72edb32

Please sign in to comment.