@zjbtest/contracts
Version:
AcalaNetwork Smart Contract library for Solidity
1,317 lines (1,316 loc) • 84.1 kB
JSON
{
"contractName": "Migrations",
"abi": [
{
"inputs": [],
"name": "last_completed_migration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "completed",
"type": "uint256"
}
],
"name": "setCompleted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/utils/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/utils/Migrations.sol\":{\"keccak256\":\"0xef12c05e5d271429ac19b5db8413d9329fb78f8ffe8fda4299b53e878682130a\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://203db4250d4ae37846fc5bf359cb814850fdc6a9882cad97b76efcb5bb0e3830\",\"dweb:/ipfs/QmW2PKJ9uGBnuSzzo9RU8qKT4J5C1ArzLMy1NnxzrjfyFV\"]}},\"version\":1}",
"bytecode": "0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561005057600080fd5b50610312806100606000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610064578063fdacd57614610082575b600080fd5b61004e61009e565b60405161005b919061025d565b60405180910390f35b61006c6100a4565b6040516100799190610222565b60405180910390f35b61009c60048036038101906100979190610175565b6100c8565b005b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014d9061023d565b60405180910390fd5b8060018190555050565b60008135905061016f816102c5565b92915050565b60006020828403121561018757600080fd5b600061019584828501610160565b91505092915050565b6101a781610289565b82525050565b60006101ba603383610278565b91507f546869732066756e6374696f6e206973207265737472696374656420746f207460008301527f686520636f6e74726163742773206f776e6572000000000000000000000000006020830152604082019050919050565b61021c816102bb565b82525050565b6000602082019050610237600083018461019e565b92915050565b60006020820190508181036000830152610256816101ad565b9050919050565b60006020820190506102726000830184610213565b92915050565b600082825260208201905092915050565b60006102948261029b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6102ce816102bb565b81146102d957600080fd5b5056fea26469706673582212208dcb11f01b94e110eeab73ab498ca18ce53e1033e56675fa464a17401a3cd9c964736f6c63430008000033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610064578063fdacd57614610082575b600080fd5b61004e61009e565b60405161005b919061025d565b60405180910390f35b61006c6100a4565b6040516100799190610222565b60405180910390f35b61009c60048036038101906100979190610175565b6100c8565b005b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014d9061023d565b60405180910390fd5b8060018190555050565b60008135905061016f816102c5565b92915050565b60006020828403121561018757600080fd5b600061019584828501610160565b91505092915050565b6101a781610289565b82525050565b60006101ba603383610278565b91507f546869732066756e6374696f6e206973207265737472696374656420746f207460008301527f686520636f6e74726163742773206f776e6572000000000000000000000000006020830152604082019050919050565b61021c816102bb565b82525050565b6000602082019050610237600083018461019e565b92915050565b60006020820190508181036000830152610256816101ad565b9050919050565b60006020820190506102726000830184610213565b92915050565b600082825260208201905092915050565b60006102948261029b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6102ce816102bb565b81146102d957600080fd5b5056fea26469706673582212208dcb11f01b94e110eeab73ab498ca18ce53e1033e56675fa464a17401a3cd9c964736f6c63430008000033",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:2555:20",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "59:87:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "69:29:20",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "91:6:20"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "78:12:20"
},
"nodeType": "YulFunctionCall",
"src": "78:20:20"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "69:5:20"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "134:5:20"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "107:26:20"
},
"nodeType": "YulFunctionCall",
"src": "107:33:20"
},
"nodeType": "YulExpressionStatement",
"src": "107:33:20"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "37:6:20",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "45:3:20",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "53:5:20",
"type": ""
}
],
"src": "7:139:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "218:196:20",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "264:16:20",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "273:1:20",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "276:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:20"
},
"nodeType": "YulFunctionCall",
"src": "266:12:20"
},
"nodeType": "YulExpressionStatement",
"src": "266:12:20"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "239:7:20"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "248:9:20"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "235:3:20"
},
"nodeType": "YulFunctionCall",
"src": "235:23:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "260:2:20",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "231:3:20"
},
"nodeType": "YulFunctionCall",
"src": "231:32:20"
},
"nodeType": "YulIf",
"src": "228:2:20"
},
{
"nodeType": "YulBlock",
"src": "290:117:20",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "305:15:20",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "319:1:20",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "309:6:20",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "334:63:20",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "369:9:20"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "380:6:20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "365:3:20"
},
"nodeType": "YulFunctionCall",
"src": "365:22:20"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "389:7:20"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "344:20:20"
},
"nodeType": "YulFunctionCall",
"src": "344:53:20"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "334:6:20"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "188:9:20",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "199:7:20",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "211:6:20",
"type": ""
}
],
"src": "152:262:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "485:53:20",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "502:3:20"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "525:5:20"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "507:17:20"
},
"nodeType": "YulFunctionCall",
"src": "507:24:20"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "495:6:20"
},
"nodeType": "YulFunctionCall",
"src": "495:37:20"
},
"nodeType": "YulExpressionStatement",
"src": "495:37:20"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "473:5:20",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "480:3:20",
"type": ""
}
],
"src": "420:118:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "690:237:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "700:74:20",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "766:3:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "771:2:20",
"type": "",
"value": "51"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "707:58:20"
},
"nodeType": "YulFunctionCall",
"src": "707:67:20"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "700:3:20"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "795:3:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "800:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "791:3:20"
},
"nodeType": "YulFunctionCall",
"src": "791:11:20"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "804:34:20",
"type": "",
"value": "This function is restricted to t"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "784:6:20"
},
"nodeType": "YulFunctionCall",
"src": "784:55:20"
},
"nodeType": "YulExpressionStatement",
"src": "784:55:20"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "860:3:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "865:2:20",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "856:3:20"
},
"nodeType": "YulFunctionCall",
"src": "856:12:20"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "870:21:20",
"type": "",
"value": "he contract's owner"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "849:6:20"
},
"nodeType": "YulFunctionCall",
"src": "849:43:20"
},
"nodeType": "YulExpressionStatement",
"src": "849:43:20"
},
{
"nodeType": "YulAssignment",
"src": "902:19:20",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "913:3:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "918:2:20",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "909:3:20"
},
"nodeType": "YulFunctionCall",
"src": "909:12:20"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "902:3:20"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "678:3:20",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "686:3:20",
"type": ""
}
],
"src": "544:383:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "998:53:20",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1015:3:20"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1038:5:20"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1020:17:20"
},
"nodeType": "YulFunctionCall",
"src": "1020:24:20"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1008:6:20"
},
"nodeType": "YulFunctionCall",
"src": "1008:37:20"
},
"nodeType": "YulExpressionStatement",
"src": "1008:37:20"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "986:5:20",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "993:3:20",
"type": ""
}
],
"src": "933:118:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1155:124:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1165:26:20",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1177:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1188:2:20",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1173:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1173:18:20"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1165:4:20"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1245:6:20"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1258:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1269:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1254:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1254:17:20"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "1201:43:20"
},
"nodeType": "YulFunctionCall",
"src": "1201:71:20"
},
"nodeType": "YulExpressionStatement",
"src": "1201:71:20"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1127:9:20",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1139:6:20",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1150:4:20",
"type": ""
}
],
"src": "1057:222:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1456:248:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1466:26:20",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1478:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1489:2:20",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1474:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1474:18:20"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1466:4:20"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1513:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1524:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1509:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1509:17:20"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1532:4:20"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1538:9:20"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1528:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1528:20:20"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1502:6:20"
},
"nodeType": "YulFunctionCall",
"src": "1502:47:20"
},
"nodeType": "YulExpressionStatement",
"src": "1502:47:20"
},
{
"nodeType": "YulAssignment",
"src": "1558:139:20",
"value": {
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1692:4:20"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1566:124:20"
},
"nodeType": "YulFunctionCall",
"src": "1566:131:20"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1558:4:20"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1436:9:20",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1451:4:20",
"type": ""
}
],
"src": "1285:419:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1808:124:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1818:26:20",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1830:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1841:2:20",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1826:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1826:18:20"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1818:4:20"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1898:6:20"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1911:9:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1922:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1907:3:20"
},
"nodeType": "YulFunctionCall",
"src": "1907:17:20"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "1854:43:20"
},
"nodeType": "YulFunctionCall",
"src": "1854:71:20"
},
"nodeType": "YulExpressionStatement",
"src": "1854:71:20"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1780:9:20",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1792:6:20",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1803:4:20",
"type": ""
}
],
"src": "1710:222:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2034:73:20",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2051:3:20"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2056:6:20"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2044:6:20"
},
"nodeType": "YulFunctionCall",
"src": "2044:19:20"
},
"nodeType": "YulExpressionStatement",
"src": "2044:19:20"
},
{
"nodeType": "YulAssignment",
"src": "2072:29:20",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2091:3:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2096:4:20",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2087:3:20"
},
"nodeType": "YulFunctionCall",
"src": "2087:14:20"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "2072:11:20"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2006:3:20",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2011:6:20",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "2022:11:20",
"type": ""
}
],
"src": "1938:169:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2158:51:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2168:35:20",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2197:5:20"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "2179:17:20"
},
"nodeType": "YulFunctionCall",
"src": "2179:24:20"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2168:7:20"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2140:5:20",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2150:7:20",
"type": ""
}
],
"src": "2113:96:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2260:81:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2270:65:20",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2285:5:20"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2292:42:20",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2281:3:20"
},
"nodeType": "YulFunctionCall",
"src": "2281:54:20"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2270:7:20"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2242:5:20",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2252:7:20",
"type": ""
}
],
"src": "2215:126:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2392:32:20",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2402:16:20",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2413:5:20"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2402:7:20"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2374:5:20",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2384:7:20",
"type": ""
}
],
"src": "2347:77:20"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2473:79:20",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2530:16:20",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2539:1:20",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2542:1:20",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2532:6:20"
},
"nodeType": "YulFunctionCall",
"src": "2532:12:20"
},
"nodeType": "YulExpressionStatement",
"src": "2532:12:20"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2496:5:20"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2521:5:20"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "2503:17:20"
},
"nodeType": "YulFunctionCall",
"src": "2503:24:20"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "2493:2:20"
},
"nodeType": "YulFunctionCall",
"src": "2493:35:20"