Skip to content

Commit 5673402

Browse files
authored
Merge pull request #185 from 0xProject/omar/deng-933-onboard-plasma
event scrappers for plasma
2 parents 98b105e + 3794ba5 commit 5673402

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,34 @@ services:
600600
- zeroex_local_dev
601601

602602

603+
event-pipeline-plasma:
604+
build:
605+
context: .
606+
dockerfile: Dockerfile
607+
platform: linux/amd64
608+
restart: no
609+
environment:
610+
SCRAPER_MODE: 'BLOCKS'
611+
EVM_RPC_URL: '${RPC_URL_PLASMA}'
612+
CHAIN_ID: '9745'
613+
POSTGRES_URI: 'postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
614+
SCHEMA: 'events_plasma'
615+
FEAT_ZEROEX_EXCHANGE_PROXY: "false"
616+
SETTLER_DEPLOYMENT_BLOCK: 1005222
617+
MAX_BLOCKS_TO_SEARCH: 1000
618+
MAX_BLOCKS_TO_PULL: 100
619+
SECONDS_BETWEEN_RUNS: 1
620+
RESCRAPE_BLOCKS: 10
621+
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
622+
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x6100e367285b01f48d07953803a2d8dca5d19873'
623+
FEAT_TOKENS_FROM_TRANSFERS: "true"
624+
FEAT_ERC20_TRANSFER_ALL: "true"
625+
FEAT_SETTLER_ERC721_TRANSFER_EVENT: "true"
626+
TOKENS_FROM_TRANSFERS_START_BLOCK: "1"
627+
BLOCK_RECEIPTS_MODE: "standard"
628+
networks:
629+
- zeroex_local_dev
630+
603631
networks:
604632
zeroex_local_dev:
605633
external: true

env.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ RPC_URL_WORLDCHAIN=
2222
RPC_URL_UNICHAIN=
2323
RPC_URL_BERACHAIN=
2424
RPC_URL_INK=
25+
RPC_URL_PLASMA=

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const supportedChains: Map = {
8282
130: { name: 'Unichain' },
8383
80094: { name: 'Berachain' },
8484
57073: { name: 'Ink' },
85+
9745: { name: 'Plasma' },
8586
};
8687

8788
interface BridgeContract {

0 commit comments

Comments
 (0)