Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Blast and Linea Chains #156

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,64 @@ services:
networks:
- 0x-data-migrations_default

event-pipeline-blast:
build:
context: .
dockerfile: Dockerfile.dev
platform: linux/amd64
restart: always
environment:
SCRAPER_MODE: 'EVENTS'
EVM_RPC_URL: '${RPC_URL_BLAST}'
CHAIN_ID: '81457'
POSTGRES_URI: 'postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
SCHEMA: 'events_blast'
FEAT_ZEROEX_EXCHANGE_PROXY: "false"
SETTLER_DEPLOYMENT_BLOCK: 6124420
MAX_BLOCKS_TO_SEARCH: 1000
MAX_BLOCKS_TO_PULL: 100
SECONDS_BETWEEN_RUNS: 1
RESCRAPE_BLOCKS: 10
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x4300000000000000000000000000000000000004'
FEAT_TOKENS_FROM_TRANSFERS: "true"
FEAT_ERC20_TRANSFER_ALL: "true"
FEAT_SETTLER_ERC721_TRANSFER_EVENT: "true"
TOKENS_FROM_TRANSFERS_START_BLOCK: "1"
SOCKET_BRIDGE_CONTRACT_ADDRESS: "0x3a23f943181408eac424116af7b7790c94cb97a5"
SOCKET_BRIDGE_EVENT_START_BLOCK: "6124420"
networks:
- 0x-data-migrations_default
Copy link
Contributor

@AndresElizondo AndresElizondo Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to rename this network to 0x-local-dev or something similar in a followup QoL PR
So that all local-env containers can run on that same network even if they don't connect to the DB in data-migrations


event-pipeline-linea:
build:
context: .
dockerfile: Dockerfile.dev
platform: linux/amd64
restart: always
environment:
SCRAPER_MODE: 'EVENTS'
EVM_RPC_URL: '${RPC_URL_LINEA}'
CHAIN_ID: '59144'
POSTGRES_URI: 'postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
SCHEMA: 'events_linea'
FEAT_ZEROEX_EXCHANGE_PROXY: "false"
SETTLER_DEPLOYMENT_BLOCK: 6917652
MAX_BLOCKS_TO_SEARCH: 1000
MAX_BLOCKS_TO_PULL: 100
SECONDS_BETWEEN_RUNS: 1
RESCRAPE_BLOCKS: 10
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f'
FEAT_TOKENS_FROM_TRANSFERS: "true"
FEAT_ERC20_TRANSFER_ALL: "true"
FEAT_SETTLER_ERC721_TRANSFER_EVENT: "true"
TOKENS_FROM_TRANSFERS_START_BLOCK: "1"
SOCKET_BRIDGE_CONTRACT_ADDRESS: "0x3a23f943181408eac424116af7b7790c94cb97a5"
SOCKET_BRIDGE_EVENT_START_BLOCK: "6917652"
networks:
- 0x-data-migrations_default

token-scraper-ethereum:
depends_on:
- postgres
Expand Down
4 changes: 4 additions & 0 deletions env.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ RPC_URL_FANTOM=
RPC_URL_CELO=
RPC_URL_OPTIMISM=
RPC_URL_ARBITRUM=
RPC_URL_SCROLL=
RPC_URL_BASE=
RPC_URL_BLAST=
RPC_URL_LINEA=
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ const supportedChains: Map = {
42161: { name: 'Arbitrum' },
43114: { name: 'Avalanche' },
42220: { name: 'Celo' },
59144: { name: 'Linea' },
81457: { name: 'Blast' },
534352: { name: 'Scroll' },
};

Expand Down
Loading