forked from 0LNetworkCommunity/libra-legacy-v6
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Donor Directed Accounts Liquidation (#14)
* refactor donation tracking to also keep a struct of the addresses in one place. * refactor the liquidation of donor directed wallets, in including community wallet case * patch community wallet veto test * fix nasty oversight with double counting cumulative deposits. * community pro_rata calculation and test * refactor vm_make_payment_no_limit to account for withdraw capabilities being delegated in multisig wallets. * donor directed wallet liquidation flow tested. * clean print * all tests passing. * Squashed commit of the following: commit ab1da1d Author: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com> Date: Fri Apr 14 17:36:50 2023 -0400 Hard Fork Migrations (#13) * add tower state migration * migrate community wallet list * ancestry struct resources * use coin split in genesis migration * migrate ancestry and receipts * migrates diemaccount cumulative tracker * migrate slow wallet * patch community wallet migrate * epoch migration stub. * slow wallet unlock with coin split factor * cleanup names
- Loading branch information
1 parent
ab1da1d
commit 8a9c874
Showing
86 changed files
with
2,276 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+73 Bytes
...releases/artifacts/current/build/DPNFramework/abis/DonorDirected/propose_liquidate_tx.abi
Binary file not shown.
Binary file added
BIN
+99 Bytes
...N/releases/artifacts/current/build/DPNFramework/abis/DonorDirected/propose_payment_tx.abi
Binary file not shown.
Binary file added
BIN
+72 Bytes
.../DPN/releases/artifacts/current/build/DPNFramework/abis/DonorDirected/propose_veto_tx.abi
Binary file not shown.
Binary file added
BIN
+64 Bytes
...ramework/DPN/releases/artifacts/current/build/DPNFramework/abis/DonorDirected/veto_tx.abi
Binary file not shown.
Binary file added
BIN
+72 Bytes
.../releases/artifacts/current/build/DPNFramework/abis/DonorDirected/vote_liquidation_tx.abi
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
...-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Ancestry.mv
Binary file not shown.
Binary file modified
BIN
+55 Bytes
(100%)
...ork/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/CommunityWallet.mv
Binary file not shown.
Binary file modified
BIN
+610 Bytes
(100%)
...amework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/DiemAccount.mv
Binary file not shown.
Binary file modified
BIN
+1.03 KB
(120%)
...ework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/DonorDirected.mv
Binary file not shown.
Binary file modified
BIN
+693 Bytes
(140%)
...releases/artifacts/current/build/DPNFramework/bytecode_modules/DonorDirectedGovernance.mv
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
...rk/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/GenesisMigration.mv
Binary file not shown.
Binary file modified
BIN
+9 Bytes
(100%)
...m-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Globals.mv
Binary file not shown.
Binary file modified
BIN
+110 Bytes
(100%)
...work/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/PledgeAccounts.mv
Binary file not shown.
Binary file modified
BIN
+147 Bytes
(120%)
...-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Receipts.mv
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
...ramework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TowerState.mv
Binary file not shown.
Binary file modified
BIN
+40 Bytes
(100%)
...mework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TurnoutTally.mv
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
...ework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/WalletScripts.mv
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
306 changes: 220 additions & 86 deletions
306
...framework/DPN/releases/artifacts/current/build/DPNFramework/docs/DiemAccount.md
Large diffs are not rendered by default.
Oops, something went wrong.
462 changes: 415 additions & 47 deletions
462
...amework/DPN/releases/artifacts/current/build/DPNFramework/docs/DonorDirected.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.