-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add kakarot staging * fix chain id edge case * make big chainid smaller * undox myself - not rewriting git history 🤷♂️ * make big chainid u64 at most * rebase and fix * docker changes * feat: fix comments * use latest individual tag * new deployment * use snapshots of juno * new rpc tag * take chainid as modulo u32::max * new upgrade * latest tag for rpc * decouple mongo database * bump kakarot, fix docker * bump kakarot v0.6.2 * bump kakarot * re-deploy kakarot on staging * fix rangecheck * fix mongo * fix benchmark * use kkrt labs docker image --------- Co-authored-by: Gregory Edison <[email protected]>
- Loading branch information
Showing
16 changed files
with
235 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
# trunk-ignore-all(yamllint/empty-values) | ||
version: "3.8" | ||
|
||
services: | ||
starknet: | ||
image: nethermind/juno:v0.11.1 | ||
ports: | ||
- 6060:6060 | ||
volumes: | ||
- ${HOME}/code/kkrt-labs/snapshots/juno_sepolia:/var/lib/juno | ||
command: > | ||
--pending-poll-interval "1s" | ||
--http | ||
--http-host 0.0.0.0 | ||
--http-port 6060 | ||
--db-path /var/lib/juno | ||
--eth-node ${ETH_NODE_WS} | ||
--network sepolia | ||
networks: | ||
- internal | ||
starknet-explorer: | ||
image: public.ecr.aws/o5q6k5w4/stark_compass_explorer:latest | ||
ports: | ||
- 4000:4000 | ||
environment: | ||
- PHX_HOST=localhost | ||
- PORT=4000 | ||
- RPC_API_HOST=http://host.docker.internal:6060 | ||
- TESTNET_RPC_API_HOST=http://host.docker.internal:6060 | ||
- SEPOLIA_RPC_API_HOST=http://host.docker.internal:6060 | ||
- DISABLE_MAINNET_SYNC=true | ||
- DISABLE_SEPOLIA_SYNC=true | ||
- DATABASE_PATH=ecto://postgres:postgres@starknet-explorer-db:5432/starknet_explorer_dev | ||
- DB_TYPE=postgres | ||
- SECRET_KEY_BASE=JyULoT5cLBifW+XNEuCTVoAb+SaFgQt9j227RN0cKpR3wTsrApGd1HNcgeopemyl | ||
- ENABLE_LISTENER=true | ||
depends_on: | ||
starknet-explorer-db: | ||
condition: service_started | ||
starknet: | ||
condition: service_started | ||
extra_hosts: | ||
- host.docker.internal:172.17.0.1 | ||
networks: | ||
- internal | ||
|
||
starknet-explorer-db: | ||
image: postgres:15.3 | ||
ports: | ||
- 5432:5432 | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
- POSTGRES_DB=starknet_explorer_dev | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
volumes: | ||
- starknet_explorer_staging:/var/lib/postgresql/data/ | ||
|
||
kakarot-rpc: | ||
image: ghcr.io/kkrt-labs/kakarot-rpc/node:latest | ||
pull_policy: always | ||
ports: | ||
- 3030:3030 | ||
environment: | ||
- KAKAROT_RPC_URL=0.0.0.0:3030 | ||
- STARKNET_NETWORK=http://starknet:6060 | ||
- RUST_LOG=kakarot_rpc=info | ||
- MONGO_CONNECTION_STRING=mongodb://mongo:mongo@mongo:27017 | ||
- MONGO_DATABASE_NAME=kakarot-local | ||
# These values are unique to Sepolia Testnet | ||
# They'll need to be manually changed in case the testnet is reset | ||
# To add robustness: parse the `deployments/starknet-sepolia` folder in `kkrt-labs/kakarot` repo | ||
- KAKAROT_ADDRESS=0x464f7e37179d2f93ea208795bdb2d0912e8257f6fb5f67ae2559251523aee19 | ||
- UNINITIALIZED_ACCOUNT_CLASS_HASH=0x1d8b8047e26b484d3f6262d1967217d980d0f2dfc69afa5661492bd5bfe2954 | ||
- ACCOUNT_CONTRACT_CLASS_HASH=0x56d311021950bf65ee500426e007b9e3ced0db97f9c1e0d29a9e03d79a9bf6c | ||
restart: on-failure | ||
depends_on: | ||
starknet: | ||
condition: service_started | ||
networks: | ||
- internal | ||
|
||
apibara-dna: | ||
extends: | ||
file: docker-compose.yaml | ||
service: apibara-dna | ||
command: | ||
- start | ||
- --rpc=http://starknet:6060 | ||
- --wait-for-rpc | ||
- --data=/data | ||
|
||
### MongoDB with Mongo Express | ||
mongo: | ||
image: mongo:6.0.8 | ||
restart: always | ||
ports: | ||
- 27017:27017 | ||
volumes: | ||
- mongo_data_staging:/data/db | ||
networks: | ||
- internal | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: mongo | ||
MONGO_INITDB_ROOT_PASSWORD: mongo | ||
|
||
clone-repo: | ||
extends: | ||
file: docker-compose.yaml | ||
service: clone-repo | ||
|
||
indexer: | ||
image: quay.io/apibara/sink-mongo:0.7.0 | ||
command: | ||
- run | ||
- /code/kakarot-indexer/src/main.ts | ||
environment: | ||
# Whitelist environment variables | ||
- ALLOW_ENV_FROM_ENV=DEBUG,APIBARA_AUTH_TOKEN,STARTING_BLOCK,STREAM_URL,SINK_TYPE,MONGO_CONNECTION_STRING,MONGO_DATABASE_NAME,STARKNET_NETWORK,KAKAROT_ADDRESS,ALLOW_NET,MONGO_REPLACE_DATA_INSIDE_TRANSACTION | ||
- DEBUG="" | ||
- APIBARA_AUTH_TOKEN="" | ||
- MONGO_CONNECTION_STRING=mongodb://mongo:mongo@mongo:27017 | ||
- MONGO_DATABASE_NAME=kakarot-local | ||
- STARTING_BLOCK=0 | ||
- STREAM_URL=http://apibara-dna:7171 | ||
- SINK_TYPE=mongo | ||
- STARKNET_NETWORK=http://starknet:6060 | ||
- ALLOW_NET= | ||
- MONGO_REPLACE_DATA_INSIDE_TRANSACTION=false | ||
- KAKAROT_ADDRESS=0x464f7e37179d2f93ea208795bdb2d0912e8257f6fb5f67ae2559251523aee19 | ||
restart: on-failure | ||
volumes: | ||
- indexer_code:/code | ||
networks: | ||
- internal | ||
depends_on: | ||
clone-repo: | ||
condition: service_completed_successfully | ||
starknet: | ||
condition: service_started | ||
|
||
networks: | ||
internal: | ||
driver: bridge | ||
default: | ||
driver: bridge | ||
close: | ||
driver: bridge | ||
|
||
volumes: | ||
apibara: | ||
mongo_data_staging: | ||
indexer_code: | ||
pgadmin_data: | ||
starknet_explorer_staging: | ||
juno_files_staging: |
Oops, something went wrong.