Skip to content

feat: add CIP-20 transaction metadata to all write tools#28

Merged
adacapo21 merged 2 commits intomainfrom
feat/3RD-389-add-cip20-transaction-metadata
Mar 21, 2026
Merged

feat: add CIP-20 transaction metadata to all write tools#28
adacapo21 merged 2 commits intomainfrom
feat/3RD-389-add-cip20-transaction-metadata

Conversation

@adacapo21
Copy link
Copy Markdown
Member

Summary

  • Attach CIP-20 (label 674) human-readable metadata to every unsigned transaction, making Indigo Protocol operations identifiable on-chain via block explorers
  • Centralize .complete() in tx-builder.ts so metadata is attached between TxBuilder creation and finalization
  • Remove .complete() calls from all 27 write tool callbacks across 10 files — they now return TxBuilder directly

Test plan

  • npm run typecheck — passes
  • npm run build — compiles without errors
  • npm run lint (src/) — passes
  • npm run test — 102 tests pass
  • Submit a transaction on preprod and verify CIP-20 metadata appears on a block explorer under label 674

Attach CIP-20 (label 674) human-readable metadata to every unsigned
transaction built through buildUnsignedTx. Each transaction now includes
"Indigo Protocol: {type}" and a description line, making protocol
operations identifiable on-chain via block explorers.

Centralize .complete() in tx-builder.ts so metadata is attached after
the TxBuilder is returned from each tool's buildFn callback but before
finalization. Remove .complete() calls from all 27 write tool callbacks
across 10 files.
@adacapo21 adacapo21 force-pushed the feat/3RD-389-add-cip20-transaction-metadata branch from 7eda6b1 to 576c734 Compare March 16, 2026 21:20
@adacapo21 adacapo21 merged commit c55bed2 into main Mar 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant