Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
dev: add l1 rpc to local-rpc docker (#1284)
Browse files Browse the repository at this point in the history
* dev: add L1-anvil to local-rpc docker

* commit .katana
  • Loading branch information
enitrat authored Jul 7, 2024
1 parent f6e03ad commit 86c0028
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
/cache/
/solidity_contracts/build

# ignore katana dump directory
.katana/

.env
vscode
broadcast
Expand Down
9 changes: 9 additions & 0 deletions .katana/messaging_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"chain": "ethereum",
"rpc_url": "http://anvil:8545",
"contract_address": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
"sender_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"private_key": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
"interval": 2,
"from_block": 0
}
15 changes: 15 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,26 @@ services:
- "0"
- --chain-id
- KKRT
- --messaging
- /app/.katana/messaging_config.json
volumes:
- .katana:/app/.katana
ports:
- 5050:5050
networks:
- internal
restart: on-failure

anvil:
platform: linux/amd64
image: ghcr.io/foundry-rs/foundry:latest
command: ["anvil --host 0.0.0.0 --port 8545"]
ports:
- 8545:8545
networks:
- internal
restart: on-failure

kakarot-deployer:
image: ghcr.io/kkrt-labs/kakarot/deployer:v0.8.5-alpha.1
# Always pull the latest image, until we use release tags
Expand Down Expand Up @@ -154,6 +168,7 @@ services:

networks:
internal:
driver: bridge

volumes:
deployments:
Expand Down

0 comments on commit 86c0028

Please sign in to comment.