A Solidity library for deploying upgradeable proxies using the CREATE3 pattern, enabling deterministic addresses across different chains without relying on nonces or code.
CREATE3 Proxy combines the power of CREATE3 for deterministic contract deployment with the upgradeability of UUPS (Universal Upgradeable Proxy Standard) proxies. This library allows developers to deploy upgradeable contracts to the same address across multiple networks, simplifying cross-chain development and management.
- Deterministic addresses across different chains
- UUPS (ERC1967) proxy pattern for upgradeability
- Gas-efficient deployment using CREATE3
- Easy-to-use interface for deploying proxies
forge install bandohq/create3-proxy
npm i create3-proxy
yarn add create3-proxy
To use the library in your project, follow these steps:
- Import the library into your contract:
import "create3-proxy/src/CREATE3UUPSProxy.sol";
- Deploy using your implementation contract:
bytes32 salt = keccak256("my_proxy");
bytes memory creationCode = type(MyUUPSContract).creationCode;
bytes memory initializerData = abi.encodeWithSignature("myInitialize(uint256)", initialValue);
address proxy = CREATE3UUPSProxy.deploy(salt, creationCode, initializerData);
We welcome contributions to this library. Please open an issue or submit a pull request. Read more on our contributing guidelines.
We have a code of conduct that we expect all contributors to adhere to.
forge build
forge test