Commit ddfa640
committed
feat: ZSA-aware transaction history (list + detail view)
- Add zsa_value + asset_id columns to transactions table
- Compute ZSA summary in summarize_tx (first asset net amount)
- Add asset_display helper fn (resolved from name or desc_hash, fallback ZEC)
- Tx struct: zsaValue, assetId, assetDisplay fields
- TxNote/TxSpend: idAsset + assetDisplay fields (join assets in queries)
- TransactionTile shows ZSA value below ZEC amount
- Tx detail page shows asset name and raw value for ZSA notes/spends
- Fix calculate_balance to only count ZEC notes (id_asset IS NULL)
- Fix max_spendable to only count ZEC notes1 parent a716a0b commit ddfa640
14 files changed
Lines changed: 539 additions & 113 deletions
File tree
- lib
- pages
- src/rust
- api
- widgets
- rust/src
- api
- graphql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| 693 | + | |
| 694 | + | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| |||
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| 500 | + | |
497 | 501 | | |
498 | 502 | | |
499 | 503 | | |
| |||
506 | 510 | | |
507 | 511 | | |
508 | 512 | | |
| 513 | + | |
509 | 514 | | |
510 | 515 | | |
511 | 516 | | |
| |||
522 | 527 | | |
523 | 528 | | |
524 | 529 | | |
525 | | - | |
| 530 | + | |
| 531 | + | |
526 | 532 | | |
527 | 533 | | |
528 | 534 | | |
| |||
538 | 544 | | |
539 | 545 | | |
540 | 546 | | |
541 | | - | |
| 547 | + | |
| 548 | + | |
542 | 549 | | |
543 | 550 | | |
544 | 551 | | |
| |||
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
| 594 | + | |
| 595 | + | |
587 | 596 | | |
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
591 | 600 | | |
592 | 601 | | |
| 602 | + | |
| 603 | + | |
593 | 604 | | |
594 | 605 | | |
595 | 606 | | |
596 | 607 | | |
597 | 608 | | |
598 | 609 | | |
599 | 610 | | |
600 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
601 | 617 | | |
602 | 618 | | |
603 | 619 | | |
| |||
607 | 623 | | |
608 | 624 | | |
609 | 625 | | |
610 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
611 | 629 | | |
0 commit comments