-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gasless flow Permit2Proxy (v1.0.0) [Permit2Proxy v1.0.0] (#782)
* Add Permit2Proxy * Add Permit2Proxy * forge install: Permit2 * Get basic test working... * Add more basic tests * Remove superfluous receiver param * Add utility method for getting a valid and working msgHash to sign * Change name to be more specific * Add Permit "v1" functionality * Add Permit "v1" tests * Add missing comments * Flesh out demo script * Finish demo script * Cleanup and comments * Fix log * Remove extra files * Remove extra remapping * Remove unneeded lib * Add official Permit2 addresses * Allow only signer to call using EIP2612 * Bind Permit2Proxy to a single diamond * Update deploy script * Implement non-gasless Permit2 flow * Redeploy to staging and update demo script * Update comments and remove unneeded events/errors * Add utility methods for determining the next valid nonce * Redeploy and update demo script * Add documentation * Fixes * Change witness type to be consistent with the rest of the codebase * Remove unneeded whitelist * Fixes * Fixes * Boost test coverage * More fixes * More fixes * removes unused imports (audit issue#2) * adds WithdrawablePeriphery base contract to token withdrawals * audit report added * Update src/Periphery/Permit2Proxy.sol Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/Periphery/Permit2Proxy.sol Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * rename test file to match naming convention * adds WithdrawablePeriphery base contract for token withdrawals * fix test * adds version tag to contract * target state updated * deploy script fixed * deployed to PROD (arb, opt, pol) * fix test * Update Witness Type Hash to match convention * Deploy update to staging * update audit report (incl fixed typehash issue) * Fix stype string as well * Redeploy to staging * Update Permit2Proxy.t.sol * add demo for permit2 flow without witness * clean permit2 generation * simplify signature generation * remove old openzeppelin lib * forge install: openzeppelin-contracts v4.9.2 * update audit log and report * target state updated * deployed to various PROD networks (excl zksync) * verified Permit2Proxy on base * deploy to zksync * diamond logs updated * bugfix in fixAuditLabel action * fix logs * fix test --------- Co-authored-by: Daniel Bläcker <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Max Klenk <[email protected]>
- Loading branch information
1 parent
383a52e
commit 7edab5f
Showing
70 changed files
with
2,254 additions
and
308 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"mainnet": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"arbitrum": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"aurora": "", | ||
"avalanche": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"base": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"blast": "0x000000000022d473030f116ddee9f6b43ac78ba3", | ||
"boba": "", | ||
"bsc": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"celo": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"fantom": "", | ||
"fraxtal": "", | ||
"fuse": "", | ||
"gnosis": "", | ||
"gravity": "", | ||
"immutablezkevm": "", | ||
"linea": "", | ||
"mantle": "", | ||
"metis": "", | ||
"mode": "", | ||
"moonbeam": "", | ||
"moonriver": "", | ||
"optimism": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"polygon": "0x000000000022D473030F116dDEE9F6B43aC78BA3", | ||
"polygonzkevm": "", | ||
"rootstock": "", | ||
"scroll": "", | ||
"sei": "", | ||
"taiko": "", | ||
"zksync": "0x0000000000225e31d15943971f47ad3022f714fa" | ||
} |
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.