Skip to content

Instantly share code, notes, and snippets.

@blockedby
Created December 11, 2021 19:19
Show Gist options
  • Save blockedby/738e78abe14da9c5a9a30dfaef8485ad to your computer and use it in GitHub Desktop.
Save blockedby/738e78abe14da9c5a9a30dfaef8485ad to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
{
"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": {
"@_31": {
"entryPoint": null,
"id": 31,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr_fromMemory": {
"entryPoint": 326,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr_fromMemory": {
"entryPoint": 401,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256_fromMemory": {
"entryPoint": 452,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256t_string_memory_ptr_fromMemory": {
"entryPoint": 475,
"id": null,
"parameterSlots": 2,
"returnSlots": 2
},
"allocate_memory": {
"entryPoint": 577,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 608,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 618,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 672,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_memory_to_memory": {
"entryPoint": 682,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 736,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 790,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 844,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 891,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 938,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 943,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 948,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 953,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 958,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"validator_revert_t_uint256": {
"entryPoint": 975,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:4280:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "102:326:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "112:75:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "179:6:1"
}
],
"functionName": {
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "137:41:1"
},
"nodeType": "YulFunctionCall",
"src": "137:49:1"
}
],
"functionName": {
"name": "allocate_memory",
"nodeType": "YulIdentifier",
"src": "121:15:1"
},
"nodeType": "YulFunctionCall",
"src": "121:66:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "112:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "203:5:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "210:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "196:6:1"
},
"nodeType": "YulFunctionCall",
"src": "196:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "196:21:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "226:27:1",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "241:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "248:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "237:3:1"
},
"nodeType": "YulFunctionCall",
"src": "237:16:1"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "230:3:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "291:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulIdentifier",
"src": "293:77:1"
},
"nodeType": "YulFunctionCall",
"src": "293:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "293:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "272:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "277:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "268:3:1"
},
"nodeType": "YulFunctionCall",
"src": "268:16:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "286:3:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "265:2:1"
},
"nodeType": "YulFunctionCall",
"src": "265:25:1"
},
"nodeType": "YulIf",
"src": "262:112:1"
},
{
"expression": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "405:3:1"
},
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "410:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "415:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "383:21:1"
},
"nodeType": "YulFunctionCall",
"src": "383:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "383:39:1"
}
]
},
"name": "abi_decode_available_length_t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "75:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "80:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "88:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "96:5:1",
"type": ""
}
],
"src": "7:421:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "521:282:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "570:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "572:77:1"
},
"nodeType": "YulFunctionCall",
"src": "572:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "572:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "549:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "557:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "545:3:1"
},
"nodeType": "YulFunctionCall",
"src": "545:17:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "564:3:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "541:3:1"
},
"nodeType": "YulFunctionCall",
"src": "541:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "534:6:1"
},
"nodeType": "YulFunctionCall",
"src": "534:35:1"
},
"nodeType": "YulIf",
"src": "531:122:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "662:27:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "682:6:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "676:5:1"
},
"nodeType": "YulFunctionCall",
"src": "676:13:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "666:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "698:99:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "770:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "778:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "766:3:1"
},
"nodeType": "YulFunctionCall",
"src": "766:17:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "785:6:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "793:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_string_memory_ptr_fromMemory",
"nodeType": "YulIdentifier",
"src": "707:58:1"
},
"nodeType": "YulFunctionCall",
"src": "707:90:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "698:5:1"
}
]
}
]
},
"name": "abi_decode_t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "499:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "507:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "515:5:1",
"type": ""
}
],
"src": "448:355:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "872:80:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "882:22:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "897:6:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "891:5:1"
},
"nodeType": "YulFunctionCall",
"src": "891:13:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "882:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "940:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "913:26:1"
},
"nodeType": "YulFunctionCall",
"src": "913:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "913:33:1"
}
]
},
"name": "abi_decode_t_uint256_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "850:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "858:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "866:5:1",
"type": ""
}
],
"src": "809:143:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1062:576:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1108:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "1110:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1110:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1110:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1083:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1092:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1079:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1079:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1104:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1075:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1075:32:1"
},
"nodeType": "YulIf",
"src": "1072:119:1"
},
{
"nodeType": "YulBlock",
"src": "1201:128:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1216:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1230:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1220:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1245:74:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1291:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1302:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1287:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1287:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1311:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256_fromMemory",
"nodeType": "YulIdentifier",
"src": "1255:31:1"
},
"nodeType": "YulFunctionCall",
"src": "1255:64:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1245:6:1"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "1339:292:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1354:39:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1378:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1389:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1374:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1374:18:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1368:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1368:25:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1358:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1440:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "1442:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1442:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1442:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1412:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1420:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1409:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1409:30:1"
},
"nodeType": "YulIf",
"src": "1406:117:1"
},
{
"nodeType": "YulAssignment",
"src": "1537:84:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1593:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1604:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1589:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1589:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1613:7:1"
}
],
"functionName": {
"name": "abi_decode_t_string_memory_ptr_fromMemory",
"nodeType": "YulIdentifier",
"src": "1547:41:1"
},
"nodeType": "YulFunctionCall",
"src": "1547:74:1"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1537:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1024:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1035:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1047:6:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1055:6:1",
"type": ""
}
],
"src": "958:680:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1685:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1695:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "1705:18:1"
},
"nodeType": "YulFunctionCall",
"src": "1705:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1695:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1754:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1762:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "1734:19:1"
},
"nodeType": "YulFunctionCall",
"src": "1734:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1734:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1669:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1678:6:1",
"type": ""
}
],
"src": "1644:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1819:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1829:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1845:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1839:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1839:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1829:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1812:6:1",
"type": ""
}
],
"src": "1779:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1927:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2032:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "2034:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2034:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "2034:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2004:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2012:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2001:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2001:30:1"
},
"nodeType": "YulIf",
"src": "1998:56:1"
},
{
"nodeType": "YulAssignment",
"src": "2064:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2094:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "2072:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2072:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "2064:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "2138:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "2150:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2156:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2146:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2146:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "2138:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1911:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1922:4:1",
"type": ""
}
],
"src": "1860:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2219:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2229:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2240:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2229:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2201:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2211:7:1",
"type": ""
}
],
"src": "2174:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2306:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2316:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2325:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "2320:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2385:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2410:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2415:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2406:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2406:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "2429:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2434:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2425:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2425:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2419:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2419:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2399:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2399:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "2399:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2346:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2349:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2343:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2343:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2357:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2359:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2368:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2371:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2364:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2364:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2359:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2339:3:1",
"statements": []
},
"src": "2335:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2482:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2532:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2537:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2528:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2528:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2546:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2521:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2521:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "2521:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2463:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2466:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2460:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2460:13:1"
},
"nodeType": "YulIf",
"src": "2457:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "2288:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "2293:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2298:6:1",
"type": ""
}
],
"src": "2257:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2621:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2631:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "2645:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2651:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "2641:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2641:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2631:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2662:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "2692:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2698:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2688:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2688:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "2666:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2739:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2753:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2767:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2775:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2763:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2763:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2753:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "2719:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "2712:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2712:26:1"
},
"nodeType": "YulIf",
"src": "2709:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2842:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "2856:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2856:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "2856:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "2806:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2829:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2837:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2826:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2826:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "2803:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2803:38:1"
},
"nodeType": "YulIf",
"src": "2800:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "2605:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2614:6:1",
"type": ""
}
],
"src": "2570:320:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2939:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2949:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "2971:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3001:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "2979:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2979:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2967:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2967:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "2953:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3118:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "3120:16:1"
},
"nodeType": "YulFunctionCall",
"src": "3120:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "3120:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3061:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3073:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3058:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3058:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3097:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3109:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3094:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3094:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "3055:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3055:62:1"
},
"nodeType": "YulIf",
"src": "3052:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3156:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3160:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3149:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3149:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "3149:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "2925:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "2933:4:1",
"type": ""
}
],
"src": "2896:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3211:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3228:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3231:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3221:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3221:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "3221:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3325:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3328:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3318:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3318:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3318:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3349:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3352:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3342:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3342:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3342:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "3183:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3397:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3414:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3417:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3407:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3407:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "3407:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3511:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3514:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3504:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3504:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3504:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3535:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3538:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3528:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3528:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3528:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "3369:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3644:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3661:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3664:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3654:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3654:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3654:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "3555:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3767:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3784:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3787:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3777:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3777:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3777:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "3678:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3890:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3907:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3910:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3900:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3900:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3900:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "3801:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4013:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4030:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4033:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "4023:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4023:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "4023:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "3924:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4095:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4105:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4123:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4130:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4119:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4119:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4139:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4135:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4135:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4115:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4115:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "4105:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4078:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "4088:6:1",
"type": ""
}
],
"src": "4047:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4198:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4255:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4264:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4267:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "4257:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4257:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "4257:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4221:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4246:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "4228:17:1"
},
"nodeType": "YulFunctionCall",
"src": "4228:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "4218:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4218:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4211:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4211:43:1"
},
"nodeType": "YulIf",
"src": "4208:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4191:5:1",
"type": ""
}
],
"src": "4155:122:1"
}
]
},
"contents": "{\n\n function abi_decode_available_length_t_string_memory_ptr_fromMemory(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_memory_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr_fromMemory(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := mload(offset)\n array := abi_decode_available_length_t_string_memory_ptr_fromMemory(add(offset, 0x20), length, end)\n }\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_uint256t_string_memory_ptr_fromMemory(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { 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 let offset := mload(add(headStart, 32))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value1 := abi_decode_t_string_memory_ptr_fromMemory(add(headStart, offset), dataEnd)\n }\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 cleanup_t_uint256(value) -> cleaned {\n cleaned := value\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_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"
}
],
"linkReferences": {},
"object": "60a06040523480156200001157600080fd5b5060405162000a4c38038062000a4c8339818101604052810190620000379190620001db565b8160008190555080600190805190602001906200005692919062000096565b503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620003e9565b828054620000a490620002e0565b90600052602060002090601f016020900481019282620000c8576000855562000114565b82601f10620000e357805160ff191683800117855562000114565b8280016001018555821562000114579182015b8281111562000113578251825591602001919060010190620000f6565b5b50905062000123919062000127565b5090565b5b808211156200014257600081600090555060010162000128565b5090565b60006200015d62000157846200026a565b62000241565b9050828152602081018484840111156200017c576200017b620003af565b5b62000189848285620002aa565b509392505050565b600082601f830112620001a957620001a8620003aa565b5b8151620001bb84826020860162000146565b91505092915050565b600081519050620001d581620003cf565b92915050565b60008060408385031215620001f557620001f4620003b9565b5b60006200020585828601620001c4565b925050602083015167ffffffffffffffff811115620002295762000228620003b4565b5b620002378582860162000191565b9150509250929050565b60006200024d62000260565b90506200025b828262000316565b919050565b6000604051905090565b600067ffffffffffffffff8211156200028857620002876200037b565b5b6200029382620003be565b9050602081019050919050565b6000819050919050565b60005b83811015620002ca578082015181840152602081019050620002ad565b83811115620002da576000848401525b50505050565b60006002820490506001821680620002f957607f821691505b6020821081141562000310576200030f6200034c565b5b50919050565b6200032182620003be565b810181811067ffffffffffffffff821117156200034357620003426200037b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620003da81620002a0565b8114620003e657600080fd5b50565b60805160601c61064462000408600039600061019801526106446000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063516f279e1461005c578063827bfbdf1461007a5780638da5cb5b1461009657806391b7f5ed146100b457806398d5fdca146100d0575b600080fd5b6100646100ee565b60405161007191906103e4565b60405180910390f35b610094600480360381019061008f91906102fc565b61017c565b005b61009e610196565b6040516100ab91906103c9565b60405180910390f35b6100ce60048036038101906100c99190610345565b6101ba565b005b6100d86101cb565b6040516100e59190610406565b60405180910390f35b600180546100fb90610511565b80601f016020809104026020016040519081016040528092919081815260200182805461012790610511565b80156101745780601f1061014957610100808354040283529160200191610174565b820191906000526020600020905b81548152906001019060200180831161015757829003601f168201915b505050505081565b80600190805190602001906101929291906101d4565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a9050816000819055505050565b60008054905090565b8280546101e090610511565b90600052602060002090601f0160209004810192826102025760008555610249565b82601f1061021b57805160ff1916838001178555610249565b82800160010185558215610249579182015b8281111561024857825182559160200191906001019061022d565b5b509050610256919061025a565b5090565b5b8082111561027357600081600090555060010161025b565b5090565b600061028a61028584610446565b610421565b9050828152602081018484840111156102a6576102a56105d7565b5b6102b18482856104cf565b509392505050565b600082601f8301126102ce576102cd6105d2565b5b81356102de848260208601610277565b91505092915050565b6000813590506102f6816105f7565b92915050565b600060208284031215610312576103116105e1565b5b600082013567ffffffffffffffff8111156103305761032f6105dc565b5b61033c848285016102b9565b91505092915050565b60006020828403121561035b5761035a6105e1565b5b6000610369848285016102e7565b91505092915050565b61037b81610493565b82525050565b600061038c82610477565b6103968185610482565b93506103a68185602086016104de565b6103af816105e6565b840191505092915050565b6103c3816104c5565b82525050565b60006020820190506103de6000830184610372565b92915050565b600060208201905081810360008301526103fe8184610381565b905092915050565b600060208201905061041b60008301846103ba565b92915050565b600061042b61043c565b90506104378282610543565b919050565b6000604051905090565b600067ffffffffffffffff821115610461576104606105a3565b5b61046a826105e6565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600061049e826104a5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156104fc5780820151818401526020810190506104e1565b8381111561050b576000848401525b50505050565b6000600282049050600182168061052957607f821691505b6020821081141561053d5761053c610574565b5b50919050565b61054c826105e6565b810181811067ffffffffffffffff8211171561056b5761056a6105a3565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b610600816104c5565b811461060b57600080fd5b5056fea26469706673582212200d1f83d96528ee0edacd52436ce91b72c668cdc3c66bf801992deb12e4ca2cee64736f6c63430008070033",
"opcodes": "PUSH1 0xA0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0xA4C CODESIZE SUB DUP1 PUSH3 0xA4C DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH3 0x37 SWAP2 SWAP1 PUSH3 0x1DB JUMP JUMPDEST DUP2 PUSH1 0x0 DUP2 SWAP1 SSTORE POP DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH3 0x56 SWAP3 SWAP2 SWAP1 PUSH3 0x96 JUMP JUMPDEST POP CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x80 DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x60 SHL DUP2 MSTORE POP POP POP POP PUSH3 0x3E9 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH3 0xA4 SWAP1 PUSH3 0x2E0 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH3 0xC8 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH3 0x114 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH3 0xE3 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x114 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x114 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x113 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0xF6 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH3 0x123 SWAP2 SWAP1 PUSH3 0x127 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x142 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH3 0x128 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x15D PUSH3 0x157 DUP5 PUSH3 0x26A JUMP JUMPDEST PUSH3 0x241 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH3 0x17C JUMPI PUSH3 0x17B PUSH3 0x3AF JUMP JUMPDEST JUMPDEST PUSH3 0x189 DUP5 DUP3 DUP6 PUSH3 0x2AA JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x1A9 JUMPI PUSH3 0x1A8 PUSH3 0x3AA JUMP JUMPDEST JUMPDEST DUP2 MLOAD PUSH3 0x1BB DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH3 0x146 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH3 0x1D5 DUP2 PUSH3 0x3CF JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH3 0x1F5 JUMPI PUSH3 0x1F4 PUSH3 0x3B9 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH3 0x205 DUP6 DUP3 DUP7 ADD PUSH3 0x1C4 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH3 0x229 JUMPI PUSH3 0x228 PUSH3 0x3B4 JUMP JUMPDEST JUMPDEST PUSH3 0x237 DUP6 DUP3 DUP7 ADD PUSH3 0x191 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x24D PUSH3 0x260 JUMP JUMPDEST SWAP1 POP PUSH3 0x25B DUP3 DUP3 PUSH3 0x316 JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH3 0x288 JUMPI PUSH3 0x287 PUSH3 0x37B JUMP JUMPDEST JUMPDEST PUSH3 0x293 DUP3 PUSH3 0x3BE JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x2CA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH3 0x2AD JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH3 0x2DA 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 PUSH3 0x2F9 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH3 0x310 JUMPI PUSH3 0x30F PUSH3 0x34C JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x321 DUP3 PUSH3 0x3BE JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH3 0x343 JUMPI PUSH3 0x342 PUSH3 0x37B JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP 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 PUSH3 0x3DA DUP2 PUSH3 0x2A0 JUMP JUMPDEST DUP2 EQ PUSH3 0x3E6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0x60 SHR PUSH2 0x644 PUSH3 0x408 PUSH1 0x0 CODECOPY PUSH1 0x0 PUSH2 0x198 ADD MSTORE PUSH2 0x644 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 0x516F279E EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x827BFBDF EQ PUSH2 0x7A JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x96 JUMPI DUP1 PUSH4 0x91B7F5ED EQ PUSH2 0xB4 JUMPI DUP1 PUSH4 0x98D5FDCA EQ PUSH2 0xD0 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x64 PUSH2 0xEE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x3E4 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x94 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x8F SWAP2 SWAP1 PUSH2 0x2FC JUMP JUMPDEST PUSH2 0x17C JUMP JUMPDEST STOP JUMPDEST PUSH2 0x9E PUSH2 0x196 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAB SWAP2 SWAP1 PUSH2 0x3C9 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xCE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xC9 SWAP2 SWAP1 PUSH2 0x345 JUMP JUMPDEST PUSH2 0x1BA JUMP JUMPDEST STOP JUMPDEST PUSH2 0xD8 PUSH2 0x1CB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xE5 SWAP2 SWAP1 PUSH2 0x406 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0xFB SWAP1 PUSH2 0x511 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 0x127 SWAP1 PUSH2 0x511 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x174 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x149 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x174 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 0x157 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x192 SWAP3 SWAP2 SWAP1 PUSH2 0x1D4 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA SWAP1 POP DUP2 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x1E0 SWAP1 PUSH2 0x511 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x202 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x249 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x21B JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x249 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x249 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x248 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x22D JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x256 SWAP2 SWAP1 PUSH2 0x25A JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x273 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x25B JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x28A PUSH2 0x285 DUP5 PUSH2 0x446 JUMP JUMPDEST PUSH2 0x421 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x2A6 JUMPI PUSH2 0x2A5 PUSH2 0x5D7 JUMP JUMPDEST JUMPDEST PUSH2 0x2B1 DUP5 DUP3 DUP6 PUSH2 0x4CF JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2CE JUMPI PUSH2 0x2CD PUSH2 0x5D2 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2DE DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x277 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x2F6 DUP2 PUSH2 0x5F7 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x312 JUMPI PUSH2 0x311 PUSH2 0x5E1 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x330 JUMPI PUSH2 0x32F PUSH2 0x5DC JUMP JUMPDEST JUMPDEST PUSH2 0x33C DUP5 DUP3 DUP6 ADD PUSH2 0x2B9 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x35B JUMPI PUSH2 0x35A PUSH2 0x5E1 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x369 DUP5 DUP3 DUP6 ADD PUSH2 0x2E7 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x37B DUP2 PUSH2 0x493 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38C DUP3 PUSH2 0x477 JUMP JUMPDEST PUSH2 0x396 DUP2 DUP6 PUSH2 0x482 JUMP JUMPDEST SWAP4 POP PUSH2 0x3A6 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x4DE JUMP JUMPDEST PUSH2 0x3AF DUP2 PUSH2 0x5E6 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x3C3 DUP2 PUSH2 0x4C5 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x3DE PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x372 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 0x3FE DUP2 DUP5 PUSH2 0x381 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x41B PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x3BA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x42B PUSH2 0x43C JUMP JUMPDEST SWAP1 POP PUSH2 0x437 DUP3 DUP3 PUSH2 0x543 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 0x461 JUMPI PUSH2 0x460 PUSH2 0x5A3 JUMP JUMPDEST JUMPDEST PUSH2 0x46A DUP3 PUSH2 0x5E6 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 0x49E DUP3 PUSH2 0x4A5 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND 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 0x4FC JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x4E1 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x50B 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 0x529 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x53D JUMPI PUSH2 0x53C PUSH2 0x574 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x54C DUP3 PUSH2 0x5E6 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x56B JUMPI PUSH2 0x56A PUSH2 0x5A3 JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP 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 0x600 DUP2 PUSH2 0x4C5 JUMP JUMPDEST DUP2 EQ PUSH2 0x60B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD 0x1F DUP4 0xD9 PUSH6 0x28EE0EDACD52 NUMBER PUSH13 0xE91B72C668CDC3C66BF801992D 0xEB SLT 0xE4 0xCA 0x2C 0xEE PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "75:1213:0:-:0;;;505:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;573:6;565:5;:14;;;;601:9;590:8;:20;;;;;;;;;;;;:::i;:::-;;629:10;621:18;;;;;;;;;;;;505:216;;75:1213;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:421:1:-;96:5;121:66;137:49;179:6;137:49;:::i;:::-;121:66;:::i;:::-;112:75;;210:6;203:5;196:21;248:4;241:5;237:16;286:3;277:6;272:3;268:16;265:25;262:112;;;293:79;;:::i;:::-;262:112;383:39;415:6;410:3;405;383:39;:::i;:::-;102:326;7:421;;;;;:::o;448:355::-;515:5;564:3;557:4;549:6;545:17;541:27;531:122;;572:79;;:::i;:::-;531:122;682:6;676:13;707:90;793:3;785:6;778:4;770:6;766:17;707:90;:::i;:::-;698:99;;521:282;448:355;;;;:::o;809:143::-;866:5;897:6;891:13;882:22;;913:33;940:5;913:33;:::i;:::-;809:143;;;;:::o;958:680::-;1047:6;1055;1104:2;1092:9;1083:7;1079:23;1075:32;1072:119;;;1110:79;;:::i;:::-;1072:119;1230:1;1255:64;1311:7;1302:6;1291:9;1287:22;1255:64;:::i;:::-;1245:74;;1201:128;1389:2;1378:9;1374:18;1368:25;1420:18;1412:6;1409:30;1406:117;;;1442:79;;:::i;:::-;1406:117;1547:74;1613:7;1604:6;1593:9;1589:22;1547:74;:::i;:::-;1537:84;;1339:292;958:680;;;;;:::o;1644:129::-;1678:6;1705:20;;:::i;:::-;1695:30;;1734:33;1762:4;1754:6;1734:33;:::i;:::-;1644:129;;;:::o;1779:75::-;1812:6;1845:2;1839:9;1829:19;;1779:75;:::o;1860:308::-;1922:4;2012:18;2004:6;2001:30;1998:56;;;2034:18;;:::i;:::-;1998:56;2072:29;2094:6;2072:29;:::i;:::-;2064:37;;2156:4;2150;2146:15;2138:23;;1860:308;;;:::o;2174:77::-;2211:7;2240:5;2229:16;;2174:77;;;:::o;2257:307::-;2325:1;2335:113;2349:6;2346:1;2343:13;2335:113;;;2434:1;2429:3;2425:11;2419:18;2415:1;2410:3;2406:11;2399:39;2371:2;2368:1;2364:10;2359:15;;2335:113;;;2466:6;2463:1;2460:13;2457:101;;;2546:1;2537:6;2532:3;2528:16;2521:27;2457:101;2306:258;2257:307;;;:::o;2570:320::-;2614:6;2651:1;2645:4;2641:12;2631:22;;2698:1;2692:4;2688:12;2719:18;2709:81;;2775:4;2767:6;2763:17;2753:27;;2709:81;2837:2;2829:6;2826:14;2806:18;2803:38;2800:84;;;2856:18;;:::i;:::-;2800:84;2621:269;2570:320;;;:::o;2896:281::-;2979:27;3001:4;2979:27;:::i;:::-;2971:6;2967:40;3109:6;3097:10;3094:22;3073:18;3061:10;3058:34;3055:62;3052:88;;;3120:18;;:::i;:::-;3052:88;3160:10;3156:2;3149:22;2939:238;2896:281;;:::o;3183:180::-;3231:77;3228:1;3221:88;3328:4;3325:1;3318:15;3352:4;3349:1;3342:15;3369:180;3417:77;3414:1;3407:88;3514:4;3511:1;3504:15;3538:4;3535:1;3528:15;3555:117;3664:1;3661;3654:12;3678:117;3787:1;3784;3777:12;3801:117;3910:1;3907;3900:12;3924:117;4033:1;4030;4023:12;4047:102;4088:6;4139:2;4135:7;4130:2;4123:5;4119:14;4115:28;4105:38;;4047:102;;;:::o;4155:122::-;4228:24;4246:5;4228:24;:::i;:::-;4221:5;4218:35;4208:63;;4267:1;4264;4257:12;4208:63;4155:122;:::o;75:1213:0:-;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@getPrice_39": {
"entryPoint": 459,
"id": 39,
"parameterSlots": 0,
"returnSlots": 1
},
"@location_5": {
"entryPoint": 238,
"id": 5,
"parameterSlots": 0,
"returnSlots": 0
},
"@owner_7": {
"entryPoint": 406,
"id": 7,
"parameterSlots": 0,
"returnSlots": 0
},
"@setLocation_66": {
"entryPoint": 380,
"id": 66,
"parameterSlots": 1,
"returnSlots": 0
},
"@setPrice_56": {
"entryPoint": 442,
"id": 56,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr": {
"entryPoint": 631,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr": {
"entryPoint": 697,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 743,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_string_memory_ptr": {
"entryPoint": 764,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 837,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 882,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": {
"entryPoint": 897,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 954,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 969,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 996,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 1030,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 1057,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 1084,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 1094,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 1143,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 1154,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 1171,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 1189,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 1221,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_calldata_to_memory": {
"entryPoint": 1231,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"copy_memory_to_memory": {
"entryPoint": 1246,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 1297,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 1347,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 1396,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 1443,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 1490,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 1495,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 1500,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 1505,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 1510,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"validator_revert_t_uint256": {
"entryPoint": 1527,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:6483: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": "1845:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1862:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1885:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "1867:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1867:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1855:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1855:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "1855:37:1"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1833:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1840:3:1",
"type": ""
}
],
"src": "1780:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1996:272:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2006:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2053:5:1"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "2020:32:1"
},
"nodeType": "YulFunctionCall",
"src": "2020:39:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2010:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "2068:78:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2134:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2139:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "2075:58:1"
},
"nodeType": "YulFunctionCall",
"src": "2075:71:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2068:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2181:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2188:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2177:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2177:16:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2195:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2200:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "2155:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2155:52:1"
},
"nodeType": "YulExpressionStatement",
"src": "2155:52:1"
},
{
"nodeType": "YulAssignment",
"src": "2216:46:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2227:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2254:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "2232:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2232:29:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2223:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2223:39:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2216:3:1"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1977:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1984:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1992:3:1",
"type": ""
}
],
"src": "1904:364:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2339:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2356:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2379:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "2361:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2361:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2349:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2349:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "2349:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2327:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2334:3:1",
"type": ""
}
],
"src": "2274:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2496:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2506:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2518:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2529:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2514:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2514:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2506:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2586:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2599:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2610:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2595:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2595:17:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "2542:43:1"
},
"nodeType": "YulFunctionCall",
"src": "2542:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "2542:71:1"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2468:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2480:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2491:4:1",
"type": ""
}
],
"src": "2398:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2744:195:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2754:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2766:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2777:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2762:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2762:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2754:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2801:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2812:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2797:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2797:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2820:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2826:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2816:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2816:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2790:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2790:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "2790:47:1"
},
{
"nodeType": "YulAssignment",
"src": "2846:86:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2918:6:1"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2927:4:1"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "2854:63:1"
},
"nodeType": "YulFunctionCall",
"src": "2854:78:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2846: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": "2716:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2728:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2739:4:1",
"type": ""
}
],
"src": "2626:313:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3043:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3053:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3065:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3076:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3061:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3061:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3053:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3133:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3146:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3157:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3142:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3142:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "3089:43:1"
},
"nodeType": "YulFunctionCall",
"src": "3089:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "3089:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3015:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3027:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3038:4:1",
"type": ""
}
],
"src": "2945:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3214:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3224:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "3234:18:1"
},
"nodeType": "YulFunctionCall",
"src": "3234:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3224:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3283:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3291:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "3263:19:1"
},
"nodeType": "YulFunctionCall",
"src": "3263:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "3263:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "3198:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3207:6:1",
"type": ""
}
],
"src": "3173:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3348:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3358:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3374:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3368:5:1"
},
"nodeType": "YulFunctionCall",
"src": "3368:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3358:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3341:6:1",
"type": ""
}
],
"src": "3308:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3456:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3561:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "3563:16:1"
},
"nodeType": "YulFunctionCall",
"src": "3563:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "3563:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3533:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3541:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3530:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3530:30:1"
},
"nodeType": "YulIf",
"src": "3527:56:1"
},
{
"nodeType": "YulAssignment",
"src": "3593:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3623:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "3601:21:1"
},
"nodeType": "YulFunctionCall",
"src": "3601:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3593:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3667:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3679:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3685:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3675:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3675:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3667:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3440:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "3451:4:1",
"type": ""
}
],
"src": "3389:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3762:40:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3773:22:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3789:5:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3783:5:1"
},
"nodeType": "YulFunctionCall",
"src": "3783:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3773:6:1"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3745:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3755:6:1",
"type": ""
}
],
"src": "3703:99:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3904:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3921:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3926:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3914:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3914:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "3914:19:1"
},
{
"nodeType": "YulAssignment",
"src": "3942:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3961:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3966:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3957:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3957:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "3942:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3876:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3881:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "3892:11:1",
"type": ""
}
],
"src": "3808:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4028:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4038:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4067:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "4049:17:1"
},
"nodeType": "YulFunctionCall",
"src": "4049:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "4038:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4010:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "4020:7:1",
"type": ""
}
],
"src": "3983:96:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4130:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4140:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4155:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4162:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4151:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4151:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "4140:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4112:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "4122:7:1",
"type": ""
}
],
"src": "4085:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4262:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4272:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "4283:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "4272:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4244:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "4254:7:1",
"type": ""
}
],
"src": "4217:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4351:103:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4374:3:1"
},
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4379:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4384:6:1"
}
],
"functionName": {
"name": "calldatacopy",
"nodeType": "YulIdentifier",
"src": "4361:12:1"
},
"nodeType": "YulFunctionCall",
"src": "4361:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "4361:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4432:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4437:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4428:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4428:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4446:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4421:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4421:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "4421:27:1"
}
]
},
"name": "copy_calldata_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "4333:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "4338:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4343:6:1",
"type": ""
}
],
"src": "4300:154:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4509:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4519:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4528:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "4523:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4588:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4613:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4618:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4609:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4609:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4632:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4637:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4628:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4628:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4622:5:1"
},
"nodeType": "YulFunctionCall",
"src": "4622:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4602:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4602:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "4602:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4549:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4552:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4546:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4546:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "4560:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4562:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4571:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4574:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4567:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4567:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4562:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "4542:3:1",
"statements": []
},
"src": "4538:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4685:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4735:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4740:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4731:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4731:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4749:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4724:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4724:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "4724:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4666:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4669:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4663:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4663:13:1"
},
"nodeType": "YulIf",
"src": "4660:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "4491:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "4496:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4501:6:1",
"type": ""
}
],
"src": "4460:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4824:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4834:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4848:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4854:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "4844:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4844:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4834:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4865:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4895:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4901:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4891:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4891:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "4869:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4942:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4956:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4970:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4978:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4966:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4966:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4956:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "4922:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4915:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4915:26:1"
},
"nodeType": "YulIf",
"src": "4912:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5045:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "5059:16:1"
},
"nodeType": "YulFunctionCall",
"src": "5059:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "5059:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "5009:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5032:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5040:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "5029:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5029:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "5006:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5006:38:1"
},
"nodeType": "YulIf",
"src": "5003:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "4808:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4817:6:1",
"type": ""
}
],
"src": "4773:320:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5142:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5152:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "5174:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "5204:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "5182:21:1"
},
"nodeType": "YulFunctionCall",
"src": "5182:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5170:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5170:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "5156:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5321:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "5323:16:1"
},
"nodeType": "YulFunctionCall",
"src": "5323:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "5323:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "5264:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5276:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "5261:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5261:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "5300:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "5312:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "5297:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5297:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "5258:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5258:62:1"
},
"nodeType": "YulIf",
"src": "5255:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5359:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "5363:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5352:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5352:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "5352:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "5128:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "5136:4:1",
"type": ""
}
],
"src": "5099:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5414:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5431:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5434:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5424:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5424:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "5424:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5528:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5531:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5521:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5521:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "5521:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5552:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5555:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5545:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5545:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "5545:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "5386:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5600:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5617:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5620:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5610:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5610:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "5610:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5714:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5717:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5707:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5707:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "5707:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5738:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5741:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5731:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5731:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "5731:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "5572:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5847:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5864:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5867:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5857:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5857:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "5857:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "5758:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5970:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5987:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5990:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5980:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5980:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "5980:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "5881:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6093:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6110:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6113:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6103:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6103:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6103:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "6004:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6216:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6233:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6236:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6226:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6226:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6226:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "6127:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6298:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6308:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6326:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6333:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6322:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6322:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6342:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "6338:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6338:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "6318:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6318:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "6308:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6281:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "6291:6:1",
"type": ""
}
],
"src": "6250:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6401:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "6458:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6467:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6470:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6460:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6460:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6460:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6424:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6449:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "6431:17:1"
},
"nodeType": "YulFunctionCall",
"src": "6431:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "6421:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6421:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "6414:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6414:43:1"
},
"nodeType": "YulIf",
"src": "6411:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6394:5:1",
"type": ""
}
],
"src": "6358: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_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(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_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_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 cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\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_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": {
"7": [
{
"length": 32,
"start": 408
}
]
},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600436106100575760003560e01c8063516f279e1461005c578063827bfbdf1461007a5780638da5cb5b1461009657806391b7f5ed146100b457806398d5fdca146100d0575b600080fd5b6100646100ee565b60405161007191906103e4565b60405180910390f35b610094600480360381019061008f91906102fc565b61017c565b005b61009e610196565b6040516100ab91906103c9565b60405180910390f35b6100ce60048036038101906100c99190610345565b6101ba565b005b6100d86101cb565b6040516100e59190610406565b60405180910390f35b600180546100fb90610511565b80601f016020809104026020016040519081016040528092919081815260200182805461012790610511565b80156101745780601f1061014957610100808354040283529160200191610174565b820191906000526020600020905b81548152906001019060200180831161015757829003601f168201915b505050505081565b80600190805190602001906101929291906101d4565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a9050816000819055505050565b60008054905090565b8280546101e090610511565b90600052602060002090601f0160209004810192826102025760008555610249565b82601f1061021b57805160ff1916838001178555610249565b82800160010185558215610249579182015b8281111561024857825182559160200191906001019061022d565b5b509050610256919061025a565b5090565b5b8082111561027357600081600090555060010161025b565b5090565b600061028a61028584610446565b610421565b9050828152602081018484840111156102a6576102a56105d7565b5b6102b18482856104cf565b509392505050565b600082601f8301126102ce576102cd6105d2565b5b81356102de848260208601610277565b91505092915050565b6000813590506102f6816105f7565b92915050565b600060208284031215610312576103116105e1565b5b600082013567ffffffffffffffff8111156103305761032f6105dc565b5b61033c848285016102b9565b91505092915050565b60006020828403121561035b5761035a6105e1565b5b6000610369848285016102e7565b91505092915050565b61037b81610493565b82525050565b600061038c82610477565b6103968185610482565b93506103a68185602086016104de565b6103af816105e6565b840191505092915050565b6103c3816104c5565b82525050565b60006020820190506103de6000830184610372565b92915050565b600060208201905081810360008301526103fe8184610381565b905092915050565b600060208201905061041b60008301846103ba565b92915050565b600061042b61043c565b90506104378282610543565b919050565b6000604051905090565b600067ffffffffffffffff821115610461576104606105a3565b5b61046a826105e6565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600061049e826104a5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156104fc5780820151818401526020810190506104e1565b8381111561050b576000848401525b50505050565b6000600282049050600182168061052957607f821691505b6020821081141561053d5761053c610574565b5b50919050565b61054c826105e6565b810181811067ffffffffffffffff8211171561056b5761056a6105a3565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b610600816104c5565b811461060b57600080fd5b5056fea26469706673582212200d1f83d96528ee0edacd52436ce91b72c668cdc3c66bf801992deb12e4ca2cee64736f6c63430008070033",
"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 0x516F279E EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x827BFBDF EQ PUSH2 0x7A JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x96 JUMPI DUP1 PUSH4 0x91B7F5ED EQ PUSH2 0xB4 JUMPI DUP1 PUSH4 0x98D5FDCA EQ PUSH2 0xD0 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x64 PUSH2 0xEE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x71 SWAP2 SWAP1 PUSH2 0x3E4 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x94 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x8F SWAP2 SWAP1 PUSH2 0x2FC JUMP JUMPDEST PUSH2 0x17C JUMP JUMPDEST STOP JUMPDEST PUSH2 0x9E PUSH2 0x196 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xAB SWAP2 SWAP1 PUSH2 0x3C9 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xCE PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xC9 SWAP2 SWAP1 PUSH2 0x345 JUMP JUMPDEST PUSH2 0x1BA JUMP JUMPDEST STOP JUMPDEST PUSH2 0xD8 PUSH2 0x1CB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xE5 SWAP2 SWAP1 PUSH2 0x406 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0xFB SWAP1 PUSH2 0x511 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 0x127 SWAP1 PUSH2 0x511 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x174 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x149 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x174 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 0x157 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x192 SWAP3 SWAP2 SWAP1 PUSH2 0x1D4 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA SWAP1 POP DUP2 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x1E0 SWAP1 PUSH2 0x511 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x202 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x249 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x21B JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x249 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x249 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x248 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x22D JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x256 SWAP2 SWAP1 PUSH2 0x25A JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x273 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x25B JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x28A PUSH2 0x285 DUP5 PUSH2 0x446 JUMP JUMPDEST PUSH2 0x421 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x2A6 JUMPI PUSH2 0x2A5 PUSH2 0x5D7 JUMP JUMPDEST JUMPDEST PUSH2 0x2B1 DUP5 DUP3 DUP6 PUSH2 0x4CF JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2CE JUMPI PUSH2 0x2CD PUSH2 0x5D2 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2DE DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x277 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x2F6 DUP2 PUSH2 0x5F7 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x312 JUMPI PUSH2 0x311 PUSH2 0x5E1 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x330 JUMPI PUSH2 0x32F PUSH2 0x5DC JUMP JUMPDEST JUMPDEST PUSH2 0x33C DUP5 DUP3 DUP6 ADD PUSH2 0x2B9 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x35B JUMPI PUSH2 0x35A PUSH2 0x5E1 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x369 DUP5 DUP3 DUP6 ADD PUSH2 0x2E7 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x37B DUP2 PUSH2 0x493 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38C DUP3 PUSH2 0x477 JUMP JUMPDEST PUSH2 0x396 DUP2 DUP6 PUSH2 0x482 JUMP JUMPDEST SWAP4 POP PUSH2 0x3A6 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x4DE JUMP JUMPDEST PUSH2 0x3AF DUP2 PUSH2 0x5E6 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x3C3 DUP2 PUSH2 0x4C5 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x3DE PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x372 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 0x3FE DUP2 DUP5 PUSH2 0x381 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x41B PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x3BA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x42B PUSH2 0x43C JUMP JUMPDEST SWAP1 POP PUSH2 0x437 DUP3 DUP3 PUSH2 0x543 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 0x461 JUMPI PUSH2 0x460 PUSH2 0x5A3 JUMP JUMPDEST JUMPDEST PUSH2 0x46A DUP3 PUSH2 0x5E6 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 0x49E DUP3 PUSH2 0x4A5 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND 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 0x4FC JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x4E1 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x50B 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 0x529 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x53D JUMPI PUSH2 0x53C PUSH2 0x574 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x54C DUP3 PUSH2 0x5E6 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x56B JUMPI PUSH2 0x56A PUSH2 0x5A3 JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP 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 0x600 DUP2 PUSH2 0x4C5 JUMP JUMPDEST DUP2 EQ PUSH2 0x60B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD 0x1F DUP4 0xD9 PUSH6 0x28EE0EDACD52 NUMBER PUSH13 0xE91B72C668CDC3C66BF801992D 0xEB SLT 0xE4 0xCA 0x2C 0xEE PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "75:1213:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;203:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1138:141;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;307:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;990:136;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;855:76;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;203:22;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1138:141::-;1262:9;1251:8;:20;;;;;;;;;;;;:::i;:::-;;1138:141;:::o;307:30::-;;;:::o;990:136::-;1038:5;1091:2;1087:6;;1112;1104:5;:14;;;;1027:99;990:136;:::o;855:76::-;895:4;918:5;;911:12;;855:76;:::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:118::-;1867:24;1885:5;1867:24;:::i;:::-;1862:3;1855:37;1780:118;;:::o;1904:364::-;1992:3;2020:39;2053:5;2020:39;:::i;:::-;2075:71;2139:6;2134:3;2075:71;:::i;:::-;2068:78;;2155:52;2200:6;2195:3;2188:4;2181:5;2177:16;2155:52;:::i;:::-;2232:29;2254:6;2232:29;:::i;:::-;2227:3;2223:39;2216:46;;1996:272;1904:364;;;;:::o;2274:118::-;2361:24;2379:5;2361:24;:::i;:::-;2356:3;2349:37;2274:118;;:::o;2398:222::-;2491:4;2529:2;2518:9;2514:18;2506:26;;2542:71;2610:1;2599:9;2595:17;2586:6;2542:71;:::i;:::-;2398:222;;;;:::o;2626:313::-;2739:4;2777:2;2766:9;2762:18;2754:26;;2826:9;2820:4;2816:20;2812:1;2801:9;2797:17;2790:47;2854:78;2927:4;2918:6;2854:78;:::i;:::-;2846:86;;2626:313;;;;:::o;2945:222::-;3038:4;3076:2;3065:9;3061:18;3053:26;;3089:71;3157:1;3146:9;3142:17;3133:6;3089:71;:::i;:::-;2945:222;;;;:::o;3173:129::-;3207:6;3234:20;;:::i;:::-;3224:30;;3263:33;3291:4;3283:6;3263:33;:::i;:::-;3173:129;;;:::o;3308:75::-;3341:6;3374:2;3368:9;3358:19;;3308:75;:::o;3389:308::-;3451:4;3541:18;3533:6;3530:30;3527:56;;;3563:18;;:::i;:::-;3527:56;3601:29;3623:6;3601:29;:::i;:::-;3593:37;;3685:4;3679;3675:15;3667:23;;3389:308;;;:::o;3703:99::-;3755:6;3789:5;3783:12;3773:22;;3703:99;;;:::o;3808:169::-;3892:11;3926:6;3921:3;3914:19;3966:4;3961:3;3957:14;3942:29;;3808:169;;;;:::o;3983:96::-;4020:7;4049:24;4067:5;4049:24;:::i;:::-;4038:35;;3983:96;;;:::o;4085:126::-;4122:7;4162:42;4155:5;4151:54;4140:65;;4085:126;;;:::o;4217:77::-;4254:7;4283:5;4272:16;;4217:77;;;:::o;4300:154::-;4384:6;4379:3;4374;4361:30;4446:1;4437:6;4432:3;4428:16;4421:27;4300:154;;;:::o;4460:307::-;4528:1;4538:113;4552:6;4549:1;4546:13;4538:113;;;4637:1;4632:3;4628:11;4622:18;4618:1;4613:3;4609:11;4602:39;4574:2;4571:1;4567:10;4562:15;;4538:113;;;4669:6;4666:1;4663:13;4660:101;;;4749:1;4740:6;4735:3;4731:16;4724:27;4660:101;4509:258;4460:307;;;:::o;4773:320::-;4817:6;4854:1;4848:4;4844:12;4834:22;;4901:1;4895:4;4891:12;4922:18;4912:81;;4978:4;4970:6;4966:17;4956:27;;4912:81;5040:2;5032:6;5029:14;5009:18;5006:38;5003:84;;;5059:18;;:::i;:::-;5003:84;4824:269;4773:320;;;:::o;5099:281::-;5182:27;5204:4;5182:27;:::i;:::-;5174:6;5170:40;5312:6;5300:10;5297:22;5276:18;5264:10;5261:34;5258:62;5255:88;;;5323:18;;:::i;:::-;5255:88;5363:10;5359:2;5352:22;5142:238;5099:281;;:::o;5386:180::-;5434:77;5431:1;5424:88;5531:4;5528:1;5521:15;5555:4;5552:1;5545:15;5572:180;5620:77;5617:1;5610:88;5717:4;5714:1;5707:15;5741:4;5738:1;5731:15;5758:117;5867:1;5864;5857:12;5881:117;5990:1;5987;5980:12;6004:117;6113:1;6110;6103:12;6127:117;6236:1;6233;6226:12;6250:102;6291:6;6342:2;6338:7;6333:2;6326:5;6322:14;6318:28;6308:38;;6250:102;;;:::o;6358:122::-;6431:24;6449:5;6431:24;:::i;:::-;6424:5;6421:35;6411:63;;6470:1;6467;6460:12;6411:63;6358:122;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "320800",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getPrice()": "2503",
"location()": "infinite",
"owner()": "infinite",
"setLocation(string)": "infinite",
"setPrice(uint256)": "22577"
}
},
"methodIdentifiers": {
"getPrice()": "98d5fdca",
"location()": "516f279e",
"owner()": "8da5cb5b",
"setLocation(string)": "827bfbdf",
"setPrice(uint256)": "91b7f5ed"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "location",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"name": "setLocation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "setPrice",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.7+commit.e28d00a7"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "location",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"name": "setLocation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "setPrice",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"names_and_variables.sol": "Property"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"names_and_variables.sol": {
"keccak256": "0x9c55542d8c7fa5f2e69a7021ca037016827a5b441de7af6cc44baea03c558f6e",
"license": "GPL-3.0",
"urls": [
"bzz-raw://324d6c11c935aff5eb4ecf7855ce8e6741a58051ccc5de92eb642e554933e85d",
"dweb:/ipfs/Qmbj697Hk1gCEFn1n3qeGZoCe6NQ3keQwturfVB2kzFkUk"
]
}
},
"version": 1
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
contract Property {
int public value;
function setValue(int _value) public{
value = _value;
}
}
// 0xd9145CCE52D386f254917e481eB44e9943F39138
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
contract Property{
int public price;
string public location;
address immutable public owner;
int immutable area = 100;
constructor(int _price, string memory _location){
price = _price;
location = _location;
owner = msg.sender;
}
function setPrice(int _price) public {
price = _price;
}
function getPrice() public view returns(int){
return price;
}
function setLocation(string memory _location) public {
location = _location;
}
}
//SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.9.0;
contract Property{
// declaring state variables saved in contract's storage
uint price; // by default is private
string public location;
// can be initialized at declaration or in the constructor only
address immutable public owner;
// declaring a constant
int constant area = 100;
// declaring the constructor
// is executed only once at contract's deployment
constructor(uint _price, string memory _location){
price = _price;
location = _location;
owner = msg.sender; // initializing owner to the account's address that deploys the contract
}
// getter function, returns a state variable
// a function declared `view` does not alter the blockchain
function getPrice() public view returns(uint){
return price;
}
// setter function, sets a state variable
function setPrice(uint _price) public{
int a; // local variable saved on stack
a = 10;
price = _price;
}
function setLocation(string memory _location) public{ //string types must be declared memory or storage
location = _location;
}
}
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithEthers script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner()
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let contract = await factory.deploy(...constructorArgs);
console.log('Contract Address: ', contract.address);
// The contract is NOT deployed yet; we must wait until it is mined
await contract.deployed()
console.log('Deployment successful.')
} catch (e) {
console.log(e.message)
}
})()
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithWeb3 script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
const accounts = await web3.eth.getAccounts()
let contract = new web3.eth.Contract(metadata.abi)
contract = contract.deploy({
data: metadata.data.bytecode.object,
arguments: constructorArgs
})
const newContractInstance = await contract.send({
from: accounts[0],
gas: 1500000,
gasPrice: '30000000000'
})
console.log('Contract deployed at address: ', newContractInstance.options.address)
} catch (e) {
console.log(e.message)
}
})()
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
contract Property{
uint private price;
address public owner;
// initial, runs only one time, when created
constructor(){
price = 0;
owner = msg.sender;
}
modifier onlyOwner(){
require(msg.sender == owner);
_;
}
// setter functions
function changeOwner(address _owner) public onlyOwner{
owner = _owner;
}
function changePrice(uint _price) public{
price = _price;
}
// getter functions
function getPrice() view public returns (uint) {
return price;
}
// event function (logging like)
event OwnerChanged (address owner);
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
Ballot ballotToTest;
function beforeAll () public {
proposalNames.push(bytes32("candidate1"));
ballotToTest = new Ballot(proposalNames);
}
function checkWinningProposal () public {
ballotToTest.vote(0);
Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal");
Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");
}
function checkWinninProposalWithReturnValue () public view returns (bool) {
return ballotToTest.winningProposal() == 0;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
contract Property{
int public price;
// Constant should have value
string constant public location = "SPB";
function f1() public pure returns (int) {
int x = 5;
x = x*2;
string memory s1 = "abc";
return x;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment