Commit 1291130
authored
revenue-distribution: track debt write-offs in state (malbeclabs/doublezero-solana#93)
This change implements [RFC-0002], which outlines adding state variables
to track debt write-offs in the distribution and Solana validator
deposit accounts.
NOTE: This change replaces the forgive-solana-validator-debt instruction
with write-off-solana-validator-debt instruction. This interface change
only affects the debt accountant authority.
Closes #2128.
[RFC-0002]:
https://github.com/doublezerofoundation/doublezero-solana/blob/fc3856f334f24034b34a0df3087e75bf38d240b3/docs/rfc/0002_IMPROVED_DEBT_WRITE_OFF_TRACKING.md1 parent fc3856f commit 1291130
14 files changed
Lines changed: 761 additions & 155 deletions
File tree
- solana/programs/revenue-distribution
- src
- instruction
- state
- tests
- common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
Lines changed: 49 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
653 | 687 | | |
654 | 688 | | |
655 | 689 | | |
656 | | - | |
| 690 | + | |
| 691 | + | |
657 | 692 | | |
658 | 693 | | |
659 | | - | |
| 694 | + | |
660 | 695 | | |
661 | 696 | | |
662 | 697 | | |
663 | | - | |
| 698 | + | |
| 699 | + | |
664 | 700 | | |
665 | 701 | | |
666 | 702 | | |
667 | 703 | | |
668 | 704 | | |
669 | | - | |
| 705 | + | |
| 706 | + | |
670 | 707 | | |
671 | 708 | | |
672 | 709 | | |
673 | 710 | | |
674 | | - | |
675 | | - | |
676 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
677 | 714 | | |
678 | 715 | | |
679 | 716 | | |
680 | | - | |
| 717 | + | |
| 718 | + | |
681 | 719 | | |
682 | 720 | | |
683 | 721 | | |
684 | 722 | | |
685 | 723 | | |
686 | 724 | | |
687 | | - | |
| 725 | + | |
| 726 | + | |
688 | 727 | | |
689 | 728 | | |
690 | 729 | | |
| |||
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
225 | | - | |
226 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | | - | |
| 235 | + | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
| |||
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
317 | | - | |
318 | | - | |
319 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
| |||
0 commit comments