From 43cbda75c3f105d7aa91781596a40237c8cf6329 Mon Sep 17 00:00:00 2001 From: sendra Date: Wed, 12 Jun 2024 12:49:43 +0200 Subject: [PATCH] fix: Added modifications on contract headers (#33) * fix: Added modifications on contract headers * fix: moved docs to readme --- README.md | 18 ++++++++++++++++++ src/contracts/create3/Create3Factory.sol | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6956da0..e77719e 100644 --- a/README.md +++ b/README.md @@ -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 + - 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 diff --git a/src/contracts/create3/Create3Factory.sol b/src/contracts/create3/Create3Factory.sol index da57c8d..1f37623 100644 --- a/src/contracts/create3/Create3Factory.sol +++ b/src/contracts/create3/Create3Factory.sol @@ -3,7 +3,6 @@ pragma solidity ^0.8.0; import {Create3} from './Create3.sol'; -import {Ownable} from '../oz-common/Ownable.sol'; import {ICreate3Factory} from './interfaces/ICreate3Factory.sol'; /**