Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit a417572

Browse files
mattdfmanveerxyzJannikSt
authored
replace anvil with reth devchain (#332)
* replace anvil with reth devchain --------- Co-authored-by: Manveer <m13basra@gmail.com> Co-authored-by: Jannik Straube <info@jannik-straube.de>
1 parent 5930029 commit a417572

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

.tmuxinator.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: prime-dev
22
root: .
33
enable_pane_titles: true
44
on_project_start: |
5-
docker compose up -d anvil redis
6-
docker compose wait --timeout 180 anvil redis
5+
docker compose up -d reth redis --wait --wait-timeout 180
76
cd smart-contracts && sh deploy.sh && sh deploy_work_validation.sh && cd ..
87
make setup
98
windows:
@@ -17,4 +16,4 @@ windows:
1716
- background:
1817
layout: even-horizontal
1918
panes:
20-
- "Prime Dev Services": docker compose logs -f anvil redis
19+
- "Prime Dev Services": docker compose logs -f reth redis

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The Prime Protocol follows a modular architecture designed for decentralized AI
3838
### Prerequisites
3939
- Linux operating system
4040
- CUDA-capable GPU(s) for worker operations
41-
- Docker Desktop and Git installed
41+
- Docker (version 28.1.1 or later) and Docker Compose (version v2.35.1 or later)
4242

4343
For complete setup instructions, refer to our [Development Setup Guide](docs/development-setup.md).
4444

crates/dev-utils/examples/transfer_eth.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ async fn main() -> Result<()> {
3434

3535
let balance_before = wallet.provider.get_balance(wallet.signer.address()).await?;
3636
// Start of Selection
37-
let accounts = wallet.provider.get_accounts().await?;
38-
let from = accounts[0];
37+
let from = wallet.signer.address();
3938
let to = Address::from_str(&args.address).unwrap();
4039
let amount = U256::from(args.amount);
4140
let tx = TransactionRequest::default()

docker-compose.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ volumes:
1111
redis-data:
1212

1313
services:
14-
anvil:
15-
image: ghcr.io/foundry-rs/foundry:latest
14+
reth:
15+
image: ghcr.io/paradigmxyz/reth:latest
1616
platform: linux/amd64
17-
entrypoint: ["anvil", "--host", "0.0.0.0", "--port", "8545", "--block-time", "2"]
17+
entrypoint: ["reth", "node", "--dev", "--chain", "dev", "--dev.block-time", "2sec", "--http", "--ws", "--http.addr", "0.0.0.0", "--ws.addr", "0.0.0.0", "--metrics", "0.0.0.0:9001"]
1818
ports:
1919
- "8545:8545"
20+
- "9001:9001"
2021
networks:
2122
- prime
2223
- app-network
@@ -35,7 +36,7 @@ services:
3536
- ./smart-contracts:/app
3637
working_dir: /app
3738
environment:
38-
- RPC_URL=http://anvil:8545
39+
- RPC_URL=http://reth:8545
3940
entrypoint: ["/bin/sh", "-c"]
4041
command: |
4142
"
@@ -51,7 +52,7 @@ services:
5152
networks:
5253
- prime
5354
depends_on:
54-
anvil:
55+
reth:
5556
condition: service_healthy
5657

5758
redis:
@@ -72,13 +73,13 @@ services:
7273
ports:
7374
- "8089:8089"
7475
environment:
75-
- RPC_URL=http://anvil:8545
76+
- RPC_URL=http://reth:8545
7677
- REDIS_URL=redis://redis:6379
7778
- PLATFORM_API_KEY=prime
7879
networks:
7980
- prime
8081
depends_on:
81-
anvil:
82+
reth:
8283
condition: service_healthy
8384
redis:
8485
condition: service_healthy
@@ -91,7 +92,7 @@ services:
9192
ports:
9293
- "8090:8090"
9394
environment:
94-
- RPC_URL=http://anvil:8545
95+
- RPC_URL=http://reth:8545
9596
- REDIS_STORE_URL=redis://redis:6379
9697
- DISCOVERY_URL=http://discovery:8089
9798
- URL=http://localhost:8090
@@ -104,7 +105,7 @@ services:
104105
networks:
105106
- prime
106107
depends_on:
107-
anvil:
108+
reth:
108109
condition: service_healthy
109110
redis:
110111
condition: service_healthy
@@ -121,7 +122,7 @@ services:
121122
networks:
122123
- prime
123124
environment:
124-
- RPC_URL=http://anvil:8545
125+
- RPC_URL=http://reth:8545
125126
- DISCOVERY_URL=http://discovery:8089
126127
- VALIDATOR_KEY=${PRIVATE_KEY_VALIDATOR}
127128
- WORK_VALIDATION_CONTRACT=${WORK_VALIDATION_CONTRACT}
@@ -132,7 +133,7 @@ services:
132133
- TOPLOC_GRACE_INTERVAL=15
133134
- REDIS_URL=redis://redis:6379
134135
depends_on:
135-
anvil:
136+
reth:
136137
condition: service_healthy
137138
redis:
138139
condition: service_healthy

0 commit comments

Comments
 (0)