Skip to content

Commit

Permalink
chore: move /contracts from /crates to root (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvmz committed Feb 1, 2025
1 parent 36ac6cd commit ef6e7c2
Show file tree
Hide file tree
Showing 31 changed files with 11 additions and 13 deletions.
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
8 changes: 4 additions & 4 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
[submodule "contracts/lib/eigenlayer-middleware"]
path = contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-labs/eigenlayer-middleware
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion crates/contracts/lib/eigenlayer-middleware
Submodule eigenlayer-middleware deleted from 92a320
1 change: 0 additions & 1 deletion crates/contracts/lib/forge-std
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

0 comments on commit ef6e7c2

Please sign in to comment.