From 838f5b9250f86ea165b556c012524af19d613d0d Mon Sep 17 00:00:00 2001 From: "\"Jordan Loudis\"" <"16jloudis@gmail.com"> Date: Tue, 14 Dec 2021 19:31:42 -0500 Subject: [PATCH 1/3] Fix Tutorials 1 & 2 to work with the latest solidity version - ^0.8.7 --- tutorial-01/myfirstcontract.sol | 26 ++++++----- tutorial-02/myfirstcontract.sol | 79 ++++++++++++++++++++++----------- 2 files changed, 67 insertions(+), 38 deletions(-) diff --git a/tutorial-01/myfirstcontract.sol b/tutorial-01/myfirstcontract.sol index a2ae8b4..4b0e997 100644 --- a/tutorial-01/myfirstcontract.sol +++ b/tutorial-01/myfirstcontract.sol @@ -1,22 +1,24 @@ -pragma solidity ^0.5.0; +// SPDX-License-Identifier: MIT + +pragma solidity ^0.8.7; + +contract myfirstcontract { -contract MyFirstContract { string private name; uint private age; - + + function setName(string memory newName) public { + name = newName; + } - + function getName() public view returns (string memory) { return name; + + } - - function setAge(uint newAge) public { - age = newAge; - } - - function getAge() public view returns (uint) { - return age; - } + + } diff --git a/tutorial-02/myfirstcontract.sol b/tutorial-02/myfirstcontract.sol index f94fce1..5e9445b 100644 --- a/tutorial-02/myfirstcontract.sol +++ b/tutorial-02/myfirstcontract.sol @@ -1,58 +1,85 @@ -pragma solidity ^0.5.0; +// SPDX-License-Identifier: MIT + +pragma solidity ^0.8.7; interface Regulator { function checkValue(uint amount) external returns (bool); function loan() external returns (bool); } -contract Bank is Regulator { - uint private value; - - constructor(uint amount) public { - value = amount; +contract Bank is Regulator{ + + // The internal modifer means that the function + // can only be called within the contract itself and any derived contracts. + // ex. uint internal myInternalValue + + uint private bankValue; + + constructor(uint amount) { + + bankValue = amount; } - + function deposit(uint amount) public { - value += amount; + bankValue += amount; } - - function withdraw(uint amount) public { - if (checkValue(amount)) { - value -= amount; + + function withdrawel(uint amount) public { + + if (checkValue(amount)){ + bankValue -= amount; + } } - + function balance() public view returns (uint) { - return value; + + return bankValue; } - - function checkValue(uint amount) public returns (bool) { - // Classic mistake in the tutorial value should be above the amount - return value >= amount; + + // Override + + function checkValue(uint amount) public override view returns (bool) { + + return bankValue > amount; + } - - function loan() public returns (bool) { - return value > 0; + + function loan() public override view returns (bool) { + + return bankValue > 0; + } + } -contract MyFirstContract is Bank(10) { +contract myfirstcontract is Bank(10) { + + // Opposite of Java - private String firstName; string private name; uint private age; - + + function setName(string memory newName) public { + name = newName; + } - + function getName() public view returns (string memory) { return name; + } - + function setAge(uint newAge) public { age = newAge; } - + function getAge() public view returns (uint) { return age; + } + + + } From c4b834220bcc34ed52914bcbb2abda1be2800aa2 Mon Sep 17 00:00:00 2001 From: "\"Jordan Loudis\"" <"16jloudis@gmail.com"> Date: Tue, 14 Dec 2021 19:36:22 -0500 Subject: [PATCH 2/3] Fix Tutorials 1 & 2 to work with the latest solidity version - ^0.8.7 --- tutorial-02/artifacts/Bank.json | 2245 +++++++++ tutorial-02/artifacts/Bank_metadata.json | 128 + tutorial-02/artifacts/Regulator.json | 90 + tutorial-02/artifacts/Regulator_metadata.json | 78 + tutorial-02/artifacts/myfirstcontract.json | 4339 +++++++++++++++++ .../artifacts/myfirstcontract_metadata.json | 169 + tutorial-02/myfirstcontract.sol | 18 +- 7 files changed, 7056 insertions(+), 11 deletions(-) create mode 100644 tutorial-02/artifacts/Bank.json create mode 100644 tutorial-02/artifacts/Bank_metadata.json create mode 100644 tutorial-02/artifacts/Regulator.json create mode 100644 tutorial-02/artifacts/Regulator_metadata.json create mode 100644 tutorial-02/artifacts/myfirstcontract.json create mode 100644 tutorial-02/artifacts/myfirstcontract_metadata.json diff --git a/tutorial-02/artifacts/Bank.json b/tutorial-02/artifacts/Bank.json new file mode 100644 index 0000000..1be3750 --- /dev/null +++ b/tutorial-02/artifacts/Bank.json @@ -0,0 +1,2245 @@ +{ + "deploy": { + "VM:-": { + "linkReferences": {}, + "autoDeployLib": true + }, + "main:1": { + "linkReferences": {}, + "autoDeployLib": true + }, + "ropsten:3": { + "linkReferences": {}, + "autoDeployLib": true + }, + "rinkeby:4": { + "linkReferences": {}, + "autoDeployLib": true + }, + "kovan:42": { + "linkReferences": {}, + "autoDeployLib": true + }, + "görli:5": { + "linkReferences": {}, + "autoDeployLib": true + }, + "Custom": { + "linkReferences": {}, + "autoDeployLib": true + } + }, + "data": { + "bytecode": { + "functionDebugData": { + "@_28": { + "entryPoint": null, + "id": 28, + "parameterSlots": 1, + "returnSlots": 0 + }, + "abi_decode_t_uint256_fromMemory": { + "entryPoint": 63, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_tuple_t_uint256_fromMemory": { + "entryPoint": 84, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "allocate_unbounded": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "cleanup_t_uint256": { + "entryPoint": 129, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { + "entryPoint": 139, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "validator_revert_t_uint256": { + "entryPoint": 144, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [ + { + "ast": { + "nodeType": "YulBlock", + "src": "0:1048:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "70:80:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "80:22:1", + "value": { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "95:6:1" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "89:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "89:13:1" + }, + "variableNames": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "80:5:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "138:5:1" + } + ], + "functionName": { + "name": "validator_revert_t_uint256", + "nodeType": "YulIdentifier", + "src": "111:26:1" + }, + "nodeType": "YulFunctionCall", + "src": "111:33:1" + }, + "nodeType": "YulExpressionStatement", + "src": "111:33:1" + } + ] + }, + "name": "abi_decode_t_uint256_fromMemory", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "48:6:1", + "type": "" + }, + { + "name": "end", + "nodeType": "YulTypedName", + "src": "56:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "64:5:1", + "type": "" + } + ], + "src": "7:143:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "233:274:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "279:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulIdentifier", + "src": "281:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "281:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "281:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "254:7:1" + }, + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "263:9:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "250:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "250:23:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "275:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "slt", + "nodeType": "YulIdentifier", + "src": "246:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "246:32:1" + }, + "nodeType": "YulIf", + "src": "243:119:1" + }, + { + "nodeType": "YulBlock", + "src": "372:128:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "387:15:1", + "value": { + "kind": "number", + "nodeType": "YulLiteral", + "src": "401:1:1", + "type": "", + "value": "0" + }, + "variables": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "391:6:1", + "type": "" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "416:74:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "462:9:1" + }, + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "473:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "458:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "458:22:1" + }, + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "482:7:1" + } + ], + "functionName": { + "name": "abi_decode_t_uint256_fromMemory", + "nodeType": "YulIdentifier", + "src": "426:31:1" + }, + "nodeType": "YulFunctionCall", + "src": "426:64:1" + }, + "variableNames": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "416:6:1" + } + ] + } + ] + } + ] + }, + "name": "abi_decode_tuple_t_uint256_fromMemory", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "203:9:1", + "type": "" + }, + { + "name": "dataEnd", + "nodeType": "YulTypedName", + "src": "214:7:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "226:6:1", + "type": "" + } + ], + "src": "156:351:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "553:35:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "563:19:1", + "value": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "579:2:1", + "type": "", + "value": "64" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "573:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "573:9:1" + }, + "variableNames": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "563:6:1" + } + ] + } + ] + }, + "name": "allocate_unbounded", + "nodeType": "YulFunctionDefinition", + "returnVariables": [ + { + "name": "memPtr", + "nodeType": "YulTypedName", + "src": "546:6:1", + "type": "" + } + ], + "src": "513:75:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "639:32:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "649:16:1", + "value": { + "name": "value", + "nodeType": "YulIdentifier", + "src": "660:5:1" + }, + "variableNames": [ + { + "name": "cleaned", + "nodeType": "YulIdentifier", + "src": "649:7:1" + } + ] + } + ] + }, + "name": "cleanup_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "621:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "cleaned", + "nodeType": "YulTypedName", + "src": "631:7:1", + "type": "" + } + ], + "src": "594:77:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "766:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "783:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "786:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "776:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "776:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "776:12:1" + } + ] + }, + "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", + "nodeType": "YulFunctionDefinition", + "src": "677:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "889:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "906:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "909:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "899:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "899:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "899:12:1" + } + ] + }, + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulFunctionDefinition", + "src": "800:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "966:79:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "1023:16:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1032:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1035:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "1025:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "1025:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1025:12:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "989:5:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "1014:5:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "996:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "996:24:1" + } + ], + "functionName": { + "name": "eq", + "nodeType": "YulIdentifier", + "src": "986:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "986:35:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "979:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "979:43:1" + }, + "nodeType": "YulIf", + "src": "976:63:1" + } + ] + }, + "name": "validator_revert_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "959:5:1", + "type": "" + } + ], + "src": "923:122:1" + } + ] + }, + "contents": "{\n\n function abi_decode_t_uint256_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", + "id": 1, + "language": "Yul", + "name": "#utility.yul" + } + ], + "linkReferences": {}, + "object": "608060405234801561001057600080fd5b506040516103d53803806103d583398181016040528101906100329190610054565b80600081905550506100a7565b60008151905061004e81610090565b92915050565b60006020828403121561006a5761006961008b565b5b60006100788482850161003f565b91505092915050565b6000819050919050565b600080fd5b61009981610081565b81146100a457600080fd5b50565b61031f806100b66000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806318db62fb1461005c5780631fad29531461008c578063b69ef8a8146100a8578063b6b55f25146100c6578063d285b7b4146100e2575b600080fd5b6100766004803603810190610071919061017d565b610100565b60405161008391906101c8565b60405180910390f35b6100a660048036038101906100a1919061017d565b61010e565b005b6100b0610138565b6040516100bd91906101e3565b60405180910390f35b6100e060048036038101906100db919061017d565b610141565b005b6100ea61015c565b6040516100f791906101c8565b60405180910390f35b600081600054119050919050565b61011781610100565b15610135578060008082825461012d9190610254565b925050819055505b50565b60008054905090565b8060008082825461015291906101fe565b9250508190555050565b60008060005411905090565b600081359050610177816102d2565b92915050565b600060208284031215610193576101926102cd565b5b60006101a184828501610168565b91505092915050565b6101b381610288565b82525050565b6101c281610294565b82525050565b60006020820190506101dd60008301846101aa565b92915050565b60006020820190506101f860008301846101b9565b92915050565b600061020982610294565b915061021483610294565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156102495761024861029e565b5b828201905092915050565b600061025f82610294565b915061026a83610294565b92508282101561027d5761027c61029e565b5b828203905092915050565b60008115159050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6102db81610294565b81146102e657600080fd5b5056fea2646970667358221220eb3089beeaa9071511abf5e314e481d2a76d2d53b55c8ec6472118fa6859608564736f6c63430008070033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x3D5 CODESIZE SUB DUP1 PUSH2 0x3D5 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH2 0x32 SWAP2 SWAP1 PUSH2 0x54 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0xA7 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH2 0x4E DUP2 PUSH2 0x90 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6A JUMPI PUSH2 0x69 PUSH2 0x8B JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x78 DUP5 DUP3 DUP6 ADD PUSH2 0x3F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x99 DUP2 PUSH2 0x81 JUMP JUMPDEST DUP2 EQ PUSH2 0xA4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x31F DUP1 PUSH2 0xB6 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 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x18DB62FB EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0x8C JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0xC6 JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0xE2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x100 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x83 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xA6 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xA1 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x10E JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB0 PUSH2 0x138 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBD SWAP2 SWAP1 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xDB SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x141 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEA PUSH2 0x15C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF7 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x117 DUP2 PUSH2 0x100 JUMP JUMPDEST ISZERO PUSH2 0x135 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x12D SWAP2 SWAP1 PUSH2 0x254 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x152 SWAP2 SWAP1 PUSH2 0x1FE JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x177 DUP2 PUSH2 0x2D2 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x193 JUMPI PUSH2 0x192 PUSH2 0x2CD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1A1 DUP5 DUP3 DUP6 ADD PUSH2 0x168 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1B3 DUP2 PUSH2 0x288 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x1C2 DUP2 PUSH2 0x294 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1DD PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1AA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1F8 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1B9 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x209 DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x214 DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x249 JUMPI PUSH2 0x248 PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x25F DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x26A DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x27D JUMPI PUSH2 0x27C PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DB DUP2 PUSH2 0x294 JUMP JUMPDEST DUP2 EQ PUSH2 0x2E6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB ADDRESS DUP10 0xBE 0xEA 0xA9 SMOD ISZERO GT 0xAB CREATE2 0xE3 EQ 0xE4 DUP2 0xD2 0xA7 PUSH14 0x2D53B55C8EC6472118FA68596085 PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", + "sourceMap": "190:627:0:-:0;;;248:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;292:6;284:5;:14;;;;248:57;190:627;;7:143:1;64:5;95:6;89:13;80:22;;111:33;138:5;111:33;:::i;:::-;7:143;;;;:::o;156:351::-;226:6;275:2;263:9;254:7;250:23;246:32;243:119;;;281:79;;:::i;:::-;243:119;401:1;426:64;482:7;473:6;462:9;458:22;426:64;:::i;:::-;416:74;;372:128;156:351;;;;:::o;594:77::-;631:7;660:5;649:16;;594:77;;;:::o;800:117::-;909:1;906;899:12;923:122;996:24;1014:5;996:24;:::i;:::-;989:5;986:35;976:63;;1035:1;1032;1025:12;976:63;923:122;:::o;190:627:0:-;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": { + "@balance_61": { + "entryPoint": 312, + "id": 61, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@checkValue_74": { + "entryPoint": 256, + "id": 74, + "parameterSlots": 1, + "returnSlots": 1 + }, + "@deposit_38": { + "entryPoint": 321, + "id": 38, + "parameterSlots": 1, + "returnSlots": 0 + }, + "@loan_85": { + "entryPoint": 348, + "id": 85, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@withdrawel_53": { + "entryPoint": 270, + "id": 53, + "parameterSlots": 1, + "returnSlots": 0 + }, + "abi_decode_t_uint256": { + "entryPoint": 360, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_tuple_t_uint256": { + "entryPoint": 381, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_t_bool_to_t_bool_fromStack": { + "entryPoint": 426, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "abi_encode_t_uint256_to_t_uint256_fromStack": { + "entryPoint": 441, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { + "entryPoint": 456, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { + "entryPoint": 483, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "allocate_unbounded": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "checked_add_t_uint256": { + "entryPoint": 510, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "checked_sub_t_uint256": { + "entryPoint": 596, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "cleanup_t_bool": { + "entryPoint": 648, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "cleanup_t_uint256": { + "entryPoint": 660, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "panic_error_0x11": { + "entryPoint": 670, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { + "entryPoint": 717, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "validator_revert_t_uint256": { + "entryPoint": 722, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [ + { + "ast": { + "nodeType": "YulBlock", + "src": "0:2495:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "59:87:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "69:29:1", + "value": { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "91:6:1" + } + ], + "functionName": { + "name": "calldataload", + "nodeType": "YulIdentifier", + "src": "78:12:1" + }, + "nodeType": "YulFunctionCall", + "src": "78:20:1" + }, + "variableNames": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "69:5:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "134:5:1" + } + ], + "functionName": { + "name": "validator_revert_t_uint256", + "nodeType": "YulIdentifier", + "src": "107:26:1" + }, + "nodeType": "YulFunctionCall", + "src": "107:33:1" + }, + "nodeType": "YulExpressionStatement", + "src": "107:33:1" + } + ] + }, + "name": "abi_decode_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "37:6:1", + "type": "" + }, + { + "name": "end", + "nodeType": "YulTypedName", + "src": "45:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "53:5:1", + "type": "" + } + ], + "src": "7:139:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "218:263:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "264:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulIdentifier", + "src": "266:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "266:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "266:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "239:7:1" + }, + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "248:9:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "235:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "235:23:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "260:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "slt", + "nodeType": "YulIdentifier", + "src": "231:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "231:32:1" + }, + "nodeType": "YulIf", + "src": "228:119:1" + }, + { + "nodeType": "YulBlock", + "src": "357:117:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "372:15:1", + "value": { + "kind": "number", + "nodeType": "YulLiteral", + "src": "386:1:1", + "type": "", + "value": "0" + }, + "variables": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "376:6:1", + "type": "" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "401:63:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "436:9:1" + }, + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "447:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "432:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "432:22:1" + }, + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "456:7:1" + } + ], + "functionName": { + "name": "abi_decode_t_uint256", + "nodeType": "YulIdentifier", + "src": "411:20:1" + }, + "nodeType": "YulFunctionCall", + "src": "411:53:1" + }, + "variableNames": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "401:6:1" + } + ] + } + ] + } + ] + }, + "name": "abi_decode_tuple_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "188:9:1", + "type": "" + }, + { + "name": "dataEnd", + "nodeType": "YulTypedName", + "src": "199:7:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "211:6:1", + "type": "" + } + ], + "src": "152:329:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "546:50:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "563:3:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "583:5:1" + } + ], + "functionName": { + "name": "cleanup_t_bool", + "nodeType": "YulIdentifier", + "src": "568:14:1" + }, + "nodeType": "YulFunctionCall", + "src": "568:21:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "556:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "556:34:1" + }, + "nodeType": "YulExpressionStatement", + "src": "556:34:1" + } + ] + }, + "name": "abi_encode_t_bool_to_t_bool_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "534:5:1", + "type": "" + }, + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "541:3:1", + "type": "" + } + ], + "src": "487:109:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "667:53:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "684:3:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "707:5:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "689:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "689:24:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "677:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "677:37:1" + }, + "nodeType": "YulExpressionStatement", + "src": "677:37:1" + } + ] + }, + "name": "abi_encode_t_uint256_to_t_uint256_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "655:5:1", + "type": "" + }, + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "662:3:1", + "type": "" + } + ], + "src": "602:118:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "818:118:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "828:26:1", + "value": { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "840:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "851:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "836:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "836:18:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "828:4:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "902:6:1" + }, + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "915:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "926:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "911:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "911:17:1" + } + ], + "functionName": { + "name": "abi_encode_t_bool_to_t_bool_fromStack", + "nodeType": "YulIdentifier", + "src": "864:37:1" + }, + "nodeType": "YulFunctionCall", + "src": "864:65:1" + }, + "nodeType": "YulExpressionStatement", + "src": "864:65:1" + } + ] + }, + "name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "790:9:1", + "type": "" + }, + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "802:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "tail", + "nodeType": "YulTypedName", + "src": "813:4:1", + "type": "" + } + ], + "src": "726:210:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1040:124:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1050:26:1", + "value": { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1062:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1073:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1058:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1058:18:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "1050:4:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "1130:6:1" + }, + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1143:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1154:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1139:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1139:17:1" + } + ], + "functionName": { + "name": "abi_encode_t_uint256_to_t_uint256_fromStack", + "nodeType": "YulIdentifier", + "src": "1086:43:1" + }, + "nodeType": "YulFunctionCall", + "src": "1086:71:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1086:71:1" + } + ] + }, + "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "1012:9:1", + "type": "" + }, + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "1024:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "tail", + "nodeType": "YulTypedName", + "src": "1035:4:1", + "type": "" + } + ], + "src": "942:222:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1210:35:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1220:19:1", + "value": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1236:2:1", + "type": "", + "value": "64" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "1230:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "1230:9:1" + }, + "variableNames": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "1220:6:1" + } + ] + } + ] + }, + "name": "allocate_unbounded", + "nodeType": "YulFunctionDefinition", + "returnVariables": [ + { + "name": "memPtr", + "nodeType": "YulTypedName", + "src": "1203:6:1", + "type": "" + } + ], + "src": "1170:75:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1295:261:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1305:25:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1328:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "1310:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "1310:20:1" + }, + "variableNames": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1305:1:1" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "1339:25:1", + "value": { + "arguments": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1362:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "1344:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "1344:20:1" + }, + "variableNames": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1339:1:1" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1502:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x11", + "nodeType": "YulIdentifier", + "src": "1504:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "1504:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1504:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1423:1:1" + }, + { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1430:66:1", + "type": "", + "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1498:1:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "1426:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1426:74:1" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "1420:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "1420:81:1" + }, + "nodeType": "YulIf", + "src": "1417:107:1" + }, + { + "nodeType": "YulAssignment", + "src": "1534:16:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1545:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1548:1:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1541:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1541:9:1" + }, + "variableNames": [ + { + "name": "sum", + "nodeType": "YulIdentifier", + "src": "1534:3:1" + } + ] + } + ] + }, + "name": "checked_add_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "x", + "nodeType": "YulTypedName", + "src": "1282:1:1", + "type": "" + }, + { + "name": "y", + "nodeType": "YulTypedName", + "src": "1285:1:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "sum", + "nodeType": "YulTypedName", + "src": "1291:3:1", + "type": "" + } + ], + "src": "1251:305:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1607:146:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1617:25:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1640:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "1622:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "1622:20:1" + }, + "variableNames": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1617:1:1" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "1651:25:1", + "value": { + "arguments": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1674:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "1656:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "1656:20:1" + }, + "variableNames": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1651:1:1" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1698:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x11", + "nodeType": "YulIdentifier", + "src": "1700:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "1700:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1700:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1692:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1695:1:1" + } + ], + "functionName": { + "name": "lt", + "nodeType": "YulIdentifier", + "src": "1689:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "1689:8:1" + }, + "nodeType": "YulIf", + "src": "1686:34:1" + }, + { + "nodeType": "YulAssignment", + "src": "1730:17:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "1742:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "1745:1:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "1738:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1738:9:1" + }, + "variableNames": [ + { + "name": "diff", + "nodeType": "YulIdentifier", + "src": "1730:4:1" + } + ] + } + ] + }, + "name": "checked_sub_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "x", + "nodeType": "YulTypedName", + "src": "1593:1:1", + "type": "" + }, + { + "name": "y", + "nodeType": "YulTypedName", + "src": "1596:1:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "diff", + "nodeType": "YulTypedName", + "src": "1602:4:1", + "type": "" + } + ], + "src": "1562:191:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1801:48:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1811:32:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "1836:5:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "1829:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "1829:13:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "1822:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "1822:21:1" + }, + "variableNames": [ + { + "name": "cleaned", + "nodeType": "YulIdentifier", + "src": "1811:7:1" + } + ] + } + ] + }, + "name": "cleanup_t_bool", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "1783:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "cleaned", + "nodeType": "YulTypedName", + "src": "1793:7:1", + "type": "" + } + ], + "src": "1759:90:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1900:32:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "1910:16:1", + "value": { + "name": "value", + "nodeType": "YulIdentifier", + "src": "1921:5:1" + }, + "variableNames": [ + { + "name": "cleaned", + "nodeType": "YulIdentifier", + "src": "1910:7:1" + } + ] + } + ] + }, + "name": "cleanup_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "1882:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "cleaned", + "nodeType": "YulTypedName", + "src": "1892:7:1", + "type": "" + } + ], + "src": "1855:77:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1966:152:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1983:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1986:77:1", + "type": "", + "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "1976:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "1976:88:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1976:88:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2080:1:1", + "type": "", + "value": "4" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2083:4:1", + "type": "", + "value": "0x11" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "2073:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2073:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2073:15:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2104:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2107:4:1", + "type": "", + "value": "0x24" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "2097:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2097:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2097:15:1" + } + ] + }, + "name": "panic_error_0x11", + "nodeType": "YulFunctionDefinition", + "src": "1938:180:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2213:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2230:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2233:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "2223:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2223:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2223:12:1" + } + ] + }, + "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", + "nodeType": "YulFunctionDefinition", + "src": "2124:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2336:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2353:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2356:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "2346:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2346:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2346:12:1" + } + ] + }, + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulFunctionDefinition", + "src": "2247:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2413:79:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "2470:16:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2479:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2482:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "2472:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2472:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2472:12:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "2436:5:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "2461:5:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "2443:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "2443:24:1" + } + ], + "functionName": { + "name": "eq", + "nodeType": "YulIdentifier", + "src": "2433:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "2433:35:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "2426:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2426:43:1" + }, + "nodeType": "YulIf", + "src": "2423:63:1" + } + ] + }, + "name": "validator_revert_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "2406:5:1", + "type": "" + } + ], + "src": "2370:122:1" + } + ] + }, + "contents": "{\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_bool_to_t_bool_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", + "id": 1, + "language": "Yul", + "name": "#utility.yul" + } + ], + "immutableReferences": {}, + "linkReferences": {}, + "object": "608060405234801561001057600080fd5b50600436106100575760003560e01c806318db62fb1461005c5780631fad29531461008c578063b69ef8a8146100a8578063b6b55f25146100c6578063d285b7b4146100e2575b600080fd5b6100766004803603810190610071919061017d565b610100565b60405161008391906101c8565b60405180910390f35b6100a660048036038101906100a1919061017d565b61010e565b005b6100b0610138565b6040516100bd91906101e3565b60405180910390f35b6100e060048036038101906100db919061017d565b610141565b005b6100ea61015c565b6040516100f791906101c8565b60405180910390f35b600081600054119050919050565b61011781610100565b15610135578060008082825461012d9190610254565b925050819055505b50565b60008054905090565b8060008082825461015291906101fe565b9250508190555050565b60008060005411905090565b600081359050610177816102d2565b92915050565b600060208284031215610193576101926102cd565b5b60006101a184828501610168565b91505092915050565b6101b381610288565b82525050565b6101c281610294565b82525050565b60006020820190506101dd60008301846101aa565b92915050565b60006020820190506101f860008301846101b9565b92915050565b600061020982610294565b915061021483610294565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156102495761024861029e565b5b828201905092915050565b600061025f82610294565b915061026a83610294565b92508282101561027d5761027c61029e565b5b828203905092915050565b60008115159050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6102db81610294565b81146102e657600080fd5b5056fea2646970667358221220eb3089beeaa9071511abf5e314e481d2a76d2d53b55c8ec6472118fa6859608564736f6c63430008070033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x18DB62FB EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0x8C JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0xC6 JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0xE2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x100 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x83 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xA6 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xA1 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x10E JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB0 PUSH2 0x138 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBD SWAP2 SWAP1 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xDB SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x141 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEA PUSH2 0x15C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF7 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x117 DUP2 PUSH2 0x100 JUMP JUMPDEST ISZERO PUSH2 0x135 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x12D SWAP2 SWAP1 PUSH2 0x254 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x152 SWAP2 SWAP1 PUSH2 0x1FE JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x177 DUP2 PUSH2 0x2D2 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x193 JUMPI PUSH2 0x192 PUSH2 0x2CD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1A1 DUP5 DUP3 DUP6 ADD PUSH2 0x168 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1B3 DUP2 PUSH2 0x288 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x1C2 DUP2 PUSH2 0x294 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1DD PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1AA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1F8 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1B9 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x209 DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x214 DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x249 JUMPI PUSH2 0x248 PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x25F DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x26A DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x27D JUMPI PUSH2 0x27C PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DB DUP2 PUSH2 0x294 JUMP JUMPDEST DUP2 EQ PUSH2 0x2E6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB ADDRESS DUP10 0xBE 0xEA 0xA9 SMOD ISZERO GT 0xAB CREATE2 0xE3 EQ 0xE4 DUP2 0xD2 0xA7 PUSH14 0x2D53B55C8EC6472118FA68596085 PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", + "sourceMap": "190:627:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;612:109;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;386:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;513:76;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;311:69;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;727:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;612:109;675:4;707:6;699:5;;:14;692:21;;612:109;;;:::o;386:121::-;441:18;452:6;441:10;:18::i;:::-;437:64;;;483:6;474:5;;:15;;;;;;;:::i;:::-;;;;;;;;437:64;386:121;:::o;513:76::-;553:4;577:5;;570:12;;513:76;:::o;311:69::-;367:6;358:5;;:15;;;;;;;:::i;:::-;;;;;;;;311:69;:::o;727:87::-;773:4;805:1;797:5;;:9;790:16;;727:87;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;152:329::-;211:6;260:2;248:9;239:7;235:23;231:32;228:119;;;266:79;;:::i;:::-;228:119;386:1;411:53;456:7;447:6;436:9;432:22;411:53;:::i;:::-;401:63;;357:117;152:329;;;;:::o;487:109::-;568:21;583:5;568:21;:::i;:::-;563:3;556:34;487:109;;:::o;602:118::-;689:24;707:5;689:24;:::i;:::-;684:3;677:37;602:118;;:::o;726:210::-;813:4;851:2;840:9;836:18;828:26;;864:65;926:1;915:9;911:17;902:6;864:65;:::i;:::-;726:210;;;;:::o;942:222::-;1035:4;1073:2;1062:9;1058:18;1050:26;;1086:71;1154:1;1143:9;1139:17;1130:6;1086:71;:::i;:::-;942:222;;;;:::o;1251:305::-;1291:3;1310:20;1328:1;1310:20;:::i;:::-;1305:25;;1344:20;1362:1;1344:20;:::i;:::-;1339:25;;1498:1;1430:66;1426:74;1423:1;1420:81;1417:107;;;1504:18;;:::i;:::-;1417:107;1548:1;1545;1541:9;1534:16;;1251:305;;;;:::o;1562:191::-;1602:4;1622:20;1640:1;1622:20;:::i;:::-;1617:25;;1656:20;1674:1;1656:20;:::i;:::-;1651:25;;1695:1;1692;1689:8;1686:34;;;1700:18;;:::i;:::-;1686:34;1745:1;1742;1738:9;1730:17;;1562:191;;;;:::o;1759:90::-;1793:7;1836:5;1829:13;1822:21;1811:32;;1759:90;;;:::o;1855:77::-;1892:7;1921:5;1910:16;;1855:77;;;:::o;1938:180::-;1986:77;1983:1;1976:88;2083:4;2080:1;2073:15;2107:4;2104:1;2097:15;2247:117;2356:1;2353;2346:12;2370:122;2443:24;2461:5;2443:24;:::i;:::-;2436:5;2433:35;2423:63;;2482:1;2479;2472:12;2423:63;2370:122;:::o" + }, + "gasEstimates": { + "creation": { + "codeDepositCost": "159800", + "executionCost": "infinite", + "totalCost": "infinite" + }, + "external": { + "balance()": "2459", + "checkValue(uint256)": "2692", + "deposit(uint256)": "infinite", + "loan()": "2515", + "withdrawel(uint256)": "infinite" + } + }, + "methodIdentifiers": { + "balance()": "b69ef8a8", + "checkValue(uint256)": "18db62fb", + "deposit(uint256)": "b6b55f25", + "loan()": "d285b7b4", + "withdrawel(uint256)": "1fad2953" + } + }, + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "balance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/tutorial-02/artifacts/Bank_metadata.json b/tutorial-02/artifacts/Bank_metadata.json new file mode 100644 index 0000000..9bab0cb --- /dev/null +++ b/tutorial-02/artifacts/Bank_metadata.json @@ -0,0 +1,128 @@ +{ + "compiler": { + "version": "0.8.7+commit.e28d00a7" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "balance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "compilationTarget": { + "tutorial-02/myfirstcontract.sol": "Bank" + }, + "evmVersion": "london", + "libraries": {}, + "metadata": { + "bytecodeHash": "ipfs" + }, + "optimizer": { + "enabled": false, + "runs": 200 + }, + "remappings": [] + }, + "sources": { + "tutorial-02/myfirstcontract.sol": { + "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", + "license": "MIT", + "urls": [ + "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", + "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" + ] + } + }, + "version": 1 +} \ No newline at end of file diff --git a/tutorial-02/artifacts/Regulator.json b/tutorial-02/artifacts/Regulator.json new file mode 100644 index 0000000..fbf1518 --- /dev/null +++ b/tutorial-02/artifacts/Regulator.json @@ -0,0 +1,90 @@ +{ + "deploy": { + "VM:-": { + "linkReferences": {}, + "autoDeployLib": true + }, + "main:1": { + "linkReferences": {}, + "autoDeployLib": true + }, + "ropsten:3": { + "linkReferences": {}, + "autoDeployLib": true + }, + "rinkeby:4": { + "linkReferences": {}, + "autoDeployLib": true + }, + "kovan:42": { + "linkReferences": {}, + "autoDeployLib": true + }, + "görli:5": { + "linkReferences": {}, + "autoDeployLib": true + }, + "Custom": { + "linkReferences": {}, + "autoDeployLib": true + } + }, + "data": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "gasEstimates": null, + "methodIdentifiers": { + "checkValue(uint256)": "18db62fb", + "loan()": "d285b7b4" + } + }, + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/tutorial-02/artifacts/Regulator_metadata.json b/tutorial-02/artifacts/Regulator_metadata.json new file mode 100644 index 0000000..d7d84b2 --- /dev/null +++ b/tutorial-02/artifacts/Regulator_metadata.json @@ -0,0 +1,78 @@ +{ + "compiler": { + "version": "0.8.7+commit.e28d00a7" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "compilationTarget": { + "tutorial-02/myfirstcontract.sol": "Regulator" + }, + "evmVersion": "london", + "libraries": {}, + "metadata": { + "bytecodeHash": "ipfs" + }, + "optimizer": { + "enabled": false, + "runs": 200 + }, + "remappings": [] + }, + "sources": { + "tutorial-02/myfirstcontract.sol": { + "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", + "license": "MIT", + "urls": [ + "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", + "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" + ] + } + }, + "version": 1 +} \ No newline at end of file diff --git a/tutorial-02/artifacts/myfirstcontract.json b/tutorial-02/artifacts/myfirstcontract.json new file mode 100644 index 0000000..c7f274a --- /dev/null +++ b/tutorial-02/artifacts/myfirstcontract.json @@ -0,0 +1,4339 @@ +{ + "deploy": { + "VM:-": { + "linkReferences": {}, + "autoDeployLib": true + }, + "main:1": { + "linkReferences": {}, + "autoDeployLib": true + }, + "ropsten:3": { + "linkReferences": {}, + "autoDeployLib": true + }, + "rinkeby:4": { + "linkReferences": {}, + "autoDeployLib": true + }, + "kovan:42": { + "linkReferences": {}, + "autoDeployLib": true + }, + "görli:5": { + "linkReferences": {}, + "autoDeployLib": true + }, + "Custom": { + "linkReferences": {}, + "autoDeployLib": true + } + }, + "data": { + "bytecode": { + "functionDebugData": { + "@_28": { + "entryPoint": null, + "id": 28, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [], + "linkReferences": {}, + "object": "608060405234801561001057600080fd5b50600a80600081905550506107db8061002a6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063b69ef8a811610066578063b69ef8a814610120578063b6b55f251461013e578063c47f00271461015a578063d285b7b414610176578063d5dcf1271461019457610093565b806317d7de7c1461009857806318db62fb146100b65780631fad2953146100e6578063967e6e6514610102575b600080fd5b6100a06101b0565b6040516100ad91906104e8565b60405180910390f35b6100d060048036038101906100cb9190610449565b610242565b6040516100dd91906104cd565b60405180910390f35b61010060048036038101906100fb9190610449565b610250565b005b61010a61027a565b604051610117919061050a565b60405180910390f35b610128610284565b604051610135919061050a565b60405180910390f35b61015860048036038101906101539190610449565b61028d565b005b610174600480360381019061016f9190610400565b6102a8565b005b61017e6102c2565b60405161018b91906104cd565b60405180910390f35b6101ae60048036038101906101a99190610449565b6102ce565b005b6060600180546101bf90610679565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610679565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600081600054119050919050565b61025981610242565b15610277578060008082825461026f91906105ed565b925050819055505b50565b6000600254905090565b60008054905090565b8060008082825461029e9190610597565b9250508190555050565b80600190805190602001906102be9291906102d8565b5050565b60008060005411905090565b8060028190555050565b8280546102e490610679565b90600052602060002090601f016020900481019282610306576000855561034d565b82601f1061031f57805160ff191683800117855561034d565b8280016001018555821561034d579182015b8281111561034c578251825591602001919060010190610331565b5b50905061035a919061035e565b5090565b5b8082111561037757600081600090555060010161035f565b5090565b600061038e6103898461054a565b610525565b9050828152602081018484840111156103aa576103a961076e565b5b6103b5848285610637565b509392505050565b600082601f8301126103d2576103d1610769565b5b81356103e284826020860161037b565b91505092915050565b6000813590506103fa8161078e565b92915050565b60006020828403121561041657610415610778565b5b600082013567ffffffffffffffff81111561043457610433610773565b5b610440848285016103bd565b91505092915050565b60006020828403121561045f5761045e610778565b5b600061046d848285016103eb565b91505092915050565b61047f81610621565b82525050565b60006104908261057b565b61049a8185610586565b93506104aa818560208601610646565b6104b38161077d565b840191505092915050565b6104c78161062d565b82525050565b60006020820190506104e26000830184610476565b92915050565b600060208201905081810360008301526105028184610485565b905092915050565b600060208201905061051f60008301846104be565b92915050565b600061052f610540565b905061053b82826106ab565b919050565b6000604051905090565b600067ffffffffffffffff8211156105655761056461073a565b5b61056e8261077d565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006105a28261062d565b91506105ad8361062d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156105e2576105e16106dc565b5b828201905092915050565b60006105f88261062d565b91506106038361062d565b925082821015610616576106156106dc565b5b828203905092915050565b60008115159050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610664578082015181840152602081019050610649565b83811115610673576000848401525b50505050565b6000600282049050600182168061069157607f821691505b602082108114156106a5576106a461070b565b5b50919050565b6106b48261077d565b810181811067ffffffffffffffff821117156106d3576106d261073a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6107978161062d565b81146107a257600080fd5b5056fea2646970667358221220571b55a57474640680b217b8b808b72dfa988117bb06e235301023e283cbd3fc64736f6c63430008070033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x7DB DUP1 PUSH2 0x2A 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 0x93 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB69EF8A8 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xC47F0027 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0x176 JUMPI DUP1 PUSH4 0xD5DCF127 EQ PUSH2 0x194 JUMPI PUSH2 0x93 JUMP JUMPDEST DUP1 PUSH4 0x17D7DE7C EQ PUSH2 0x98 JUMPI DUP1 PUSH4 0x18DB62FB EQ PUSH2 0xB6 JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0xE6 JUMPI DUP1 PUSH4 0x967E6E65 EQ PUSH2 0x102 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x1B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAD SWAP2 SWAP1 PUSH2 0x4E8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xD0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xCB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x242 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xDD SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x100 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xFB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x250 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x10A PUSH2 0x27A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x117 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x128 PUSH2 0x284 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x135 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x158 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x153 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x28D JUMP JUMPDEST STOP JUMPDEST PUSH2 0x174 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x16F SWAP2 SWAP1 PUSH2 0x400 JUMP JUMPDEST PUSH2 0x2A8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x17E PUSH2 0x2C2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1AE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1A9 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x2CE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD PUSH2 0x1BF SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x1EB SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x238 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x20D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x238 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x21B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x259 DUP2 PUSH2 0x242 JUMP JUMPDEST ISZERO PUSH2 0x277 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x26F SWAP2 SWAP1 PUSH2 0x5ED JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x29E SWAP2 SWAP1 PUSH2 0x597 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2BE SWAP3 SWAP2 SWAP1 PUSH2 0x2D8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x2 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x2E4 SWAP1 PUSH2 0x679 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x306 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x31F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x34D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x34C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x331 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x35A SWAP2 SWAP1 PUSH2 0x35E JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x377 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x35F JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38E PUSH2 0x389 DUP5 PUSH2 0x54A JUMP JUMPDEST PUSH2 0x525 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x3AA JUMPI PUSH2 0x3A9 PUSH2 0x76E JUMP JUMPDEST JUMPDEST PUSH2 0x3B5 DUP5 DUP3 DUP6 PUSH2 0x637 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x3D2 JUMPI PUSH2 0x3D1 PUSH2 0x769 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x3E2 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x37B JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x3FA DUP2 PUSH2 0x78E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x416 JUMPI PUSH2 0x415 PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x434 JUMPI PUSH2 0x433 PUSH2 0x773 JUMP JUMPDEST JUMPDEST PUSH2 0x440 DUP5 DUP3 DUP6 ADD PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45F JUMPI PUSH2 0x45E PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x46D DUP5 DUP3 DUP6 ADD PUSH2 0x3EB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x47F DUP2 PUSH2 0x621 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x490 DUP3 PUSH2 0x57B JUMP JUMPDEST PUSH2 0x49A DUP2 DUP6 PUSH2 0x586 JUMP JUMPDEST SWAP4 POP PUSH2 0x4AA DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x646 JUMP JUMPDEST PUSH2 0x4B3 DUP2 PUSH2 0x77D JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x4C7 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x4E2 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x476 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x502 DUP2 DUP5 PUSH2 0x485 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x51F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x4BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x52F PUSH2 0x540 JUMP JUMPDEST SWAP1 POP PUSH2 0x53B DUP3 DUP3 PUSH2 0x6AB JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x565 JUMPI PUSH2 0x564 PUSH2 0x73A JUMP JUMPDEST JUMPDEST PUSH2 0x56E DUP3 PUSH2 0x77D JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x5AD DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x5E2 JUMPI PUSH2 0x5E1 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5F8 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x603 DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x616 JUMPI PUSH2 0x615 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x664 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x649 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x673 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x691 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x6A5 JUMPI PUSH2 0x6A4 PUSH2 0x70B JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x6B4 DUP3 PUSH2 0x77D JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x6D3 JUMPI PUSH2 0x6D2 PUSH2 0x73A JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x797 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP2 EQ PUSH2 0x7A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPI SHL SSTORE 0xA5 PUSH21 0x74640680B217B8B808B72DFA988117BB06E2353010 0x23 0xE2 DUP4 0xCB 0xD3 0xFC PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", + "sourceMap": "819:482:0:-:0;;;;;;;;;;;;;852:2;292:6;284:5;:14;;;;248:57;819:482;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": { + "@balance_61": { + "entryPoint": 644, + "id": 61, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@checkValue_74": { + "entryPoint": 578, + "id": 74, + "parameterSlots": 1, + "returnSlots": 1 + }, + "@deposit_38": { + "entryPoint": 653, + "id": 38, + "parameterSlots": 1, + "returnSlots": 0 + }, + "@getAge_129": { + "entryPoint": 634, + "id": 129, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@getName_111": { + "entryPoint": 432, + "id": 111, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@loan_85": { + "entryPoint": 706, + "id": 85, + "parameterSlots": 0, + "returnSlots": 1 + }, + "@setAge_121": { + "entryPoint": 718, + "id": 121, + "parameterSlots": 1, + "returnSlots": 0 + }, + "@setName_103": { + "entryPoint": 680, + "id": 103, + "parameterSlots": 1, + "returnSlots": 0 + }, + "@withdrawel_53": { + "entryPoint": 592, + "id": 53, + "parameterSlots": 1, + "returnSlots": 0 + }, + "abi_decode_available_length_t_string_memory_ptr": { + "entryPoint": 891, + "id": null, + "parameterSlots": 3, + "returnSlots": 1 + }, + "abi_decode_t_string_memory_ptr": { + "entryPoint": 957, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_t_uint256": { + "entryPoint": 1003, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_tuple_t_string_memory_ptr": { + "entryPoint": 1024, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_tuple_t_uint256": { + "entryPoint": 1097, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_t_bool_to_t_bool_fromStack": { + "entryPoint": 1142, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": { + "entryPoint": 1157, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_t_uint256_to_t_uint256_fromStack": { + "entryPoint": 1214, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { + "entryPoint": 1229, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": { + "entryPoint": 1256, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { + "entryPoint": 1290, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "allocate_memory": { + "entryPoint": 1317, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "allocate_unbounded": { + "entryPoint": 1344, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_allocation_size_t_string_memory_ptr": { + "entryPoint": 1354, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_length_t_string_memory_ptr": { + "entryPoint": 1403, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_storeLengthForEncoding_t_string_memory_ptr_fromStack": { + "entryPoint": 1414, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "checked_add_t_uint256": { + "entryPoint": 1431, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "checked_sub_t_uint256": { + "entryPoint": 1517, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "cleanup_t_bool": { + "entryPoint": 1569, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "cleanup_t_uint256": { + "entryPoint": 1581, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "copy_calldata_to_memory": { + "entryPoint": 1591, + "id": null, + "parameterSlots": 3, + "returnSlots": 0 + }, + "copy_memory_to_memory": { + "entryPoint": 1606, + "id": null, + "parameterSlots": 3, + "returnSlots": 0 + }, + "extract_byte_array_length": { + "entryPoint": 1657, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "finalize_allocation": { + "entryPoint": 1707, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "panic_error_0x11": { + "entryPoint": 1756, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "panic_error_0x22": { + "entryPoint": 1803, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "panic_error_0x41": { + "entryPoint": 1850, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": { + "entryPoint": 1897, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": { + "entryPoint": 1902, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { + "entryPoint": 1907, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { + "entryPoint": 1912, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "round_up_to_mul_of_32": { + "entryPoint": 1917, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "validator_revert_t_uint256": { + "entryPoint": 1934, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [ + { + "ast": { + "nodeType": "YulBlock", + "src": "0:7018:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "91:328:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "101:75:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "168:6:1" + } + ], + "functionName": { + "name": "array_allocation_size_t_string_memory_ptr", + "nodeType": "YulIdentifier", + "src": "126:41:1" + }, + "nodeType": "YulFunctionCall", + "src": "126:49:1" + } + ], + "functionName": { + "name": "allocate_memory", + "nodeType": "YulIdentifier", + "src": "110:15:1" + }, + "nodeType": "YulFunctionCall", + "src": "110:66:1" + }, + "variableNames": [ + { + "name": "array", + "nodeType": "YulIdentifier", + "src": "101:5:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "array", + "nodeType": "YulIdentifier", + "src": "192:5:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "199:6:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "185:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "185:21:1" + }, + "nodeType": "YulExpressionStatement", + "src": "185:21:1" + }, + { + "nodeType": "YulVariableDeclaration", + "src": "215:27:1", + "value": { + "arguments": [ + { + "name": "array", + "nodeType": "YulIdentifier", + "src": "230:5:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "237:4:1", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "226:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "226:16:1" + }, + "variables": [ + { + "name": "dst", + "nodeType": "YulTypedName", + "src": "219:3:1", + "type": "" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "280:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", + "nodeType": "YulIdentifier", + "src": "282:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "282:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "282:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "src", + "nodeType": "YulIdentifier", + "src": "261:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "266:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "257:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "257:16:1" + }, + { + "name": "end", + "nodeType": "YulIdentifier", + "src": "275:3:1" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "254:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "254:25:1" + }, + "nodeType": "YulIf", + "src": "251:112:1" + }, + { + "expression": { + "arguments": [ + { + "name": "src", + "nodeType": "YulIdentifier", + "src": "396:3:1" + }, + { + "name": "dst", + "nodeType": "YulIdentifier", + "src": "401:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "406:6:1" + } + ], + "functionName": { + "name": "copy_calldata_to_memory", + "nodeType": "YulIdentifier", + "src": "372:23:1" + }, + "nodeType": "YulFunctionCall", + "src": "372:41:1" + }, + "nodeType": "YulExpressionStatement", + "src": "372:41:1" + } + ] + }, + "name": "abi_decode_available_length_t_string_memory_ptr", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "src", + "nodeType": "YulTypedName", + "src": "64:3:1", + "type": "" + }, + { + "name": "length", + "nodeType": "YulTypedName", + "src": "69:6:1", + "type": "" + }, + { + "name": "end", + "nodeType": "YulTypedName", + "src": "77:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "array", + "nodeType": "YulTypedName", + "src": "85:5:1", + "type": "" + } + ], + "src": "7:412:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "501:278:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "550:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", + "nodeType": "YulIdentifier", + "src": "552:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "552:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "552:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "529:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "537:4:1", + "type": "", + "value": "0x1f" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "525:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "525:17:1" + }, + { + "name": "end", + "nodeType": "YulIdentifier", + "src": "544:3:1" + } + ], + "functionName": { + "name": "slt", + "nodeType": "YulIdentifier", + "src": "521:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "521:27:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "514:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "514:35:1" + }, + "nodeType": "YulIf", + "src": "511:122:1" + }, + { + "nodeType": "YulVariableDeclaration", + "src": "642:34:1", + "value": { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "669:6:1" + } + ], + "functionName": { + "name": "calldataload", + "nodeType": "YulIdentifier", + "src": "656:12:1" + }, + "nodeType": "YulFunctionCall", + "src": "656:20:1" + }, + "variables": [ + { + "name": "length", + "nodeType": "YulTypedName", + "src": "646:6:1", + "type": "" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "685:88:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "746:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "754:4:1", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "742:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "742:17:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "761:6:1" + }, + { + "name": "end", + "nodeType": "YulIdentifier", + "src": "769:3:1" + } + ], + "functionName": { + "name": "abi_decode_available_length_t_string_memory_ptr", + "nodeType": "YulIdentifier", + "src": "694:47:1" + }, + "nodeType": "YulFunctionCall", + "src": "694:79:1" + }, + "variableNames": [ + { + "name": "array", + "nodeType": "YulIdentifier", + "src": "685:5:1" + } + ] + } + ] + }, + "name": "abi_decode_t_string_memory_ptr", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "479:6:1", + "type": "" + }, + { + "name": "end", + "nodeType": "YulTypedName", + "src": "487:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "array", + "nodeType": "YulTypedName", + "src": "495:5:1", + "type": "" + } + ], + "src": "439:340:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "837:87:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "847:29:1", + "value": { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "869:6:1" + } + ], + "functionName": { + "name": "calldataload", + "nodeType": "YulIdentifier", + "src": "856:12:1" + }, + "nodeType": "YulFunctionCall", + "src": "856:20:1" + }, + "variableNames": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "847:5:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "912:5:1" + } + ], + "functionName": { + "name": "validator_revert_t_uint256", + "nodeType": "YulIdentifier", + "src": "885:26:1" + }, + "nodeType": "YulFunctionCall", + "src": "885:33:1" + }, + "nodeType": "YulExpressionStatement", + "src": "885:33:1" + } + ] + }, + "name": "abi_decode_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "815:6:1", + "type": "" + }, + { + "name": "end", + "nodeType": "YulTypedName", + "src": "823:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "831:5:1", + "type": "" + } + ], + "src": "785:139:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1006:433:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "1052:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulIdentifier", + "src": "1054:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "1054:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1054:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "1027:7:1" + }, + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1036:9:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "1023:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1023:23:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1048:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "slt", + "nodeType": "YulIdentifier", + "src": "1019:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1019:32:1" + }, + "nodeType": "YulIf", + "src": "1016:119:1" + }, + { + "nodeType": "YulBlock", + "src": "1145:287:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "1160:45:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1191:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1202:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1187:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1187:17:1" + } + ], + "functionName": { + "name": "calldataload", + "nodeType": "YulIdentifier", + "src": "1174:12:1" + }, + "nodeType": "YulFunctionCall", + "src": "1174:31:1" + }, + "variables": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "1164:6:1", + "type": "" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1252:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", + "nodeType": "YulIdentifier", + "src": "1254:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "1254:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1254:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "1224:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1232:18:1", + "type": "", + "value": "0xffffffffffffffff" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "1221:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "1221:30:1" + }, + "nodeType": "YulIf", + "src": "1218:117:1" + }, + { + "nodeType": "YulAssignment", + "src": "1349:73:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1394:9:1" + }, + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "1405:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1390:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1390:22:1" + }, + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "1414:7:1" + } + ], + "functionName": { + "name": "abi_decode_t_string_memory_ptr", + "nodeType": "YulIdentifier", + "src": "1359:30:1" + }, + "nodeType": "YulFunctionCall", + "src": "1359:63:1" + }, + "variableNames": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "1349:6:1" + } + ] + } + ] + } + ] + }, + "name": "abi_decode_tuple_t_string_memory_ptr", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "976:9:1", + "type": "" + }, + { + "name": "dataEnd", + "nodeType": "YulTypedName", + "src": "987:7:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "999:6:1", + "type": "" + } + ], + "src": "930:509:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1511:263:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "1557:83:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulIdentifier", + "src": "1559:77:1" + }, + "nodeType": "YulFunctionCall", + "src": "1559:79:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1559:79:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "1532:7:1" + }, + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1541:9:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "1528:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1528:23:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1553:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "slt", + "nodeType": "YulIdentifier", + "src": "1524:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1524:32:1" + }, + "nodeType": "YulIf", + "src": "1521:119:1" + }, + { + "nodeType": "YulBlock", + "src": "1650:117:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "1665:15:1", + "value": { + "kind": "number", + "nodeType": "YulLiteral", + "src": "1679:1:1", + "type": "", + "value": "0" + }, + "variables": [ + { + "name": "offset", + "nodeType": "YulTypedName", + "src": "1669:6:1", + "type": "" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "1694:63:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "1729:9:1" + }, + { + "name": "offset", + "nodeType": "YulIdentifier", + "src": "1740:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "1725:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "1725:22:1" + }, + { + "name": "dataEnd", + "nodeType": "YulIdentifier", + "src": "1749:7:1" + } + ], + "functionName": { + "name": "abi_decode_t_uint256", + "nodeType": "YulIdentifier", + "src": "1704:20:1" + }, + "nodeType": "YulFunctionCall", + "src": "1704:53:1" + }, + "variableNames": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "1694:6:1" + } + ] + } + ] + } + ] + }, + "name": "abi_decode_tuple_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "1481:9:1", + "type": "" + }, + { + "name": "dataEnd", + "nodeType": "YulTypedName", + "src": "1492:7:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "1504:6:1", + "type": "" + } + ], + "src": "1445:329:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1839:50:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "1856:3:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "1876:5:1" + } + ], + "functionName": { + "name": "cleanup_t_bool", + "nodeType": "YulIdentifier", + "src": "1861:14:1" + }, + "nodeType": "YulFunctionCall", + "src": "1861:21:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "1849:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "1849:34:1" + }, + "nodeType": "YulExpressionStatement", + "src": "1849:34:1" + } + ] + }, + "name": "abi_encode_t_bool_to_t_bool_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "1827:5:1", + "type": "" + }, + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "1834:3:1", + "type": "" + } + ], + "src": "1780:109:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "1987:272:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "1997:53:1", + "value": { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "2044:5:1" + } + ], + "functionName": { + "name": "array_length_t_string_memory_ptr", + "nodeType": "YulIdentifier", + "src": "2011:32:1" + }, + "nodeType": "YulFunctionCall", + "src": "2011:39:1" + }, + "variables": [ + { + "name": "length", + "nodeType": "YulTypedName", + "src": "2001:6:1", + "type": "" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "2059:78:1", + "value": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "2125:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "2130:6:1" + } + ], + "functionName": { + "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", + "nodeType": "YulIdentifier", + "src": "2066:58:1" + }, + "nodeType": "YulFunctionCall", + "src": "2066:71:1" + }, + "variableNames": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "2059:3:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "2172:5:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2179:4:1", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2168:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2168:16:1" + }, + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "2186:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "2191:6:1" + } + ], + "functionName": { + "name": "copy_memory_to_memory", + "nodeType": "YulIdentifier", + "src": "2146:21:1" + }, + "nodeType": "YulFunctionCall", + "src": "2146:52:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2146:52:1" + }, + { + "nodeType": "YulAssignment", + "src": "2207:46:1", + "value": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "2218:3:1" + }, + { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "2245:6:1" + } + ], + "functionName": { + "name": "round_up_to_mul_of_32", + "nodeType": "YulIdentifier", + "src": "2223:21:1" + }, + "nodeType": "YulFunctionCall", + "src": "2223:29:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2214:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2214:39:1" + }, + "variableNames": [ + { + "name": "end", + "nodeType": "YulIdentifier", + "src": "2207:3:1" + } + ] + } + ] + }, + "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "1968:5:1", + "type": "" + }, + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "1975:3:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "end", + "nodeType": "YulTypedName", + "src": "1983:3:1", + "type": "" + } + ], + "src": "1895:364:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2330:53:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "2347:3:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "2370:5:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "2352:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "2352:24:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "2340:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2340:37:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2340:37:1" + } + ] + }, + "name": "abi_encode_t_uint256_to_t_uint256_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "2318:5:1", + "type": "" + }, + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "2325:3:1", + "type": "" + } + ], + "src": "2265:118:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2481:118:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "2491:26:1", + "value": { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "2503:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2514:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2499:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2499:18:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "2491:4:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "2565:6:1" + }, + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "2578:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2589:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2574:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2574:17:1" + } + ], + "functionName": { + "name": "abi_encode_t_bool_to_t_bool_fromStack", + "nodeType": "YulIdentifier", + "src": "2527:37:1" + }, + "nodeType": "YulFunctionCall", + "src": "2527:65:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2527:65:1" + } + ] + }, + "name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "2453:9:1", + "type": "" + }, + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "2465:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "tail", + "nodeType": "YulTypedName", + "src": "2476:4:1", + "type": "" + } + ], + "src": "2389:210:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "2723:195:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "2733:26:1", + "value": { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "2745:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2756:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2741:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2741:18:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "2733:4:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "2780:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "2791:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "2776:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2776:17:1" + }, + { + "arguments": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "2799:4:1" + }, + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "2805:9:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "2795:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "2795:20:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "2769:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "2769:47:1" + }, + "nodeType": "YulExpressionStatement", + "src": "2769:47:1" + }, + { + "nodeType": "YulAssignment", + "src": "2825:86:1", + "value": { + "arguments": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "2897:6:1" + }, + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "2906:4:1" + } + ], + "functionName": { + "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", + "nodeType": "YulIdentifier", + "src": "2833:63:1" + }, + "nodeType": "YulFunctionCall", + "src": "2833:78:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "2825:4:1" + } + ] + } + ] + }, + "name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "2695:9:1", + "type": "" + }, + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "2707:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "tail", + "nodeType": "YulTypedName", + "src": "2718:4:1", + "type": "" + } + ], + "src": "2605:313:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3022:124:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "3032:26:1", + "value": { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "3044:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3055:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "3040:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "3040:18:1" + }, + "variableNames": [ + { + "name": "tail", + "nodeType": "YulIdentifier", + "src": "3032:4:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "value0", + "nodeType": "YulIdentifier", + "src": "3112:6:1" + }, + { + "arguments": [ + { + "name": "headStart", + "nodeType": "YulIdentifier", + "src": "3125:9:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3136:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "3121:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "3121:17:1" + } + ], + "functionName": { + "name": "abi_encode_t_uint256_to_t_uint256_fromStack", + "nodeType": "YulIdentifier", + "src": "3068:43:1" + }, + "nodeType": "YulFunctionCall", + "src": "3068:71:1" + }, + "nodeType": "YulExpressionStatement", + "src": "3068:71:1" + } + ] + }, + "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "headStart", + "nodeType": "YulTypedName", + "src": "2994:9:1", + "type": "" + }, + { + "name": "value0", + "nodeType": "YulTypedName", + "src": "3006:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "tail", + "nodeType": "YulTypedName", + "src": "3017:4:1", + "type": "" + } + ], + "src": "2924:222:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3193:88:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "3203:30:1", + "value": { + "arguments": [], + "functionName": { + "name": "allocate_unbounded", + "nodeType": "YulIdentifier", + "src": "3213:18:1" + }, + "nodeType": "YulFunctionCall", + "src": "3213:20:1" + }, + "variableNames": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "3203:6:1" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "3262:6:1" + }, + { + "name": "size", + "nodeType": "YulIdentifier", + "src": "3270:4:1" + } + ], + "functionName": { + "name": "finalize_allocation", + "nodeType": "YulIdentifier", + "src": "3242:19:1" + }, + "nodeType": "YulFunctionCall", + "src": "3242:33:1" + }, + "nodeType": "YulExpressionStatement", + "src": "3242:33:1" + } + ] + }, + "name": "allocate_memory", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "size", + "nodeType": "YulTypedName", + "src": "3177:4:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "memPtr", + "nodeType": "YulTypedName", + "src": "3186:6:1", + "type": "" + } + ], + "src": "3152:129:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3327:35:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "3337:19:1", + "value": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3353:2:1", + "type": "", + "value": "64" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "3347:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "3347:9:1" + }, + "variableNames": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "3337:6:1" + } + ] + } + ] + }, + "name": "allocate_unbounded", + "nodeType": "YulFunctionDefinition", + "returnVariables": [ + { + "name": "memPtr", + "nodeType": "YulTypedName", + "src": "3320:6:1", + "type": "" + } + ], + "src": "3287:75:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3435:241:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "3540:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x41", + "nodeType": "YulIdentifier", + "src": "3542:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "3542:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "3542:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "3512:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3520:18:1", + "type": "", + "value": "0xffffffffffffffff" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "3509:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "3509:30:1" + }, + "nodeType": "YulIf", + "src": "3506:56:1" + }, + { + "nodeType": "YulAssignment", + "src": "3572:37:1", + "value": { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "3602:6:1" + } + ], + "functionName": { + "name": "round_up_to_mul_of_32", + "nodeType": "YulIdentifier", + "src": "3580:21:1" + }, + "nodeType": "YulFunctionCall", + "src": "3580:29:1" + }, + "variableNames": [ + { + "name": "size", + "nodeType": "YulIdentifier", + "src": "3572:4:1" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "3646:23:1", + "value": { + "arguments": [ + { + "name": "size", + "nodeType": "YulIdentifier", + "src": "3658:4:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3664:4:1", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "3654:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "3654:15:1" + }, + "variableNames": [ + { + "name": "size", + "nodeType": "YulIdentifier", + "src": "3646:4:1" + } + ] + } + ] + }, + "name": "array_allocation_size_t_string_memory_ptr", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "length", + "nodeType": "YulTypedName", + "src": "3419:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "size", + "nodeType": "YulTypedName", + "src": "3430:4:1", + "type": "" + } + ], + "src": "3368:308:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3741:40:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "3752:22:1", + "value": { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "3768:5:1" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "3762:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "3762:12:1" + }, + "variableNames": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "3752:6:1" + } + ] + } + ] + }, + "name": "array_length_t_string_memory_ptr", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "3724:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "length", + "nodeType": "YulTypedName", + "src": "3734:6:1", + "type": "" + } + ], + "src": "3682:99:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "3883:73:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "3900:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "3905:6:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "3893:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "3893:19:1" + }, + "nodeType": "YulExpressionStatement", + "src": "3893:19:1" + }, + { + "nodeType": "YulAssignment", + "src": "3921:29:1", + "value": { + "arguments": [ + { + "name": "pos", + "nodeType": "YulIdentifier", + "src": "3940:3:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "3945:4:1", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "3936:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "3936:14:1" + }, + "variableNames": [ + { + "name": "updated_pos", + "nodeType": "YulIdentifier", + "src": "3921:11:1" + } + ] + } + ] + }, + "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "pos", + "nodeType": "YulTypedName", + "src": "3855:3:1", + "type": "" + }, + { + "name": "length", + "nodeType": "YulTypedName", + "src": "3860:6:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "updated_pos", + "nodeType": "YulTypedName", + "src": "3871:11:1", + "type": "" + } + ], + "src": "3787:169:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4006:261:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "4016:25:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4039:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "4021:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "4021:20:1" + }, + "variableNames": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4016:1:1" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "4050:25:1", + "value": { + "arguments": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4073:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "4055:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "4055:20:1" + }, + "variableNames": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4050:1:1" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4213:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x11", + "nodeType": "YulIdentifier", + "src": "4215:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "4215:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "4215:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4134:1:1" + }, + { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "4141:66:1", + "type": "", + "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4209:1:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "4137:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4137:74:1" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "4131:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "4131:81:1" + }, + "nodeType": "YulIf", + "src": "4128:107:1" + }, + { + "nodeType": "YulAssignment", + "src": "4245:16:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4256:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4259:1:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "4252:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4252:9:1" + }, + "variableNames": [ + { + "name": "sum", + "nodeType": "YulIdentifier", + "src": "4245:3:1" + } + ] + } + ] + }, + "name": "checked_add_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "x", + "nodeType": "YulTypedName", + "src": "3993:1:1", + "type": "" + }, + { + "name": "y", + "nodeType": "YulTypedName", + "src": "3996:1:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "sum", + "nodeType": "YulTypedName", + "src": "4002:3:1", + "type": "" + } + ], + "src": "3962:305:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4318:146:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "4328:25:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4351:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "4333:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "4333:20:1" + }, + "variableNames": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4328:1:1" + } + ] + }, + { + "nodeType": "YulAssignment", + "src": "4362:25:1", + "value": { + "arguments": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4385:1:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "4367:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "4367:20:1" + }, + "variableNames": [ + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4362:1:1" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4409:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x11", + "nodeType": "YulIdentifier", + "src": "4411:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "4411:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "4411:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4403:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4406:1:1" + } + ], + "functionName": { + "name": "lt", + "nodeType": "YulIdentifier", + "src": "4400:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "4400:8:1" + }, + "nodeType": "YulIf", + "src": "4397:34:1" + }, + { + "nodeType": "YulAssignment", + "src": "4441:17:1", + "value": { + "arguments": [ + { + "name": "x", + "nodeType": "YulIdentifier", + "src": "4453:1:1" + }, + { + "name": "y", + "nodeType": "YulIdentifier", + "src": "4456:1:1" + } + ], + "functionName": { + "name": "sub", + "nodeType": "YulIdentifier", + "src": "4449:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4449:9:1" + }, + "variableNames": [ + { + "name": "diff", + "nodeType": "YulIdentifier", + "src": "4441:4:1" + } + ] + } + ] + }, + "name": "checked_sub_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "x", + "nodeType": "YulTypedName", + "src": "4304:1:1", + "type": "" + }, + { + "name": "y", + "nodeType": "YulTypedName", + "src": "4307:1:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "diff", + "nodeType": "YulTypedName", + "src": "4313:4:1", + "type": "" + } + ], + "src": "4273:191:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4512:48:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "4522:32:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "4547:5:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "4540:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "4540:13:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "4533:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "4533:21:1" + }, + "variableNames": [ + { + "name": "cleaned", + "nodeType": "YulIdentifier", + "src": "4522:7:1" + } + ] + } + ] + }, + "name": "cleanup_t_bool", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "4494:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "cleaned", + "nodeType": "YulTypedName", + "src": "4504:7:1", + "type": "" + } + ], + "src": "4470:90:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4611:32:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "4621:16:1", + "value": { + "name": "value", + "nodeType": "YulIdentifier", + "src": "4632:5:1" + }, + "variableNames": [ + { + "name": "cleaned", + "nodeType": "YulIdentifier", + "src": "4621:7:1" + } + ] + } + ] + }, + "name": "cleanup_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "4593:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "cleaned", + "nodeType": "YulTypedName", + "src": "4603:7:1", + "type": "" + } + ], + "src": "4566:77:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4700:103:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "dst", + "nodeType": "YulIdentifier", + "src": "4723:3:1" + }, + { + "name": "src", + "nodeType": "YulIdentifier", + "src": "4728:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "4733:6:1" + } + ], + "functionName": { + "name": "calldatacopy", + "nodeType": "YulIdentifier", + "src": "4710:12:1" + }, + "nodeType": "YulFunctionCall", + "src": "4710:30:1" + }, + "nodeType": "YulExpressionStatement", + "src": "4710:30:1" + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "name": "dst", + "nodeType": "YulIdentifier", + "src": "4781:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "4786:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "4777:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4777:16:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "4795:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "4770:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "4770:27:1" + }, + "nodeType": "YulExpressionStatement", + "src": "4770:27:1" + } + ] + }, + "name": "copy_calldata_to_memory", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "src", + "nodeType": "YulTypedName", + "src": "4682:3:1", + "type": "" + }, + { + "name": "dst", + "nodeType": "YulTypedName", + "src": "4687:3:1", + "type": "" + }, + { + "name": "length", + "nodeType": "YulTypedName", + "src": "4692:6:1", + "type": "" + } + ], + "src": "4649:154:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4858:258:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "4868:10:1", + "value": { + "kind": "number", + "nodeType": "YulLiteral", + "src": "4877:1:1", + "type": "", + "value": "0" + }, + "variables": [ + { + "name": "i", + "nodeType": "YulTypedName", + "src": "4872:1:1", + "type": "" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "4937:63:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "name": "dst", + "nodeType": "YulIdentifier", + "src": "4962:3:1" + }, + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "4967:1:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "4958:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4958:11:1" + }, + { + "arguments": [ + { + "arguments": [ + { + "name": "src", + "nodeType": "YulIdentifier", + "src": "4981:3:1" + }, + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "4986:1:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "4977:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4977:11:1" + } + ], + "functionName": { + "name": "mload", + "nodeType": "YulIdentifier", + "src": "4971:5:1" + }, + "nodeType": "YulFunctionCall", + "src": "4971:18:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "4951:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "4951:39:1" + }, + "nodeType": "YulExpressionStatement", + "src": "4951:39:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "4898:1:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "4901:6:1" + } + ], + "functionName": { + "name": "lt", + "nodeType": "YulIdentifier", + "src": "4895:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "4895:13:1" + }, + "nodeType": "YulForLoop", + "post": { + "nodeType": "YulBlock", + "src": "4909:19:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "4911:15:1", + "value": { + "arguments": [ + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "4920:1:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "4923:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "4916:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "4916:10:1" + }, + "variableNames": [ + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "4911:1:1" + } + ] + } + ] + }, + "pre": { + "nodeType": "YulBlock", + "src": "4891:3:1", + "statements": [] + }, + "src": "4887:113:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5034:76:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "name": "dst", + "nodeType": "YulIdentifier", + "src": "5084:3:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5089:6:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "5080:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "5080:16:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5098:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "5073:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5073:27:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5073:27:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "i", + "nodeType": "YulIdentifier", + "src": "5015:1:1" + }, + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5018:6:1" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "5012:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5012:13:1" + }, + "nodeType": "YulIf", + "src": "5009:101:1" + } + ] + }, + "name": "copy_memory_to_memory", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "src", + "nodeType": "YulTypedName", + "src": "4840:3:1", + "type": "" + }, + { + "name": "dst", + "nodeType": "YulTypedName", + "src": "4845:3:1", + "type": "" + }, + { + "name": "length", + "nodeType": "YulTypedName", + "src": "4850:6:1", + "type": "" + } + ], + "src": "4809:307:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5173:269:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "5183:22:1", + "value": { + "arguments": [ + { + "name": "data", + "nodeType": "YulIdentifier", + "src": "5197:4:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5203:1:1", + "type": "", + "value": "2" + } + ], + "functionName": { + "name": "div", + "nodeType": "YulIdentifier", + "src": "5193:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "5193:12:1" + }, + "variableNames": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5183:6:1" + } + ] + }, + { + "nodeType": "YulVariableDeclaration", + "src": "5214:38:1", + "value": { + "arguments": [ + { + "name": "data", + "nodeType": "YulIdentifier", + "src": "5244:4:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5250:1:1", + "type": "", + "value": "1" + } + ], + "functionName": { + "name": "and", + "nodeType": "YulIdentifier", + "src": "5240:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "5240:12:1" + }, + "variables": [ + { + "name": "outOfPlaceEncoding", + "nodeType": "YulTypedName", + "src": "5218:18:1", + "type": "" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5291:51:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "5305:27:1", + "value": { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5319:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5327:4:1", + "type": "", + "value": "0x7f" + } + ], + "functionName": { + "name": "and", + "nodeType": "YulIdentifier", + "src": "5315:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "5315:17:1" + }, + "variableNames": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5305:6:1" + } + ] + } + ] + }, + "condition": { + "arguments": [ + { + "name": "outOfPlaceEncoding", + "nodeType": "YulIdentifier", + "src": "5271:18:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "5264:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5264:26:1" + }, + "nodeType": "YulIf", + "src": "5261:81:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5394:42:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x22", + "nodeType": "YulIdentifier", + "src": "5408:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "5408:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5408:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "outOfPlaceEncoding", + "nodeType": "YulIdentifier", + "src": "5358:18:1" + }, + { + "arguments": [ + { + "name": "length", + "nodeType": "YulIdentifier", + "src": "5381:6:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5389:2:1", + "type": "", + "value": "32" + } + ], + "functionName": { + "name": "lt", + "nodeType": "YulIdentifier", + "src": "5378:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5378:14:1" + } + ], + "functionName": { + "name": "eq", + "nodeType": "YulIdentifier", + "src": "5355:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5355:38:1" + }, + "nodeType": "YulIf", + "src": "5352:84:1" + } + ] + }, + "name": "extract_byte_array_length", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "data", + "nodeType": "YulTypedName", + "src": "5157:4:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "length", + "nodeType": "YulTypedName", + "src": "5166:6:1", + "type": "" + } + ], + "src": "5122:320:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5491:238:1", + "statements": [ + { + "nodeType": "YulVariableDeclaration", + "src": "5501:58:1", + "value": { + "arguments": [ + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "5523:6:1" + }, + { + "arguments": [ + { + "name": "size", + "nodeType": "YulIdentifier", + "src": "5553:4:1" + } + ], + "functionName": { + "name": "round_up_to_mul_of_32", + "nodeType": "YulIdentifier", + "src": "5531:21:1" + }, + "nodeType": "YulFunctionCall", + "src": "5531:27:1" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "5519:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "5519:40:1" + }, + "variables": [ + { + "name": "newFreePtr", + "nodeType": "YulTypedName", + "src": "5505:10:1", + "type": "" + } + ] + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5670:22:1", + "statements": [ + { + "expression": { + "arguments": [], + "functionName": { + "name": "panic_error_0x41", + "nodeType": "YulIdentifier", + "src": "5672:16:1" + }, + "nodeType": "YulFunctionCall", + "src": "5672:18:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5672:18:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "newFreePtr", + "nodeType": "YulIdentifier", + "src": "5613:10:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5625:18:1", + "type": "", + "value": "0xffffffffffffffff" + } + ], + "functionName": { + "name": "gt", + "nodeType": "YulIdentifier", + "src": "5610:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5610:34:1" + }, + { + "arguments": [ + { + "name": "newFreePtr", + "nodeType": "YulIdentifier", + "src": "5649:10:1" + }, + { + "name": "memPtr", + "nodeType": "YulIdentifier", + "src": "5661:6:1" + } + ], + "functionName": { + "name": "lt", + "nodeType": "YulIdentifier", + "src": "5646:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5646:22:1" + } + ], + "functionName": { + "name": "or", + "nodeType": "YulIdentifier", + "src": "5607:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "5607:62:1" + }, + "nodeType": "YulIf", + "src": "5604:88:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5708:2:1", + "type": "", + "value": "64" + }, + { + "name": "newFreePtr", + "nodeType": "YulIdentifier", + "src": "5712:10:1" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "5701:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5701:22:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5701:22:1" + } + ] + }, + "name": "finalize_allocation", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "memPtr", + "nodeType": "YulTypedName", + "src": "5477:6:1", + "type": "" + }, + { + "name": "size", + "nodeType": "YulTypedName", + "src": "5485:4:1", + "type": "" + } + ], + "src": "5448:281:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5763:152:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5780:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5783:77:1", + "type": "", + "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "5773:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5773:88:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5773:88:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5877:1:1", + "type": "", + "value": "4" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5880:4:1", + "type": "", + "value": "0x11" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "5870:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5870:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5870:15:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5901:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5904:4:1", + "type": "", + "value": "0x24" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "5894:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5894:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5894:15:1" + } + ] + }, + "name": "panic_error_0x11", + "nodeType": "YulFunctionDefinition", + "src": "5735:180:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "5949:152:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5966:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "5969:77:1", + "type": "", + "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "5959:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "5959:88:1" + }, + "nodeType": "YulExpressionStatement", + "src": "5959:88:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6063:1:1", + "type": "", + "value": "4" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6066:4:1", + "type": "", + "value": "0x22" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "6056:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6056:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6056:15:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6087:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6090:4:1", + "type": "", + "value": "0x24" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6080:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6080:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6080:15:1" + } + ] + }, + "name": "panic_error_0x22", + "nodeType": "YulFunctionDefinition", + "src": "5921:180:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6135:152:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6152:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6155:77:1", + "type": "", + "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "6145:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6145:88:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6145:88:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6249:1:1", + "type": "", + "value": "4" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6252:4:1", + "type": "", + "value": "0x41" + } + ], + "functionName": { + "name": "mstore", + "nodeType": "YulIdentifier", + "src": "6242:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6242:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6242:15:1" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6273:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6276:4:1", + "type": "", + "value": "0x24" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6266:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6266:15:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6266:15:1" + } + ] + }, + "name": "panic_error_0x41", + "nodeType": "YulFunctionDefinition", + "src": "6107:180:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6382:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6399:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6402:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6392:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6392:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6392:12:1" + } + ] + }, + "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", + "nodeType": "YulFunctionDefinition", + "src": "6293:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6505:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6522:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6525:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6515:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6515:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6515:12:1" + } + ] + }, + "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", + "nodeType": "YulFunctionDefinition", + "src": "6416:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6628:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6645:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6648:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6638:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6638:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6638:12:1" + } + ] + }, + "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", + "nodeType": "YulFunctionDefinition", + "src": "6539:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6751:28:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6768:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6771:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6761:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6761:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6761:12:1" + } + ] + }, + "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", + "nodeType": "YulFunctionDefinition", + "src": "6662:117:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6833:54:1", + "statements": [ + { + "nodeType": "YulAssignment", + "src": "6843:38:1", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "6861:5:1" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6868:2:1", + "type": "", + "value": "31" + } + ], + "functionName": { + "name": "add", + "nodeType": "YulIdentifier", + "src": "6857:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "6857:14:1" + }, + { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "6877:2:1", + "type": "", + "value": "31" + } + ], + "functionName": { + "name": "not", + "nodeType": "YulIdentifier", + "src": "6873:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "6873:7:1" + } + ], + "functionName": { + "name": "and", + "nodeType": "YulIdentifier", + "src": "6853:3:1" + }, + "nodeType": "YulFunctionCall", + "src": "6853:28:1" + }, + "variableNames": [ + { + "name": "result", + "nodeType": "YulIdentifier", + "src": "6843:6:1" + } + ] + } + ] + }, + "name": "round_up_to_mul_of_32", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "6816:5:1", + "type": "" + } + ], + "returnVariables": [ + { + "name": "result", + "nodeType": "YulTypedName", + "src": "6826:6:1", + "type": "" + } + ], + "src": "6785:102:1" + }, + { + "body": { + "nodeType": "YulBlock", + "src": "6936:79:1", + "statements": [ + { + "body": { + "nodeType": "YulBlock", + "src": "6993:16:1", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "7002:1:1", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nodeType": "YulLiteral", + "src": "7005:1:1", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "revert", + "nodeType": "YulIdentifier", + "src": "6995:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6995:12:1" + }, + "nodeType": "YulExpressionStatement", + "src": "6995:12:1" + } + ] + }, + "condition": { + "arguments": [ + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "6959:5:1" + }, + { + "arguments": [ + { + "name": "value", + "nodeType": "YulIdentifier", + "src": "6984:5:1" + } + ], + "functionName": { + "name": "cleanup_t_uint256", + "nodeType": "YulIdentifier", + "src": "6966:17:1" + }, + "nodeType": "YulFunctionCall", + "src": "6966:24:1" + } + ], + "functionName": { + "name": "eq", + "nodeType": "YulIdentifier", + "src": "6956:2:1" + }, + "nodeType": "YulFunctionCall", + "src": "6956:35:1" + } + ], + "functionName": { + "name": "iszero", + "nodeType": "YulIdentifier", + "src": "6949:6:1" + }, + "nodeType": "YulFunctionCall", + "src": "6949:43:1" + }, + "nodeType": "YulIf", + "src": "6946:63:1" + } + ] + }, + "name": "validator_revert_t_uint256", + "nodeType": "YulFunctionDefinition", + "parameters": [ + { + "name": "value", + "nodeType": "YulTypedName", + "src": "6929:5:1", + "type": "" + } + ], + "src": "6893:122:1" + } + ] + }, + "contents": "{\n\n function abi_decode_available_length_t_string_memory_ptr(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_calldata_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_string_memory_ptr(add(offset, 0x20), length, end)\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_string_memory_ptr(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_bool_to_t_bool_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function copy_calldata_to_memory(src, dst, length) {\n calldatacopy(dst, src, length)\n // clear end\n mstore(add(dst, length), 0)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", + "id": 1, + "language": "Yul", + "name": "#utility.yul" + } + ], + "immutableReferences": {}, + "linkReferences": {}, + "object": "608060405234801561001057600080fd5b50600436106100935760003560e01c8063b69ef8a811610066578063b69ef8a814610120578063b6b55f251461013e578063c47f00271461015a578063d285b7b414610176578063d5dcf1271461019457610093565b806317d7de7c1461009857806318db62fb146100b65780631fad2953146100e6578063967e6e6514610102575b600080fd5b6100a06101b0565b6040516100ad91906104e8565b60405180910390f35b6100d060048036038101906100cb9190610449565b610242565b6040516100dd91906104cd565b60405180910390f35b61010060048036038101906100fb9190610449565b610250565b005b61010a61027a565b604051610117919061050a565b60405180910390f35b610128610284565b604051610135919061050a565b60405180910390f35b61015860048036038101906101539190610449565b61028d565b005b610174600480360381019061016f9190610400565b6102a8565b005b61017e6102c2565b60405161018b91906104cd565b60405180910390f35b6101ae60048036038101906101a99190610449565b6102ce565b005b6060600180546101bf90610679565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610679565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600081600054119050919050565b61025981610242565b15610277578060008082825461026f91906105ed565b925050819055505b50565b6000600254905090565b60008054905090565b8060008082825461029e9190610597565b9250508190555050565b80600190805190602001906102be9291906102d8565b5050565b60008060005411905090565b8060028190555050565b8280546102e490610679565b90600052602060002090601f016020900481019282610306576000855561034d565b82601f1061031f57805160ff191683800117855561034d565b8280016001018555821561034d579182015b8281111561034c578251825591602001919060010190610331565b5b50905061035a919061035e565b5090565b5b8082111561037757600081600090555060010161035f565b5090565b600061038e6103898461054a565b610525565b9050828152602081018484840111156103aa576103a961076e565b5b6103b5848285610637565b509392505050565b600082601f8301126103d2576103d1610769565b5b81356103e284826020860161037b565b91505092915050565b6000813590506103fa8161078e565b92915050565b60006020828403121561041657610415610778565b5b600082013567ffffffffffffffff81111561043457610433610773565b5b610440848285016103bd565b91505092915050565b60006020828403121561045f5761045e610778565b5b600061046d848285016103eb565b91505092915050565b61047f81610621565b82525050565b60006104908261057b565b61049a8185610586565b93506104aa818560208601610646565b6104b38161077d565b840191505092915050565b6104c78161062d565b82525050565b60006020820190506104e26000830184610476565b92915050565b600060208201905081810360008301526105028184610485565b905092915050565b600060208201905061051f60008301846104be565b92915050565b600061052f610540565b905061053b82826106ab565b919050565b6000604051905090565b600067ffffffffffffffff8211156105655761056461073a565b5b61056e8261077d565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006105a28261062d565b91506105ad8361062d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156105e2576105e16106dc565b5b828201905092915050565b60006105f88261062d565b91506106038361062d565b925082821015610616576106156106dc565b5b828203905092915050565b60008115159050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610664578082015181840152602081019050610649565b83811115610673576000848401525b50505050565b6000600282049050600182168061069157607f821691505b602082108114156106a5576106a461070b565b5b50919050565b6106b48261077d565b810181811067ffffffffffffffff821117156106d3576106d261073a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6107978161062d565b81146107a257600080fd5b5056fea2646970667358221220571b55a57474640680b217b8b808b72dfa988117bb06e235301023e283cbd3fc64736f6c63430008070033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x93 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB69EF8A8 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xC47F0027 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0x176 JUMPI DUP1 PUSH4 0xD5DCF127 EQ PUSH2 0x194 JUMPI PUSH2 0x93 JUMP JUMPDEST DUP1 PUSH4 0x17D7DE7C EQ PUSH2 0x98 JUMPI DUP1 PUSH4 0x18DB62FB EQ PUSH2 0xB6 JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0xE6 JUMPI DUP1 PUSH4 0x967E6E65 EQ PUSH2 0x102 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x1B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAD SWAP2 SWAP1 PUSH2 0x4E8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xD0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xCB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x242 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xDD SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x100 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xFB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x250 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x10A PUSH2 0x27A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x117 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x128 PUSH2 0x284 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x135 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x158 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x153 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x28D JUMP JUMPDEST STOP JUMPDEST PUSH2 0x174 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x16F SWAP2 SWAP1 PUSH2 0x400 JUMP JUMPDEST PUSH2 0x2A8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x17E PUSH2 0x2C2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1AE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1A9 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x2CE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD PUSH2 0x1BF SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x1EB SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x238 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x20D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x238 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x21B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x259 DUP2 PUSH2 0x242 JUMP JUMPDEST ISZERO PUSH2 0x277 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x26F SWAP2 SWAP1 PUSH2 0x5ED JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x29E SWAP2 SWAP1 PUSH2 0x597 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2BE SWAP3 SWAP2 SWAP1 PUSH2 0x2D8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x2 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x2E4 SWAP1 PUSH2 0x679 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x306 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x31F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x34D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x34C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x331 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x35A SWAP2 SWAP1 PUSH2 0x35E JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x377 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x35F JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38E PUSH2 0x389 DUP5 PUSH2 0x54A JUMP JUMPDEST PUSH2 0x525 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x3AA JUMPI PUSH2 0x3A9 PUSH2 0x76E JUMP JUMPDEST JUMPDEST PUSH2 0x3B5 DUP5 DUP3 DUP6 PUSH2 0x637 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x3D2 JUMPI PUSH2 0x3D1 PUSH2 0x769 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x3E2 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x37B JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x3FA DUP2 PUSH2 0x78E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x416 JUMPI PUSH2 0x415 PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x434 JUMPI PUSH2 0x433 PUSH2 0x773 JUMP JUMPDEST JUMPDEST PUSH2 0x440 DUP5 DUP3 DUP6 ADD PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45F JUMPI PUSH2 0x45E PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x46D DUP5 DUP3 DUP6 ADD PUSH2 0x3EB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x47F DUP2 PUSH2 0x621 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x490 DUP3 PUSH2 0x57B JUMP JUMPDEST PUSH2 0x49A DUP2 DUP6 PUSH2 0x586 JUMP JUMPDEST SWAP4 POP PUSH2 0x4AA DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x646 JUMP JUMPDEST PUSH2 0x4B3 DUP2 PUSH2 0x77D JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x4C7 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x4E2 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x476 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x502 DUP2 DUP5 PUSH2 0x485 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x51F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x4BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x52F PUSH2 0x540 JUMP JUMPDEST SWAP1 POP PUSH2 0x53B DUP3 DUP3 PUSH2 0x6AB JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x565 JUMPI PUSH2 0x564 PUSH2 0x73A JUMP JUMPDEST JUMPDEST PUSH2 0x56E DUP3 PUSH2 0x77D JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x5AD DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x5E2 JUMPI PUSH2 0x5E1 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5F8 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x603 DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x616 JUMPI PUSH2 0x615 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x664 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x649 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x673 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x691 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x6A5 JUMPI PUSH2 0x6A4 PUSH2 0x70B JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x6B4 DUP3 PUSH2 0x77D JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x6D3 JUMPI PUSH2 0x6D2 PUSH2 0x73A JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x797 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP2 EQ PUSH2 0x7A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPI SHL SSTORE 0xA5 PUSH21 0x74640680B217B8B808B72DFA988117BB06E2353010 0x23 0xE2 DUP4 0xCB 0xD3 0xFC PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", + "sourceMap": "819:482:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1058:84;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;612:109;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;386:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1219:73;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;513:76;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;311:69;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;964:88;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;727:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1148:65;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1058:84;1098:13;1130:4;1123:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1058:84;:::o;612:109::-;675:4;707:6;699:5;;:14;692:21;;612:109;;;:::o;386:121::-;441:18;452:6;441:10;:18::i;:::-;437:64;;;483:6;474:5;;:15;;;;;;;:::i;:::-;;;;;;;;437:64;386:121;:::o;1219:73::-;1258:4;1281:3;;1274:10;;1219:73;:::o;513:76::-;553:4;577:5;;570:12;;513:76;:::o;311:69::-;367:6;358:5;;:15;;;;;;;:::i;:::-;;;;;;;;311:69;:::o;964:88::-;1037:7;1030:4;:14;;;;;;;;;;;;:::i;:::-;;964:88;:::o;727:87::-;773:4;805:1;797:5;;:9;790:16;;727:87;:::o;1148:65::-;1200:6;1194:3;:12;;;;1148:65;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:412:1:-;85:5;110:66;126:49;168:6;126:49;:::i;:::-;110:66;:::i;:::-;101:75;;199:6;192:5;185:21;237:4;230:5;226:16;275:3;266:6;261:3;257:16;254:25;251:112;;;282:79;;:::i;:::-;251:112;372:41;406:6;401:3;396;372:41;:::i;:::-;91:328;7:412;;;;;:::o;439:340::-;495:5;544:3;537:4;529:6;525:17;521:27;511:122;;552:79;;:::i;:::-;511:122;669:6;656:20;694:79;769:3;761:6;754:4;746:6;742:17;694:79;:::i;:::-;685:88;;501:278;439:340;;;;:::o;785:139::-;831:5;869:6;856:20;847:29;;885:33;912:5;885:33;:::i;:::-;785:139;;;;:::o;930:509::-;999:6;1048:2;1036:9;1027:7;1023:23;1019:32;1016:119;;;1054:79;;:::i;:::-;1016:119;1202:1;1191:9;1187:17;1174:31;1232:18;1224:6;1221:30;1218:117;;;1254:79;;:::i;:::-;1218:117;1359:63;1414:7;1405:6;1394:9;1390:22;1359:63;:::i;:::-;1349:73;;1145:287;930:509;;;;:::o;1445:329::-;1504:6;1553:2;1541:9;1532:7;1528:23;1524:32;1521:119;;;1559:79;;:::i;:::-;1521:119;1679:1;1704:53;1749:7;1740:6;1729:9;1725:22;1704:53;:::i;:::-;1694:63;;1650:117;1445:329;;;;:::o;1780:109::-;1861:21;1876:5;1861:21;:::i;:::-;1856:3;1849:34;1780:109;;:::o;1895:364::-;1983:3;2011:39;2044:5;2011:39;:::i;:::-;2066:71;2130:6;2125:3;2066:71;:::i;:::-;2059:78;;2146:52;2191:6;2186:3;2179:4;2172:5;2168:16;2146:52;:::i;:::-;2223:29;2245:6;2223:29;:::i;:::-;2218:3;2214:39;2207:46;;1987:272;1895:364;;;;:::o;2265:118::-;2352:24;2370:5;2352:24;:::i;:::-;2347:3;2340:37;2265:118;;:::o;2389:210::-;2476:4;2514:2;2503:9;2499:18;2491:26;;2527:65;2589:1;2578:9;2574:17;2565:6;2527:65;:::i;:::-;2389:210;;;;:::o;2605:313::-;2718:4;2756:2;2745:9;2741:18;2733:26;;2805:9;2799:4;2795:20;2791:1;2780:9;2776:17;2769:47;2833:78;2906:4;2897:6;2833:78;:::i;:::-;2825:86;;2605:313;;;;:::o;2924:222::-;3017:4;3055:2;3044:9;3040:18;3032:26;;3068:71;3136:1;3125:9;3121:17;3112:6;3068:71;:::i;:::-;2924:222;;;;:::o;3152:129::-;3186:6;3213:20;;:::i;:::-;3203:30;;3242:33;3270:4;3262:6;3242:33;:::i;:::-;3152:129;;;:::o;3287:75::-;3320:6;3353:2;3347:9;3337:19;;3287:75;:::o;3368:308::-;3430:4;3520:18;3512:6;3509:30;3506:56;;;3542:18;;:::i;:::-;3506:56;3580:29;3602:6;3580:29;:::i;:::-;3572:37;;3664:4;3658;3654:15;3646:23;;3368:308;;;:::o;3682:99::-;3734:6;3768:5;3762:12;3752:22;;3682:99;;;:::o;3787:169::-;3871:11;3905:6;3900:3;3893:19;3945:4;3940:3;3936:14;3921:29;;3787:169;;;;:::o;3962:305::-;4002:3;4021:20;4039:1;4021:20;:::i;:::-;4016:25;;4055:20;4073:1;4055:20;:::i;:::-;4050:25;;4209:1;4141:66;4137:74;4134:1;4131:81;4128:107;;;4215:18;;:::i;:::-;4128:107;4259:1;4256;4252:9;4245:16;;3962:305;;;;:::o;4273:191::-;4313:4;4333:20;4351:1;4333:20;:::i;:::-;4328:25;;4367:20;4385:1;4367:20;:::i;:::-;4362:25;;4406:1;4403;4400:8;4397:34;;;4411:18;;:::i;:::-;4397:34;4456:1;4453;4449:9;4441:17;;4273:191;;;;:::o;4470:90::-;4504:7;4547:5;4540:13;4533:21;4522:32;;4470:90;;;:::o;4566:77::-;4603:7;4632:5;4621:16;;4566:77;;;:::o;4649:154::-;4733:6;4728:3;4723;4710:30;4795:1;4786:6;4781:3;4777:16;4770:27;4649:154;;;:::o;4809:307::-;4877:1;4887:113;4901:6;4898:1;4895:13;4887:113;;;4986:1;4981:3;4977:11;4971:18;4967:1;4962:3;4958:11;4951:39;4923:2;4920:1;4916:10;4911:15;;4887:113;;;5018:6;5015:1;5012:13;5009:101;;;5098:1;5089:6;5084:3;5080:16;5073:27;5009:101;4858:258;4809:307;;;:::o;5122:320::-;5166:6;5203:1;5197:4;5193:12;5183:22;;5250:1;5244:4;5240:12;5271:18;5261:81;;5327:4;5319:6;5315:17;5305:27;;5261:81;5389:2;5381:6;5378:14;5358:18;5355:38;5352:84;;;5408:18;;:::i;:::-;5352:84;5173:269;5122:320;;;:::o;5448:281::-;5531:27;5553:4;5531:27;:::i;:::-;5523:6;5519:40;5661:6;5649:10;5646:22;5625:18;5613:10;5610:34;5607:62;5604:88;;;5672:18;;:::i;:::-;5604:88;5712:10;5708:2;5701:22;5491:238;5448:281;;:::o;5735:180::-;5783:77;5780:1;5773:88;5880:4;5877:1;5870:15;5904:4;5901:1;5894:15;5921:180;5969:77;5966:1;5959:88;6066:4;6063:1;6056:15;6090:4;6087:1;6080:15;6107:180;6155:77;6152:1;6145:88;6252:4;6249:1;6242:15;6276:4;6273:1;6266:15;6293:117;6402:1;6399;6392:12;6416:117;6525:1;6522;6515:12;6539:117;6648:1;6645;6638:12;6662:117;6771:1;6768;6761:12;6785:102;6826:6;6877:2;6873:7;6868:2;6861:5;6857:14;6853:28;6843:38;;6785:102;;;:::o;6893:122::-;6966:24;6984:5;6966:24;:::i;:::-;6959:5;6956:35;6946:63;;7005:1;7002;6995:12;6946:63;6893:122;:::o" + }, + "gasEstimates": { + "creation": { + "codeDepositCost": "402200", + "executionCost": "22555", + "totalCost": "424755" + }, + "external": { + "balance()": "2437", + "checkValue(uint256)": "2737", + "deposit(uint256)": "infinite", + "getAge()": "2504", + "getName()": "infinite", + "loan()": "2515", + "setAge(uint256)": "22608", + "setName(string)": "infinite", + "withdrawel(uint256)": "infinite" + } + }, + "methodIdentifiers": { + "balance()": "b69ef8a8", + "checkValue(uint256)": "18db62fb", + "deposit(uint256)": "b6b55f25", + "getAge()": "967e6e65", + "getName()": "17d7de7c", + "loan()": "d285b7b4", + "setAge(uint256)": "d5dcf127", + "setName(string)": "c47f0027", + "withdrawel(uint256)": "1fad2953" + } + }, + "abi": [ + { + "inputs": [], + "name": "balance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getAge", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getName", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newAge", + "type": "uint256" + } + ], + "name": "setAge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "newName", + "type": "string" + } + ], + "name": "setName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/tutorial-02/artifacts/myfirstcontract_metadata.json b/tutorial-02/artifacts/myfirstcontract_metadata.json new file mode 100644 index 0000000..addef41 --- /dev/null +++ b/tutorial-02/artifacts/myfirstcontract_metadata.json @@ -0,0 +1,169 @@ +{ + "compiler": { + "version": "0.8.7+commit.e28d00a7" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [], + "name": "balance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "checkValue", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getAge", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getName", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "loan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newAge", + "type": "uint256" + } + ], + "name": "setAge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "newName", + "type": "string" + } + ], + "name": "setName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "compilationTarget": { + "tutorial-02/myfirstcontract.sol": "myfirstcontract" + }, + "evmVersion": "london", + "libraries": {}, + "metadata": { + "bytecodeHash": "ipfs" + }, + "optimizer": { + "enabled": false, + "runs": 200 + }, + "remappings": [] + }, + "sources": { + "tutorial-02/myfirstcontract.sol": { + "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", + "license": "MIT", + "urls": [ + "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", + "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" + ] + } + }, + "version": 1 +} \ No newline at end of file diff --git a/tutorial-02/myfirstcontract.sol b/tutorial-02/myfirstcontract.sol index 5e9445b..c40d6c8 100644 --- a/tutorial-02/myfirstcontract.sol +++ b/tutorial-02/myfirstcontract.sol @@ -9,45 +9,41 @@ interface Regulator { contract Bank is Regulator{ - // The internal modifer means that the function - // can only be called within the contract itself and any derived contracts. - // ex. uint internal myInternalValue - - uint private bankValue; + uint private value; constructor(uint amount) { - bankValue = amount; + value = amount; } function deposit(uint amount) public { - bankValue += amount; + value += amount; } function withdrawel(uint amount) public { if (checkValue(amount)){ - bankValue -= amount; + value -= amount; } } function balance() public view returns (uint) { - return bankValue; + return value; } // Override function checkValue(uint amount) public override view returns (bool) { - return bankValue > amount; + return value > amount; } function loan() public override view returns (bool) { - return bankValue > 0; + return value > 0; } From 3df476c77051200191081e09849cabca34c4b5e1 Mon Sep 17 00:00:00 2001 From: "\"Jordan Loudis\"" <"16jloudis@gmail.com"> Date: Tue, 14 Dec 2021 19:38:30 -0500 Subject: [PATCH 3/3] Fix Tutorials 1 & 2 to work with the latest solidity version - ^0.8.7 --- tutorial-02/artifacts/Bank.json | 2245 --------- tutorial-02/artifacts/Bank_metadata.json | 128 - tutorial-02/artifacts/Regulator.json | 90 - tutorial-02/artifacts/Regulator_metadata.json | 78 - tutorial-02/artifacts/myfirstcontract.json | 4339 ----------------- .../artifacts/myfirstcontract_metadata.json | 169 - 6 files changed, 7049 deletions(-) delete mode 100644 tutorial-02/artifacts/Bank.json delete mode 100644 tutorial-02/artifacts/Bank_metadata.json delete mode 100644 tutorial-02/artifacts/Regulator.json delete mode 100644 tutorial-02/artifacts/Regulator_metadata.json delete mode 100644 tutorial-02/artifacts/myfirstcontract.json delete mode 100644 tutorial-02/artifacts/myfirstcontract_metadata.json diff --git a/tutorial-02/artifacts/Bank.json b/tutorial-02/artifacts/Bank.json deleted file mode 100644 index 1be3750..0000000 --- a/tutorial-02/artifacts/Bank.json +++ /dev/null @@ -1,2245 +0,0 @@ -{ - "deploy": { - "VM:-": { - "linkReferences": {}, - "autoDeployLib": true - }, - "main:1": { - "linkReferences": {}, - "autoDeployLib": true - }, - "ropsten:3": { - "linkReferences": {}, - "autoDeployLib": true - }, - "rinkeby:4": { - "linkReferences": {}, - "autoDeployLib": true - }, - "kovan:42": { - "linkReferences": {}, - "autoDeployLib": true - }, - "görli:5": { - "linkReferences": {}, - "autoDeployLib": true - }, - "Custom": { - "linkReferences": {}, - "autoDeployLib": true - } - }, - "data": { - "bytecode": { - "functionDebugData": { - "@_28": { - "entryPoint": null, - "id": 28, - "parameterSlots": 1, - "returnSlots": 0 - }, - "abi_decode_t_uint256_fromMemory": { - "entryPoint": 63, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_decode_tuple_t_uint256_fromMemory": { - "entryPoint": 84, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "allocate_unbounded": { - "entryPoint": null, - "id": null, - "parameterSlots": 0, - "returnSlots": 1 - }, - "cleanup_t_uint256": { - "entryPoint": 129, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { - "entryPoint": null, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { - "entryPoint": 139, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "validator_revert_t_uint256": { - "entryPoint": 144, - "id": null, - "parameterSlots": 1, - "returnSlots": 0 - } - }, - "generatedSources": [ - { - "ast": { - "nodeType": "YulBlock", - "src": "0:1048:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "70:80:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "80:22:1", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "95:6:1" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "89:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "89:13:1" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "80:5:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "138:5:1" - } - ], - "functionName": { - "name": "validator_revert_t_uint256", - "nodeType": "YulIdentifier", - "src": "111:26:1" - }, - "nodeType": "YulFunctionCall", - "src": "111:33:1" - }, - "nodeType": "YulExpressionStatement", - "src": "111:33:1" - } - ] - }, - "name": "abi_decode_t_uint256_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "48:6:1", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "56:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "64:5:1", - "type": "" - } - ], - "src": "7:143:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "233:274:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "279:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "281:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "281:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "281:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "254:7:1" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "263:9:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "250:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "250:23:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "275:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "246:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "246:32:1" - }, - "nodeType": "YulIf", - "src": "243:119:1" - }, - { - "nodeType": "YulBlock", - "src": "372:128:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "387:15:1", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "401:1:1", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "391:6:1", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "416:74:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "462:9:1" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "473:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "458:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "458:22:1" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "482:7:1" - } - ], - "functionName": { - "name": "abi_decode_t_uint256_fromMemory", - "nodeType": "YulIdentifier", - "src": "426:31:1" - }, - "nodeType": "YulFunctionCall", - "src": "426:64:1" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "416:6:1" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_uint256_fromMemory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "203:9:1", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "214:7:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "226:6:1", - "type": "" - } - ], - "src": "156:351:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "553:35:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "563:19:1", - "value": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "579:2:1", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "573:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "573:9:1" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "563:6:1" - } - ] - } - ] - }, - "name": "allocate_unbounded", - "nodeType": "YulFunctionDefinition", - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "546:6:1", - "type": "" - } - ], - "src": "513:75:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "639:32:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "649:16:1", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "660:5:1" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "649:7:1" - } - ] - } - ] - }, - "name": "cleanup_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "621:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "631:7:1", - "type": "" - } - ], - "src": "594:77:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "766:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "783:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "786:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "776:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "776:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "776:12:1" - } - ] - }, - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulFunctionDefinition", - "src": "677:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "889:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "906:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "909:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "899:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "899:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "899:12:1" - } - ] - }, - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulFunctionDefinition", - "src": "800:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "966:79:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1023:16:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1032:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1035:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "1025:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "1025:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1025:12:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "989:5:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1014:5:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "996:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "996:24:1" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "986:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "986:35:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "979:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "979:43:1" - }, - "nodeType": "YulIf", - "src": "976:63:1" - } - ] - }, - "name": "validator_revert_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "959:5:1", - "type": "" - } - ], - "src": "923:122:1" - } - ] - }, - "contents": "{\n\n function abi_decode_t_uint256_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", - "id": 1, - "language": "Yul", - "name": "#utility.yul" - } - ], - "linkReferences": {}, - "object": "608060405234801561001057600080fd5b506040516103d53803806103d583398181016040528101906100329190610054565b80600081905550506100a7565b60008151905061004e81610090565b92915050565b60006020828403121561006a5761006961008b565b5b60006100788482850161003f565b91505092915050565b6000819050919050565b600080fd5b61009981610081565b81146100a457600080fd5b50565b61031f806100b66000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806318db62fb1461005c5780631fad29531461008c578063b69ef8a8146100a8578063b6b55f25146100c6578063d285b7b4146100e2575b600080fd5b6100766004803603810190610071919061017d565b610100565b60405161008391906101c8565b60405180910390f35b6100a660048036038101906100a1919061017d565b61010e565b005b6100b0610138565b6040516100bd91906101e3565b60405180910390f35b6100e060048036038101906100db919061017d565b610141565b005b6100ea61015c565b6040516100f791906101c8565b60405180910390f35b600081600054119050919050565b61011781610100565b15610135578060008082825461012d9190610254565b925050819055505b50565b60008054905090565b8060008082825461015291906101fe565b9250508190555050565b60008060005411905090565b600081359050610177816102d2565b92915050565b600060208284031215610193576101926102cd565b5b60006101a184828501610168565b91505092915050565b6101b381610288565b82525050565b6101c281610294565b82525050565b60006020820190506101dd60008301846101aa565b92915050565b60006020820190506101f860008301846101b9565b92915050565b600061020982610294565b915061021483610294565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156102495761024861029e565b5b828201905092915050565b600061025f82610294565b915061026a83610294565b92508282101561027d5761027c61029e565b5b828203905092915050565b60008115159050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6102db81610294565b81146102e657600080fd5b5056fea2646970667358221220eb3089beeaa9071511abf5e314e481d2a76d2d53b55c8ec6472118fa6859608564736f6c63430008070033", - "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x3D5 CODESIZE SUB DUP1 PUSH2 0x3D5 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH2 0x32 SWAP2 SWAP1 PUSH2 0x54 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0xA7 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH2 0x4E DUP2 PUSH2 0x90 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6A JUMPI PUSH2 0x69 PUSH2 0x8B JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x78 DUP5 DUP3 DUP6 ADD PUSH2 0x3F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x99 DUP2 PUSH2 0x81 JUMP JUMPDEST DUP2 EQ PUSH2 0xA4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x31F DUP1 PUSH2 0xB6 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 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x18DB62FB EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0x8C JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0xC6 JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0xE2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x100 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x83 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xA6 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xA1 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x10E JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB0 PUSH2 0x138 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBD SWAP2 SWAP1 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xDB SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x141 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEA PUSH2 0x15C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF7 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x117 DUP2 PUSH2 0x100 JUMP JUMPDEST ISZERO PUSH2 0x135 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x12D SWAP2 SWAP1 PUSH2 0x254 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x152 SWAP2 SWAP1 PUSH2 0x1FE JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x177 DUP2 PUSH2 0x2D2 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x193 JUMPI PUSH2 0x192 PUSH2 0x2CD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1A1 DUP5 DUP3 DUP6 ADD PUSH2 0x168 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1B3 DUP2 PUSH2 0x288 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x1C2 DUP2 PUSH2 0x294 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1DD PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1AA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1F8 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1B9 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x209 DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x214 DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x249 JUMPI PUSH2 0x248 PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x25F DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x26A DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x27D JUMPI PUSH2 0x27C PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DB DUP2 PUSH2 0x294 JUMP JUMPDEST DUP2 EQ PUSH2 0x2E6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB ADDRESS DUP10 0xBE 0xEA 0xA9 SMOD ISZERO GT 0xAB CREATE2 0xE3 EQ 0xE4 DUP2 0xD2 0xA7 PUSH14 0x2D53B55C8EC6472118FA68596085 PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", - "sourceMap": "190:627:0:-:0;;;248:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;292:6;284:5;:14;;;;248:57;190:627;;7:143:1;64:5;95:6;89:13;80:22;;111:33;138:5;111:33;:::i;:::-;7:143;;;;:::o;156:351::-;226:6;275:2;263:9;254:7;250:23;246:32;243:119;;;281:79;;:::i;:::-;243:119;401:1;426:64;482:7;473:6;462:9;458:22;426:64;:::i;:::-;416:74;;372:128;156:351;;;;:::o;594:77::-;631:7;660:5;649:16;;594:77;;;:::o;800:117::-;909:1;906;899:12;923:122;996:24;1014:5;996:24;:::i;:::-;989:5;986:35;976:63;;1035:1;1032;1025:12;976:63;923:122;:::o;190:627:0:-;;;;;;;" - }, - "deployedBytecode": { - "functionDebugData": { - "@balance_61": { - "entryPoint": 312, - "id": 61, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@checkValue_74": { - "entryPoint": 256, - "id": 74, - "parameterSlots": 1, - "returnSlots": 1 - }, - "@deposit_38": { - "entryPoint": 321, - "id": 38, - "parameterSlots": 1, - "returnSlots": 0 - }, - "@loan_85": { - "entryPoint": 348, - "id": 85, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@withdrawel_53": { - "entryPoint": 270, - "id": 53, - "parameterSlots": 1, - "returnSlots": 0 - }, - "abi_decode_t_uint256": { - "entryPoint": 360, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_decode_tuple_t_uint256": { - "entryPoint": 381, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_t_bool_to_t_bool_fromStack": { - "entryPoint": 426, - "id": null, - "parameterSlots": 2, - "returnSlots": 0 - }, - "abi_encode_t_uint256_to_t_uint256_fromStack": { - "entryPoint": 441, - "id": null, - "parameterSlots": 2, - "returnSlots": 0 - }, - "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { - "entryPoint": 456, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { - "entryPoint": 483, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "allocate_unbounded": { - "entryPoint": null, - "id": null, - "parameterSlots": 0, - "returnSlots": 1 - }, - "checked_add_t_uint256": { - "entryPoint": 510, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "checked_sub_t_uint256": { - "entryPoint": 596, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "cleanup_t_bool": { - "entryPoint": 648, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "cleanup_t_uint256": { - "entryPoint": 660, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "panic_error_0x11": { - "entryPoint": 670, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { - "entryPoint": null, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { - "entryPoint": 717, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "validator_revert_t_uint256": { - "entryPoint": 722, - "id": null, - "parameterSlots": 1, - "returnSlots": 0 - } - }, - "generatedSources": [ - { - "ast": { - "nodeType": "YulBlock", - "src": "0:2495:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "59:87:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "69:29:1", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "91:6:1" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "78:12:1" - }, - "nodeType": "YulFunctionCall", - "src": "78:20:1" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "69:5:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "134:5:1" - } - ], - "functionName": { - "name": "validator_revert_t_uint256", - "nodeType": "YulIdentifier", - "src": "107:26:1" - }, - "nodeType": "YulFunctionCall", - "src": "107:33:1" - }, - "nodeType": "YulExpressionStatement", - "src": "107:33:1" - } - ] - }, - "name": "abi_decode_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "37:6:1", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "45:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "53:5:1", - "type": "" - } - ], - "src": "7:139:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "218:263:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "264:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "266:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "266:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "266:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "239:7:1" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "248:9:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "235:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "235:23:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "260:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "231:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "231:32:1" - }, - "nodeType": "YulIf", - "src": "228:119:1" - }, - { - "nodeType": "YulBlock", - "src": "357:117:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "372:15:1", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "386:1:1", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "376:6:1", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "401:63:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "436:9:1" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "447:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "432:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "432:22:1" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "456:7:1" - } - ], - "functionName": { - "name": "abi_decode_t_uint256", - "nodeType": "YulIdentifier", - "src": "411:20:1" - }, - "nodeType": "YulFunctionCall", - "src": "411:53:1" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "401:6:1" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "188:9:1", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "199:7:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "211:6:1", - "type": "" - } - ], - "src": "152:329:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "546:50:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "563:3:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "583:5:1" - } - ], - "functionName": { - "name": "cleanup_t_bool", - "nodeType": "YulIdentifier", - "src": "568:14:1" - }, - "nodeType": "YulFunctionCall", - "src": "568:21:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "556:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "556:34:1" - }, - "nodeType": "YulExpressionStatement", - "src": "556:34:1" - } - ] - }, - "name": "abi_encode_t_bool_to_t_bool_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "534:5:1", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "541:3:1", - "type": "" - } - ], - "src": "487:109:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "667:53:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "684:3:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "707:5:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "689:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "689:24:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "677:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "677:37:1" - }, - "nodeType": "YulExpressionStatement", - "src": "677:37:1" - } - ] - }, - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "655:5:1", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "662:3:1", - "type": "" - } - ], - "src": "602:118:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "818:118:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "828:26:1", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "840:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "851:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "836:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "836:18:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "828:4:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "902:6:1" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "915:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "926:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "911:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "911:17:1" - } - ], - "functionName": { - "name": "abi_encode_t_bool_to_t_bool_fromStack", - "nodeType": "YulIdentifier", - "src": "864:37:1" - }, - "nodeType": "YulFunctionCall", - "src": "864:65:1" - }, - "nodeType": "YulExpressionStatement", - "src": "864:65:1" - } - ] - }, - "name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "790:9:1", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "802:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "813:4:1", - "type": "" - } - ], - "src": "726:210:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1040:124:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1050:26:1", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1062:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1073:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1058:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1058:18:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "1050:4:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "1130:6:1" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1143:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1154:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1139:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1139:17:1" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "1086:43:1" - }, - "nodeType": "YulFunctionCall", - "src": "1086:71:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1086:71:1" - } - ] - }, - "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "1012:9:1", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "1024:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "1035:4:1", - "type": "" - } - ], - "src": "942:222:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1210:35:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1220:19:1", - "value": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1236:2:1", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "1230:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "1230:9:1" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "1220:6:1" - } - ] - } - ] - }, - "name": "allocate_unbounded", - "nodeType": "YulFunctionDefinition", - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "1203:6:1", - "type": "" - } - ], - "src": "1170:75:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1295:261:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1305:25:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1328:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "1310:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "1310:20:1" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1305:1:1" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1339:25:1", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1362:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "1344:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "1344:20:1" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1339:1:1" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1502:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "1504:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "1504:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1504:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1423:1:1" - }, - { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1430:66:1", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1498:1:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1426:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1426:74:1" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "1420:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "1420:81:1" - }, - "nodeType": "YulIf", - "src": "1417:107:1" - }, - { - "nodeType": "YulAssignment", - "src": "1534:16:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1545:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1548:1:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1541:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1541:9:1" - }, - "variableNames": [ - { - "name": "sum", - "nodeType": "YulIdentifier", - "src": "1534:3:1" - } - ] - } - ] - }, - "name": "checked_add_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "1282:1:1", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "1285:1:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "sum", - "nodeType": "YulTypedName", - "src": "1291:3:1", - "type": "" - } - ], - "src": "1251:305:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1607:146:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1617:25:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1640:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "1622:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "1622:20:1" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1617:1:1" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1651:25:1", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1674:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "1656:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "1656:20:1" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1651:1:1" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1698:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "1700:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "1700:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1700:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1692:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1695:1:1" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "1689:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "1689:8:1" - }, - "nodeType": "YulIf", - "src": "1686:34:1" - }, - { - "nodeType": "YulAssignment", - "src": "1730:17:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "1742:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "1745:1:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1738:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1738:9:1" - }, - "variableNames": [ - { - "name": "diff", - "nodeType": "YulIdentifier", - "src": "1730:4:1" - } - ] - } - ] - }, - "name": "checked_sub_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "1593:1:1", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "1596:1:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "diff", - "nodeType": "YulTypedName", - "src": "1602:4:1", - "type": "" - } - ], - "src": "1562:191:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1801:48:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1811:32:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1836:5:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "1829:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "1829:13:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "1822:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "1822:21:1" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "1811:7:1" - } - ] - } - ] - }, - "name": "cleanup_t_bool", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1783:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "1793:7:1", - "type": "" - } - ], - "src": "1759:90:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1900:32:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1910:16:1", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1921:5:1" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "1910:7:1" - } - ] - } - ] - }, - "name": "cleanup_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1882:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "1892:7:1", - "type": "" - } - ], - "src": "1855:77:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1966:152:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1983:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1986:77:1", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "1976:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "1976:88:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1976:88:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2080:1:1", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2083:4:1", - "type": "", - "value": "0x11" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "2073:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2073:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2073:15:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2104:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2107:4:1", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "2097:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2097:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2097:15:1" - } - ] - }, - "name": "panic_error_0x11", - "nodeType": "YulFunctionDefinition", - "src": "1938:180:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2213:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2230:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2233:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "2223:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2223:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2223:12:1" - } - ] - }, - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulFunctionDefinition", - "src": "2124:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2336:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2353:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2356:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "2346:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2346:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2346:12:1" - } - ] - }, - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulFunctionDefinition", - "src": "2247:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2413:79:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "2470:16:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2479:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2482:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "2472:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2472:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2472:12:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2436:5:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2461:5:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "2443:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "2443:24:1" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "2433:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "2433:35:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "2426:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2426:43:1" - }, - "nodeType": "YulIf", - "src": "2423:63:1" - } - ] - }, - "name": "validator_revert_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "2406:5:1", - "type": "" - } - ], - "src": "2370:122:1" - } - ] - }, - "contents": "{\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_bool_to_t_bool_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", - "id": 1, - "language": "Yul", - "name": "#utility.yul" - } - ], - "immutableReferences": {}, - "linkReferences": {}, - "object": "608060405234801561001057600080fd5b50600436106100575760003560e01c806318db62fb1461005c5780631fad29531461008c578063b69ef8a8146100a8578063b6b55f25146100c6578063d285b7b4146100e2575b600080fd5b6100766004803603810190610071919061017d565b610100565b60405161008391906101c8565b60405180910390f35b6100a660048036038101906100a1919061017d565b61010e565b005b6100b0610138565b6040516100bd91906101e3565b60405180910390f35b6100e060048036038101906100db919061017d565b610141565b005b6100ea61015c565b6040516100f791906101c8565b60405180910390f35b600081600054119050919050565b61011781610100565b15610135578060008082825461012d9190610254565b925050819055505b50565b60008054905090565b8060008082825461015291906101fe565b9250508190555050565b60008060005411905090565b600081359050610177816102d2565b92915050565b600060208284031215610193576101926102cd565b5b60006101a184828501610168565b91505092915050565b6101b381610288565b82525050565b6101c281610294565b82525050565b60006020820190506101dd60008301846101aa565b92915050565b60006020820190506101f860008301846101b9565b92915050565b600061020982610294565b915061021483610294565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156102495761024861029e565b5b828201905092915050565b600061025f82610294565b915061026a83610294565b92508282101561027d5761027c61029e565b5b828203905092915050565b60008115159050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6102db81610294565b81146102e657600080fd5b5056fea2646970667358221220eb3089beeaa9071511abf5e314e481d2a76d2d53b55c8ec6472118fa6859608564736f6c63430008070033", - "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x18DB62FB EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0x8C JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0xC6 JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0xE2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x100 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x83 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xA6 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xA1 SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x10E JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB0 PUSH2 0x138 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBD SWAP2 SWAP1 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xDB SWAP2 SWAP1 PUSH2 0x17D JUMP JUMPDEST PUSH2 0x141 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEA PUSH2 0x15C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF7 SWAP2 SWAP1 PUSH2 0x1C8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x117 DUP2 PUSH2 0x100 JUMP JUMPDEST ISZERO PUSH2 0x135 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x12D SWAP2 SWAP1 PUSH2 0x254 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x152 SWAP2 SWAP1 PUSH2 0x1FE JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x177 DUP2 PUSH2 0x2D2 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x193 JUMPI PUSH2 0x192 PUSH2 0x2CD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1A1 DUP5 DUP3 DUP6 ADD PUSH2 0x168 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1B3 DUP2 PUSH2 0x288 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x1C2 DUP2 PUSH2 0x294 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1DD PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1AA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1F8 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x1B9 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x209 DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x214 DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x249 JUMPI PUSH2 0x248 PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x25F DUP3 PUSH2 0x294 JUMP JUMPDEST SWAP2 POP PUSH2 0x26A DUP4 PUSH2 0x294 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x27D JUMPI PUSH2 0x27C PUSH2 0x29E JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DB DUP2 PUSH2 0x294 JUMP JUMPDEST DUP2 EQ PUSH2 0x2E6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB ADDRESS DUP10 0xBE 0xEA 0xA9 SMOD ISZERO GT 0xAB CREATE2 0xE3 EQ 0xE4 DUP2 0xD2 0xA7 PUSH14 0x2D53B55C8EC6472118FA68596085 PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", - "sourceMap": "190:627:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;612:109;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;386:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;513:76;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;311:69;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;727:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;612:109;675:4;707:6;699:5;;:14;692:21;;612:109;;;:::o;386:121::-;441:18;452:6;441:10;:18::i;:::-;437:64;;;483:6;474:5;;:15;;;;;;;:::i;:::-;;;;;;;;437:64;386:121;:::o;513:76::-;553:4;577:5;;570:12;;513:76;:::o;311:69::-;367:6;358:5;;:15;;;;;;;:::i;:::-;;;;;;;;311:69;:::o;727:87::-;773:4;805:1;797:5;;:9;790:16;;727:87;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;152:329::-;211:6;260:2;248:9;239:7;235:23;231:32;228:119;;;266:79;;:::i;:::-;228:119;386:1;411:53;456:7;447:6;436:9;432:22;411:53;:::i;:::-;401:63;;357:117;152:329;;;;:::o;487:109::-;568:21;583:5;568:21;:::i;:::-;563:3;556:34;487:109;;:::o;602:118::-;689:24;707:5;689:24;:::i;:::-;684:3;677:37;602:118;;:::o;726:210::-;813:4;851:2;840:9;836:18;828:26;;864:65;926:1;915:9;911:17;902:6;864:65;:::i;:::-;726:210;;;;:::o;942:222::-;1035:4;1073:2;1062:9;1058:18;1050:26;;1086:71;1154:1;1143:9;1139:17;1130:6;1086:71;:::i;:::-;942:222;;;;:::o;1251:305::-;1291:3;1310:20;1328:1;1310:20;:::i;:::-;1305:25;;1344:20;1362:1;1344:20;:::i;:::-;1339:25;;1498:1;1430:66;1426:74;1423:1;1420:81;1417:107;;;1504:18;;:::i;:::-;1417:107;1548:1;1545;1541:9;1534:16;;1251:305;;;;:::o;1562:191::-;1602:4;1622:20;1640:1;1622:20;:::i;:::-;1617:25;;1656:20;1674:1;1656:20;:::i;:::-;1651:25;;1695:1;1692;1689:8;1686:34;;;1700:18;;:::i;:::-;1686:34;1745:1;1742;1738:9;1730:17;;1562:191;;;;:::o;1759:90::-;1793:7;1836:5;1829:13;1822:21;1811:32;;1759:90;;;:::o;1855:77::-;1892:7;1921:5;1910:16;;1855:77;;;:::o;1938:180::-;1986:77;1983:1;1976:88;2083:4;2080:1;2073:15;2107:4;2104:1;2097:15;2247:117;2356:1;2353;2346:12;2370:122;2443:24;2461:5;2443:24;:::i;:::-;2436:5;2433:35;2423:63;;2482:1;2479;2472:12;2423:63;2370:122;:::o" - }, - "gasEstimates": { - "creation": { - "codeDepositCost": "159800", - "executionCost": "infinite", - "totalCost": "infinite" - }, - "external": { - "balance()": "2459", - "checkValue(uint256)": "2692", - "deposit(uint256)": "infinite", - "loan()": "2515", - "withdrawel(uint256)": "infinite" - } - }, - "methodIdentifiers": { - "balance()": "b69ef8a8", - "checkValue(uint256)": "18db62fb", - "deposit(uint256)": "b6b55f25", - "loan()": "d285b7b4", - "withdrawel(uint256)": "1fad2953" - } - }, - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "balance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdrawel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} \ No newline at end of file diff --git a/tutorial-02/artifacts/Bank_metadata.json b/tutorial-02/artifacts/Bank_metadata.json deleted file mode 100644 index 9bab0cb..0000000 --- a/tutorial-02/artifacts/Bank_metadata.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "compiler": { - "version": "0.8.7+commit.e28d00a7" - }, - "language": "Solidity", - "output": { - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "balance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdrawel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "devdoc": { - "kind": "dev", - "methods": {}, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - } - }, - "settings": { - "compilationTarget": { - "tutorial-02/myfirstcontract.sol": "Bank" - }, - "evmVersion": "london", - "libraries": {}, - "metadata": { - "bytecodeHash": "ipfs" - }, - "optimizer": { - "enabled": false, - "runs": 200 - }, - "remappings": [] - }, - "sources": { - "tutorial-02/myfirstcontract.sol": { - "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", - "license": "MIT", - "urls": [ - "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", - "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" - ] - } - }, - "version": 1 -} \ No newline at end of file diff --git a/tutorial-02/artifacts/Regulator.json b/tutorial-02/artifacts/Regulator.json deleted file mode 100644 index fbf1518..0000000 --- a/tutorial-02/artifacts/Regulator.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "deploy": { - "VM:-": { - "linkReferences": {}, - "autoDeployLib": true - }, - "main:1": { - "linkReferences": {}, - "autoDeployLib": true - }, - "ropsten:3": { - "linkReferences": {}, - "autoDeployLib": true - }, - "rinkeby:4": { - "linkReferences": {}, - "autoDeployLib": true - }, - "kovan:42": { - "linkReferences": {}, - "autoDeployLib": true - }, - "görli:5": { - "linkReferences": {}, - "autoDeployLib": true - }, - "Custom": { - "linkReferences": {}, - "autoDeployLib": true - } - }, - "data": { - "bytecode": { - "functionDebugData": {}, - "generatedSources": [], - "linkReferences": {}, - "object": "", - "opcodes": "", - "sourceMap": "" - }, - "deployedBytecode": { - "functionDebugData": {}, - "generatedSources": [], - "immutableReferences": {}, - "linkReferences": {}, - "object": "", - "opcodes": "", - "sourceMap": "" - }, - "gasEstimates": null, - "methodIdentifiers": { - "checkValue(uint256)": "18db62fb", - "loan()": "d285b7b4" - } - }, - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} \ No newline at end of file diff --git a/tutorial-02/artifacts/Regulator_metadata.json b/tutorial-02/artifacts/Regulator_metadata.json deleted file mode 100644 index d7d84b2..0000000 --- a/tutorial-02/artifacts/Regulator_metadata.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "compiler": { - "version": "0.8.7+commit.e28d00a7" - }, - "language": "Solidity", - "output": { - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "devdoc": { - "kind": "dev", - "methods": {}, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - } - }, - "settings": { - "compilationTarget": { - "tutorial-02/myfirstcontract.sol": "Regulator" - }, - "evmVersion": "london", - "libraries": {}, - "metadata": { - "bytecodeHash": "ipfs" - }, - "optimizer": { - "enabled": false, - "runs": 200 - }, - "remappings": [] - }, - "sources": { - "tutorial-02/myfirstcontract.sol": { - "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", - "license": "MIT", - "urls": [ - "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", - "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" - ] - } - }, - "version": 1 -} \ No newline at end of file diff --git a/tutorial-02/artifacts/myfirstcontract.json b/tutorial-02/artifacts/myfirstcontract.json deleted file mode 100644 index c7f274a..0000000 --- a/tutorial-02/artifacts/myfirstcontract.json +++ /dev/null @@ -1,4339 +0,0 @@ -{ - "deploy": { - "VM:-": { - "linkReferences": {}, - "autoDeployLib": true - }, - "main:1": { - "linkReferences": {}, - "autoDeployLib": true - }, - "ropsten:3": { - "linkReferences": {}, - "autoDeployLib": true - }, - "rinkeby:4": { - "linkReferences": {}, - "autoDeployLib": true - }, - "kovan:42": { - "linkReferences": {}, - "autoDeployLib": true - }, - "görli:5": { - "linkReferences": {}, - "autoDeployLib": true - }, - "Custom": { - "linkReferences": {}, - "autoDeployLib": true - } - }, - "data": { - "bytecode": { - "functionDebugData": { - "@_28": { - "entryPoint": null, - "id": 28, - "parameterSlots": 1, - "returnSlots": 0 - } - }, - "generatedSources": [], - "linkReferences": {}, - "object": "608060405234801561001057600080fd5b50600a80600081905550506107db8061002a6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063b69ef8a811610066578063b69ef8a814610120578063b6b55f251461013e578063c47f00271461015a578063d285b7b414610176578063d5dcf1271461019457610093565b806317d7de7c1461009857806318db62fb146100b65780631fad2953146100e6578063967e6e6514610102575b600080fd5b6100a06101b0565b6040516100ad91906104e8565b60405180910390f35b6100d060048036038101906100cb9190610449565b610242565b6040516100dd91906104cd565b60405180910390f35b61010060048036038101906100fb9190610449565b610250565b005b61010a61027a565b604051610117919061050a565b60405180910390f35b610128610284565b604051610135919061050a565b60405180910390f35b61015860048036038101906101539190610449565b61028d565b005b610174600480360381019061016f9190610400565b6102a8565b005b61017e6102c2565b60405161018b91906104cd565b60405180910390f35b6101ae60048036038101906101a99190610449565b6102ce565b005b6060600180546101bf90610679565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610679565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600081600054119050919050565b61025981610242565b15610277578060008082825461026f91906105ed565b925050819055505b50565b6000600254905090565b60008054905090565b8060008082825461029e9190610597565b9250508190555050565b80600190805190602001906102be9291906102d8565b5050565b60008060005411905090565b8060028190555050565b8280546102e490610679565b90600052602060002090601f016020900481019282610306576000855561034d565b82601f1061031f57805160ff191683800117855561034d565b8280016001018555821561034d579182015b8281111561034c578251825591602001919060010190610331565b5b50905061035a919061035e565b5090565b5b8082111561037757600081600090555060010161035f565b5090565b600061038e6103898461054a565b610525565b9050828152602081018484840111156103aa576103a961076e565b5b6103b5848285610637565b509392505050565b600082601f8301126103d2576103d1610769565b5b81356103e284826020860161037b565b91505092915050565b6000813590506103fa8161078e565b92915050565b60006020828403121561041657610415610778565b5b600082013567ffffffffffffffff81111561043457610433610773565b5b610440848285016103bd565b91505092915050565b60006020828403121561045f5761045e610778565b5b600061046d848285016103eb565b91505092915050565b61047f81610621565b82525050565b60006104908261057b565b61049a8185610586565b93506104aa818560208601610646565b6104b38161077d565b840191505092915050565b6104c78161062d565b82525050565b60006020820190506104e26000830184610476565b92915050565b600060208201905081810360008301526105028184610485565b905092915050565b600060208201905061051f60008301846104be565b92915050565b600061052f610540565b905061053b82826106ab565b919050565b6000604051905090565b600067ffffffffffffffff8211156105655761056461073a565b5b61056e8261077d565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006105a28261062d565b91506105ad8361062d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156105e2576105e16106dc565b5b828201905092915050565b60006105f88261062d565b91506106038361062d565b925082821015610616576106156106dc565b5b828203905092915050565b60008115159050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610664578082015181840152602081019050610649565b83811115610673576000848401525b50505050565b6000600282049050600182168061069157607f821691505b602082108114156106a5576106a461070b565b5b50919050565b6106b48261077d565b810181811067ffffffffffffffff821117156106d3576106d261073a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6107978161062d565b81146107a257600080fd5b5056fea2646970667358221220571b55a57474640680b217b8b808b72dfa988117bb06e235301023e283cbd3fc64736f6c63430008070033", - "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP PUSH2 0x7DB DUP1 PUSH2 0x2A 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 0x93 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB69EF8A8 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xC47F0027 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0x176 JUMPI DUP1 PUSH4 0xD5DCF127 EQ PUSH2 0x194 JUMPI PUSH2 0x93 JUMP JUMPDEST DUP1 PUSH4 0x17D7DE7C EQ PUSH2 0x98 JUMPI DUP1 PUSH4 0x18DB62FB EQ PUSH2 0xB6 JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0xE6 JUMPI DUP1 PUSH4 0x967E6E65 EQ PUSH2 0x102 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x1B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAD SWAP2 SWAP1 PUSH2 0x4E8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xD0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xCB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x242 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xDD SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x100 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xFB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x250 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x10A PUSH2 0x27A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x117 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x128 PUSH2 0x284 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x135 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x158 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x153 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x28D JUMP JUMPDEST STOP JUMPDEST PUSH2 0x174 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x16F SWAP2 SWAP1 PUSH2 0x400 JUMP JUMPDEST PUSH2 0x2A8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x17E PUSH2 0x2C2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1AE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1A9 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x2CE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD PUSH2 0x1BF SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x1EB SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x238 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x20D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x238 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x21B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x259 DUP2 PUSH2 0x242 JUMP JUMPDEST ISZERO PUSH2 0x277 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x26F SWAP2 SWAP1 PUSH2 0x5ED JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x29E SWAP2 SWAP1 PUSH2 0x597 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2BE SWAP3 SWAP2 SWAP1 PUSH2 0x2D8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x2 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x2E4 SWAP1 PUSH2 0x679 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x306 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x31F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x34D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x34C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x331 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x35A SWAP2 SWAP1 PUSH2 0x35E JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x377 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x35F JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38E PUSH2 0x389 DUP5 PUSH2 0x54A JUMP JUMPDEST PUSH2 0x525 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x3AA JUMPI PUSH2 0x3A9 PUSH2 0x76E JUMP JUMPDEST JUMPDEST PUSH2 0x3B5 DUP5 DUP3 DUP6 PUSH2 0x637 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x3D2 JUMPI PUSH2 0x3D1 PUSH2 0x769 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x3E2 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x37B JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x3FA DUP2 PUSH2 0x78E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x416 JUMPI PUSH2 0x415 PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x434 JUMPI PUSH2 0x433 PUSH2 0x773 JUMP JUMPDEST JUMPDEST PUSH2 0x440 DUP5 DUP3 DUP6 ADD PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45F JUMPI PUSH2 0x45E PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x46D DUP5 DUP3 DUP6 ADD PUSH2 0x3EB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x47F DUP2 PUSH2 0x621 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x490 DUP3 PUSH2 0x57B JUMP JUMPDEST PUSH2 0x49A DUP2 DUP6 PUSH2 0x586 JUMP JUMPDEST SWAP4 POP PUSH2 0x4AA DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x646 JUMP JUMPDEST PUSH2 0x4B3 DUP2 PUSH2 0x77D JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x4C7 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x4E2 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x476 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x502 DUP2 DUP5 PUSH2 0x485 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x51F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x4BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x52F PUSH2 0x540 JUMP JUMPDEST SWAP1 POP PUSH2 0x53B DUP3 DUP3 PUSH2 0x6AB JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x565 JUMPI PUSH2 0x564 PUSH2 0x73A JUMP JUMPDEST JUMPDEST PUSH2 0x56E DUP3 PUSH2 0x77D JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x5AD DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x5E2 JUMPI PUSH2 0x5E1 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5F8 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x603 DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x616 JUMPI PUSH2 0x615 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x664 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x649 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x673 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x691 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x6A5 JUMPI PUSH2 0x6A4 PUSH2 0x70B JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x6B4 DUP3 PUSH2 0x77D JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x6D3 JUMPI PUSH2 0x6D2 PUSH2 0x73A JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x797 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP2 EQ PUSH2 0x7A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPI SHL SSTORE 0xA5 PUSH21 0x74640680B217B8B808B72DFA988117BB06E2353010 0x23 0xE2 DUP4 0xCB 0xD3 0xFC PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", - "sourceMap": "819:482:0:-:0;;;;;;;;;;;;;852:2;292:6;284:5;:14;;;;248:57;819:482;;;;;;" - }, - "deployedBytecode": { - "functionDebugData": { - "@balance_61": { - "entryPoint": 644, - "id": 61, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@checkValue_74": { - "entryPoint": 578, - "id": 74, - "parameterSlots": 1, - "returnSlots": 1 - }, - "@deposit_38": { - "entryPoint": 653, - "id": 38, - "parameterSlots": 1, - "returnSlots": 0 - }, - "@getAge_129": { - "entryPoint": 634, - "id": 129, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@getName_111": { - "entryPoint": 432, - "id": 111, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@loan_85": { - "entryPoint": 706, - "id": 85, - "parameterSlots": 0, - "returnSlots": 1 - }, - "@setAge_121": { - "entryPoint": 718, - "id": 121, - "parameterSlots": 1, - "returnSlots": 0 - }, - "@setName_103": { - "entryPoint": 680, - "id": 103, - "parameterSlots": 1, - "returnSlots": 0 - }, - "@withdrawel_53": { - "entryPoint": 592, - "id": 53, - "parameterSlots": 1, - "returnSlots": 0 - }, - "abi_decode_available_length_t_string_memory_ptr": { - "entryPoint": 891, - "id": null, - "parameterSlots": 3, - "returnSlots": 1 - }, - "abi_decode_t_string_memory_ptr": { - "entryPoint": 957, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_decode_t_uint256": { - "entryPoint": 1003, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_decode_tuple_t_string_memory_ptr": { - "entryPoint": 1024, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_decode_tuple_t_uint256": { - "entryPoint": 1097, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_t_bool_to_t_bool_fromStack": { - "entryPoint": 1142, - "id": null, - "parameterSlots": 2, - "returnSlots": 0 - }, - "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": { - "entryPoint": 1157, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_t_uint256_to_t_uint256_fromStack": { - "entryPoint": 1214, - "id": null, - "parameterSlots": 2, - "returnSlots": 0 - }, - "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { - "entryPoint": 1229, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": { - "entryPoint": 1256, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { - "entryPoint": 1290, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "allocate_memory": { - "entryPoint": 1317, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "allocate_unbounded": { - "entryPoint": 1344, - "id": null, - "parameterSlots": 0, - "returnSlots": 1 - }, - "array_allocation_size_t_string_memory_ptr": { - "entryPoint": 1354, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "array_length_t_string_memory_ptr": { - "entryPoint": 1403, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "array_storeLengthForEncoding_t_string_memory_ptr_fromStack": { - "entryPoint": 1414, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "checked_add_t_uint256": { - "entryPoint": 1431, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "checked_sub_t_uint256": { - "entryPoint": 1517, - "id": null, - "parameterSlots": 2, - "returnSlots": 1 - }, - "cleanup_t_bool": { - "entryPoint": 1569, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "cleanup_t_uint256": { - "entryPoint": 1581, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "copy_calldata_to_memory": { - "entryPoint": 1591, - "id": null, - "parameterSlots": 3, - "returnSlots": 0 - }, - "copy_memory_to_memory": { - "entryPoint": 1606, - "id": null, - "parameterSlots": 3, - "returnSlots": 0 - }, - "extract_byte_array_length": { - "entryPoint": 1657, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "finalize_allocation": { - "entryPoint": 1707, - "id": null, - "parameterSlots": 2, - "returnSlots": 0 - }, - "panic_error_0x11": { - "entryPoint": 1756, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "panic_error_0x22": { - "entryPoint": 1803, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "panic_error_0x41": { - "entryPoint": 1850, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": { - "entryPoint": 1897, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": { - "entryPoint": 1902, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { - "entryPoint": 1907, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { - "entryPoint": 1912, - "id": null, - "parameterSlots": 0, - "returnSlots": 0 - }, - "round_up_to_mul_of_32": { - "entryPoint": 1917, - "id": null, - "parameterSlots": 1, - "returnSlots": 1 - }, - "validator_revert_t_uint256": { - "entryPoint": 1934, - "id": null, - "parameterSlots": 1, - "returnSlots": 0 - } - }, - "generatedSources": [ - { - "ast": { - "nodeType": "YulBlock", - "src": "0:7018:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "91:328:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "101:75:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "168:6:1" - } - ], - "functionName": { - "name": "array_allocation_size_t_string_memory_ptr", - "nodeType": "YulIdentifier", - "src": "126:41:1" - }, - "nodeType": "YulFunctionCall", - "src": "126:49:1" - } - ], - "functionName": { - "name": "allocate_memory", - "nodeType": "YulIdentifier", - "src": "110:15:1" - }, - "nodeType": "YulFunctionCall", - "src": "110:66:1" - }, - "variableNames": [ - { - "name": "array", - "nodeType": "YulIdentifier", - "src": "101:5:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "array", - "nodeType": "YulIdentifier", - "src": "192:5:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "199:6:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "185:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "185:21:1" - }, - "nodeType": "YulExpressionStatement", - "src": "185:21:1" - }, - { - "nodeType": "YulVariableDeclaration", - "src": "215:27:1", - "value": { - "arguments": [ - { - "name": "array", - "nodeType": "YulIdentifier", - "src": "230:5:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "237:4:1", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "226:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "226:16:1" - }, - "variables": [ - { - "name": "dst", - "nodeType": "YulTypedName", - "src": "219:3:1", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "280:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", - "nodeType": "YulIdentifier", - "src": "282:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "282:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "282:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "src", - "nodeType": "YulIdentifier", - "src": "261:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "266:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "257:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "257:16:1" - }, - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "275:3:1" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "254:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "254:25:1" - }, - "nodeType": "YulIf", - "src": "251:112:1" - }, - { - "expression": { - "arguments": [ - { - "name": "src", - "nodeType": "YulIdentifier", - "src": "396:3:1" - }, - { - "name": "dst", - "nodeType": "YulIdentifier", - "src": "401:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "406:6:1" - } - ], - "functionName": { - "name": "copy_calldata_to_memory", - "nodeType": "YulIdentifier", - "src": "372:23:1" - }, - "nodeType": "YulFunctionCall", - "src": "372:41:1" - }, - "nodeType": "YulExpressionStatement", - "src": "372:41:1" - } - ] - }, - "name": "abi_decode_available_length_t_string_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "src", - "nodeType": "YulTypedName", - "src": "64:3:1", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "69:6:1", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "77:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "array", - "nodeType": "YulTypedName", - "src": "85:5:1", - "type": "" - } - ], - "src": "7:412:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "501:278:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "550:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", - "nodeType": "YulIdentifier", - "src": "552:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "552:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "552:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "529:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "537:4:1", - "type": "", - "value": "0x1f" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "525:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "525:17:1" - }, - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "544:3:1" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "521:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "521:27:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "514:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "514:35:1" - }, - "nodeType": "YulIf", - "src": "511:122:1" - }, - { - "nodeType": "YulVariableDeclaration", - "src": "642:34:1", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "669:6:1" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "656:12:1" - }, - "nodeType": "YulFunctionCall", - "src": "656:20:1" - }, - "variables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "646:6:1", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "685:88:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "746:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "754:4:1", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "742:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "742:17:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "761:6:1" - }, - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "769:3:1" - } - ], - "functionName": { - "name": "abi_decode_available_length_t_string_memory_ptr", - "nodeType": "YulIdentifier", - "src": "694:47:1" - }, - "nodeType": "YulFunctionCall", - "src": "694:79:1" - }, - "variableNames": [ - { - "name": "array", - "nodeType": "YulIdentifier", - "src": "685:5:1" - } - ] - } - ] - }, - "name": "abi_decode_t_string_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "479:6:1", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "487:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "array", - "nodeType": "YulTypedName", - "src": "495:5:1", - "type": "" - } - ], - "src": "439:340:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "837:87:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "847:29:1", - "value": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "869:6:1" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "856:12:1" - }, - "nodeType": "YulFunctionCall", - "src": "856:20:1" - }, - "variableNames": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "847:5:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "912:5:1" - } - ], - "functionName": { - "name": "validator_revert_t_uint256", - "nodeType": "YulIdentifier", - "src": "885:26:1" - }, - "nodeType": "YulFunctionCall", - "src": "885:33:1" - }, - "nodeType": "YulExpressionStatement", - "src": "885:33:1" - } - ] - }, - "name": "abi_decode_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "815:6:1", - "type": "" - }, - { - "name": "end", - "nodeType": "YulTypedName", - "src": "823:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "831:5:1", - "type": "" - } - ], - "src": "785:139:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1006:433:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1052:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "1054:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "1054:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1054:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1027:7:1" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1036:9:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1023:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1023:23:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1048:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "1019:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1019:32:1" - }, - "nodeType": "YulIf", - "src": "1016:119:1" - }, - { - "nodeType": "YulBlock", - "src": "1145:287:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1160:45:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1191:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1202:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1187:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1187:17:1" - } - ], - "functionName": { - "name": "calldataload", - "nodeType": "YulIdentifier", - "src": "1174:12:1" - }, - "nodeType": "YulFunctionCall", - "src": "1174:31:1" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1164:6:1", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1252:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulIdentifier", - "src": "1254:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "1254:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1254:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1224:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1232:18:1", - "type": "", - "value": "0xffffffffffffffff" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "1221:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "1221:30:1" - }, - "nodeType": "YulIf", - "src": "1218:117:1" - }, - { - "nodeType": "YulAssignment", - "src": "1349:73:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1394:9:1" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1405:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1390:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1390:22:1" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1414:7:1" - } - ], - "functionName": { - "name": "abi_decode_t_string_memory_ptr", - "nodeType": "YulIdentifier", - "src": "1359:30:1" - }, - "nodeType": "YulFunctionCall", - "src": "1359:63:1" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "1349:6:1" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_string_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "976:9:1", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "987:7:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "999:6:1", - "type": "" - } - ], - "src": "930:509:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1511:263:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "1557:83:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulIdentifier", - "src": "1559:77:1" - }, - "nodeType": "YulFunctionCall", - "src": "1559:79:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1559:79:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1532:7:1" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1541:9:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "1528:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1528:23:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1553:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "slt", - "nodeType": "YulIdentifier", - "src": "1524:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1524:32:1" - }, - "nodeType": "YulIf", - "src": "1521:119:1" - }, - { - "nodeType": "YulBlock", - "src": "1650:117:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1665:15:1", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "1679:1:1", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "offset", - "nodeType": "YulTypedName", - "src": "1669:6:1", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "1694:63:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "1729:9:1" - }, - { - "name": "offset", - "nodeType": "YulIdentifier", - "src": "1740:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "1725:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "1725:22:1" - }, - { - "name": "dataEnd", - "nodeType": "YulIdentifier", - "src": "1749:7:1" - } - ], - "functionName": { - "name": "abi_decode_t_uint256", - "nodeType": "YulIdentifier", - "src": "1704:20:1" - }, - "nodeType": "YulFunctionCall", - "src": "1704:53:1" - }, - "variableNames": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "1694:6:1" - } - ] - } - ] - } - ] - }, - "name": "abi_decode_tuple_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "1481:9:1", - "type": "" - }, - { - "name": "dataEnd", - "nodeType": "YulTypedName", - "src": "1492:7:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "1504:6:1", - "type": "" - } - ], - "src": "1445:329:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1839:50:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "1856:3:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "1876:5:1" - } - ], - "functionName": { - "name": "cleanup_t_bool", - "nodeType": "YulIdentifier", - "src": "1861:14:1" - }, - "nodeType": "YulFunctionCall", - "src": "1861:21:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "1849:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "1849:34:1" - }, - "nodeType": "YulExpressionStatement", - "src": "1849:34:1" - } - ] - }, - "name": "abi_encode_t_bool_to_t_bool_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1827:5:1", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "1834:3:1", - "type": "" - } - ], - "src": "1780:109:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "1987:272:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "1997:53:1", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2044:5:1" - } - ], - "functionName": { - "name": "array_length_t_string_memory_ptr", - "nodeType": "YulIdentifier", - "src": "2011:32:1" - }, - "nodeType": "YulFunctionCall", - "src": "2011:39:1" - }, - "variables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "2001:6:1", - "type": "" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "2059:78:1", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2125:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "2130:6:1" - } - ], - "functionName": { - "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "2066:58:1" - }, - "nodeType": "YulFunctionCall", - "src": "2066:71:1" - }, - "variableNames": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2059:3:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2172:5:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2179:4:1", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2168:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2168:16:1" - }, - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2186:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "2191:6:1" - } - ], - "functionName": { - "name": "copy_memory_to_memory", - "nodeType": "YulIdentifier", - "src": "2146:21:1" - }, - "nodeType": "YulFunctionCall", - "src": "2146:52:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2146:52:1" - }, - { - "nodeType": "YulAssignment", - "src": "2207:46:1", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2218:3:1" - }, - { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "2245:6:1" - } - ], - "functionName": { - "name": "round_up_to_mul_of_32", - "nodeType": "YulIdentifier", - "src": "2223:21:1" - }, - "nodeType": "YulFunctionCall", - "src": "2223:29:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2214:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2214:39:1" - }, - "variableNames": [ - { - "name": "end", - "nodeType": "YulIdentifier", - "src": "2207:3:1" - } - ] - } - ] - }, - "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "1968:5:1", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "1975:3:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "end", - "nodeType": "YulTypedName", - "src": "1983:3:1", - "type": "" - } - ], - "src": "1895:364:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2330:53:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "2347:3:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "2370:5:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "2352:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "2352:24:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "2340:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2340:37:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2340:37:1" - } - ] - }, - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "2318:5:1", - "type": "" - }, - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "2325:3:1", - "type": "" - } - ], - "src": "2265:118:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2481:118:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "2491:26:1", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2503:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2514:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2499:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2499:18:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2491:4:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "2565:6:1" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2578:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2589:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2574:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2574:17:1" - } - ], - "functionName": { - "name": "abi_encode_t_bool_to_t_bool_fromStack", - "nodeType": "YulIdentifier", - "src": "2527:37:1" - }, - "nodeType": "YulFunctionCall", - "src": "2527:65:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2527:65:1" - } - ] - }, - "name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "2453:9:1", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "2465:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "2476:4:1", - "type": "" - } - ], - "src": "2389:210:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "2723:195:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "2733:26:1", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2745:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2756:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2741:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2741:18:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2733:4:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2780:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "2791:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "2776:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2776:17:1" - }, - { - "arguments": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2799:4:1" - }, - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "2805:9:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "2795:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "2795:20:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "2769:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "2769:47:1" - }, - "nodeType": "YulExpressionStatement", - "src": "2769:47:1" - }, - { - "nodeType": "YulAssignment", - "src": "2825:86:1", - "value": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "2897:6:1" - }, - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2906:4:1" - } - ], - "functionName": { - "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", - "nodeType": "YulIdentifier", - "src": "2833:63:1" - }, - "nodeType": "YulFunctionCall", - "src": "2833:78:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "2825:4:1" - } - ] - } - ] - }, - "name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "2695:9:1", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "2707:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "2718:4:1", - "type": "" - } - ], - "src": "2605:313:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3022:124:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3032:26:1", - "value": { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "3044:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3055:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3040:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "3040:18:1" - }, - "variableNames": [ - { - "name": "tail", - "nodeType": "YulIdentifier", - "src": "3032:4:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "value0", - "nodeType": "YulIdentifier", - "src": "3112:6:1" - }, - { - "arguments": [ - { - "name": "headStart", - "nodeType": "YulIdentifier", - "src": "3125:9:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3136:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3121:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "3121:17:1" - } - ], - "functionName": { - "name": "abi_encode_t_uint256_to_t_uint256_fromStack", - "nodeType": "YulIdentifier", - "src": "3068:43:1" - }, - "nodeType": "YulFunctionCall", - "src": "3068:71:1" - }, - "nodeType": "YulExpressionStatement", - "src": "3068:71:1" - } - ] - }, - "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "headStart", - "nodeType": "YulTypedName", - "src": "2994:9:1", - "type": "" - }, - { - "name": "value0", - "nodeType": "YulTypedName", - "src": "3006:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "tail", - "nodeType": "YulTypedName", - "src": "3017:4:1", - "type": "" - } - ], - "src": "2924:222:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3193:88:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3203:30:1", - "value": { - "arguments": [], - "functionName": { - "name": "allocate_unbounded", - "nodeType": "YulIdentifier", - "src": "3213:18:1" - }, - "nodeType": "YulFunctionCall", - "src": "3213:20:1" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "3203:6:1" - } - ] - }, - { - "expression": { - "arguments": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "3262:6:1" - }, - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "3270:4:1" - } - ], - "functionName": { - "name": "finalize_allocation", - "nodeType": "YulIdentifier", - "src": "3242:19:1" - }, - "nodeType": "YulFunctionCall", - "src": "3242:33:1" - }, - "nodeType": "YulExpressionStatement", - "src": "3242:33:1" - } - ] - }, - "name": "allocate_memory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "size", - "nodeType": "YulTypedName", - "src": "3177:4:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "3186:6:1", - "type": "" - } - ], - "src": "3152:129:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3327:35:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3337:19:1", - "value": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3353:2:1", - "type": "", - "value": "64" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "3347:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "3347:9:1" - }, - "variableNames": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "3337:6:1" - } - ] - } - ] - }, - "name": "allocate_unbounded", - "nodeType": "YulFunctionDefinition", - "returnVariables": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "3320:6:1", - "type": "" - } - ], - "src": "3287:75:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3435:241:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "3540:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x41", - "nodeType": "YulIdentifier", - "src": "3542:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "3542:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "3542:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "3512:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3520:18:1", - "type": "", - "value": "0xffffffffffffffff" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "3509:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "3509:30:1" - }, - "nodeType": "YulIf", - "src": "3506:56:1" - }, - { - "nodeType": "YulAssignment", - "src": "3572:37:1", - "value": { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "3602:6:1" - } - ], - "functionName": { - "name": "round_up_to_mul_of_32", - "nodeType": "YulIdentifier", - "src": "3580:21:1" - }, - "nodeType": "YulFunctionCall", - "src": "3580:29:1" - }, - "variableNames": [ - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "3572:4:1" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "3646:23:1", - "value": { - "arguments": [ - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "3658:4:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3664:4:1", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3654:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "3654:15:1" - }, - "variableNames": [ - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "3646:4:1" - } - ] - } - ] - }, - "name": "array_allocation_size_t_string_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "3419:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "size", - "nodeType": "YulTypedName", - "src": "3430:4:1", - "type": "" - } - ], - "src": "3368:308:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3741:40:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "3752:22:1", - "value": { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "3768:5:1" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "3762:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "3762:12:1" - }, - "variableNames": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "3752:6:1" - } - ] - } - ] - }, - "name": "array_length_t_string_memory_ptr", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "3724:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "3734:6:1", - "type": "" - } - ], - "src": "3682:99:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "3883:73:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "3900:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "3905:6:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "3893:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "3893:19:1" - }, - "nodeType": "YulExpressionStatement", - "src": "3893:19:1" - }, - { - "nodeType": "YulAssignment", - "src": "3921:29:1", - "value": { - "arguments": [ - { - "name": "pos", - "nodeType": "YulIdentifier", - "src": "3940:3:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "3945:4:1", - "type": "", - "value": "0x20" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "3936:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "3936:14:1" - }, - "variableNames": [ - { - "name": "updated_pos", - "nodeType": "YulIdentifier", - "src": "3921:11:1" - } - ] - } - ] - }, - "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "pos", - "nodeType": "YulTypedName", - "src": "3855:3:1", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "3860:6:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "updated_pos", - "nodeType": "YulTypedName", - "src": "3871:11:1", - "type": "" - } - ], - "src": "3787:169:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4006:261:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4016:25:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4039:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "4021:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "4021:20:1" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4016:1:1" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "4050:25:1", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4073:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "4055:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "4055:20:1" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4050:1:1" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4213:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "4215:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "4215:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "4215:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4134:1:1" - }, - { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4141:66:1", - "type": "", - "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4209:1:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "4137:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4137:74:1" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "4131:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "4131:81:1" - }, - "nodeType": "YulIf", - "src": "4128:107:1" - }, - { - "nodeType": "YulAssignment", - "src": "4245:16:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4256:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4259:1:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4252:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4252:9:1" - }, - "variableNames": [ - { - "name": "sum", - "nodeType": "YulIdentifier", - "src": "4245:3:1" - } - ] - } - ] - }, - "name": "checked_add_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "3993:1:1", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "3996:1:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "sum", - "nodeType": "YulTypedName", - "src": "4002:3:1", - "type": "" - } - ], - "src": "3962:305:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4318:146:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4328:25:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4351:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "4333:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "4333:20:1" - }, - "variableNames": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4328:1:1" - } - ] - }, - { - "nodeType": "YulAssignment", - "src": "4362:25:1", - "value": { - "arguments": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4385:1:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "4367:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "4367:20:1" - }, - "variableNames": [ - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4362:1:1" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4409:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x11", - "nodeType": "YulIdentifier", - "src": "4411:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "4411:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "4411:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4403:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4406:1:1" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "4400:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "4400:8:1" - }, - "nodeType": "YulIf", - "src": "4397:34:1" - }, - { - "nodeType": "YulAssignment", - "src": "4441:17:1", - "value": { - "arguments": [ - { - "name": "x", - "nodeType": "YulIdentifier", - "src": "4453:1:1" - }, - { - "name": "y", - "nodeType": "YulIdentifier", - "src": "4456:1:1" - } - ], - "functionName": { - "name": "sub", - "nodeType": "YulIdentifier", - "src": "4449:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4449:9:1" - }, - "variableNames": [ - { - "name": "diff", - "nodeType": "YulIdentifier", - "src": "4441:4:1" - } - ] - } - ] - }, - "name": "checked_sub_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "x", - "nodeType": "YulTypedName", - "src": "4304:1:1", - "type": "" - }, - { - "name": "y", - "nodeType": "YulTypedName", - "src": "4307:1:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "diff", - "nodeType": "YulTypedName", - "src": "4313:4:1", - "type": "" - } - ], - "src": "4273:191:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4512:48:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4522:32:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "4547:5:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "4540:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "4540:13:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "4533:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "4533:21:1" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "4522:7:1" - } - ] - } - ] - }, - "name": "cleanup_t_bool", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "4494:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "4504:7:1", - "type": "" - } - ], - "src": "4470:90:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4611:32:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4621:16:1", - "value": { - "name": "value", - "nodeType": "YulIdentifier", - "src": "4632:5:1" - }, - "variableNames": [ - { - "name": "cleaned", - "nodeType": "YulIdentifier", - "src": "4621:7:1" - } - ] - } - ] - }, - "name": "cleanup_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "4593:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "cleaned", - "nodeType": "YulTypedName", - "src": "4603:7:1", - "type": "" - } - ], - "src": "4566:77:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4700:103:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "name": "dst", - "nodeType": "YulIdentifier", - "src": "4723:3:1" - }, - { - "name": "src", - "nodeType": "YulIdentifier", - "src": "4728:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "4733:6:1" - } - ], - "functionName": { - "name": "calldatacopy", - "nodeType": "YulIdentifier", - "src": "4710:12:1" - }, - "nodeType": "YulFunctionCall", - "src": "4710:30:1" - }, - "nodeType": "YulExpressionStatement", - "src": "4710:30:1" - }, - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "dst", - "nodeType": "YulIdentifier", - "src": "4781:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "4786:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4777:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4777:16:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4795:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "4770:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "4770:27:1" - }, - "nodeType": "YulExpressionStatement", - "src": "4770:27:1" - } - ] - }, - "name": "copy_calldata_to_memory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "src", - "nodeType": "YulTypedName", - "src": "4682:3:1", - "type": "" - }, - { - "name": "dst", - "nodeType": "YulTypedName", - "src": "4687:3:1", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "4692:6:1", - "type": "" - } - ], - "src": "4649:154:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4858:258:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "4868:10:1", - "value": { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4877:1:1", - "type": "", - "value": "0" - }, - "variables": [ - { - "name": "i", - "nodeType": "YulTypedName", - "src": "4872:1:1", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "4937:63:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "dst", - "nodeType": "YulIdentifier", - "src": "4962:3:1" - }, - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "4967:1:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4958:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4958:11:1" - }, - { - "arguments": [ - { - "arguments": [ - { - "name": "src", - "nodeType": "YulIdentifier", - "src": "4981:3:1" - }, - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "4986:1:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4977:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4977:11:1" - } - ], - "functionName": { - "name": "mload", - "nodeType": "YulIdentifier", - "src": "4971:5:1" - }, - "nodeType": "YulFunctionCall", - "src": "4971:18:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "4951:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "4951:39:1" - }, - "nodeType": "YulExpressionStatement", - "src": "4951:39:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "4898:1:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "4901:6:1" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "4895:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "4895:13:1" - }, - "nodeType": "YulForLoop", - "post": { - "nodeType": "YulBlock", - "src": "4909:19:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "4911:15:1", - "value": { - "arguments": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "4920:1:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "4923:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "4916:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "4916:10:1" - }, - "variableNames": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "4911:1:1" - } - ] - } - ] - }, - "pre": { - "nodeType": "YulBlock", - "src": "4891:3:1", - "statements": [] - }, - "src": "4887:113:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5034:76:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "arguments": [ - { - "name": "dst", - "nodeType": "YulIdentifier", - "src": "5084:3:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5089:6:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5080:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "5080:16:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5098:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "5073:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5073:27:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5073:27:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "i", - "nodeType": "YulIdentifier", - "src": "5015:1:1" - }, - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5018:6:1" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "5012:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5012:13:1" - }, - "nodeType": "YulIf", - "src": "5009:101:1" - } - ] - }, - "name": "copy_memory_to_memory", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "src", - "nodeType": "YulTypedName", - "src": "4840:3:1", - "type": "" - }, - { - "name": "dst", - "nodeType": "YulTypedName", - "src": "4845:3:1", - "type": "" - }, - { - "name": "length", - "nodeType": "YulTypedName", - "src": "4850:6:1", - "type": "" - } - ], - "src": "4809:307:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5173:269:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "5183:22:1", - "value": { - "arguments": [ - { - "name": "data", - "nodeType": "YulIdentifier", - "src": "5197:4:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5203:1:1", - "type": "", - "value": "2" - } - ], - "functionName": { - "name": "div", - "nodeType": "YulIdentifier", - "src": "5193:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "5193:12:1" - }, - "variableNames": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5183:6:1" - } - ] - }, - { - "nodeType": "YulVariableDeclaration", - "src": "5214:38:1", - "value": { - "arguments": [ - { - "name": "data", - "nodeType": "YulIdentifier", - "src": "5244:4:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5250:1:1", - "type": "", - "value": "1" - } - ], - "functionName": { - "name": "and", - "nodeType": "YulIdentifier", - "src": "5240:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "5240:12:1" - }, - "variables": [ - { - "name": "outOfPlaceEncoding", - "nodeType": "YulTypedName", - "src": "5218:18:1", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5291:51:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "5305:27:1", - "value": { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5319:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5327:4:1", - "type": "", - "value": "0x7f" - } - ], - "functionName": { - "name": "and", - "nodeType": "YulIdentifier", - "src": "5315:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "5315:17:1" - }, - "variableNames": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5305:6:1" - } - ] - } - ] - }, - "condition": { - "arguments": [ - { - "name": "outOfPlaceEncoding", - "nodeType": "YulIdentifier", - "src": "5271:18:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "5264:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5264:26:1" - }, - "nodeType": "YulIf", - "src": "5261:81:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5394:42:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x22", - "nodeType": "YulIdentifier", - "src": "5408:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "5408:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5408:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "name": "outOfPlaceEncoding", - "nodeType": "YulIdentifier", - "src": "5358:18:1" - }, - { - "arguments": [ - { - "name": "length", - "nodeType": "YulIdentifier", - "src": "5381:6:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5389:2:1", - "type": "", - "value": "32" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "5378:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5378:14:1" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "5355:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5355:38:1" - }, - "nodeType": "YulIf", - "src": "5352:84:1" - } - ] - }, - "name": "extract_byte_array_length", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "data", - "nodeType": "YulTypedName", - "src": "5157:4:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "length", - "nodeType": "YulTypedName", - "src": "5166:6:1", - "type": "" - } - ], - "src": "5122:320:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5491:238:1", - "statements": [ - { - "nodeType": "YulVariableDeclaration", - "src": "5501:58:1", - "value": { - "arguments": [ - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "5523:6:1" - }, - { - "arguments": [ - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "5553:4:1" - } - ], - "functionName": { - "name": "round_up_to_mul_of_32", - "nodeType": "YulIdentifier", - "src": "5531:21:1" - }, - "nodeType": "YulFunctionCall", - "src": "5531:27:1" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "5519:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "5519:40:1" - }, - "variables": [ - { - "name": "newFreePtr", - "nodeType": "YulTypedName", - "src": "5505:10:1", - "type": "" - } - ] - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5670:22:1", - "statements": [ - { - "expression": { - "arguments": [], - "functionName": { - "name": "panic_error_0x41", - "nodeType": "YulIdentifier", - "src": "5672:16:1" - }, - "nodeType": "YulFunctionCall", - "src": "5672:18:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5672:18:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "newFreePtr", - "nodeType": "YulIdentifier", - "src": "5613:10:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5625:18:1", - "type": "", - "value": "0xffffffffffffffff" - } - ], - "functionName": { - "name": "gt", - "nodeType": "YulIdentifier", - "src": "5610:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5610:34:1" - }, - { - "arguments": [ - { - "name": "newFreePtr", - "nodeType": "YulIdentifier", - "src": "5649:10:1" - }, - { - "name": "memPtr", - "nodeType": "YulIdentifier", - "src": "5661:6:1" - } - ], - "functionName": { - "name": "lt", - "nodeType": "YulIdentifier", - "src": "5646:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5646:22:1" - } - ], - "functionName": { - "name": "or", - "nodeType": "YulIdentifier", - "src": "5607:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "5607:62:1" - }, - "nodeType": "YulIf", - "src": "5604:88:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5708:2:1", - "type": "", - "value": "64" - }, - { - "name": "newFreePtr", - "nodeType": "YulIdentifier", - "src": "5712:10:1" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "5701:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5701:22:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5701:22:1" - } - ] - }, - "name": "finalize_allocation", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "memPtr", - "nodeType": "YulTypedName", - "src": "5477:6:1", - "type": "" - }, - { - "name": "size", - "nodeType": "YulTypedName", - "src": "5485:4:1", - "type": "" - } - ], - "src": "5448:281:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5763:152:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5780:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5783:77:1", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "5773:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5773:88:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5773:88:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5877:1:1", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5880:4:1", - "type": "", - "value": "0x11" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "5870:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5870:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5870:15:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5901:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5904:4:1", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "5894:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5894:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5894:15:1" - } - ] - }, - "name": "panic_error_0x11", - "nodeType": "YulFunctionDefinition", - "src": "5735:180:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "5949:152:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5966:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "5969:77:1", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "5959:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "5959:88:1" - }, - "nodeType": "YulExpressionStatement", - "src": "5959:88:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6063:1:1", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6066:4:1", - "type": "", - "value": "0x22" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "6056:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6056:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6056:15:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6087:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6090:4:1", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6080:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6080:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6080:15:1" - } - ] - }, - "name": "panic_error_0x22", - "nodeType": "YulFunctionDefinition", - "src": "5921:180:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6135:152:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6152:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6155:77:1", - "type": "", - "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "6145:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6145:88:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6145:88:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6249:1:1", - "type": "", - "value": "4" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6252:4:1", - "type": "", - "value": "0x41" - } - ], - "functionName": { - "name": "mstore", - "nodeType": "YulIdentifier", - "src": "6242:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6242:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6242:15:1" - }, - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6273:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6276:4:1", - "type": "", - "value": "0x24" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6266:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6266:15:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6266:15:1" - } - ] - }, - "name": "panic_error_0x41", - "nodeType": "YulFunctionDefinition", - "src": "6107:180:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6382:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6399:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6402:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6392:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6392:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6392:12:1" - } - ] - }, - "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", - "nodeType": "YulFunctionDefinition", - "src": "6293:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6505:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6522:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6525:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6515:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6515:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6515:12:1" - } - ] - }, - "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", - "nodeType": "YulFunctionDefinition", - "src": "6416:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6628:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6645:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6648:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6638:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6638:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6638:12:1" - } - ] - }, - "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", - "nodeType": "YulFunctionDefinition", - "src": "6539:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6751:28:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6768:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6771:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6761:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6761:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6761:12:1" - } - ] - }, - "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", - "nodeType": "YulFunctionDefinition", - "src": "6662:117:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6833:54:1", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "6843:38:1", - "value": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "6861:5:1" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6868:2:1", - "type": "", - "value": "31" - } - ], - "functionName": { - "name": "add", - "nodeType": "YulIdentifier", - "src": "6857:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "6857:14:1" - }, - { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "6877:2:1", - "type": "", - "value": "31" - } - ], - "functionName": { - "name": "not", - "nodeType": "YulIdentifier", - "src": "6873:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "6873:7:1" - } - ], - "functionName": { - "name": "and", - "nodeType": "YulIdentifier", - "src": "6853:3:1" - }, - "nodeType": "YulFunctionCall", - "src": "6853:28:1" - }, - "variableNames": [ - { - "name": "result", - "nodeType": "YulIdentifier", - "src": "6843:6:1" - } - ] - } - ] - }, - "name": "round_up_to_mul_of_32", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "6816:5:1", - "type": "" - } - ], - "returnVariables": [ - { - "name": "result", - "nodeType": "YulTypedName", - "src": "6826:6:1", - "type": "" - } - ], - "src": "6785:102:1" - }, - { - "body": { - "nodeType": "YulBlock", - "src": "6936:79:1", - "statements": [ - { - "body": { - "nodeType": "YulBlock", - "src": "6993:16:1", - "statements": [ - { - "expression": { - "arguments": [ - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7002:1:1", - "type": "", - "value": "0" - }, - { - "kind": "number", - "nodeType": "YulLiteral", - "src": "7005:1:1", - "type": "", - "value": "0" - } - ], - "functionName": { - "name": "revert", - "nodeType": "YulIdentifier", - "src": "6995:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6995:12:1" - }, - "nodeType": "YulExpressionStatement", - "src": "6995:12:1" - } - ] - }, - "condition": { - "arguments": [ - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "6959:5:1" - }, - { - "arguments": [ - { - "name": "value", - "nodeType": "YulIdentifier", - "src": "6984:5:1" - } - ], - "functionName": { - "name": "cleanup_t_uint256", - "nodeType": "YulIdentifier", - "src": "6966:17:1" - }, - "nodeType": "YulFunctionCall", - "src": "6966:24:1" - } - ], - "functionName": { - "name": "eq", - "nodeType": "YulIdentifier", - "src": "6956:2:1" - }, - "nodeType": "YulFunctionCall", - "src": "6956:35:1" - } - ], - "functionName": { - "name": "iszero", - "nodeType": "YulIdentifier", - "src": "6949:6:1" - }, - "nodeType": "YulFunctionCall", - "src": "6949:43:1" - }, - "nodeType": "YulIf", - "src": "6946:63:1" - } - ] - }, - "name": "validator_revert_t_uint256", - "nodeType": "YulFunctionDefinition", - "parameters": [ - { - "name": "value", - "nodeType": "YulTypedName", - "src": "6929:5:1", - "type": "" - } - ], - "src": "6893:122:1" - } - ] - }, - "contents": "{\n\n function abi_decode_available_length_t_string_memory_ptr(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_calldata_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_string_memory_ptr(add(offset, 0x20), length, end)\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_string_memory_ptr(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_bool_to_t_bool_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function copy_calldata_to_memory(src, dst, length) {\n calldatacopy(dst, src, length)\n // clear end\n mstore(add(dst, length), 0)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", - "id": 1, - "language": "Yul", - "name": "#utility.yul" - } - ], - "immutableReferences": {}, - "linkReferences": {}, - "object": "608060405234801561001057600080fd5b50600436106100935760003560e01c8063b69ef8a811610066578063b69ef8a814610120578063b6b55f251461013e578063c47f00271461015a578063d285b7b414610176578063d5dcf1271461019457610093565b806317d7de7c1461009857806318db62fb146100b65780631fad2953146100e6578063967e6e6514610102575b600080fd5b6100a06101b0565b6040516100ad91906104e8565b60405180910390f35b6100d060048036038101906100cb9190610449565b610242565b6040516100dd91906104cd565b60405180910390f35b61010060048036038101906100fb9190610449565b610250565b005b61010a61027a565b604051610117919061050a565b60405180910390f35b610128610284565b604051610135919061050a565b60405180910390f35b61015860048036038101906101539190610449565b61028d565b005b610174600480360381019061016f9190610400565b6102a8565b005b61017e6102c2565b60405161018b91906104cd565b60405180910390f35b6101ae60048036038101906101a99190610449565b6102ce565b005b6060600180546101bf90610679565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610679565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600081600054119050919050565b61025981610242565b15610277578060008082825461026f91906105ed565b925050819055505b50565b6000600254905090565b60008054905090565b8060008082825461029e9190610597565b9250508190555050565b80600190805190602001906102be9291906102d8565b5050565b60008060005411905090565b8060028190555050565b8280546102e490610679565b90600052602060002090601f016020900481019282610306576000855561034d565b82601f1061031f57805160ff191683800117855561034d565b8280016001018555821561034d579182015b8281111561034c578251825591602001919060010190610331565b5b50905061035a919061035e565b5090565b5b8082111561037757600081600090555060010161035f565b5090565b600061038e6103898461054a565b610525565b9050828152602081018484840111156103aa576103a961076e565b5b6103b5848285610637565b509392505050565b600082601f8301126103d2576103d1610769565b5b81356103e284826020860161037b565b91505092915050565b6000813590506103fa8161078e565b92915050565b60006020828403121561041657610415610778565b5b600082013567ffffffffffffffff81111561043457610433610773565b5b610440848285016103bd565b91505092915050565b60006020828403121561045f5761045e610778565b5b600061046d848285016103eb565b91505092915050565b61047f81610621565b82525050565b60006104908261057b565b61049a8185610586565b93506104aa818560208601610646565b6104b38161077d565b840191505092915050565b6104c78161062d565b82525050565b60006020820190506104e26000830184610476565b92915050565b600060208201905081810360008301526105028184610485565b905092915050565b600060208201905061051f60008301846104be565b92915050565b600061052f610540565b905061053b82826106ab565b919050565b6000604051905090565b600067ffffffffffffffff8211156105655761056461073a565b5b61056e8261077d565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006105a28261062d565b91506105ad8361062d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156105e2576105e16106dc565b5b828201905092915050565b60006105f88261062d565b91506106038361062d565b925082821015610616576106156106dc565b5b828203905092915050565b60008115159050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610664578082015181840152602081019050610649565b83811115610673576000848401525b50505050565b6000600282049050600182168061069157607f821691505b602082108114156106a5576106a461070b565b5b50919050565b6106b48261077d565b810181811067ffffffffffffffff821117156106d3576106d261073a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6107978161062d565b81146107a257600080fd5b5056fea2646970667358221220571b55a57474640680b217b8b808b72dfa988117bb06e235301023e283cbd3fc64736f6c63430008070033", - "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x93 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB69EF8A8 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xB69EF8A8 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0xB6B55F25 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xC47F0027 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xD285B7B4 EQ PUSH2 0x176 JUMPI DUP1 PUSH4 0xD5DCF127 EQ PUSH2 0x194 JUMPI PUSH2 0x93 JUMP JUMPDEST DUP1 PUSH4 0x17D7DE7C EQ PUSH2 0x98 JUMPI DUP1 PUSH4 0x18DB62FB EQ PUSH2 0xB6 JUMPI DUP1 PUSH4 0x1FAD2953 EQ PUSH2 0xE6 JUMPI DUP1 PUSH4 0x967E6E65 EQ PUSH2 0x102 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x1B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAD SWAP2 SWAP1 PUSH2 0x4E8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xD0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xCB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x242 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xDD SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x100 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xFB SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x250 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x10A PUSH2 0x27A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x117 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x128 PUSH2 0x284 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x135 SWAP2 SWAP1 PUSH2 0x50A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x158 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x153 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x28D JUMP JUMPDEST STOP JUMPDEST PUSH2 0x174 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x16F SWAP2 SWAP1 PUSH2 0x400 JUMP JUMPDEST PUSH2 0x2A8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x17E PUSH2 0x2C2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1AE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1A9 SWAP2 SWAP1 PUSH2 0x449 JUMP JUMPDEST PUSH2 0x2CE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD PUSH2 0x1BF SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x1EB SWAP1 PUSH2 0x679 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x238 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x20D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x238 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x21B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x259 DUP2 PUSH2 0x242 JUMP JUMPDEST ISZERO PUSH2 0x277 JUMPI DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x26F SWAP2 SWAP1 PUSH2 0x5ED JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x29E SWAP2 SWAP1 PUSH2 0x597 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2BE SWAP3 SWAP2 SWAP1 PUSH2 0x2D8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 SLOAD GT SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x2 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x2E4 SWAP1 PUSH2 0x679 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x306 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x31F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x34D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x34D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x34C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x331 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x35A SWAP2 SWAP1 PUSH2 0x35E JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x377 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x35F JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38E PUSH2 0x389 DUP5 PUSH2 0x54A JUMP JUMPDEST PUSH2 0x525 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x3AA JUMPI PUSH2 0x3A9 PUSH2 0x76E JUMP JUMPDEST JUMPDEST PUSH2 0x3B5 DUP5 DUP3 DUP6 PUSH2 0x637 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x3D2 JUMPI PUSH2 0x3D1 PUSH2 0x769 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x3E2 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x37B JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x3FA DUP2 PUSH2 0x78E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x416 JUMPI PUSH2 0x415 PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x434 JUMPI PUSH2 0x433 PUSH2 0x773 JUMP JUMPDEST JUMPDEST PUSH2 0x440 DUP5 DUP3 DUP6 ADD PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45F JUMPI PUSH2 0x45E PUSH2 0x778 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x46D DUP5 DUP3 DUP6 ADD PUSH2 0x3EB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x47F DUP2 PUSH2 0x621 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x490 DUP3 PUSH2 0x57B JUMP JUMPDEST PUSH2 0x49A DUP2 DUP6 PUSH2 0x586 JUMP JUMPDEST SWAP4 POP PUSH2 0x4AA DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x646 JUMP JUMPDEST PUSH2 0x4B3 DUP2 PUSH2 0x77D JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x4C7 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x4E2 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x476 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x502 DUP2 DUP5 PUSH2 0x485 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x51F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x4BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x52F PUSH2 0x540 JUMP JUMPDEST SWAP1 POP PUSH2 0x53B DUP3 DUP3 PUSH2 0x6AB JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x565 JUMPI PUSH2 0x564 PUSH2 0x73A JUMP JUMPDEST JUMPDEST PUSH2 0x56E DUP3 PUSH2 0x77D JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x5AD DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x5E2 JUMPI PUSH2 0x5E1 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5F8 DUP3 PUSH2 0x62D JUMP JUMPDEST SWAP2 POP PUSH2 0x603 DUP4 PUSH2 0x62D JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x616 JUMPI PUSH2 0x615 PUSH2 0x6DC JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x664 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x649 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x673 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x691 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x6A5 JUMPI PUSH2 0x6A4 PUSH2 0x70B JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x6B4 DUP3 PUSH2 0x77D JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x6D3 JUMPI PUSH2 0x6D2 PUSH2 0x73A JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x797 DUP2 PUSH2 0x62D JUMP JUMPDEST DUP2 EQ PUSH2 0x7A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPI SHL SSTORE 0xA5 PUSH21 0x74640680B217B8B808B72DFA988117BB06E2353010 0x23 0xE2 DUP4 0xCB 0xD3 0xFC PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", - "sourceMap": "819:482:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1058:84;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;612:109;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;386:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1219:73;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;513:76;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;311:69;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;964:88;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;727:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1148:65;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1058:84;1098:13;1130:4;1123:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1058:84;:::o;612:109::-;675:4;707:6;699:5;;:14;692:21;;612:109;;;:::o;386:121::-;441:18;452:6;441:10;:18::i;:::-;437:64;;;483:6;474:5;;:15;;;;;;;:::i;:::-;;;;;;;;437:64;386:121;:::o;1219:73::-;1258:4;1281:3;;1274:10;;1219:73;:::o;513:76::-;553:4;577:5;;570:12;;513:76;:::o;311:69::-;367:6;358:5;;:15;;;;;;;:::i;:::-;;;;;;;;311:69;:::o;964:88::-;1037:7;1030:4;:14;;;;;;;;;;;;:::i;:::-;;964:88;:::o;727:87::-;773:4;805:1;797:5;;:9;790:16;;727:87;:::o;1148:65::-;1200:6;1194:3;:12;;;;1148:65;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:412:1:-;85:5;110:66;126:49;168:6;126:49;:::i;:::-;110:66;:::i;:::-;101:75;;199:6;192:5;185:21;237:4;230:5;226:16;275:3;266:6;261:3;257:16;254:25;251:112;;;282:79;;:::i;:::-;251:112;372:41;406:6;401:3;396;372:41;:::i;:::-;91:328;7:412;;;;;:::o;439:340::-;495:5;544:3;537:4;529:6;525:17;521:27;511:122;;552:79;;:::i;:::-;511:122;669:6;656:20;694:79;769:3;761:6;754:4;746:6;742:17;694:79;:::i;:::-;685:88;;501:278;439:340;;;;:::o;785:139::-;831:5;869:6;856:20;847:29;;885:33;912:5;885:33;:::i;:::-;785:139;;;;:::o;930:509::-;999:6;1048:2;1036:9;1027:7;1023:23;1019:32;1016:119;;;1054:79;;:::i;:::-;1016:119;1202:1;1191:9;1187:17;1174:31;1232:18;1224:6;1221:30;1218:117;;;1254:79;;:::i;:::-;1218:117;1359:63;1414:7;1405:6;1394:9;1390:22;1359:63;:::i;:::-;1349:73;;1145:287;930:509;;;;:::o;1445:329::-;1504:6;1553:2;1541:9;1532:7;1528:23;1524:32;1521:119;;;1559:79;;:::i;:::-;1521:119;1679:1;1704:53;1749:7;1740:6;1729:9;1725:22;1704:53;:::i;:::-;1694:63;;1650:117;1445:329;;;;:::o;1780:109::-;1861:21;1876:5;1861:21;:::i;:::-;1856:3;1849:34;1780:109;;:::o;1895:364::-;1983:3;2011:39;2044:5;2011:39;:::i;:::-;2066:71;2130:6;2125:3;2066:71;:::i;:::-;2059:78;;2146:52;2191:6;2186:3;2179:4;2172:5;2168:16;2146:52;:::i;:::-;2223:29;2245:6;2223:29;:::i;:::-;2218:3;2214:39;2207:46;;1987:272;1895:364;;;;:::o;2265:118::-;2352:24;2370:5;2352:24;:::i;:::-;2347:3;2340:37;2265:118;;:::o;2389:210::-;2476:4;2514:2;2503:9;2499:18;2491:26;;2527:65;2589:1;2578:9;2574:17;2565:6;2527:65;:::i;:::-;2389:210;;;;:::o;2605:313::-;2718:4;2756:2;2745:9;2741:18;2733:26;;2805:9;2799:4;2795:20;2791:1;2780:9;2776:17;2769:47;2833:78;2906:4;2897:6;2833:78;:::i;:::-;2825:86;;2605:313;;;;:::o;2924:222::-;3017:4;3055:2;3044:9;3040:18;3032:26;;3068:71;3136:1;3125:9;3121:17;3112:6;3068:71;:::i;:::-;2924:222;;;;:::o;3152:129::-;3186:6;3213:20;;:::i;:::-;3203:30;;3242:33;3270:4;3262:6;3242:33;:::i;:::-;3152:129;;;:::o;3287:75::-;3320:6;3353:2;3347:9;3337:19;;3287:75;:::o;3368:308::-;3430:4;3520:18;3512:6;3509:30;3506:56;;;3542:18;;:::i;:::-;3506:56;3580:29;3602:6;3580:29;:::i;:::-;3572:37;;3664:4;3658;3654:15;3646:23;;3368:308;;;:::o;3682:99::-;3734:6;3768:5;3762:12;3752:22;;3682:99;;;:::o;3787:169::-;3871:11;3905:6;3900:3;3893:19;3945:4;3940:3;3936:14;3921:29;;3787:169;;;;:::o;3962:305::-;4002:3;4021:20;4039:1;4021:20;:::i;:::-;4016:25;;4055:20;4073:1;4055:20;:::i;:::-;4050:25;;4209:1;4141:66;4137:74;4134:1;4131:81;4128:107;;;4215:18;;:::i;:::-;4128:107;4259:1;4256;4252:9;4245:16;;3962:305;;;;:::o;4273:191::-;4313:4;4333:20;4351:1;4333:20;:::i;:::-;4328:25;;4367:20;4385:1;4367:20;:::i;:::-;4362:25;;4406:1;4403;4400:8;4397:34;;;4411:18;;:::i;:::-;4397:34;4456:1;4453;4449:9;4441:17;;4273:191;;;;:::o;4470:90::-;4504:7;4547:5;4540:13;4533:21;4522:32;;4470:90;;;:::o;4566:77::-;4603:7;4632:5;4621:16;;4566:77;;;:::o;4649:154::-;4733:6;4728:3;4723;4710:30;4795:1;4786:6;4781:3;4777:16;4770:27;4649:154;;;:::o;4809:307::-;4877:1;4887:113;4901:6;4898:1;4895:13;4887:113;;;4986:1;4981:3;4977:11;4971:18;4967:1;4962:3;4958:11;4951:39;4923:2;4920:1;4916:10;4911:15;;4887:113;;;5018:6;5015:1;5012:13;5009:101;;;5098:1;5089:6;5084:3;5080:16;5073:27;5009:101;4858:258;4809:307;;;:::o;5122:320::-;5166:6;5203:1;5197:4;5193:12;5183:22;;5250:1;5244:4;5240:12;5271:18;5261:81;;5327:4;5319:6;5315:17;5305:27;;5261:81;5389:2;5381:6;5378:14;5358:18;5355:38;5352:84;;;5408:18;;:::i;:::-;5352:84;5173:269;5122:320;;;:::o;5448:281::-;5531:27;5553:4;5531:27;:::i;:::-;5523:6;5519:40;5661:6;5649:10;5646:22;5625:18;5613:10;5610:34;5607:62;5604:88;;;5672:18;;:::i;:::-;5604:88;5712:10;5708:2;5701:22;5491:238;5448:281;;:::o;5735:180::-;5783:77;5780:1;5773:88;5880:4;5877:1;5870:15;5904:4;5901:1;5894:15;5921:180;5969:77;5966:1;5959:88;6066:4;6063:1;6056:15;6090:4;6087:1;6080:15;6107:180;6155:77;6152:1;6145:88;6252:4;6249:1;6242:15;6276:4;6273:1;6266:15;6293:117;6402:1;6399;6392:12;6416:117;6525:1;6522;6515:12;6539:117;6648:1;6645;6638:12;6662:117;6771:1;6768;6761:12;6785:102;6826:6;6877:2;6873:7;6868:2;6861:5;6857:14;6853:28;6843:38;;6785:102;;;:::o;6893:122::-;6966:24;6984:5;6966:24;:::i;:::-;6959:5;6956:35;6946:63;;7005:1;7002;6995:12;6946:63;6893:122;:::o" - }, - "gasEstimates": { - "creation": { - "codeDepositCost": "402200", - "executionCost": "22555", - "totalCost": "424755" - }, - "external": { - "balance()": "2437", - "checkValue(uint256)": "2737", - "deposit(uint256)": "infinite", - "getAge()": "2504", - "getName()": "infinite", - "loan()": "2515", - "setAge(uint256)": "22608", - "setName(string)": "infinite", - "withdrawel(uint256)": "infinite" - } - }, - "methodIdentifiers": { - "balance()": "b69ef8a8", - "checkValue(uint256)": "18db62fb", - "deposit(uint256)": "b6b55f25", - "getAge()": "967e6e65", - "getName()": "17d7de7c", - "loan()": "d285b7b4", - "setAge(uint256)": "d5dcf127", - "setName(string)": "c47f0027", - "withdrawel(uint256)": "1fad2953" - } - }, - "abi": [ - { - "inputs": [], - "name": "balance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAge", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newAge", - "type": "uint256" - } - ], - "name": "setAge", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "newName", - "type": "string" - } - ], - "name": "setName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdrawel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} \ No newline at end of file diff --git a/tutorial-02/artifacts/myfirstcontract_metadata.json b/tutorial-02/artifacts/myfirstcontract_metadata.json deleted file mode 100644 index addef41..0000000 --- a/tutorial-02/artifacts/myfirstcontract_metadata.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "compiler": { - "version": "0.8.7+commit.e28d00a7" - }, - "language": "Solidity", - "output": { - "abi": [ - { - "inputs": [], - "name": "balance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "checkValue", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAge", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "loan", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newAge", - "type": "uint256" - } - ], - "name": "setAge", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "newName", - "type": "string" - } - ], - "name": "setName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdrawel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "devdoc": { - "kind": "dev", - "methods": {}, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - } - }, - "settings": { - "compilationTarget": { - "tutorial-02/myfirstcontract.sol": "myfirstcontract" - }, - "evmVersion": "london", - "libraries": {}, - "metadata": { - "bytecodeHash": "ipfs" - }, - "optimizer": { - "enabled": false, - "runs": 200 - }, - "remappings": [] - }, - "sources": { - "tutorial-02/myfirstcontract.sol": { - "keccak256": "0x98cdea93307cd117f5fae8f98f8b40ed0e285ed1225e55093df1c88c9c383e3f", - "license": "MIT", - "urls": [ - "bzz-raw://57a86e68a7f2b0022f5a7ae46566649014c7c3e0e9f4c70099e0a827bf8e3836", - "dweb:/ipfs/QmXn6K9WvAdbeZjozcPRTF8isi1s4sKcsbY94BSUNmp6f7" - ] - } - }, - "version": 1 -} \ No newline at end of file