This repository was archived by the owner on Jan 14, 2026. It is now read-only.
Commit 904dbcc
authored
feat: add note field support and input transaction ID retrieval (#30)
* feat: add note field support and input transaction ID retrieval
Add the ability to set a custom note on the user-signed input transaction
and retrieve its transaction ID for tracking purposes.
Changes:
- Add optional `note` config to SwapComposerConfig and newSwap()
- Add `getInputTransactionId()` method to SwapComposer
- Track the input transaction index during swap processing
- Add comprehensive tests for note configuration and ID retrieval
The note is only applied to the user-signed payment or asset transfer
transaction (not pre-signed or middleware transactions). The transaction
ID is available after calling buildGroup(), sign(), or execute().
* docs: add note and getInputTransactionId to README
Document the new transaction tracking features:
- Add 'Transaction Tracking' section with usage example
- Add 'note' parameter to newSwap() API reference table
- Add 'getInputTransactionId()' to SwapComposer methods table1 parent 91d270a commit 904dbcc
File tree
4 files changed
+462
-4
lines changed- packages/deflex
- src
- tests
4 files changed
+462
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
123 | 145 | | |
124 | 146 | | |
125 | 147 | | |
| |||
395 | 417 | | |
396 | 418 | | |
397 | 419 | | |
| 420 | + | |
398 | 421 | | |
399 | 422 | | |
400 | 423 | | |
| |||
458 | 481 | | |
459 | 482 | | |
460 | 483 | | |
| 484 | + | |
461 | 485 | | |
462 | 486 | | |
463 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
412 | 414 | | |
413 | | - | |
| 415 | + | |
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
| |||
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
| 431 | + | |
429 | 432 | | |
430 | 433 | | |
431 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
282 | 287 | | |
283 | 288 | | |
284 | 289 | | |
285 | | - | |
| 290 | + | |
| 291 | + | |
286 | 292 | | |
287 | 293 | | |
288 | 294 | | |
| |||
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
298 | 310 | | |
299 | 311 | | |
300 | 312 | | |
| |||
425 | 437 | | |
426 | 438 | | |
427 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
428 | 480 | | |
429 | 481 | | |
430 | 482 | | |
| |||
438 | 490 | | |
439 | 491 | | |
440 | 492 | | |
441 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
442 | 497 | | |
443 | 498 | | |
444 | 499 | | |
| 500 | + | |
| 501 | + | |
445 | 502 | | |
446 | 503 | | |
447 | 504 | | |
| |||
459 | 516 | | |
460 | 517 | | |
461 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
462 | 526 | | |
463 | 527 | | |
464 | 528 | | |
| |||
471 | 535 | | |
472 | 536 | | |
473 | 537 | | |
474 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
475 | 542 | | |
476 | 543 | | |
477 | 544 | | |
| |||
0 commit comments