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

chore: move /contracts from /crates to root (#259) #261

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./crates/contracts
working-directory: ./contracts
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./crates/contracts/anvil
working-directory: ./contracts/anvil
steps:
- uses: actions/checkout@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "crates/contracts/lib/forge-std"]
path = crates/contracts/lib/forge-std
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "crates/contracts/lib/eigenlayer-middleware"]
path = crates/contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-labs/eigenlayer-middleware
[submodule "contracts/lib/eigenlayer-middleware"]
path = contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-Labs/eigenlayer-middleware.git
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ PHONY: reset-anvil
__CONTRACTS__: ##

start-anvil-chain-with-contracts-deployed: ##
./crates/contracts/anvil/start-anvil-chain-with-el-and-avs-deployed.sh
./contracts/anvil/start-anvil-chain-with-el-and-avs-deployed.sh

deploy-contracts-to-anvil-and-save-state: ##
./crates/contracts/anvil/deploy-contracts-save-anvil-state.sh
./contracts/anvil/deploy-contracts-save-anvil-state.sh

__TESTING__: ##

Expand Down Expand Up @@ -37,7 +37,7 @@ __BINDINGS__: ##

### SDK bindings ###
SDK_CONTRACTS:="MockAvsServiceManager ContractsRegistry MockERC20"
SDK_CONTRACTS_LOCATION:=crates/contracts
SDK_CONTRACTS_LOCATION:=contracts
SDK_BINDINGS_PATH:=crates/utils/src/sdk
# The echo is to remove quotes, and the patsubst to make the regex match the full text only
SDK_CONTRACTS_ARGS:=$(patsubst %, --select '^%$$', $(shell echo $(SDK_CONTRACTS)))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions contracts/lib/eigenlayer-middleware
Submodule eigenlayer-middleware added at fe5834
1 change: 1 addition & 0 deletions contracts/lib/forge-std
Submodule forge-std added at 3b20d6
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion crates/contracts/lib/eigenlayer-middleware
rvmz marked this conversation as resolved.
Show resolved Hide resolved
Submodule eigenlayer-middleware deleted from 92a320
1 change: 0 additions & 1 deletion crates/contracts/lib/forge-std
rvmz marked this conversation as resolved.
Show resolved Hide resolved
Submodule forge-std deleted from d3db4e
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cargo run --example get_operator_from_id

## Anvil utils(This requires a local anvil instance running using docker )

Get EigenLayer contract addresses for local anvil testing . These are predetermined addresses that are stored in a mapping using these [scripts](https://github.com/Layr-Labs/eigensdk-rs/blob/d9b40d806b4939c64bb7d3df0f6f2a542499bd27/crates/contracts/script/DeployMockAvsRegistries.s.sol#L202).
Get EigenLayer contract addresses for local anvil testing . These are predetermined addresses that are stored in a mapping using these [scripts](https://github.com/Layr-Labs/eigensdk-rs/blob/d9b40d806b4939c64bb7d3df0f6f2a542499bd27/contracts/script/DeployMockAvsRegistries.s.sol#L202).

```sh
make start-anvil-chain-with-contracts-deployed
Expand Down
2 changes: 1 addition & 1 deletion testing/testing-utils/src/anvil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use testcontainers::{

const ANVIL_IMAGE: &str = "ghcr.io/foundry-rs/foundry";
const ANVIL_TAG: &str = "latest";
const ANVIL_STATE_PATH: &str = "./crates/contracts/anvil/contracts_deployed_anvil_state.json"; // relative path from the project root
const ANVIL_STATE_PATH: &str = "./contracts/anvil/contracts_deployed_anvil_state.json"; // relative path from the project root

fn workspace_dir() -> PathBuf {
let output = std::process::Command::new(env!("CARGO"))
Expand Down