-
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
14 changed files
with
141 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ out/ | |
.env | ||
broadcast | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
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
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 | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
300c6cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔮 Coverage report
19, 20
OwnableWithGuardian.onlyOwnerOrGuardian
62, 63
Create3.create3
38, 39, 41, 42
TransparentProxyFactoryBase.createProxyAdmin
300c6cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.
300c6cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌈 Test Results
300c6cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌈 Test Results zksync