forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Protection against front-running and reentrancy Adding reentrancy guard on `activateExodusMode()`. Checking the length of block and proof.commitments in `proveBlocks(...)` * Protection against reentrancy attack Adding reentrancy guard on all external functions that write to storage. * Update ZkSync.sol Protection against duplicated proved blocks. * Update ZkSync.sol Adding a comment for front-running protection. * Update ZkSync.sol Gas Optimization * protection against griefing attack So, the server can check it's value before adding the `changePubKey` to the block (to protect against griefing attack). * Update AdditionalZkSyncCutNoticePeriodUnitTest.sol Initializing reentrancy guard. * immunefi bugs * removing complete withdrawals * removing complete withdrawals * removing complete withdrawals * Add server protection of block invalidation * Try to fix unit tests * Restore tests * Try to find workaround * Fix unit tests * gas optimization * gas optimization & change governor check * increasing the code readability * solving the mistake * fixing the logic break due to gas optimization * Update contracts/contracts/ZkSync.sol Co-authored-by: Igor Aleksanov <[email protected]> * cross-domain attck protection * domain-typehash changed * new change pubkey for cross-domain protection * removing extra spaces * adding test for changePubKey type EIP712 * name struct with a capital letter * prove blocks unit test + memory to calldata + adding length check to proveBlocks function * removing the redundant function * Fix ci Signed-off-by: deniallugo <[email protected]> * Update ZkSync.sol Changing the require message to be unique from "r" to "o3". * updating the front-running protection removing the proof.commitments[] length check. * Adding comment Adding comment to the require in `proveBlocks` function * Fix comment * Add primitives Signed-off-by: deniallugo <[email protected]> * Implement change pubkey eip712 Signed-off-by: deniallugo <[email protected]> * Use eip712 change pub key in zksync-rs Signed-off-by: deniallugo <[email protected]> * Add test Signed-off-by: deniallugo <[email protected]> * Deploy Signed-off-by: deniallugo <[email protected]> * Fix Signed-off-by: deniallugo <[email protected]> * Add eip712 to js sdk Signed-off-by: deniallugo <[email protected]> * Some refactoring Signed-off-by: deniallugo <[email protected]> * Add check eth witness generation Signed-off-by: deniallugo <[email protected]> * Fix sdk Signed-off-by: deniallugo <[email protected]> * Fix eth witness generation Signed-off-by: deniallugo <[email protected]> * Fix types Signed-off-by: deniallugo <[email protected]> * Remove strict node js Signed-off-by: deniallugo <[email protected]> * Fix ecdsa signatures Signed-off-by: deniallugo <[email protected]> * Add assertion for const generic size Signed-off-by: deniallugo <[email protected]> * Use u32 for chain id Signed-off-by: deniallugo <[email protected]> * Fix comment about costs for change pub key Signed-off-by: deniallugo <[email protected]> * Fix some nits Signed-off-by: deniallugo <[email protected]> * Change name of deprecated change pub key method Signed-off-by: deniallugo <[email protected]> * Smart contracts v9 (last changes before upgrade) (#2285) * Add event for different type of withdrawals * Fix bug from compiler side * Add owner field into withdraw event * Fix networks Signed-off-by: deniallugo <[email protected]> Signed-off-by: deniallugo <[email protected]> Co-authored-by: deniallugo <[email protected]> * Fix typos * Add a changelog * Small fix * Add missing point * Add info about changed event signature * Merge (#2295) * Remove sepolia (#2291) Signed-off-by: deniallugo <[email protected]> Signed-off-by: deniallugo <[email protected]> * Add correct pagination for transaction history query Signed-off-by: deniallugo <[email protected]> * Fix transactions_history_item_old Signed-off-by: deniallugo <[email protected]> * Fix tests but a lot of cludges Signed-off-by: deniallugo <[email protected]> * Fix test Signed-off-by: deniallugo <[email protected]> Signed-off-by: deniallugo <[email protected]> Co-authored-by: bors-matterlabs-dev[bot] <76108001+bors-matterlabs-dev[bot]@users.noreply.github.com> Signed-off-by: deniallugo <[email protected]> Co-authored-by: miladpiri <[email protected]> Co-authored-by: miladpiri <[email protected]> Co-authored-by: Vladyslav-Bochok <[email protected]> Co-authored-by: Vlad Bochok <[email protected]> Co-authored-by: Igor Aleksanov <[email protected]> Co-authored-by: bors-matterlabs-dev[bot] <76108001+bors-matterlabs-dev[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6cf1c09
commit 0bf5cd6
Showing
92 changed files
with
1,870 additions
and
390 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- dev | ||
- hotfix/* | ||
- breaking | ||
tags: | ||
- hotfix-* | ||
|
||
|
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
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
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.