All packages
xarb-spoke

xarb-spoke

rladyd818
v0.1.3/1 downloads/Repository

Package ref

xarb-spoke@v0.1.3

Run package

CLI

Run map_events_only from the command line.

substreams run xarb-spoke@v0.1.3 map_events_only -e sepolia --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

xarb-substreams-spoke

Substreams package for xArb spoke-side events on:

  • Ethereum Sepolia (11155111)
  • Polygon Amoy (80002)

Directory

xarb-substreams-spoke/
  substreams.yaml
  config/tracked_contracts.yaml
  src/
  build.rs

Build

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
substreams build

Run (Events Only)

map_events_only is the default output module used by current propagator flow.

Sepolia:

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
substreams run substreams.yaml map_events_only \
  -p "map_events=11155111"

Amoy:

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
substreams run substreams.yaml map_events_only --network polygon-amoy \
  -p "map_events=80002"

Tracked Address Sync

When contracts are re-deployed, run the monorepo sync script:

cd /Users/kd/substreams/xarb-substreams
./scripts/redeploy_and_sync_contracts.sh

It updates tracked contracts config and deployment references.

Notes

  • map_events requires the chain id parameter (for example -p "map_events=11155111").
  • If manual edits are made to config/tracked_contracts.yaml, rebuild with substreams build.

Modules

Execution graph

4 modules
Show 1 dependency
map

ethcommon:all_events

`all_events` gives you all the events in a block (from successful transactions), with basic block hash/number/timestamp and transaction hash

Output

sf.substreams.ethereum.v1.Events