-
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.
fix: Added modifications on contract headers (#33)
* fix: Added modifications on contract headers * fix: moved docs to readme
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,21 @@ | ||
# BGD Labs Solidity utils | ||
|
||
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]> | ||
- 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 | ||
- Modifications consist on: | ||
- removal of named returns | ||
- changed name of getDeployed for predictAddress | ||
- usage of create3 lib by Agustin Aguilar instead of solmate |
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