Package Logo
xarb-spoke
xarb-spoke@v0.1.3
Total Downloads
81
Published
6 hours ago
Network
sepolia sepolia
Publisher
User Avatar rladyd818

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.

Documentation

Modules

Maps icon
Maps

map
map_tx_indices

5c65f7f6b7eb9b8c869619fcf3738bca1a505157
map map_tx_indices (
blocksf.ethereum.type.v2.Block
)  -> contract.v1.TxIndices
substreams gui xarb-spoke@v0.1.3 map_tx_indices

map
map_events

51567ff3fc5f82cfdb792e85dc7841a032d13991
substreams gui xarb-spoke@v0.1.3 map_events

map
map_events_only

41dff3a374a371bfa550101180d4eae1f519060a
substreams gui xarb-spoke@v0.1.3 map_events_only

map
ethcommon:all_events

433686393b184c57628660f7dbe6cfed4d72a9e9
map ethcommon:all_events (
)  -> sf.substreams.ethereum.v1.Events

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

substreams gui xarb-spoke@v0.1.3 ethcommon:all_events
Protobuf

Protobuf Docs Explorer

sf.ethereum.type.v2
sf.ethereum.substreams.v1
sf.ethereum.transform.v1
contract.v1