-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
66 additions
and
86 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lib | ||
broadcast | ||
cache | ||
out | ||
node_modules | ||
zkout |
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 |
---|---|---|
|
@@ -2,19 +2,20 @@ | |
|
||
Common contracts we use almost everywhere | ||
|
||
|
||
## Create3 | ||
|
||
Contracts to deploy a Create3 Factory which so that contract addresses can be predicted without influence from | ||
constructor arguments. | ||
|
||
These contracts where modified from: | ||
|
||
- Create3 lib: | ||
Modified from https://github.com/0xsequence/create3/blob/5a4a152e6be4e0ecfbbbe546992a5aaa43a4c1b0/contracts/Create3.sol by Agustin Aguilar <[email protected]> | ||
Modified from https://github.com/0xsequence/create3/blob/5a4a152e6be4e0ecfbbbe546992a5aaa43a4c1b0/contracts/Create3.sol by Agustin Aguilar <[email protected]> | ||
- Modifications consist on: | ||
- removal of named returns | ||
- moved logic of addressOf method to addressOfWithPreDeployedFactory so that factory address can be abstracted | ||
- Create3Factory: | ||
Modified from https://github.com/lifinance/create3-factory/blob/main/src/CREATE3Factory.sol | ||
Modified from https://github.com/lifinance/create3-factory/blob/main/src/CREATE3Factory.sol | ||
- Modifications consist on: | ||
- removal of named returns | ||
- changed name of getDeployed for predictAddress | ||
|
@@ -29,7 +30,9 @@ as expected. | |
- Tests specific for ZkSync network can be found [here](test-zksync) | ||
|
||
To build and test the contracts use `FOUNDRY_PROFILE=zksync` and the flag `--zksync` | ||
|
||
- Example: | ||
|
||
```solidity | ||
FOUNDRY_PROFILE=zksync forge test -vvv --zksync | ||
``` |
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