Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

chore+fix: add Arbitrum onchain space to Tally statement importer#637

Merged
bonustrack merged 1 commit into
masterfrom
chore-add-arb-space-to-list
May 4, 2026
Merged

chore+fix: add Arbitrum onchain space to Tally statement importer#637
bonustrack merged 1 commit into
masterfrom
chore-add-arb-space-to-list

Conversation

@ChaituVR

@ChaituVR ChaituVR commented May 4, 2026

Copy link
Copy Markdown
Member

Related to https://github.com/snapshot-labs/workflow/issues/804

What

Two small changes to the Tally statement importer:

  1. Add Arbitrum onchain space to the MAPPING — the importer previously only knew about the legacy offchain Snapshot space (s:arbitrumfoundation.eth). This adds the Arbitrum Core Governor SX space (arb1:0x789fC99093B09aD01C34DC7251D0C89ce743e5a4) so that Tally delegate statements get stored with the correct network and space values that the SX UI queries.

  2. Fix crash when Tally returns null for a delegate's statement — Tally's API sometimes returns statement: null instead of statement: { statement: "" } for delegates who haven't written a statement. The previous code assumed the object was always present and crashed with Cannot read properties of null. Changed to optional chaining (?.) so those delegates are safely skipped.

How to run

TALLY_API_KEY=<your-key> yarn ts-node scripts/import-statements.ts \
  --providers tally \
  --spaces arb1:0x789fC99093B09aD01C34DC7251D0C89ce743e5a4

Test plan

  • Script fetches Arbitrum delegates from Tally and writes rows with network='arb1', space='0x789…', source='tally'
  • Delegates with statement: null are skipped without crashing
  • No changes needed on the SX UI side — statement loading already queries by (network, space) and works for onchain spaces

🤖 Generated with Claude Code

Adds the Arbitrum Core Governor SX space to the Tally MAPPING so that
delegate statements imported from Tally are stored against the onchain
space and surfaced in the SX UI.

Also fixes a crash when Tally returns a delegate with no statement
(null instead of an empty object).
@ChaituVR
ChaituVR requested review from bonustrack and wa0x6e May 4, 2026 16:04
@ChaituVR ChaituVR changed the title feat: add Arbitrum onchain space to Tally statement importer chore+fix: add Arbitrum onchain space to Tally statement importer May 4, 2026
@bonustrack
bonustrack merged commit d3db179 into master May 4, 2026
2 checks passed
@bonustrack
bonustrack deleted the chore-add-arb-space-to-list branch May 4, 2026 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants