Skip to content

Commit

Permalink
Merge pull request #156 from 0xProject/nicolas/add-blast-and-linea
Browse files Browse the repository at this point in the history
Add Blast and Linea Chains
  • Loading branch information
nicoalencar authored Sep 30, 2024
2 parents ebf7e81 + 1092dbd commit f263cb1
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
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

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

0 comments on commit f263cb1

Please sign in to comment.