diff --git a/docker-compose.yml b/docker-compose.yml index 8e4a6dc..f531321 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,20 @@ services: POSTGRES_PASSWORD: postgres ports: - "${DB_PORT}:5432" - # command: ["postgres", "-c", "log_statement=all"] + # command: ["postgres", "-c", "log_statement=all"] shm_size: 1gb + query-gateway: + image: subsquid/query-gateway:mirovia + environment: + BOOTSTRAP: "true" + HTTP_LISTEN_ADDR: 0.0.0.0:8000 + BOOT_NODES: > + 12D3KooWSRvKpvNbsrGbLXGFZV7GYdcrYNh4W2nipwHHMYikzV58 /dns4/testnet.subsquid.io/tcp/22345, + 12D3KooWQC9tPzj2ShLn39RFHS5SGbvbP2pEd7bJ61kSW2LwxGSB /dns4/testnet.subsquid.io/tcp/22346 + RPC_URL: https://arbitrum-goerli.blockpi.network/v1/rpc/public + KEY_PATH: /query-gateway/keys/singleProc.key + CONFIG_PATH: /query-gateway/config/gateway-config.yml + volumes: + - ./query-gateway:/query-gateway + ports: + - "8000:8000" diff --git a/query-gateway/config/gateway-config.yml b/query-gateway/config/gateway-config.yml new file mode 100644 index 0000000..0205e65 --- /dev/null +++ b/query-gateway/config/gateway-config.yml @@ -0,0 +1,4 @@ +scheduler_id: "12D3KooWQER7HEpwsvqSzqzaiV36d3Bn6DZrnwEunnzS76pgZkMU" +send_metrics: true +available_datasets: + ethereum-mainnet: "czM6Ly9ldGhlcmV1bS1tYWlubmV0" diff --git a/query-gateway/keys/.keep b/query-gateway/keys/.keep new file mode 100644 index 0000000..e69de29 diff --git a/src/processor.ts b/src/processor.ts index bbe2185..a0e1c37 100644 --- a/src/processor.ts +++ b/src/processor.ts @@ -14,7 +14,7 @@ export const processor = new EvmBatchProcessor() // against the other EVM networks // For a full list of supported networks and config options // see https://docs.subsquid.io/evm-indexing/ - archive: lookupArchive('eth-mainnet'), + archive: 'http://localhost:8000/network/ethereum-mainnet', // Must be set for RPC ingestion (https://docs.subsquid.io/evm-indexing/evm-processor/) // OR to enable contract state queries (https://docs.subsquid.io/evm-indexing/query-state/)