Technical Reference
SolidityCreate2Factory
Source Revision 0x10af6d5e…df3149
| Property | Value |
|---|---|
| Source Revision | 0x10af6d5e64429d807fe55eaa19fa4878e5d840f9be41503cfdb983b7d6df3149 |
| Source URL | https://raw.githubusercontent.com/busytoby/atropa_pulsechain/8da1e650f7efb81f62bbfe0fdeafdaa5c2491396/solidity/dysnomia/SolidityCreate2Factory.sol |
| Source commit | 8da1e650f7efb81f62bbfe0fdeafdaa5c2491396 |
| Source Status | Source snapshot; source hashes do not establish deployed bytecode equivalence. |
| Compiler | solc 0.8.21; optimizer enabled with 200 runs |
| Compiler Configuration | {"evmVersion":"compiler-default","optimizer":{"enabled":true,"runs":200},"version":"0.8.21+commit.d9974bed.Linux.g++"} |
| Compilation Closure Hash | 0x1d5c53a3cfc05b60cffde1d9fdab3bcd31a0239605b73f7bc1fca110379d36b4 |
| Compilation Closure Files | 1 |
| Hash Generated | 2026-09-17T19:13:18.438739+00:00 |
Overview
Section titled “Overview”Deploys contracts at deterministic CREATE2 addresses and computes their expected addresses from creation bytecode and salt.
- Kind: Contract
- License: Sharia
- Solidity: ^0.8.21
- Source:
SolidityCreate2Factory.sol
Contract addressNot currently resolved
Inheritance Chain (C3 Linearized)
Section titled “Inheritance Chain (C3 Linearized)”No base contracts; this contract has no parents.
Immediate Parents
Section titled “Immediate Parents”None (root of its hierarchy).
Events
Section titled “Events”| Event | Parameters | Anonymous | NatSpec |
|---|---|---|---|
ContractDeployed |
address indexed contractAddress, bytes32 indexed salt, bytes32 indexed bytecodeHash | no |
Constructor
Section titled “Constructor”constructor
Section titled “constructor”constructorconstructor
constructor()Functions
Section titled “Functions”External & Public
Section titled “External & Public”deploy
Section titled “deploy”deployfunction
function deploy(bytes memory bytecode, bytes32 salt) public payable returns (address deployedAddress)A callable deployment has not been resolved for this reference.
- Visibility: public
- State Mutability: payable
- Parameters: bytes memory bytecode, bytes32 salt
- Returns: address deployedAddress
- Dev Note: Deploys a contract using CREATE2.
computeAddress
Section titled “computeAddress”computeAddressfunction
function computeAddress(bytes memory bytecode, bytes32 salt) public view returns (address)A callable deployment has not been resolved for this reference.
- Visibility: public
- State Mutability: view
- Parameters: bytes memory bytecode, bytes32 salt
- Returns: address
- Dev Note: Computes the deterministic address for a deployment.
Compiled ABI
Section titled “Compiled ABI”The compiled ABI below is produced by solc 0.8.21 from the exact source bytes recorded in Source details. Consumers can paste it directly into ethers/web3/viem.
Click to expand JSON ABI
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "contractAddress", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "bytecodeHash", "type": "bytes32" } ], "name": "ContractDeployed", "type": "event" }, { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" } ], "name": "computeAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" } ], "name": "deploy", "outputs": [ { "internalType": "address", "name": "deployedAddress", "type": "address" } ], "stateMutability": "payable", "type": "function" }]