Skip to content

Instantly share code, notes, and snippets.

@OgheneTega
Last active March 12, 2022 23:00
Show Gist options
  • Save OgheneTega/fd40070dbf9aa9c859554bdf4584770a to your computer and use it in GitHub Desktop.
Save OgheneTega/fd40070dbf9aa9c859554bdf4584770a 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 for the 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.
https://rinkeby.etherscan.io/tx/0x69e6695e76b0257def21766fcf3ee32525a3821621251f85f369061677f94bc3
{
"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": {
"@_15": {
"entryPoint": null,
"id": 15,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr_fromMemory": {
"entryPoint": 263,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr_fromMemory": {
"entryPoint": 338,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_string_memory_ptr_fromMemory": {
"entryPoint": 389,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 470,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 501,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 511,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_memory_to_memory": {
"entryPoint": 565,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 619,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 673,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 727,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 774,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 821,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 826,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 831,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 836,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 841,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:3764: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": "896:437:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "942:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "944:77:1"
},
"nodeType": "YulFunctionCall",
"src": "944:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "944:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "917:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "926:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "913:3:1"
},
"nodeType": "YulFunctionCall",
"src": "913:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "938:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "909:3:1"
},
"nodeType": "YulFunctionCall",
"src": "909:32:1"
},
"nodeType": "YulIf",
"src": "906:119:1"
},
{
"nodeType": "YulBlock",
"src": "1035:291:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1050:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1074:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1085:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1070:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1070:17:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1064:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1064:24:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1054:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1135:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "1137:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1137:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1137:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1107:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1115:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1104:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1104:30:1"
},
"nodeType": "YulIf",
"src": "1101:117:1"
},
{
"nodeType": "YulAssignment",
"src": "1232:84:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1288:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1299:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1284:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1284:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1308:7:1"
}
],
"functionName": {
"name": "abi_decode_t_string_memory_ptr_fromMemory",
"nodeType": "YulIdentifier",
"src": "1242:41:1"
},
"nodeType": "YulFunctionCall",
"src": "1242:74:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1232:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "866:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "877:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "889:6:1",
"type": ""
}
],
"src": "809:524:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1380:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1390:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "1400:18:1"
},
"nodeType": "YulFunctionCall",
"src": "1400:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1390:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1449:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1457:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "1429:19:1"
},
"nodeType": "YulFunctionCall",
"src": "1429:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1429:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1364:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1373:6:1",
"type": ""
}
],
"src": "1339:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1514:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1524:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1540:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1534:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1534:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1524:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1507:6:1",
"type": ""
}
],
"src": "1474:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1622:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1727:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "1729:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1729:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1729:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1699:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1707:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1696:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1696:30:1"
},
"nodeType": "YulIf",
"src": "1693:56:1"
},
{
"nodeType": "YulAssignment",
"src": "1759:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1789:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1767:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1767:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1759:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1833:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1845:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1851:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1841:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1841:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1833:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1606:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1617:4:1",
"type": ""
}
],
"src": "1555:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1918:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1928:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1937:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "1932:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1997:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2022:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2027:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2018:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2018:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "2041:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2046:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2037:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2037:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2031:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2031:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2011:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2011:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "2011:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "1958:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1961:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "1955:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1955:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "1969:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1971:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "1980:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1983:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1976:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1976:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "1971:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "1951:3:1",
"statements": []
},
"src": "1947:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2094:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2144:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2149:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2140:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2140:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2158:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2133:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2133:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "2133:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2075:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2078:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2072:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2072:13:1"
},
"nodeType": "YulIf",
"src": "2069:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "1900:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "1905:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1910:6:1",
"type": ""
}
],
"src": "1869:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2233:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2243:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "2257:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2263:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "2253:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2253:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2243:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2274:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "2304:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2310:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2300:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2300:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "2278:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2351:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2365:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2379:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2387:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2375:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2375:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2365:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "2331:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "2324:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2324:26:1"
},
"nodeType": "YulIf",
"src": "2321:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2454:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "2468:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2468:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "2468:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "2418:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2441:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2449:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2438:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2438:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "2415:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2415:38:1"
},
"nodeType": "YulIf",
"src": "2412:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "2217:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2226:6:1",
"type": ""
}
],
"src": "2182:320:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2551:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2561:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "2583:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "2613:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "2591:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2591:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2579:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2579:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "2565:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2730:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "2732:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2732:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "2732:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "2673:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2685:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2670:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2670:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "2709:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "2721:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2706:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2706:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "2667:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2667:62:1"
},
"nodeType": "YulIf",
"src": "2664:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2768:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "2772:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2761:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2761:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "2761:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "2537:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "2545:4:1",
"type": ""
}
],
"src": "2508:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2823:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2840:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2843:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2833:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2833:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "2833:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2937:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2940:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2930:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2930:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2930:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2961:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2964:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2954:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2954:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2954:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "2795:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3009:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3026:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3029:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3019:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3019:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "3019:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3123:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3126:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3116:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3116:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3116:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3147:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3150:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3140:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3140:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3140:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "2981:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3256:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3273:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3276:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3266:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3266:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3266:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "3167:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3379:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3396:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3399:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3389:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3389:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3389:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "3290:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3502:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3519:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3522:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3512:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3512:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3512:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "3413:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3625:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3642:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3645:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3635:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3635:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3635:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "3536:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3707:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3717:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3735:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3742:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3731:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3731:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3751:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3747:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3747:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3727:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3727:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "3717:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3690:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "3700:6:1",
"type": ""
}
],
"src": "3659:102: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_tuple_t_string_memory_ptr_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := mload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := 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 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}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60806040523480156200001157600080fd5b5060405162000a3338038062000a33833981810160405281019062000037919062000185565b80600090805190602001906200004f92919062000057565b50506200035a565b82805462000065906200026b565b90600052602060002090601f016020900481019282620000895760008555620000d5565b82601f10620000a457805160ff1916838001178555620000d5565b82800160010185558215620000d5579182015b82811115620000d4578251825591602001919060010190620000b7565b5b509050620000e49190620000e8565b5090565b5b8082111562000103576000816000905550600101620000e9565b5090565b60006200011e6200011884620001ff565b620001d6565b9050828152602081018484840111156200013d576200013c6200033a565b5b6200014a84828562000235565b509392505050565b600082601f8301126200016a576200016962000335565b5b81516200017c84826020860162000107565b91505092915050565b6000602082840312156200019e576200019d62000344565b5b600082015167ffffffffffffffff811115620001bf57620001be6200033f565b5b620001cd8482850162000152565b91505092915050565b6000620001e2620001f5565b9050620001f08282620002a1565b919050565b6000604051905090565b600067ffffffffffffffff8211156200021d576200021c62000306565b5b620002288262000349565b9050602081019050919050565b60005b838110156200025557808201518184015260208101905062000238565b8381111562000265576000848401525b50505050565b600060028204905060018216806200028457607f821691505b602082108114156200029b576200029a620002d7565b5b50919050565b620002ac8262000349565b810181811067ffffffffffffffff82111715620002ce57620002cd62000306565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6106c9806200036a6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806310cd2dc7146100515780632dac69f31461006f5780636ce005511461008d578063c165feba146100ab575b600080fd5b6100596100c7565b604051610066919061048e565b60405180910390f35b610077610155565b604051610084919061048e565b60405180910390f35b6100956101e3565b6040516100a2919061048e565b60405180910390f35b6100c560048036038101906100c0919061033b565b61020e565b005b600080546100d490610584565b80601f016020809104026020016040519081016040528092919081815260200182805461010090610584565b801561014d5780601f106101225761010080835404028352916020019161014d565b820191906000526020600020905b81548152906001019060200180831161013057829003601f168201915b505050505081565b6001805461016290610584565b80601f016020809104026020016040519081016040528092919081815260200182805461018e90610584565b80156101db5780601f106101b0576101008083540402835291602001916101db565b820191906000526020600020905b8154815290600101906020018083116101be57829003601f168201915b505050505081565b6060600060016040516020016101fa92919061045f565b604051602081830303815290604052905090565b8060019080519060200190610224929190610228565b5050565b82805461023490610584565b90600052602060002090601f016020900481019282610256576000855561029d565b82601f1061026f57805160ff191683800117855561029d565b8280016001018555821561029d579182015b8281111561029c578251825591602001919060010190610281565b5b5090506102aa91906102ae565b5090565b5b808211156102c75760008160009055506001016102af565b5090565b60006102de6102d9846104d5565b6104b0565b9050828152602081018484840111156102fa576102f961064a565b5b610305848285610542565b509392505050565b600082601f83011261032257610321610645565b5b81356103328482602086016102cb565b91505092915050565b60006020828403121561035157610350610654565b5b600082013567ffffffffffffffff81111561036f5761036e61064f565b5b61037b8482850161030d565b91505092915050565b600061038f8261051b565b6103998185610526565b93506103a9818560208601610551565b6103b281610659565b840191505092915050565b600081546103ca81610584565b6103d48186610537565b945060018216600081146103ef576001811461040057610433565b60ff19831686528186019350610433565b61040985610506565b60005b8381101561042b5781548189015260018201915060208101905061040c565b838801955050505b50505092915050565b6000610449600583610537565b91506104548261066a565b600582019050919050565b600061046b82856103bd565b91506104768261043c565b915061048282846103bd565b91508190509392505050565b600060208201905081810360008301526104a88184610384565b905092915050565b60006104ba6104cb565b90506104c682826105b6565b919050565b6000604051905090565b600067ffffffffffffffff8211156104f0576104ef610616565b5b6104f982610659565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b82818337600083830152505050565b60005b8381101561056f578082015181840152602081019050610554565b8381111561057e576000848401525b50505050565b6000600282049050600182168061059c57607f821691505b602082108114156105b0576105af6105e7565b5b50919050565b6105bf82610659565b810181811067ffffffffffffffff821117156105de576105dd610616565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f20616e642000000000000000000000000000000000000000000000000000000060008201525056fea2646970667358221220536bfd522c10c026a076f232ee13b671ea1417cc4726bb256c77143266bc69cb64736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0xA33 CODESIZE SUB DUP1 PUSH3 0xA33 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH3 0x37 SWAP2 SWAP1 PUSH3 0x185 JUMP JUMPDEST DUP1 PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH3 0x4F SWAP3 SWAP2 SWAP1 PUSH3 0x57 JUMP JUMPDEST POP POP PUSH3 0x35A JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH3 0x65 SWAP1 PUSH3 0x26B JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH3 0x89 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH3 0xD5 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH3 0xA4 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0xD5 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0xD5 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0xD4 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0xB7 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH3 0xE4 SWAP2 SWAP1 PUSH3 0xE8 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x103 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH3 0xE9 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x11E PUSH3 0x118 DUP5 PUSH3 0x1FF JUMP JUMPDEST PUSH3 0x1D6 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH3 0x13D JUMPI PUSH3 0x13C PUSH3 0x33A JUMP JUMPDEST JUMPDEST PUSH3 0x14A DUP5 DUP3 DUP6 PUSH3 0x235 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x16A JUMPI PUSH3 0x169 PUSH3 0x335 JUMP JUMPDEST JUMPDEST DUP2 MLOAD PUSH3 0x17C DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH3 0x107 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x19E JUMPI PUSH3 0x19D PUSH3 0x344 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH3 0x1BF JUMPI PUSH3 0x1BE PUSH3 0x33F JUMP JUMPDEST JUMPDEST PUSH3 0x1CD DUP5 DUP3 DUP6 ADD PUSH3 0x152 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x1E2 PUSH3 0x1F5 JUMP JUMPDEST SWAP1 POP PUSH3 0x1F0 DUP3 DUP3 PUSH3 0x2A1 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 0x21D JUMPI PUSH3 0x21C PUSH3 0x306 JUMP JUMPDEST JUMPDEST PUSH3 0x228 DUP3 PUSH3 0x349 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x255 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH3 0x238 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH3 0x265 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 0x284 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH3 0x29B JUMPI PUSH3 0x29A PUSH3 0x2D7 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x2AC DUP3 PUSH3 0x349 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH3 0x2CE JUMPI PUSH3 0x2CD PUSH3 0x306 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 0x6C9 DUP1 PUSH3 0x36A PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x10CD2DC7 EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x2DAC69F3 EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0x6CE00551 EQ PUSH2 0x8D JUMPI DUP1 PUSH4 0xC165FEBA EQ PUSH2 0xAB JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xC7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x77 PUSH2 0x155 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x84 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x95 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA2 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xC5 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xC0 SWAP2 SWAP1 PUSH2 0x33B JUMP JUMPDEST PUSH2 0x20E JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0xD4 SWAP1 PUSH2 0x584 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 0x100 SWAP1 PUSH2 0x584 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x14D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x122 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x14D 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 0x130 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0x162 SWAP1 PUSH2 0x584 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 0x18E SWAP1 PUSH2 0x584 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x1DB JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1B0 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1DB 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 0x1BE JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH1 0x1 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x1FA SWAP3 SWAP2 SWAP1 PUSH2 0x45F JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x224 SWAP3 SWAP2 SWAP1 PUSH2 0x228 JUMP JUMPDEST POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x234 SWAP1 PUSH2 0x584 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x256 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x29D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x26F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x29D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x29D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x29C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x281 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x2AA SWAP2 SWAP1 PUSH2 0x2AE JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x2C7 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x2AF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DE PUSH2 0x2D9 DUP5 PUSH2 0x4D5 JUMP JUMPDEST PUSH2 0x4B0 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x2FA JUMPI PUSH2 0x2F9 PUSH2 0x64A JUMP JUMPDEST JUMPDEST PUSH2 0x305 DUP5 DUP3 DUP6 PUSH2 0x542 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x322 JUMPI PUSH2 0x321 PUSH2 0x645 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x332 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x2CB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x351 JUMPI PUSH2 0x350 PUSH2 0x654 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x36F JUMPI PUSH2 0x36E PUSH2 0x64F JUMP JUMPDEST JUMPDEST PUSH2 0x37B DUP5 DUP3 DUP6 ADD PUSH2 0x30D JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38F DUP3 PUSH2 0x51B JUMP JUMPDEST PUSH2 0x399 DUP2 DUP6 PUSH2 0x526 JUMP JUMPDEST SWAP4 POP PUSH2 0x3A9 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x551 JUMP JUMPDEST PUSH2 0x3B2 DUP2 PUSH2 0x659 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SLOAD PUSH2 0x3CA DUP2 PUSH2 0x584 JUMP JUMPDEST PUSH2 0x3D4 DUP2 DUP7 PUSH2 0x537 JUMP JUMPDEST SWAP5 POP PUSH1 0x1 DUP3 AND PUSH1 0x0 DUP2 EQ PUSH2 0x3EF JUMPI PUSH1 0x1 DUP2 EQ PUSH2 0x400 JUMPI PUSH2 0x433 JUMP JUMPDEST PUSH1 0xFF NOT DUP4 AND DUP7 MSTORE DUP2 DUP7 ADD SWAP4 POP PUSH2 0x433 JUMP JUMPDEST PUSH2 0x409 DUP6 PUSH2 0x506 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x42B JUMPI DUP2 SLOAD DUP2 DUP10 ADD MSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x40C JUMP JUMPDEST DUP4 DUP9 ADD SWAP6 POP POP POP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x449 PUSH1 0x5 DUP4 PUSH2 0x537 JUMP JUMPDEST SWAP2 POP PUSH2 0x454 DUP3 PUSH2 0x66A JUMP JUMPDEST PUSH1 0x5 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x46B DUP3 DUP6 PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP PUSH2 0x476 DUP3 PUSH2 0x43C JUMP JUMPDEST SWAP2 POP PUSH2 0x482 DUP3 DUP5 PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x4A8 DUP2 DUP5 PUSH2 0x384 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4BA PUSH2 0x4CB JUMP JUMPDEST SWAP1 POP PUSH2 0x4C6 DUP3 DUP3 PUSH2 0x5B6 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 0x4F0 JUMPI PUSH2 0x4EF PUSH2 0x616 JUMP JUMPDEST JUMPDEST PUSH2 0x4F9 DUP3 PUSH2 0x659 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP DUP2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 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 DUP2 SWAP1 POP SWAP3 SWAP2 POP 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 0x56F JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x554 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x57E 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 0x59C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x5B0 JUMPI PUSH2 0x5AF PUSH2 0x5E7 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x5BF DUP3 PUSH2 0x659 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x5DE JUMPI PUSH2 0x5DD PUSH2 0x616 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 PUSH32 0x20616E6420000000000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 MSTORE8 PUSH12 0xFD522C10C026A076F232EE13 0xB6 PUSH18 0xEA1417CC4726BB256C77143266BC69CB6473 PUSH16 0x6C634300080700330000000000000000 ",
"sourceMap": "61:382:0:-:0;;;151:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;204:8;198:3;:14;;;;;;;;;;;;:::i;:::-;;151:69;61:382;;;;;;;;;:::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:524::-;889:6;938:2;926:9;917:7;913:23;909:32;906:119;;;944:79;;:::i;:::-;906:119;1085:1;1074:9;1070:17;1064:24;1115:18;1107:6;1104:30;1101:117;;;1137:79;;:::i;:::-;1101:117;1242:74;1308:7;1299:6;1288:9;1284:22;1242:74;:::i;:::-;1232:84;;1035:291;809:524;;;;:::o;1339:129::-;1373:6;1400:20;;:::i;:::-;1390:30;;1429:33;1457:4;1449:6;1429:33;:::i;:::-;1339:129;;;:::o;1474:75::-;1507:6;1540:2;1534:9;1524:19;;1474:75;:::o;1555:308::-;1617:4;1707:18;1699:6;1696:30;1693:56;;;1729:18;;:::i;:::-;1693:56;1767:29;1789:6;1767:29;:::i;:::-;1759:37;;1851:4;1845;1841:15;1833:23;;1555:308;;;:::o;1869:307::-;1937:1;1947:113;1961:6;1958:1;1955:13;1947:113;;;2046:1;2041:3;2037:11;2031:18;2027:1;2022:3;2018:11;2011:39;1983:2;1980:1;1976:10;1971:15;;1947:113;;;2078:6;2075:1;2072:13;2069:101;;;2158:1;2149:6;2144:3;2140:16;2133:27;2069:101;1918:258;1869:307;;;:::o;2182:320::-;2226:6;2263:1;2257:4;2253:12;2243:22;;2310:1;2304:4;2300:12;2331:18;2321:81;;2387:4;2379:6;2375:17;2365:27;;2321:81;2449:2;2441:6;2438:14;2418:18;2415:38;2412:84;;;2468:18;;:::i;:::-;2412:84;2233:269;2182:320;;;:::o;2508:281::-;2591:27;2613:4;2591:27;:::i;:::-;2583:6;2579:40;2721:6;2709:10;2706:22;2685:18;2673:10;2670:34;2667:62;2664:88;;;2732:18;;:::i;:::-;2664:88;2772:10;2768:2;2761:22;2551:238;2508:281;;:::o;2795:180::-;2843:77;2840:1;2833:88;2940:4;2937:1;2930:15;2964:4;2961:1;2954:15;2981:180;3029:77;3026:1;3019:88;3126:4;3123:1;3116:15;3150:4;3147:1;3140:15;3167:117;3276:1;3273;3266:12;3290:117;3399:1;3396;3389:12;3413:117;3522:1;3519;3512:12;3536:117;3645:1;3642;3635:12;3659:102;3700:6;3751:2;3747:7;3742:2;3735:5;3731:14;3727:28;3717:38;;3659:102;;;:::o;61:382:0:-;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@getWife_25": {
"entryPoint": 526,
"id": 25,
"parameterSlots": 1,
"returnSlots": 0
},
"@man_3": {
"entryPoint": 199,
"id": 3,
"parameterSlots": 0,
"returnSlots": 0
},
"@marriage_41": {
"entryPoint": 483,
"id": 41,
"parameterSlots": 0,
"returnSlots": 1
},
"@woman_5": {
"entryPoint": 341,
"id": 5,
"parameterSlots": 0,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr": {
"entryPoint": 715,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr": {
"entryPoint": 781,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_string_memory_ptr": {
"entryPoint": 827,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": {
"entryPoint": 900,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 957,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 1084,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_packed_t_string_storage_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_t_string_storage__to_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 1119,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 1166,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 1200,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 1227,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 1237,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_dataslot_t_string_storage": {
"entryPoint": 1286,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 1307,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 1318,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 1335,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"copy_calldata_to_memory": {
"entryPoint": 1346,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"copy_memory_to_memory": {
"entryPoint": 1361,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 1412,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 1462,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 1511,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 1558,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 1605,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 1610,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 1615,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 1620,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 1625,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"store_literal_in_memory_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375": {
"entryPoint": 1642,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:7292: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": "861:433:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "907:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "909:77:1"
},
"nodeType": "YulFunctionCall",
"src": "909:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "909:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "882:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "891:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "878:3:1"
},
"nodeType": "YulFunctionCall",
"src": "878:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "903:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "874:3:1"
},
"nodeType": "YulFunctionCall",
"src": "874:32:1"
},
"nodeType": "YulIf",
"src": "871:119:1"
},
{
"nodeType": "YulBlock",
"src": "1000:287:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1015:45:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1046:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1057:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1042:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1042:17:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1029:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1029:31:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1019:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1107:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "1109:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1109:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1109:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1079:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1087:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1076:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1076:30:1"
},
"nodeType": "YulIf",
"src": "1073:117:1"
},
{
"nodeType": "YulAssignment",
"src": "1204:73:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1249:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1260:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1245:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1245:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1269:7:1"
}
],
"functionName": {
"name": "abi_decode_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "1214:30:1"
},
"nodeType": "YulFunctionCall",
"src": "1214:63:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1204:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "831:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "842:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "854:6:1",
"type": ""
}
],
"src": "785:509:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1392:272:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1402:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1449:5:1"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "1416:32:1"
},
"nodeType": "YulFunctionCall",
"src": "1416:39:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1406:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1464:78:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1530:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1535:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1471:58:1"
},
"nodeType": "YulFunctionCall",
"src": "1471:71:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1464:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1577:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1584:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1573:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1573:16:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1591:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1596:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "1551:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1551:52:1"
},
"nodeType": "YulExpressionStatement",
"src": "1551:52:1"
},
{
"nodeType": "YulAssignment",
"src": "1612:46:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1623:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1650:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1628:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1628:29:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1619:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1619:39:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1612:3:1"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1373:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1380:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1388:3:1",
"type": ""
}
],
"src": "1300:364:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1801:738:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1811:29:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1834:5:1"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "1828:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1828:12:1"
},
"variables": [
{
"name": "slotValue",
"nodeType": "YulTypedName",
"src": "1815:9:1",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1849:50:1",
"value": {
"arguments": [
{
"name": "slotValue",
"nodeType": "YulIdentifier",
"src": "1889:9:1"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "1863:25:1"
},
"nodeType": "YulFunctionCall",
"src": "1863:36:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1853:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1908:96:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1992:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1997:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "1915:76:1"
},
"nodeType": "YulFunctionCall",
"src": "1915:89:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1908:3:1"
}
]
},
{
"cases": [
{
"body": {
"nodeType": "YulBlock",
"src": "2053:130:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2106:3:1"
},
{
"arguments": [
{
"name": "slotValue",
"nodeType": "YulIdentifier",
"src": "2115:9:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2130:4:1",
"type": "",
"value": "0xff"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "2126:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2126:9:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2111:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2111:25:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2099:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2099:38:1"
},
"nodeType": "YulExpressionStatement",
"src": "2099:38:1"
},
{
"nodeType": "YulAssignment",
"src": "2150:23:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2161:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2166:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2157:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2157:16:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "2150:3:1"
}
]
}
]
},
"nodeType": "YulCase",
"src": "2046:137:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2051:1:1",
"type": "",
"value": "0"
}
},
{
"body": {
"nodeType": "YulBlock",
"src": "2199:334:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2244:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2291:5:1"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "2259:31:1"
},
"nodeType": "YulFunctionCall",
"src": "2259:38:1"
},
"variables": [
{
"name": "dataPos",
"nodeType": "YulTypedName",
"src": "2248:7:1",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2310:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2319:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "2314:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2377:110:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2406:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2411:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2402:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2402:11:1"
},
{
"arguments": [
{
"name": "dataPos",
"nodeType": "YulIdentifier",
"src": "2421:7:1"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "2415:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2415:14:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2395:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2395:35:1"
},
"nodeType": "YulExpressionStatement",
"src": "2395:35:1"
},
{
"nodeType": "YulAssignment",
"src": "2447:26:1",
"value": {
"arguments": [
{
"name": "dataPos",
"nodeType": "YulIdentifier",
"src": "2462:7:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2471:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2458:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2458:15:1"
},
"variableNames": [
{
"name": "dataPos",
"nodeType": "YulIdentifier",
"src": "2447:7:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2344:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2347:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2341:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2341:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2355:21:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2357:17:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2366:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2369:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2362:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2362:12:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2357:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2337:3:1",
"statements": []
},
"src": "2333:154:1"
},
{
"nodeType": "YulAssignment",
"src": "2500:23:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2511:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2516:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2507:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2507:16:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "2500:3:1"
}
]
}
]
},
"nodeType": "YulCase",
"src": "2192:341:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2197:1:1",
"type": "",
"value": "1"
}
}
],
"expression": {
"arguments": [
{
"name": "slotValue",
"nodeType": "YulIdentifier",
"src": "2024:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2035:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2020:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2020:17:1"
},
"nodeType": "YulSwitch",
"src": "2013:520:1"
}
]
},
"name": "abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1782:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1789:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1797:3:1",
"type": ""
}
],
"src": "1694:845:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2709:236:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2719:91:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2803:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2808:1:1",
"type": "",
"value": "5"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "2726:76:1"
},
"nodeType": "YulFunctionCall",
"src": "2726:84:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2719:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2908:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375",
"nodeType": "YulIdentifier",
"src": "2819:88:1"
},
"nodeType": "YulFunctionCall",
"src": "2819:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "2819:93:1"
},
{
"nodeType": "YulAssignment",
"src": "2921:18:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2932:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2937:1:1",
"type": "",
"value": "5"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2928:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2928:11:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2921:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2697:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2705:3:1",
"type": ""
}
],
"src": "2545:400:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3230:410:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3241:99:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3327:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3336:3:1"
}
],
"functionName": {
"name": "abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3248:78:1"
},
"nodeType": "YulFunctionCall",
"src": "3248:92:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3241:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3350:155:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3501:3:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3357:142:1"
},
"nodeType": "YulFunctionCall",
"src": "3357:148:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3350:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3515:99:1",
"value": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "3601:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3610:3:1"
}
],
"functionName": {
"name": "abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3522:78:1"
},
"nodeType": "YulFunctionCall",
"src": "3522:92:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3515:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3624:10:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3631:3:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3624:3:1"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_string_storage_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_t_string_storage__to_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3201:3:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "3207:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3215:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3226:3:1",
"type": ""
}
],
"src": "2951:689:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3764:195:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3774:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3786:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3797:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3782:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3782:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3774:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3821:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3832:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3817:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3817:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3840:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3846:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3836:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3836:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3810:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3810:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "3810:47:1"
},
{
"nodeType": "YulAssignment",
"src": "3866:86:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3938:6:1"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3947:4:1"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "3874:63:1"
},
"nodeType": "YulFunctionCall",
"src": "3874:78:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3866: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": "3736:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3748:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3759:4:1",
"type": ""
}
],
"src": "3646:313:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4006:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4016:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "4026:18:1"
},
"nodeType": "YulFunctionCall",
"src": "4026:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4016:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4075:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4083:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "4055:19:1"
},
"nodeType": "YulFunctionCall",
"src": "4055:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "4055:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "3990:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3999:6:1",
"type": ""
}
],
"src": "3965:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4140:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4150:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4166:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4160:5:1"
},
"nodeType": "YulFunctionCall",
"src": "4160:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4150:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "4133:6:1",
"type": ""
}
],
"src": "4100:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4248:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4353:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "4355:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4355:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4355:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4325:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4333:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4322:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4322:30:1"
},
"nodeType": "YulIf",
"src": "4319:56:1"
},
{
"nodeType": "YulAssignment",
"src": "4385:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4415:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "4393:21:1"
},
"nodeType": "YulFunctionCall",
"src": "4393:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4385:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "4459:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4471:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4477:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4467:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4467:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4459:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4232:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "4243:4:1",
"type": ""
}
],
"src": "4181:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4549:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4559:11:1",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "4567:3:1"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4559:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4587:1:1",
"type": "",
"value": "0"
},
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "4590:3:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4580:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4580:14:1"
},
"nodeType": "YulExpressionStatement",
"src": "4580:14:1"
},
{
"nodeType": "YulAssignment",
"src": "4603:26:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4621:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4624:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "keccak256",
"nodeType": "YulIdentifier",
"src": "4611:9:1"
},
"nodeType": "YulFunctionCall",
"src": "4611:18:1"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4603:4:1"
}
]
}
]
},
"name": "array_dataslot_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "4536:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "4544:4:1",
"type": ""
}
],
"src": "4495:141:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4701:40:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4712:22:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4728:5:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4722:5:1"
},
"nodeType": "YulFunctionCall",
"src": "4722:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4712:6:1"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4684:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4694:6:1",
"type": ""
}
],
"src": "4642:99:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4843:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4860:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4865:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4853:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4853:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "4853:19:1"
},
{
"nodeType": "YulAssignment",
"src": "4881:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4900:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4905:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4896:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4896:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "4881:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "4815:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4820:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "4831:11:1",
"type": ""
}
],
"src": "4747:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5036:34:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5046:18:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5061:3:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "5046:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5008:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5013:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "5024:11:1",
"type": ""
}
],
"src": "4922:148:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5127:103:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "5150:3:1"
},
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "5155:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5160:6:1"
}
],
"functionName": {
"name": "calldatacopy",
"nodeType": "YulIdentifier",
"src": "5137:12:1"
},
"nodeType": "YulFunctionCall",
"src": "5137:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "5137:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "5208:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5213:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5204:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5204:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5222:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5197:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5197:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "5197:27:1"
}
]
},
"name": "copy_calldata_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "5109:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "5114:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5119:6:1",
"type": ""
}
],
"src": "5076:154:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5285:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5295:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "5304:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "5299:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5364:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "5389:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5394:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5385:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5385:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "5408:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5413:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5404:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5404:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "5398:5:1"
},
"nodeType": "YulFunctionCall",
"src": "5398:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5378:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5378:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "5378:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5325:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5328:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "5322:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5322:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "5336:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5338:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5347:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5350:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5343:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5343:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5338:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "5318:3:1",
"statements": []
},
"src": "5314:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5461:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "5511:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5516:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5507:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5507:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5525:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5500:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5500:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "5500:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "5442:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5445:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "5439:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5439:13:1"
},
"nodeType": "YulIf",
"src": "5436:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "5267:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "5272:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5277:6:1",
"type": ""
}
],
"src": "5236:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5600:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5610:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "5624:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5630:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "5620:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5620:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5610:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "5641:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "5671:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5677:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5667:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5667:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "5645:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5718:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5732:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5746:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5754:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5742:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5742:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5732:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "5698:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5691:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5691:26:1"
},
"nodeType": "YulIf",
"src": "5688:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5821:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "5835:16:1"
},
"nodeType": "YulFunctionCall",
"src": "5835:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "5835:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "5785:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5808:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5816:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "5805:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5805:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "5782:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5782:38:1"
},
"nodeType": "YulIf",
"src": "5779:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "5584:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5593:6:1",
"type": ""
}
],
"src": "5549:320:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5918:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5928:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "5950:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "5980:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "5958:21:1"
},
"nodeType": "YulFunctionCall",
"src": "5958:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5946:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5946:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "5932:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6097:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "6099:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6099:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6099:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6040:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6052:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "6037:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6037:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6076:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "6088:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "6073:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6073:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "6034:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6034:62:1"
},
"nodeType": "YulIf",
"src": "6031:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6135:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6139:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6128:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6128:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "6128:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "5904:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "5912:4:1",
"type": ""
}
],
"src": "5875:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6190:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6207:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6210:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6200:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6200:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6200:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6304:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6307:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6297:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6297:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6297:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6328:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6331:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6321:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6321:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6321:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "6162:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6376:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6393:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6396:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6386:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6386:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6386:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6490:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6493:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6483:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6483:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6483:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6514:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6517:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6507:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6507:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6507:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "6348:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6623:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6640:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6643:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6633:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6633:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6633:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "6534:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6746:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6763:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6766:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6756:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6756:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6756:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "6657:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6869:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6886:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6889:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6879:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6879:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "6879:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "6780:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6992:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7009:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7012:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7002:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7002:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7002:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "6903:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7074:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "7084:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7102:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7109:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7098:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7098:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7118:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "7114:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7114:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "7094:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7094:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "7084:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7057:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "7067:6:1",
"type": ""
}
],
"src": "7026:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7240:49:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "7262:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7270:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7258:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7258:14:1"
},
{
"hexValue": "20616e6420",
"kind": "string",
"nodeType": "YulLiteral",
"src": "7274:7:1",
"type": "",
"value": " and "
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7251:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7251:31:1"
},
"nodeType": "YulExpressionStatement",
"src": "7251:31:1"
}
]
},
"name": "store_literal_in_memory_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "7232:6:1",
"type": ""
}
],
"src": "7134:155: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_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_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 // string -> string\n function abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack(value, pos) -> ret {\n let slotValue := sload(value)\n let length := extract_byte_array_length(slotValue)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack(pos, length)\n switch and(slotValue, 1)\n case 0 {\n // short byte array\n mstore(pos, and(slotValue, not(0xff)))\n ret := add(pos, length)\n }\n case 1 {\n // long byte array\n let dataPos := array_dataslot_t_string_storage(value)\n let i := 0\n for { } lt(i, length) { i := add(i, 0x20) } {\n mstore(add(pos, i), sload(dataPos))\n dataPos := add(dataPos, 1)\n }\n ret := add(pos, length)\n }\n }\n\n function abi_encode_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_to_t_string_memory_ptr_nonPadded_inplace_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack(pos, 5)\n store_literal_in_memory_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375(pos)\n end := add(pos, 5)\n }\n\n function abi_encode_tuple_packed_t_string_storage_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_t_string_storage__to_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed(pos , value1, value0) -> end {\n\n pos := abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack(value0, pos)\n\n pos := abi_encode_t_stringliteral_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375_to_t_string_memory_ptr_nonPadded_inplace_fromStack( pos)\n\n pos := abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack(value1, pos)\n\n end := pos\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 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_dataslot_t_string_storage(ptr) -> data {\n data := ptr\n\n mstore(0, ptr)\n data := keccak256(0, 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 array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack(pos, length) -> updated_pos {\n updated_pos := pos\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 store_literal_in_memory_425f41a70d92837735559238083c6f5f4e5a5cd02e299a19d712ebfe4b4c9375(memPtr) {\n\n mstore(add(memPtr, 0), \" and \")\n\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061004c5760003560e01c806310cd2dc7146100515780632dac69f31461006f5780636ce005511461008d578063c165feba146100ab575b600080fd5b6100596100c7565b604051610066919061048e565b60405180910390f35b610077610155565b604051610084919061048e565b60405180910390f35b6100956101e3565b6040516100a2919061048e565b60405180910390f35b6100c560048036038101906100c0919061033b565b61020e565b005b600080546100d490610584565b80601f016020809104026020016040519081016040528092919081815260200182805461010090610584565b801561014d5780601f106101225761010080835404028352916020019161014d565b820191906000526020600020905b81548152906001019060200180831161013057829003601f168201915b505050505081565b6001805461016290610584565b80601f016020809104026020016040519081016040528092919081815260200182805461018e90610584565b80156101db5780601f106101b0576101008083540402835291602001916101db565b820191906000526020600020905b8154815290600101906020018083116101be57829003601f168201915b505050505081565b6060600060016040516020016101fa92919061045f565b604051602081830303815290604052905090565b8060019080519060200190610224929190610228565b5050565b82805461023490610584565b90600052602060002090601f016020900481019282610256576000855561029d565b82601f1061026f57805160ff191683800117855561029d565b8280016001018555821561029d579182015b8281111561029c578251825591602001919060010190610281565b5b5090506102aa91906102ae565b5090565b5b808211156102c75760008160009055506001016102af565b5090565b60006102de6102d9846104d5565b6104b0565b9050828152602081018484840111156102fa576102f961064a565b5b610305848285610542565b509392505050565b600082601f83011261032257610321610645565b5b81356103328482602086016102cb565b91505092915050565b60006020828403121561035157610350610654565b5b600082013567ffffffffffffffff81111561036f5761036e61064f565b5b61037b8482850161030d565b91505092915050565b600061038f8261051b565b6103998185610526565b93506103a9818560208601610551565b6103b281610659565b840191505092915050565b600081546103ca81610584565b6103d48186610537565b945060018216600081146103ef576001811461040057610433565b60ff19831686528186019350610433565b61040985610506565b60005b8381101561042b5781548189015260018201915060208101905061040c565b838801955050505b50505092915050565b6000610449600583610537565b91506104548261066a565b600582019050919050565b600061046b82856103bd565b91506104768261043c565b915061048282846103bd565b91508190509392505050565b600060208201905081810360008301526104a88184610384565b905092915050565b60006104ba6104cb565b90506104c682826105b6565b919050565b6000604051905090565b600067ffffffffffffffff8211156104f0576104ef610616565b5b6104f982610659565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b82818337600083830152505050565b60005b8381101561056f578082015181840152602081019050610554565b8381111561057e576000848401525b50505050565b6000600282049050600182168061059c57607f821691505b602082108114156105b0576105af6105e7565b5b50919050565b6105bf82610659565b810181811067ffffffffffffffff821117156105de576105dd610616565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f20616e642000000000000000000000000000000000000000000000000000000060008201525056fea2646970667358221220536bfd522c10c026a076f232ee13b671ea1417cc4726bb256c77143266bc69cb64736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x10CD2DC7 EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x2DAC69F3 EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0x6CE00551 EQ PUSH2 0x8D JUMPI DUP1 PUSH4 0xC165FEBA EQ PUSH2 0xAB JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xC7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x77 PUSH2 0x155 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x84 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x95 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA2 SWAP2 SWAP1 PUSH2 0x48E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xC5 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xC0 SWAP2 SWAP1 PUSH2 0x33B JUMP JUMPDEST PUSH2 0x20E JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0xD4 SWAP1 PUSH2 0x584 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 0x100 SWAP1 PUSH2 0x584 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x14D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x122 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x14D 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 0x130 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0x162 SWAP1 PUSH2 0x584 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 0x18E SWAP1 PUSH2 0x584 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x1DB JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1B0 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1DB 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 0x1BE JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH1 0x1 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x1FA SWAP3 SWAP2 SWAP1 PUSH2 0x45F JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x224 SWAP3 SWAP2 SWAP1 PUSH2 0x228 JUMP JUMPDEST POP POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x234 SWAP1 PUSH2 0x584 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x256 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x29D JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x26F JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x29D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x29D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x29C JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x281 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x2AA SWAP2 SWAP1 PUSH2 0x2AE JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x2C7 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x2AF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DE PUSH2 0x2D9 DUP5 PUSH2 0x4D5 JUMP JUMPDEST PUSH2 0x4B0 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x2FA JUMPI PUSH2 0x2F9 PUSH2 0x64A JUMP JUMPDEST JUMPDEST PUSH2 0x305 DUP5 DUP3 DUP6 PUSH2 0x542 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x322 JUMPI PUSH2 0x321 PUSH2 0x645 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x332 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x2CB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x351 JUMPI PUSH2 0x350 PUSH2 0x654 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x36F JUMPI PUSH2 0x36E PUSH2 0x64F JUMP JUMPDEST JUMPDEST PUSH2 0x37B DUP5 DUP3 DUP6 ADD PUSH2 0x30D JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38F DUP3 PUSH2 0x51B JUMP JUMPDEST PUSH2 0x399 DUP2 DUP6 PUSH2 0x526 JUMP JUMPDEST SWAP4 POP PUSH2 0x3A9 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x551 JUMP JUMPDEST PUSH2 0x3B2 DUP2 PUSH2 0x659 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SLOAD PUSH2 0x3CA DUP2 PUSH2 0x584 JUMP JUMPDEST PUSH2 0x3D4 DUP2 DUP7 PUSH2 0x537 JUMP JUMPDEST SWAP5 POP PUSH1 0x1 DUP3 AND PUSH1 0x0 DUP2 EQ PUSH2 0x3EF JUMPI PUSH1 0x1 DUP2 EQ PUSH2 0x400 JUMPI PUSH2 0x433 JUMP JUMPDEST PUSH1 0xFF NOT DUP4 AND DUP7 MSTORE DUP2 DUP7 ADD SWAP4 POP PUSH2 0x433 JUMP JUMPDEST PUSH2 0x409 DUP6 PUSH2 0x506 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x42B JUMPI DUP2 SLOAD DUP2 DUP10 ADD MSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x40C JUMP JUMPDEST DUP4 DUP9 ADD SWAP6 POP POP POP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x449 PUSH1 0x5 DUP4 PUSH2 0x537 JUMP JUMPDEST SWAP2 POP PUSH2 0x454 DUP3 PUSH2 0x66A JUMP JUMPDEST PUSH1 0x5 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x46B DUP3 DUP6 PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP PUSH2 0x476 DUP3 PUSH2 0x43C JUMP JUMPDEST SWAP2 POP PUSH2 0x482 DUP3 DUP5 PUSH2 0x3BD JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x4A8 DUP2 DUP5 PUSH2 0x384 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4BA PUSH2 0x4CB JUMP JUMPDEST SWAP1 POP PUSH2 0x4C6 DUP3 DUP3 PUSH2 0x5B6 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 0x4F0 JUMPI PUSH2 0x4EF PUSH2 0x616 JUMP JUMPDEST JUMPDEST PUSH2 0x4F9 DUP3 PUSH2 0x659 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP DUP2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 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 DUP2 SWAP1 POP SWAP3 SWAP2 POP 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 0x56F JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x554 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x57E 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 0x59C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x5B0 JUMPI PUSH2 0x5AF PUSH2 0x5E7 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x5BF DUP3 PUSH2 0x659 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x5DE JUMPI PUSH2 0x5DD PUSH2 0x616 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 PUSH32 0x20616E6420000000000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 MSTORE8 PUSH12 0xFD522C10C026A076F232EE13 0xB6 PUSH18 0xEA1417CC4726BB256C77143266BC69CB6473 PUSH16 0x6C634300080700330000000000000000 ",
"sourceMap": "61:382:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95:17;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;119:19;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;312:126;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;228:74;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;95:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;119:19::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;312:126::-;352:13;408:3;423:5;391:38;;;;;;;;;:::i;:::-;;;;;;;;;;;;;377:53;;312:126;:::o;228:74::-;290:4;282:5;:12;;;;;;;;;;;;:::i;:::-;;228:74;:::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:509::-;854:6;903:2;891:9;882:7;878:23;874:32;871:119;;;909:79;;:::i;:::-;871:119;1057:1;1046:9;1042:17;1029:31;1087:18;1079:6;1076:30;1073:117;;;1109:79;;:::i;:::-;1073:117;1214:63;1269:7;1260:6;1249:9;1245:22;1214:63;:::i;:::-;1204:73;;1000:287;785:509;;;;:::o;1300:364::-;1388:3;1416:39;1449:5;1416:39;:::i;:::-;1471:71;1535:6;1530:3;1471:71;:::i;:::-;1464:78;;1551:52;1596:6;1591:3;1584:4;1577:5;1573:16;1551:52;:::i;:::-;1628:29;1650:6;1628:29;:::i;:::-;1623:3;1619:39;1612:46;;1392:272;1300:364;;;;:::o;1694:845::-;1797:3;1834:5;1828:12;1863:36;1889:9;1863:36;:::i;:::-;1915:89;1997:6;1992:3;1915:89;:::i;:::-;1908:96;;2035:1;2024:9;2020:17;2051:1;2046:137;;;;2197:1;2192:341;;;;2013:520;;2046:137;2130:4;2126:9;2115;2111:25;2106:3;2099:38;2166:6;2161:3;2157:16;2150:23;;2046:137;;2192:341;2259:38;2291:5;2259:38;:::i;:::-;2319:1;2333:154;2347:6;2344:1;2341:13;2333:154;;;2421:7;2415:14;2411:1;2406:3;2402:11;2395:35;2471:1;2462:7;2458:15;2447:26;;2369:4;2366:1;2362:12;2357:17;;2333:154;;;2516:6;2511:3;2507:16;2500:23;;2199:334;;2013:520;;1801:738;;1694:845;;;;:::o;2545:400::-;2705:3;2726:84;2808:1;2803:3;2726:84;:::i;:::-;2719:91;;2819:93;2908:3;2819:93;:::i;:::-;2937:1;2932:3;2928:11;2921:18;;2545:400;;;:::o;2951:689::-;3226:3;3248:92;3336:3;3327:6;3248:92;:::i;:::-;3241:99;;3357:148;3501:3;3357:148;:::i;:::-;3350:155;;3522:92;3610:3;3601:6;3522:92;:::i;:::-;3515:99;;3631:3;3624:10;;2951:689;;;;;:::o;3646:313::-;3759:4;3797:2;3786:9;3782:18;3774:26;;3846:9;3840:4;3836:20;3832:1;3821:9;3817:17;3810:47;3874:78;3947:4;3938:6;3874:78;:::i;:::-;3866:86;;3646:313;;;;:::o;3965:129::-;3999:6;4026:20;;:::i;:::-;4016:30;;4055:33;4083:4;4075:6;4055:33;:::i;:::-;3965:129;;;:::o;4100:75::-;4133:6;4166:2;4160:9;4150:19;;4100:75;:::o;4181:308::-;4243:4;4333:18;4325:6;4322:30;4319:56;;;4355:18;;:::i;:::-;4319:56;4393:29;4415:6;4393:29;:::i;:::-;4385:37;;4477:4;4471;4467:15;4459:23;;4181:308;;;:::o;4495:141::-;4544:4;4567:3;4559:11;;4590:3;4587:1;4580:14;4624:4;4621:1;4611:18;4603:26;;4495:141;;;:::o;4642:99::-;4694:6;4728:5;4722:12;4712:22;;4642:99;;;:::o;4747:169::-;4831:11;4865:6;4860:3;4853:19;4905:4;4900:3;4896:14;4881:29;;4747:169;;;;:::o;4922:148::-;5024:11;5061:3;5046:18;;4922:148;;;;:::o;5076:154::-;5160:6;5155:3;5150;5137:30;5222:1;5213:6;5208:3;5204:16;5197:27;5076:154;;;:::o;5236:307::-;5304:1;5314:113;5328:6;5325:1;5322:13;5314:113;;;5413:1;5408:3;5404:11;5398:18;5394:1;5389:3;5385:11;5378:39;5350:2;5347:1;5343:10;5338:15;;5314:113;;;5445:6;5442:1;5439:13;5436:101;;;5525:1;5516:6;5511:3;5507:16;5500:27;5436:101;5285:258;5236:307;;;:::o;5549:320::-;5593:6;5630:1;5624:4;5620:12;5610:22;;5677:1;5671:4;5667:12;5698:18;5688:81;;5754:4;5746:6;5742:17;5732:27;;5688:81;5816:2;5808:6;5805:14;5785:18;5782:38;5779:84;;;5835:18;;:::i;:::-;5779:84;5600:269;5549:320;;;:::o;5875:281::-;5958:27;5980:4;5958:27;:::i;:::-;5950:6;5946:40;6088:6;6076:10;6073:22;6052:18;6040:10;6037:34;6034:62;6031:88;;;6099:18;;:::i;:::-;6031:88;6139:10;6135:2;6128:22;5918:238;5875:281;;:::o;6162:180::-;6210:77;6207:1;6200:88;6307:4;6304:1;6297:15;6331:4;6328:1;6321:15;6348:180;6396:77;6393:1;6386:88;6493:4;6490:1;6483:15;6517:4;6514:1;6507:15;6534:117;6643:1;6640;6633:12;6657:117;6766:1;6763;6756:12;6780:117;6889:1;6886;6879:12;6903:117;7012:1;7009;7002:12;7026:102;7067:6;7118:2;7114:7;7109:2;7102:5;7098:14;7094:28;7084:38;;7026:102;;;:::o;7134:155::-;7274:7;7270:1;7262:6;7258:14;7251:31;7134:155;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "347400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getWife(string)": "infinite",
"man()": "infinite",
"marriage()": "infinite",
"woman()": "infinite"
}
},
"methodIdentifiers": {
"getWife(string)": "c165feba",
"man()": "10cd2dc7",
"marriage()": "6ce00551",
"woman()": "2dac69f3"
}
},
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "_husband",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "string",
"name": "wife",
"type": "string"
}
],
"name": "getWife",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "man",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "marriage",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "woman",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.7+commit.e28d00a7"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "_husband",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "string",
"name": "wife",
"type": "string"
}
],
"name": "getWife",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "man",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "marriage",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "woman",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"helloWorld.sol": "HelloWorld"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"helloWorld.sol": {
"keccak256": "0x5cc5eb2bf5a5e9fa8c976a693055acd20d1548ad4b05563e83d5a54eeb895a45",
"license": "MIT",
"urls": [
"bzz-raw://2aa89ca7648d700348d6be1d32772211cb3d852383d1fe0494c23cd4a3937aa8",
"dweb:/ipfs/QmYFYYmxPjYTQwU5VCzrszrCYQcdoVAE5qMpQJpvGVHTdA"
]
}
},
"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: MIT
pragma solidity ^0.8.7;
contract HelloWorld{
string public man;
string public woman;
constructor(string memory _husband) {
man = _husband;
}
function getWife(string memory wife) public{
woman = wife;
}
function marriage() public view returns(string memory){
return string(abi.encodePacked(man, " and " , woman));
}
}
// 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.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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment