Skip to content

Commit

Permalink
Add Kakacet (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter authored Jul 29, 2023
1 parent 39a96cf commit 64f6f6f
Showing 1 changed file with 49 additions and 7 deletions.
56 changes: 49 additions & 7 deletions starknet-stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ services:
networks:
- internal

add-accounts:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-cairo:latest
command: python scripts/add_accounts.py
depends_on:
madara:
condition: service_healthy
environment:
RPC_URL: http://madara:9944
COUNT: 3
AMOUNT: 2
ACCOUNT_ADDRESS: "0x3"
PRIVATE_KEY: "0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d"
volumes:
- account-0:/app/starksheet/packages/starksheet-cairo/0
- account-1:/app/starksheet/packages/starksheet-cairo/1
- account-2:/app/starksheet/packages/starksheet-cairo/2
networks:
- internal

# -------------
# Substrate app
# -------------
Expand Down Expand Up @@ -55,13 +74,14 @@ services:
depends_on:
madara:
condition: service_healthy
add-accounts:
condition: service_completed_successfully
environment:
ACCOUNT_ADDRESS: "0x3"
PRIVATE_KEY: "0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d"
RPC_URL: http://madara:9944
volumes:
- starksheet-deployments:/app/starksheet/packages/starksheet-cairo/deployments
- starksheet-build:/app/starksheet/packages/starksheet-cairo/build
- account-0:/app/starksheet/packages/starksheet-cairo
networks:
- internal

Expand All @@ -87,13 +107,14 @@ services:
depends_on:
madara:
condition: service_healthy
add-accounts:
condition: service_completed_successfully
environment:
ACCOUNT_ADDRESS: "0x3"
PRIVATE_KEY: "0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d"
RPC_URL: http://madara:9944
EVM_PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
volumes:
- kakarot-deployments:/app/kakarot/deployments
- account-1:/app/kakarot
networks:
- internal

Expand All @@ -105,8 +126,10 @@ services:
entrypoint:
- "/bin/sh"
- "-c"
# First line overrides an existing .env to make sure that .env is clean even though docker volume was not cleaned
- |
echo "KAKAROT_ADDRESS=$(jq -r '.kakarot.address' /deployments/deployments.json)" > /deployments/.env;
echo "REACT_APP_KAKAROT_ADDRESS=$(jq -r '.kakarot.address' /deployments/deployments.json)" >> /deployments/.env;
echo "PROXY_ACCOUNT_CLASS_HASH=$(jq -r '.proxy' /deployments/declarations.json)" >> /deployments/.env
volumes:
- kakarot-deployments:/deployments
Expand All @@ -121,7 +144,6 @@ services:
environment:
KAKAROT_HTTP_RPC_ADDRESS: "0.0.0.0:3030"
STARKNET_NETWORK: http://madara:9944
EVM_PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
RUST_LOG: trace
volumes:
- kakarot-deployments:/usr/src/app
Expand All @@ -133,6 +155,22 @@ services:
test: ["CMD", "echo", "ok"]
interval: 5s

kakacet-front:
image: ghcr.io/kkrt-labs/kakacet/frontend:latest
ports:
- 3005:3000
environment:
- REACT_APP_RPC_URL=http://0.0.0.0:9944
volumes:
- kakarot-deployments:/app
depends_on:
starkcet-back:
condition: service_started
kakarot-rpc:
condition: service_healthy
networks:
- internal

kakasheet-deployer:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-solidity:latest
depends_on:
Expand Down Expand Up @@ -169,12 +207,13 @@ services:
depends_on:
madara:
condition: service_healthy
add-accounts:
condition: service_completed_successfully
environment:
ACCOUNT_ADDRESS: "0x3"
PRIVATE_KEY: "0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d"
RPC_URL: http://madara:9944
volumes:
- madara-swap-deployments:/app/madara-swap/packages/contracts/deployments
- account-2:/app/madara-swap/packages/contracts/
networks:
- internal

Expand Down Expand Up @@ -248,5 +287,8 @@ volumes:
madara-swap-deployments:
kakasheet-broadcast:
kakasheet-out:
account-0:
account-1:
account-2:
networks:
internal:

0 comments on commit 64f6f6f

Please sign in to comment.