UNPKG

@0xged/hardhat-deploy

Version:

Hardhat Plugin For Replicable Deployments And Tests

735 lines 100 kB
{ "contractName": "OwnershipFacet", "sourceName": "solc_0.8/diamond/facets/OwnershipFacet.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "owner_", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b506102d6806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80638da5cb5b1461003b578063f2fde38b1461006c575b600080fd5b610043610081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007f61007a366004610263565b6100c6565b005b60006100c17fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c13205473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b6100ce6100da565b6100d7816101a9565b50565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6004015473ffffffffffffffffffffffffffffffffffffffff1633146101a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4c69624469616d6f6e643a204d75737420626520636f6e7472616374206f776e60448201527f6572000000000000000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff8481169182179093556040517fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60006020828403121561027557600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461029957600080fd5b939250505056fea2646970667358221220a9616a828975b8bb9adebff6bc35d6f8701d77d91b887d4901827bd22fe268c664736f6c634300080a0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80638da5cb5b1461003b578063f2fde38b1461006c575b600080fd5b610043610081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007f61007a366004610263565b6100c6565b005b60006100c17fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c13205473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b6100ce6100da565b6100d7816101a9565b50565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6004015473ffffffffffffffffffffffffffffffffffffffff1633146101a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4c69624469616d6f6e643a204d75737420626520636f6e7472616374206f776e60448201527f6572000000000000000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff8481169182179093556040517fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60006020828403121561027557600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461029957600080fd5b939250505056fea2646970667358221220a9616a828975b8bb9adebff6bc35d6f8701d77d91b887d4901827bd22fe268c664736f6c634300080a0033", "linkReferences": {}, "deployedLinkReferences": {}, "devdoc": { "kind": "dev", "methods": { "owner()": { "returns": { "owner_": "The address of the owner." } }, "transferOwnership(address)": { "details": "Set _newOwner to address(0) to renounce any ownership.", "params": { "_newOwner": "The address of the new owner of the contract" } } }, "version": 1 }, "evm": { "bytecode": { "functionDebugData": {}, "generatedSources": [], "linkReferences": {}, "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x2D6 DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x36 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x3B JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x6C JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x43 PUSH2 0x81 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x7F PUSH2 0x7A CALLDATASIZE PUSH1 0x4 PUSH2 0x263 JUMP JUMPDEST PUSH2 0xC6 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 PUSH2 0xC1 PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C1320 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0xCE PUSH2 0xDA JUMP JUMPDEST PUSH2 0xD7 DUP2 PUSH2 0x1A9 JUMP JUMPDEST POP JUMP JUMPDEST PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131C PUSH1 0x4 ADD SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ PUSH2 0x1A7 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x22 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4C69624469616D6F6E643A204D75737420626520636F6E7472616374206F776E PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x6572000000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C1320 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 DUP2 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP4 SSTORE PUSH1 0x40 MLOAD PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131C SWAP4 SWAP1 SWAP3 AND SWAP2 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x275 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x299 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xA9 PUSH2 0x6A82 DUP10 PUSH22 0xB8BB9ADEBFF6BC35D6F8701D77D91B887D4901827BD2 0x2F 0xE2 PUSH9 0xC664736F6C63430008 EXP STOP CALLER ", "sourceMap": "169:330:5:-:0;;;;;;;;;;;;;;;;;;;" }, "deployedBytecode": { "functionDebugData": { "@contractOwner_855": { "entryPoint": null, "id": 855, "parameterSlots": 0, "returnSlots": 1 }, "@diamondStorage_809": { "entryPoint": null, "id": 809, "parameterSlots": 0, "returnSlots": 1 }, "@enforceIsContractOwner_869": { "entryPoint": 218, "id": 869, "parameterSlots": 0, "returnSlots": 0 }, "@owner_559": { "entryPoint": 129, "id": 559, "parameterSlots": 0, "returnSlots": 1 }, "@setContractOwner_843": { "entryPoint": 425, "id": 843, "parameterSlots": 1, "returnSlots": 0 }, "@transferOwnership_546": { "entryPoint": 198, "id": 546, "parameterSlots": 1, "returnSlots": 0 }, "abi_decode_tuple_t_address": { "entryPoint": 611, "id": null, "parameterSlots": 2, "returnSlots": 1 }, "abi_encode_tuple_t_address__to_t_address__fromStack_reversed": { "entryPoint": null, "id": null, "parameterSlots": 2, "returnSlots": 1 }, "abi_encode_tuple_t_stringliteral_0d4ae41009c51fd276653a54d7793c24f266ddc8c56ce21f8be5e2c6595ab3ac__to_t_string_memory_ptr__fromStack_reversed": { "entryPoint": null, "id": null, "parameterSlots": 1, "returnSlots": 1 } }, "generatedSources": [ { "ast": { "nodeType": "YulBlock", "src": "0:959:12", "statements": [ { "nodeType": "YulBlock", "src": "6:3:12", "statements": [] }, { "body": { "nodeType": "YulBlock", "src": "115:125:12", "statements": [ { "nodeType": "YulAssignment", "src": "125:26:12", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "137:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "148:2:12", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "133:3:12" }, "nodeType": "YulFunctionCall", "src": "133:18:12" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "125:4:12" } ] }, { "expression": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "167:9:12" }, { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "182:6:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "190:42:12", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffff" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "178:3:12" }, "nodeType": "YulFunctionCall", "src": "178:55:12" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "160:6:12" }, "nodeType": "YulFunctionCall", "src": "160:74:12" }, "nodeType": "YulExpressionStatement", "src": "160:74:12" } ] }, "name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "84:9:12", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "95:6:12", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "106:4:12", "type": "" } ], "src": "14:226:12" }, { "body": { "nodeType": "YulBlock", "src": "315:239:12", "statements": [ { "body": { "nodeType": "YulBlock", "src": "361:16:12", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "370:1:12", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "373:1:12", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "363:6:12" }, "nodeType": "YulFunctionCall", "src": "363:12:12" }, "nodeType": "YulExpressionStatement", "src": "363:12:12" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "336:7:12" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "345:9:12" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "332:3:12" }, "nodeType": "YulFunctionCall", "src": "332:23:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "357:2:12", "type": "", "value": "32" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "328:3:12" }, "nodeType": "YulFunctionCall", "src": "328:32:12" }, "nodeType": "YulIf", "src": "325:52:12" }, { "nodeType": "YulVariableDeclaration", "src": "386:36:12", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "412:9:12" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "399:12:12" }, "nodeType": "YulFunctionCall", "src": "399:23:12" }, "variables": [ { "name": "value", "nodeType": "YulTypedName", "src": "390:5:12", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "508:16:12", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "517:1:12", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "520:1:12", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "510:6:12" }, "nodeType": "YulFunctionCall", "src": "510:12:12" }, "nodeType": "YulExpressionStatement", "src": "510:12:12" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "444:5:12" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "455:5:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "462:42:12", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffff" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "451:3:12" }, "nodeType": "YulFunctionCall", "src": "451:54:12" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "441:2:12" }, "nodeType": "YulFunctionCall", "src": "441:65:12" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "434:6:12" }, "nodeType": "YulFunctionCall", "src": "434:73:12" }, "nodeType": "YulIf", "src": "431:93:12" }, { "nodeType": "YulAssignment", "src": "533:15:12", "value": { "name": "value", "nodeType": "YulIdentifier", "src": "543:5:12" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "533:6:12" } ] } ] }, "name": "abi_decode_tuple_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "281:9:12", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "292:7:12", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "304:6:12", "type": "" } ], "src": "245:309:12" }, { "body": { "nodeType": "YulBlock", "src": "733:224:12", "statements": [ { "expression": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "750:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "761:2:12", "type": "", "value": "32" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "743:6:12" }, "nodeType": "YulFunctionCall", "src": "743:21:12" }, "nodeType": "YulExpressionStatement", "src": "743:21:12" }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "784:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "795:2:12", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "780:3:12" }, "nodeType": "YulFunctionCall", "src": "780:18:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "800:2:12", "type": "", "value": "34" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "773:6:12" }, "nodeType": "YulFunctionCall", "src": "773:30:12" }, "nodeType": "YulExpressionStatement", "src": "773:30:12" }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "823:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "834:2:12", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "819:3:12" }, "nodeType": "YulFunctionCall", "src": "819:18:12" }, { "hexValue": "4c69624469616d6f6e643a204d75737420626520636f6e7472616374206f776e", "kind": "string", "nodeType": "YulLiteral", "src": "839:34:12", "type": "", "value": "LibDiamond: Must be contract own" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "812:6:12" }, "nodeType": "YulFunctionCall", "src": "812:62:12" }, "nodeType": "YulExpressionStatement", "src": "812:62:12" }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "894:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "905:2:12", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "890:3:12" }, "nodeType": "YulFunctionCall", "src": "890:18:12" }, { "hexValue": "6572", "kind": "string", "nodeType": "YulLiteral", "src": "910:4:12", "type": "", "value": "er" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "883:6:12" }, "nodeType": "YulFunctionCall", "src": "883:32:12" }, "nodeType": "YulExpressionStatement", "src": "883:32:12" }, { "nodeType": "YulAssignment", "src": "924:27:12", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "936:9:12" }, { "kind": "number", "nodeType": "YulLiteral", "src": "947:3:12", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "932:3:12" }, "nodeType": "YulFunctionCall", "src": "932:19:12" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "924:4:12" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_0d4ae41009c51fd276653a54d7793c24f266ddc8c56ce21f8be5e2c6595ab3ac__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "710:9:12", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "724:4:12", "type": "" } ], "src": "559:398:12" } ] }, "contents": "{\n { }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, 0xffffffffffffffffffffffffffffffffffffffff))\n }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n value0 := value\n }\n function abi_encode_tuple_t_stringliteral_0d4ae41009c51fd276653a54d7793c24f266ddc8c56ce21f8be5e2c6595ab3ac__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 34)\n mstore(add(headStart, 64), \"LibDiamond: Must be contract own\")\n mstore(add(headStart, 96), \"er\")\n tail := add(headStart, 128)\n }\n}", "id": 12, "language": "Yul", "name": "#utility.yul" } ], "immutableReferences"