Skip to content

feat(transaction): add createPaymentOp, createTrustOp, and createChan…#178

Merged
Just-Bamford merged 1 commit into
Sorokit:mainfrom
funds0033-cmyk:feat/operation-builder-utilities-115
Jun 30, 2026
Merged

feat(transaction): add createPaymentOp, createTrustOp, and createChan…#178
Just-Bamford merged 1 commit into
Sorokit:mainfrom
funds0033-cmyk:feat/operation-builder-utilities-115

Conversation

@funds0033-cmyk

Copy link
Copy Markdown
Contributor

Closes #115
What was done
Implemented three typed operation builder utilities for constructing complex Stellar transactions, with validation per operation type.
Changes

createPaymentOp() — builds a typed Payment operation with validation
createTrustOp() — builds a typed Trust operation with validation
createChangetrustOp() — builds a typed ChangeTrust operation with validation
Public API export — all three exported from src/index.ts
Duplicate export fix — renamed conflicting exportTransactionHistory to exportTransactionRecordHistory to unblock test collection
6 tests — added to src/tests/transaction.test.ts covering all operation types and validation

Test results

6 operation builder tests passing ✅
Builder return-type errors resolved ✅

Notes

Full src/tests/transaction.test.ts has 34 pre-existing unrelated failures
npm run typecheck still fails on pre-existing repo errors — no new type errors introduced

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@funds0033-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Just-Bamford Just-Bamford merged commit 9aff72e into Sorokit:main Jun 30, 2026
0 of 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.

Add operation builder utilities for complex transactions

2 participants