This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multi proposal accusation (#16)
* wip * dapp install ds-auth * dapp install ds-math * dapp install ds-stop * dapp install ds-test * dapp install ds-token * Updated for Solidity 0.6.x * Removed misplaced contract * Snapshot facet with tests * Develop (#2) * dapp install ds-auth * dapp install ds-math * dapp install ds-stop * dapp install ds-test * dapp install ds-token * Updated for Solidity 0.6.x * Updated to Solidity 0.7.4 * Updated to Solidity 0.7.x and added AccessControl * Updates for events * Rebuilding Staking contract. * Added staking to validators diamond along with shared storage. * Changed type in assert to appease linter * Removed commented code * Removed commented code * Add ownerOrOperator modifier for access control * Added currentEpoch methods to staking for compatibility. * Removed commented code. Added participants modifier for snapshots. * Recompiled and generated bindings. * Restricted facet for diamond maintenance * wip * Added admin functions to interface * Added missing majorFine()/minorFine() * wip * Adding migration contracts/facets * Moved event definitions * ETHDKG migrator + test * Fixed loop index for members * Switch from a manual call() to a cast * Added snapshot failure test for bad signature * Added test for migration of snapshot * Added staking test case * Create constant for minimum stake. Added testing for immediately adding/removing validator * Turned off test tracing and generated bindings * Put the owner only requirement back * Regenerated bindings * Renamed overloaded function deposit() to depositFor() * Minor style updates to match recommendations * Feature complete ETHDKG replacement with diamond pattern * Complete unit tests * Put missing access controls back * Finished splitting ETHDKG * Added restart of ETHDKG if final completion detects issue * Made validator queueing consistently require staking. Restored snapshot rewards. * Phase length admin exposed * Consolidated EthDKG constants into Library. Updated abicoder to v2. * Removed commented code. * Renamed utility token * Brought over TODOs from Chris * latest * wip * mod tidy * wip * wip * wip * go mod tidy * Regenerated bindings * Add initial README with installation instructions * wip * wip * wip * WIP implementation of parser for base types and RClaim programmed with @vtleonardo * Change the file structure of the parsers * Change the file structure of the parsers * Optimized bytes extraction with assembly - The first implementation of `BaseParserLibrary.extract_bytes` used ~14035 gas, while this assembly implementation only uses ~7828 - Added more utility functions to BaseParserLibrary - Added test to extract_rclaims - Fixed tests to have `actual` and `expected` vars as the correct argument to asserts - Added docs * Add the base for the other parser contracts * Clean up the tests * Remove Parsers that will be added in a later PR * Push missing files * Clean makefile * Implemented extract_bytes32 - Added implementation of extract_bytes32 (~439 gas) - Changed RClaimsParserLibrary.Rclaims.prevBlock from bytes to bytes32 - Added require() guards - Added tests to reverse, extract_bytes and extract_bytes32 * Refactor code to use name convection * Add RCerts partial implementation * Refactor and clean up the code * WIP implementation of parser for base types and RClaim programmed with @vtleonardo * Change the file structure of the parsers * Optimized bytes extraction with assembly - The first implementation of `BaseParserLibrary.extract_bytes` used ~14035 gas, while this assembly implementation only uses ~7828 - Added more utility functions to BaseParserLibrary - Added test to extract_rclaims - Fixed tests to have `actual` and `expected` vars as the correct argument to asserts - Added docs Change the file structure of the parsers Add the base for the other parser contracts * Clean up the tests * Remove Parsers that will be added in a later PR * Push missing files * Clean makefile * Implemented extract_bytes32 - Added implementation of extract_bytes32 (~439 gas) - Changed RClaimsParserLibrary.Rclaims.prevBlock from bytes to bytes32 - Added require() guards - Added tests to reverse, extract_bytes and extract_bytes32 * Refactor code to use name convection * Add RCerts partial implementation * Refactor and clean up the code * Refactor the tests * Build a new dapp.sol.json to exclude unit test contracts * Fix Typo with RClaims * Fix more typos * Docs Added docs to BaseParserLibrary functions * Add PClaims and BClaims parsers * Restore BaseParser file that got wrong due to merge conflicts * Add initial logic for the multi proposal accusation * Fix conflicts with bridge and dapp.sol.json * Fix conflicts with bridge and dapp.sol.json * Add the logic to retrieve the madnet signatures * Add new bindings after merge conflict * Make all test pass * FInished implementation of AccusationMuleipleProposal * Merge latest main * Clean up the code * Update src/facets/AccusationMultipleProposalFacet.sol Co-authored-by: anthony <[email protected]> Co-authored-by: anthony <[email protected]> Co-authored-by: Ricardo Pinto <[email protected]> Co-authored-by: Leonardo Viana <[email protected]>
- Loading branch information