Verified contractPartialMIT
Create2Deployer
Address0xdeeea27c652346e21cc1265020a7683fedfa36be
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,242,353
- Creation transaction
- 0x5821fd6892…2b814f824a
src/base/Create2Deployer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
/// @notice Tiny CREATE2 deployer so hook-address mining doesn't depend on a
/// chain having the canonical 0x4e59... deployer. Deployed once per chain.
contract Create2Deployer {
event Deployed(address addr, bytes32 salt);
function deploy(bytes32 salt, bytes memory initCode) external returns (address addr) {
assembly {
addr := create2(0, add(initCode, 0x20), mload(initCode), salt)
}
require(addr != address(0), "create2 failed");
emit Deployed(addr, salt);
}
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"forge-std/=lib/forge-std/src/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@uniswap/v4-core/=lib/v4-core/",
"v4-core/=lib/v4-core/",
"solmate/=lib/v4-core/lib/solmate/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.