All packages
xarb-spoke

xarb-spoke

rladyd818
This is not the latest version — go to v0.1.3
v0.1.1/4 downloads/Repository

Package ref

xarb-spoke@v0.1.1

Run package

CLI

Run map_events_calls from the command line.

substreams run xarb-spoke@v0.1.1 map_events_calls -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
  .env.example
  src/
  build.rs

Build

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
cp -n .env.example .env
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

Amoy:

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
substreams run substreams.yaml map_events_only --network polygon-amoy

Optional Run (Events + Calls)

Use map_events_calls only when you need call-level output.

cd /Users/kd/substreams/xarb-substreams/xarb-substreams-spoke
set -a
source .env
set +a

substreams run substreams.yaml map_events_calls \
  -p "map_calls=${XARB_SPOKE_TRACKED_CONTRACTS_SEPOLIA}"

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 .env, deployment JSONs, and substreams.yaml filters to latest addresses.

Notes

  • substreams.yaml has static blockFilter values for call indexing modules.
  • If manual edits are made to tracked addresses, rebuild with substreams build.

Modules

Execution graph

8 modules
Show 3 dependencies
map

ethcommon:all_calls

`all_calls` gives you all the calls in a block (including internal calls), with basic block hash/number/timestamp and transaction hash

Output

sf.substreams.ethereum.v1.Calls

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

blockIndex

ethcommon:index_calls

`index_calls` sets the following keys on the block: * Call contract call_to:0x0123456789abcdef0123456789abcdef01234567 (contract address in hex, prefixed by 0x) * Caller call_from:0x0123456789abcdef0123456789abcdef01234567 (caller address in hex, prefixed by 0x) * Call method call_method:0x01234567 (4 bytes of method signature in hex, prefixed by 0x)

Output

sf.substreams.index.v1.Keys