108 lines
5.2 KiB
JSON
108 lines
5.2 KiB
JSON
{
|
|
"_format": "hh-sol-artifact-1",
|
|
"contractName": "CREATE2Factory",
|
|
"sourceName": "contracts/utils/CREATE2Factory.sol",
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "addr",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "salt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Deployed",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "bytecode",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "salt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "computeAddress",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "addr",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "deployer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "bytecode",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "salt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "computeAddressWithDeployer",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "addr",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "bytecode",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "salt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "deploy",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "addr",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"bytecode": "0x6080806040523461001657610300908161001c8239f35b600080fdfe6080604052600436101561001257600080fd5b6000803560e01c90816330a956f11461004a5750806381176c201461004557639c4ae2d01461004057600080fd5b610267565b6101e7565b34610115576060366003190112610115576001600160a01b036004358181168103610118576024359267ffffffffffffffff841161011557506100e66100f461009a610111953690600401610159565b80516020918201206040516001600160f81b031992810192835260609590951b6bffffffffffffffffffffffff1916602186015260443560358601526055850152929182906075820190565b03601f198101835282610132565b51902060405191166001600160a01b031681529081906020820190565b0390f35b80fd5b8280fd5b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761015457604052565b61011c565b81601f820112156101b05780359067ffffffffffffffff8211610154576040519261018e601f8401601f191660200185610132565b828452602083830101116101b057816000926020809301838601378301015290565b600080fd5b60406003198201126101b0576004359067ffffffffffffffff82116101b0576101e091600401610159565b9060243590565b346101b05760206102436102516101fd366101b5565b9190848151910120604051938491868301943086916055939160ff60f81b84526bffffffffffffffffffffffff199060601b166001840152601583015260358201520190565b03601f198101845283610132565b905190206040516001600160a01b039091168152f35b346101b057610275366101b5565b81602082935191016000f590813b156101b0577fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e1604060209381519060018060a01b03169384825285820152a1604051908152f3fea2646970667358221220f5d09f6636d0bb7ebc09394a50615d768fb09c26ff9193abcbab0f4cd87eb6e964736f6c63430008160033",
|
|
"deployedBytecode": "0x6080604052600436101561001257600080fd5b6000803560e01c90816330a956f11461004a5750806381176c201461004557639c4ae2d01461004057600080fd5b610267565b6101e7565b34610115576060366003190112610115576001600160a01b036004358181168103610118576024359267ffffffffffffffff841161011557506100e66100f461009a610111953690600401610159565b80516020918201206040516001600160f81b031992810192835260609590951b6bffffffffffffffffffffffff1916602186015260443560358601526055850152929182906075820190565b03601f198101835282610132565b51902060405191166001600160a01b031681529081906020820190565b0390f35b80fd5b8280fd5b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761015457604052565b61011c565b81601f820112156101b05780359067ffffffffffffffff8211610154576040519261018e601f8401601f191660200185610132565b828452602083830101116101b057816000926020809301838601378301015290565b600080fd5b60406003198201126101b0576004359067ffffffffffffffff82116101b0576101e091600401610159565b9060243590565b346101b05760206102436102516101fd366101b5565b9190848151910120604051938491868301943086916055939160ff60f81b84526bffffffffffffffffffffffff199060601b166001840152601583015260358201520190565b03601f198101845283610132565b905190206040516001600160a01b039091168152f35b346101b057610275366101b5565b81602082935191016000f590813b156101b0577fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e1604060209381519060018060a01b03169384825285820152a1604051908152f3fea2646970667358221220f5d09f6636d0bb7ebc09394a50615d768fb09c26ff9193abcbab0f4cd87eb6e964736f6c63430008160033",
|
|
"linkReferences": {},
|
|
"deployedLinkReferences": {}
|
|
}
|