Skip to content

Commit

Permalink
A version with a query gateway
Browse files Browse the repository at this point in the history
	modified:   docker-compose.yml
	new file:   query-gateway/config/gateway-config.yml
	new file:   query-gateway/keys/.keep
	modified:   src/processor.ts
  • Loading branch information
abernatskiy committed Aug 29, 2023
1 parent 9d0da40 commit f1c35f0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
17 changes: 16 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions query-gateway/config/gateway-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scheduler_id: "12D3KooWQER7HEpwsvqSzqzaiV36d3Bn6DZrnwEunnzS76pgZkMU"
send_metrics: true
available_datasets:
ethereum-mainnet: "czM6Ly9ldGhlcmV1bS1tYWlubmV0"
Empty file added query-gateway/keys/.keep
Empty file.
2 changes: 1 addition & 1 deletion src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down

0 comments on commit f1c35f0

Please sign in to comment.