Skip to content

Add optimized transaction serialization utilities - #310

Merged
El-swaggerito merged 2 commits into
Axionvera:mainfrom
220nightmore-spec:feature/transaction-serialization-277
Jul 19, 2026
Merged

Add optimized transaction serialization utilities#310
El-swaggerito merged 2 commits into
Axionvera:mainfrom
220nightmore-spec:feature/transaction-serialization-277

Conversation

@220nightmore-spec

Copy link
Copy Markdown
Contributor

Summary

  • add transaction serialization helpers that wrap transaction XDR + network passphrase in a versioned base64 JSON envelope
  • add optional diagnostics metadata and a WeakMap-backed TransactionSerializationCache to avoid repeated toXDR() calls for the same transaction/options
  • add parser-injected deserialization so protocol parsing stays caller-owned and compatible with the Stellar SDK runtime in use
  • export serialization utilities from the SDK entrypoint and document usage/performance notes in docs/TRANSACTION_SERIALIZATION.md

Validation

  • node node_modules/jest/bin/jest.js --config jest.config.js --runTestsByPath tests/serialization/transactionSerialization.test.ts --runInBand --coverage=false
  • node node_modules/eslint/bin/eslint.js src/serialization/transactionSerialization.ts src/serialization/index.ts
  • node node_modules/typescript/bin/tsc --noEmit --pretty false filtered for src/serialization|tests/serialization: no serialization-related errors
  • git diff --cached --check

Full repository typecheck is still blocked by existing main-branch issues unrelated to this PR, including missing @stellar/stellar-sdk/axios declarations, duplicate exports in src/index.ts, and pre-existing websocket/testing/middleware/wallet type errors.

Closes #277

@El-swaggerito
El-swaggerito merged commit 1e23608 into Axionvera:main Jul 19, 2026
1 of 5 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.

Transaction Serialization Optimization

2 participants