-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stdlib] VoteLib and MultiSig, plus refactors and new policies in Don…
…orDirectedAccounts (CommunityWallet). (#1249) * Scaffold and doc for ParticipationVote * initializing ballots * refactor so that external contracts import the type. * refactor vote, and add test * add meta test for importing voting. * flesh out extension logic * patch tests * tests for the threshold curve * rename folder * patch tests * tests for retract * votelib tests passing * text * initial scaffold of a multisig account. * can init, propose and vote for a multi sig transaction * test for init multisig * governance functions for multisig * add billing * refactor using generics to create Types of MultiSig * builds * refactor governance * update authorities * refactor (again) assuming the generic use case. Proposal struct can have a nested prop_type with the data needed for a handler. * separate multisig handler for payments from the multsig contract * builds * tests WIP * tests passing and docs * cleanup * refactor so actions are separate from the governance. Signers are same for all Actions. Builds * refactored. builds * governance is just an instance of Action. * clean * separate init of Gov struct from Action * root service initialization * patch billing * update expiration logic * split logic of Wallet into DonorDirected and CommunityWallet * rename modules. builds * renames. builds * remove donor directed from diemaccount * clean * patch multisig tests * cleanup wip. builds * start directed account governance * refactor votelib to include ballot data * can add a veto to a tx * refactor processing. builds * veto handler implemented. clean build * allow donor directed governance to extend to match * patch community wallet * refactor governance to use Poll struct. builds * make Poll and Ballot generic * make Poll and Ballot generic * renames * wip refactoring participation vote * wip refactor multisig to use Vote * refactored multisig to use VoteLib. feature complete. Builds * cleanup * wip migrating MultiSig implementations * WIP standalone * refactored standalone poll as own module. builds. * naming and documentation * docs * cleanup new multisig implementation * remove deprecated multisig, builds * refactored payment multisig * rename VoteLib module to Ballot * turnouttally type refactored. * make votereceipt a separate module * docs * refactor binary tally to be stateless. Make a separate stateful simple turnkey contract. * refactor DonorDirectedGovernance. builds * refactored donor directed governance. apis fixed. builds * WIP refactoring votelib tests * vote_lib tests passing. * refactor searching by ballot data * multisig tests passing * wip community wallet tests * wip * refactor donordirected structs, names. builds * clean up traits in multisig * patch test * WIP tests * fix issues with donation and receipt tracking. * community transfer tx script passing. * test payment to non-slow passing. * patched diem_account tests * patch burn deposit index * patch burn ratios * added unit tests for burn * burn tests passing * refactor autopay to respect transfer limits * patch and add autopay tests. passing. * all tests passing
- Loading branch information
1 parent
248002e
commit cd2bac0
Showing
221 changed files
with
17,625 additions
and
3,271 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
+200 Bytes
...tifacts/current/build/DPNFramework/abis/CommunityWallet/add_signer_community_multisig.abi
Binary file not shown.
Binary file added
BIN
+389 Bytes
...ses/artifacts/current/build/DPNFramework/abis/CommunityWallet/init_community_multisig.abi
Binary file not shown.
Binary file modified
BIN
+18 Bytes
(120%)
...DPN/releases/artifacts/current/build/DPNFramework/abis/ol_transfer/community_transfer.abi
Binary file not shown.
Binary file modified
BIN
+65 Bytes
(110%)
...ork/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/AccountFreezing.mv
Binary file not shown.
Binary file modified
BIN
+341 Bytes
(130%)
...-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Ancestry.mv
Binary file not shown.
Binary file modified
BIN
+9 Bytes
(100%)
...m-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/AutoPay.mv
Binary file not shown.
Binary file added
BIN
+2.13 KB
...em-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Ballot.mv
Binary file not shown.
Binary file added
BIN
+2.19 KB
...amework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/BinaryTally.mv
Binary file not shown.
Binary file modified
BIN
+11 Bytes
(100%)
...diem-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Burn.mv
Binary file not shown.
Binary file added
BIN
+1.29 KB
...ork/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/CommunityWallet.mv
Binary file not shown.
Binary file modified
BIN
-436 Bytes
(97%)
...amework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/DiemAccount.mv
Binary file not shown.
Binary file added
BIN
+4.09 KB
...ework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/DonorDirected.mv
Binary file not shown.
Binary file added
BIN
+1.57 KB
...releases/artifacts/current/build/DPNFramework/bytecode_modules/DonorDirectedGovernance.mv
Binary file not shown.
Binary file modified
BIN
+95 Bytes
(100%)
...ework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/EpochBoundary.mv
Binary file not shown.
Binary file modified
BIN
+63 Bytes
(100%)
...m-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Genesis.mv
Binary file not shown.
Binary file added
BIN
+5.14 KB
...-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/MultiSig.mv
Binary file not shown.
Binary file added
BIN
+1.87 KB
...ork/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/MultiSigPayment.mv
Binary file not shown.
Binary file modified
BIN
-66 Bytes
(99%)
...ramework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TowerState.mv
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...ork/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TransferScripts.mv
Binary file not shown.
Binary file added
BIN
+1.08 KB
...k/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TurnkeyBinaryPoll.mv
Binary file not shown.
Binary file added
BIN
+2.57 KB
...mework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TurnoutTally.mv
Binary file not shown.
Binary file added
BIN
+990 Bytes
...rk/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/TurnoutTallyDemo.mv
Binary file not shown.
Binary file added
BIN
+852 Bytes
...amework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/VoteReceipt.mv
Binary file not shown.
Binary file removed
BIN
-3.01 KB
...em-framework/DPN/releases/artifacts/current/build/DPNFramework/bytecode_modules/Wallet.mv
Binary file not shown.
Binary file modified
BIN
+18 Bytes
(110%)
...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
Oops, something went wrong.