8161 lines
582 KiB
JSON
8161 lines
582 KiB
JSON
{
|
|
"contracts": {
|
|
"/home/arhan/algocitrae/contracts/Lock.sol": {
|
|
"Lock": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_unlockTime",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "when",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Withdrawal",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_newUnlockTime",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "extendLock",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getBalance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "owner",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address payable",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "recoverFunds",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "unlockTime",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "withdraw",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"stateMutability": "payable",
|
|
"type": "receive"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"bytecode": {
|
|
"functionDebugData": {
|
|
"@_41": {
|
|
"entryPoint": null,
|
|
"id": 41,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 0
|
|
},
|
|
"abi_decode_tuple_t_uint256_fromMemory": {
|
|
"entryPoint": 150,
|
|
"id": null,
|
|
"parameterSlots": 2,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_stringliteral_f6fa9918d4578fba07be58c41841a4c6937c19725f7f4601884cd186799a8413__to_t_string_memory_ptr__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 1
|
|
}
|
|
},
|
|
"generatedSources": [
|
|
{
|
|
"ast": {
|
|
"nativeSrc": "0:604:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "0:604:2",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "6:3:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "6:3:2",
|
|
"statements": []
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "95:103:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "95:103:2",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nativeSrc": "141:16:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "141:16:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "150:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "150:1:2",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "153:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "153:1:2",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nativeSrc": "143:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "143:6:2"
|
|
},
|
|
"nativeSrc": "143:12:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "143:12:2"
|
|
},
|
|
"nativeSrc": "143:12:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "143:12:2"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nativeSrc": "116:7:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "116:7:2"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "125:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "125:9:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nativeSrc": "112:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "112:3:2"
|
|
},
|
|
"nativeSrc": "112:23:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "112:23:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "137:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "137:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nativeSrc": "108:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "108:3:2"
|
|
},
|
|
"nativeSrc": "108:32:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "108:32:2"
|
|
},
|
|
"nativeSrc": "105:52:2",
|
|
"nodeType": "YulIf",
|
|
"src": "105:52:2"
|
|
},
|
|
{
|
|
"nativeSrc": "166:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "166:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "182:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "182:9:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nativeSrc": "176:5:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "176:5:2"
|
|
},
|
|
"nativeSrc": "176:16:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "176:16:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "166:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "166:6:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_uint256_fromMemory",
|
|
"nativeSrc": "14:184:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "61:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "61:9:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nativeSrc": "72:7:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "72:7:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "84:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "84:6:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "14:184:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "377:225:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "377:225:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "394:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "394:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "405:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "405:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "387:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "387:6:2"
|
|
},
|
|
"nativeSrc": "387:21:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "387:21:2"
|
|
},
|
|
"nativeSrc": "387:21:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "387:21:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "428:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "428:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "439:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "439:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "424:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "424:3:2"
|
|
},
|
|
"nativeSrc": "424:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "424:18:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "444:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "444:2:2",
|
|
"type": "",
|
|
"value": "35"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "417:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "417:6:2"
|
|
},
|
|
"nativeSrc": "417:30:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "417:30:2"
|
|
},
|
|
"nativeSrc": "417:30:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "417:30:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "467:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "467:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "478:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "478:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "463:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "463:3:2"
|
|
},
|
|
"nativeSrc": "463:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "463:18:2"
|
|
},
|
|
{
|
|
"hexValue": "556e6c6f636b2074696d652073686f756c6420626520696e2074686520667574",
|
|
"kind": "string",
|
|
"nativeSrc": "483:34:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "483:34:2",
|
|
"type": "",
|
|
"value": "Unlock time should be in the fut"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "456:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "456:6:2"
|
|
},
|
|
"nativeSrc": "456:62:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "456:62:2"
|
|
},
|
|
"nativeSrc": "456:62:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "456:62:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "538:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "538:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "549:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "549:2:2",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "534:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "534:3:2"
|
|
},
|
|
"nativeSrc": "534:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "534:18:2"
|
|
},
|
|
{
|
|
"hexValue": "757265",
|
|
"kind": "string",
|
|
"nativeSrc": "554:5:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "554:5:2",
|
|
"type": "",
|
|
"value": "ure"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "527:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "527:6:2"
|
|
},
|
|
"nativeSrc": "527:33:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "527:33:2"
|
|
},
|
|
"nativeSrc": "527:33:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "527:33:2"
|
|
},
|
|
{
|
|
"nativeSrc": "569:27:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "569:27:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "581:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "581:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "592:3:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "592:3:2",
|
|
"type": "",
|
|
"value": "128"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "577:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "577:3:2"
|
|
},
|
|
"nativeSrc": "577:19:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "577:19:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "569:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "569:4:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_f6fa9918d4578fba07be58c41841a4c6937c19725f7f4601884cd186799a8413__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nativeSrc": "203:399:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "354:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "354:9:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "368:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "368:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "203:399:2"
|
|
}
|
|
]
|
|
},
|
|
"contents": "{\n { }\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := mload(headStart)\n }\n function abi_encode_tuple_t_stringliteral_f6fa9918d4578fba07be58c41841a4c6937c19725f7f4601884cd186799a8413__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 35)\n mstore(add(headStart, 64), \"Unlock time should be in the fut\")\n mstore(add(headStart, 96), \"ure\")\n tail := add(headStart, 128)\n }\n}",
|
|
"id": 2,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"linkReferences": {},
|
|
"object": "60806040526040516104703803806104708339810160408190526020916096565b428111607e5760405162461bcd60e51b815260206004820152602360248201527f556e6c6f636b2074696d652073686f756c6420626520696e207468652066757460448201526275726560e81b606482015260840160405180910390fd5b5f55600180546001600160a01b0319163317905560ac565b5f6020828403121560a5575f80fd5b5051919050565b6103b7806100b95f395ff3fe608060405260043610610057575f3560e01c806312065fe014610062578063251c1aa3146100835780633ccfd60b1461009757806344ee3a1c146100ad5780638da5cb5b146100cc578063b79550be14610103575f80fd5b3661005e57005b5f80fd5b34801561006d575f80fd5b50475b6040519081526020015b60405180910390f35b34801561008e575f80fd5b506100705f5481565b3480156100a2575f80fd5b506100ab610117565b005b3480156100b8575f80fd5b506100ab6100c736600461033c565b610205565b3480156100d7575f80fd5b506001546100eb906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b34801561010e575f80fd5b506100ab610291565b5f544210156101665760405162461bcd60e51b8152602060048201526016602482015275165bdd4818d85b89dd081dda5d1a191c985dc81e595d60521b60448201526064015b60405180910390fd5b6001546001600160a01b031633146101905760405162461bcd60e51b815260040161015d90610353565b6040805147808252426020830152917fbf2ed60bd5b5965d685680c01195c9514e4382e28e3a5a2d2d5244bf59411b93910160405180910390a16001546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610201573d5f803e3d5ffd5b5050565b6001546001600160a01b0316331461022f5760405162461bcd60e51b815260040161015d90610353565b5f54811161028d5760405162461bcd60e51b815260206004820152602560248201527f4e657720756e6c6f636b2074696d65206d75737420626520696e207468652066604482015264757475726560d81b606482015260840161015d565b5f55565b6001546001600160a01b031633146102bb5760405162461bcd60e51b815260040161015d90610353565b5f544210156103055760405162461bcd60e51b8152602060048201526016602482015275119d5b991cc8185c99481cdd1a5b1b081b1bd8dad95960521b604482015260640161015d565b60015460405147916001600160a01b03169082156108fc029083905f818181858888f19350505050158015610201573d5f803e3d5ffd5b5f6020828403121561034c575f80fd5b5035919050565b6020808252601490820152732cb7ba9030b932b713ba103a34329037bbb732b960611b60408201526060019056fea2646970667358221220f8bd3b18f9322356eeda7a7c5322568c679f3df93f81603063e1347eebb9859964736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD PUSH2 0x470 CODESIZE SUB DUP1 PUSH2 0x470 DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH1 0x20 SWAP2 PUSH1 0x96 JUMP JUMPDEST TIMESTAMP DUP2 GT PUSH1 0x7E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x556E6C6F636B2074696D652073686F756C6420626520696E2074686520667574 PUSH1 0x44 DUP3 ADD MSTORE PUSH3 0x757265 PUSH1 0xE8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 SSTORE PUSH1 0x1 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH1 0xAC JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH1 0xA5 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x3B7 DUP1 PUSH2 0xB9 PUSH0 CODECOPY PUSH0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH2 0x62 JUMPI DUP1 PUSH4 0x251C1AA3 EQ PUSH2 0x83 JUMPI DUP1 PUSH4 0x3CCFD60B EQ PUSH2 0x97 JUMPI DUP1 PUSH4 0x44EE3A1C EQ PUSH2 0xAD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xCC JUMPI DUP1 PUSH4 0xB79550BE EQ PUSH2 0x103 JUMPI PUSH0 DUP1 REVERT JUMPDEST CALLDATASIZE PUSH2 0x5E JUMPI STOP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x6D JUMPI PUSH0 DUP1 REVERT JUMPDEST POP SELFBALANCE JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x8E JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH0 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA2 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0x117 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xB8 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0xC7 CALLDATASIZE PUSH1 0x4 PUSH2 0x33C JUMP JUMPDEST PUSH2 0x205 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xD7 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 SLOAD PUSH2 0xEB SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x7A JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x10E JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0x291 JUMP JUMPDEST PUSH0 SLOAD TIMESTAMP LT ISZERO PUSH2 0x166 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x165BDD4818D85B89DD081DDA5D1A191C985DC81E595D PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x190 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SELFBALANCE DUP1 DUP3 MSTORE TIMESTAMP PUSH1 0x20 DUP4 ADD MSTORE SWAP2 PUSH32 0xBF2ED60BD5B5965D685680C01195C9514E4382E28E3A5A2D2D5244BF59411B93 SWAP2 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 PUSH1 0x1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 DUP3 ISZERO PUSH2 0x8FC MUL SWAP1 DUP4 SWAP1 PUSH0 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x201 JUMPI RETURNDATASIZE PUSH0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH0 REVERT JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x22F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH0 SLOAD DUP2 GT PUSH2 0x28D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E657720756E6C6F636B2074696D65206D75737420626520696E207468652066 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x7574757265 PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x15D JUMP JUMPDEST PUSH0 SSTORE JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x2BB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH0 SLOAD TIMESTAMP LT ISZERO PUSH2 0x305 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x119D5B991CC8185C99481CDD1A5B1B081B1BD8DAD959 PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x15D JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x40 MLOAD SELFBALANCE SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP3 ISZERO PUSH2 0x8FC MUL SWAP1 DUP4 SWAP1 PUSH0 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x201 JUMPI RETURNDATASIZE PUSH0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH0 REVERT JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x34C JUMPI PUSH0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x14 SWAP1 DUP3 ADD MSTORE PUSH20 0x2CB7BA9030B932B713BA103A34329037BBB732B9 PUSH1 0x61 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xF8 0xBD EXTCODESIZE XOR 0xF9 ORIGIN 0x23 JUMP 0xEE 0xDA PUSH27 0x7C5322568C679F3DF93F81603063E1347EEBB9859964736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "92:1669:0:-:0;;;264:241;;;;;;;;;;;;;;;;;;:::i;:::-;350:15;336:11;:29;315:111;;;;-1:-1:-1;;;315:111:0;;405:2:2;315:111:0;;;387:21:2;444:2;424:18;;;417:30;483:34;463:18;;;456:62;-1:-1:-1;;;534:18:2;;;527:33;577:19;;315:111:0;;;;;;;;437:10;:24;471:5;:27;;-1:-1:-1;;;;;;471:27:0;487:10;471:27;;;92:1669;;14:184:2;84:6;137:2;125:9;116:7;112:23;108:32;105:52;;;153:1;150;143:12;105:52;-1:-1:-1;176:16:2;;14:184;-1:-1:-1;14:184:2:o;203:399::-;92:1669:0;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {
|
|
"@_144": {
|
|
"entryPoint": null,
|
|
"id": 144,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 0
|
|
},
|
|
"@extendLock_106": {
|
|
"entryPoint": 517,
|
|
"id": 106,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 0
|
|
},
|
|
"@getBalance_156": {
|
|
"entryPoint": null,
|
|
"id": 156,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 1
|
|
},
|
|
"@owner_9": {
|
|
"entryPoint": null,
|
|
"id": 9,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 0
|
|
},
|
|
"@recoverFunds_140": {
|
|
"entryPoint": 657,
|
|
"id": 140,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 0
|
|
},
|
|
"@unlockTime_7": {
|
|
"entryPoint": null,
|
|
"id": 7,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 0
|
|
},
|
|
"@withdraw_81": {
|
|
"entryPoint": 279,
|
|
"id": 81,
|
|
"parameterSlots": 0,
|
|
"returnSlots": 0
|
|
},
|
|
"abi_decode_tuple_t_uint256": {
|
|
"entryPoint": 828,
|
|
"id": null,
|
|
"parameterSlots": 2,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_address_payable__to_t_address_payable__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 2,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_stringliteral_09be2a1d7c98765b8c1bd9ab3700b54ab19d501eebe572af39b71382f17d12e8__to_t_string_memory_ptr__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a__to_t_string_memory_ptr__fromStack_reversed": {
|
|
"entryPoint": 851,
|
|
"id": null,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_stringliteral_5f68e5950a09f0a57cbd0ddd08910c5351d7255c93dc00d33fe526160a61e870__to_t_string_memory_ptr__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_stringliteral_89e55cc556893f1b78ca6c03cf10c4d7118711ad1963724f84ebb37df3159df5__to_t_string_memory_ptr__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 1,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 2,
|
|
"returnSlots": 1
|
|
},
|
|
"abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed": {
|
|
"entryPoint": null,
|
|
"id": null,
|
|
"parameterSlots": 3,
|
|
"returnSlots": 1
|
|
}
|
|
},
|
|
"generatedSources": [
|
|
{
|
|
"ast": {
|
|
"nativeSrc": "0:2312:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "0:2312:2",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "6:3:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "6:3:2",
|
|
"statements": []
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "115:76:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "115:76:2",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "125:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "125:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "137:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "137:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "148:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "148:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "133:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "133:3:2"
|
|
},
|
|
"nativeSrc": "133:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "133:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "125:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "125:4:2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "167:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "167:9:2"
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "178:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "178:6:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "160:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "160:6:2"
|
|
},
|
|
"nativeSrc": "160:25:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "160:25:2"
|
|
},
|
|
"nativeSrc": "160:25:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "160:25:2"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
|
|
"nativeSrc": "14:177:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "84:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "84:9:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "95:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "95:6:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "106:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "106:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "14:177:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "266:110:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "266:110:2",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nativeSrc": "312:16:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "312:16:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "321:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "321:1:2",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "324:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "324:1:2",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nativeSrc": "314:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "314:6:2"
|
|
},
|
|
"nativeSrc": "314:12:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "314:12:2"
|
|
},
|
|
"nativeSrc": "314:12:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "314:12:2"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nativeSrc": "287:7:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "287:7:2"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "296:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "296:9:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nativeSrc": "283:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "283:3:2"
|
|
},
|
|
"nativeSrc": "283:23:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "283:23:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "308:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "308:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nativeSrc": "279:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "279:3:2"
|
|
},
|
|
"nativeSrc": "279:32:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "279:32:2"
|
|
},
|
|
"nativeSrc": "276:52:2",
|
|
"nodeType": "YulIf",
|
|
"src": "276:52:2"
|
|
},
|
|
{
|
|
"nativeSrc": "337:33:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "337:33:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "360:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "360:9:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nativeSrc": "347:12:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "347:12:2"
|
|
},
|
|
"nativeSrc": "347:23:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "347:23:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "337:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "337:6:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_uint256",
|
|
"nativeSrc": "196:180:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "232:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "232:9:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nativeSrc": "243:7:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "243:7:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "255:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "255:6:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "196:180:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "498:102:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "498:102:2",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "508:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "508:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "520:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "520:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "531:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "531:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "516:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "516:3:2"
|
|
},
|
|
"nativeSrc": "516:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "516:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "508:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "508:4:2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "550:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "550:9:2"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "565:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "565:6:2"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "581:3:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "581:3:2",
|
|
"type": "",
|
|
"value": "160"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "586:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "586:1:2",
|
|
"type": "",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "shl",
|
|
"nativeSrc": "577:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "577:3:2"
|
|
},
|
|
"nativeSrc": "577:11:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "577:11:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "590:1:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "590:1:2",
|
|
"type": "",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nativeSrc": "573:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "573:3:2"
|
|
},
|
|
"nativeSrc": "573:19:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "573:19:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nativeSrc": "561:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "561:3:2"
|
|
},
|
|
"nativeSrc": "561:32:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "561:32:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "543:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "543:6:2"
|
|
},
|
|
"nativeSrc": "543:51:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "543:51:2"
|
|
},
|
|
"nativeSrc": "543:51:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "543:51:2"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_address_payable__to_t_address_payable__fromStack_reversed",
|
|
"nativeSrc": "381:219:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "467:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "467:9:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "478:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "478:6:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "489:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "489:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "381:219:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "779:172:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "779:172:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "796:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "796:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "807:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "807:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "789:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "789:6:2"
|
|
},
|
|
"nativeSrc": "789:21:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "789:21:2"
|
|
},
|
|
"nativeSrc": "789:21:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "789:21:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "830:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "830:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "841:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "841:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "826:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "826:3:2"
|
|
},
|
|
"nativeSrc": "826:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "826:18:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "846:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "846:2:2",
|
|
"type": "",
|
|
"value": "22"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "819:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "819:6:2"
|
|
},
|
|
"nativeSrc": "819:30:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "819:30:2"
|
|
},
|
|
"nativeSrc": "819:30:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "819:30:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "869:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "869:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "880:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "880:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "865:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "865:3:2"
|
|
},
|
|
"nativeSrc": "865:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "865:18:2"
|
|
},
|
|
{
|
|
"hexValue": "596f752063616e277420776974686472617720796574",
|
|
"kind": "string",
|
|
"nativeSrc": "885:24:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "885:24:2",
|
|
"type": "",
|
|
"value": "You can't withdraw yet"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "858:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "858:6:2"
|
|
},
|
|
"nativeSrc": "858:52:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "858:52:2"
|
|
},
|
|
"nativeSrc": "858:52:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "858:52:2"
|
|
},
|
|
{
|
|
"nativeSrc": "919:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "919:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "931:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "931:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "942:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "942:2:2",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "927:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "927:3:2"
|
|
},
|
|
"nativeSrc": "927:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "927:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "919:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "919:4:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_09be2a1d7c98765b8c1bd9ab3700b54ab19d501eebe572af39b71382f17d12e8__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nativeSrc": "605:346:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "756:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "756:9:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "770:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "770:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "605:346:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "1130:170:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "1130:170:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1147:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1147:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1158:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1158:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1140:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1140:6:2"
|
|
},
|
|
"nativeSrc": "1140:21:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1140:21:2"
|
|
},
|
|
"nativeSrc": "1140:21:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1140:21:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1181:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1181:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1192:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1192:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1177:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1177:3:2"
|
|
},
|
|
"nativeSrc": "1177:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1177:18:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1197:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1197:2:2",
|
|
"type": "",
|
|
"value": "20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1170:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1170:6:2"
|
|
},
|
|
"nativeSrc": "1170:30:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1170:30:2"
|
|
},
|
|
"nativeSrc": "1170:30:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1170:30:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1220:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1220:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1231:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1231:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1216:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1216:3:2"
|
|
},
|
|
"nativeSrc": "1216:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1216:18:2"
|
|
},
|
|
{
|
|
"hexValue": "596f75206172656e277420746865206f776e6572",
|
|
"kind": "string",
|
|
"nativeSrc": "1236:22:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1236:22:2",
|
|
"type": "",
|
|
"value": "You aren't the owner"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1209:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1209:6:2"
|
|
},
|
|
"nativeSrc": "1209:50:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1209:50:2"
|
|
},
|
|
"nativeSrc": "1209:50:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1209:50:2"
|
|
},
|
|
{
|
|
"nativeSrc": "1268:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1268:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1280:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1280:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1291:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1291:2:2",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1276:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1276:3:2"
|
|
},
|
|
"nativeSrc": "1276:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1276:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1268:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1268:4:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nativeSrc": "956:344:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1107:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1107:9:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1121:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1121:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "956:344:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "1434:119:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "1434:119:2",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "1444:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1444:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1456:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1456:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1467:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1467:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1452:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1452:3:2"
|
|
},
|
|
"nativeSrc": "1452:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1452:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1444:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1444:4:2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1486:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1486:9:2"
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "1497:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1497:6:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1479:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1479:6:2"
|
|
},
|
|
"nativeSrc": "1479:25:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1479:25:2"
|
|
},
|
|
"nativeSrc": "1479:25:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1479:25:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1524:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1524:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1535:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1535:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1520:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1520:3:2"
|
|
},
|
|
"nativeSrc": "1520:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1520:18:2"
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nativeSrc": "1540:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1540:6:2"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1513:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1513:6:2"
|
|
},
|
|
"nativeSrc": "1513:34:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1513:34:2"
|
|
},
|
|
"nativeSrc": "1513:34:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1513:34:2"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed",
|
|
"nativeSrc": "1305:248:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1395:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1395:9:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value1",
|
|
"nativeSrc": "1406:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1406:6:2",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nativeSrc": "1414:6:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1414:6:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1425:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1425:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1305:248:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "1732:227:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "1732:227:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1749:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1749:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1760:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1760:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1742:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1742:6:2"
|
|
},
|
|
"nativeSrc": "1742:21:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1742:21:2"
|
|
},
|
|
"nativeSrc": "1742:21:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1742:21:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1783:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1783:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1794:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1794:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1779:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1779:3:2"
|
|
},
|
|
"nativeSrc": "1779:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1779:18:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1799:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1799:2:2",
|
|
"type": "",
|
|
"value": "37"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1772:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1772:6:2"
|
|
},
|
|
"nativeSrc": "1772:30:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1772:30:2"
|
|
},
|
|
"nativeSrc": "1772:30:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1772:30:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1822:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1822:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1833:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1833:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1818:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1818:3:2"
|
|
},
|
|
"nativeSrc": "1818:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1818:18:2"
|
|
},
|
|
{
|
|
"hexValue": "4e657720756e6c6f636b2074696d65206d75737420626520696e207468652066",
|
|
"kind": "string",
|
|
"nativeSrc": "1838:34:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1838:34:2",
|
|
"type": "",
|
|
"value": "New unlock time must be in the f"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1811:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1811:6:2"
|
|
},
|
|
"nativeSrc": "1811:62:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1811:62:2"
|
|
},
|
|
"nativeSrc": "1811:62:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1811:62:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1893:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1893:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1904:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1904:2:2",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1889:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1889:3:2"
|
|
},
|
|
"nativeSrc": "1889:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1889:18:2"
|
|
},
|
|
{
|
|
"hexValue": "7574757265",
|
|
"kind": "string",
|
|
"nativeSrc": "1909:7:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1909:7:2",
|
|
"type": "",
|
|
"value": "uture"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "1882:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1882:6:2"
|
|
},
|
|
"nativeSrc": "1882:35:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1882:35:2"
|
|
},
|
|
"nativeSrc": "1882:35:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1882:35:2"
|
|
},
|
|
{
|
|
"nativeSrc": "1926:27:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1926:27:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1938:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1938:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1949:3:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1949:3:2",
|
|
"type": "",
|
|
"value": "128"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1934:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1934:3:2"
|
|
},
|
|
"nativeSrc": "1934:19:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1934:19:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1926:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1926:4:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_89e55cc556893f1b78ca6c03cf10c4d7118711ad1963724f84ebb37df3159df5__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nativeSrc": "1558:401:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "1709:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1709:9:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "1723:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1723:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1558:401:2"
|
|
},
|
|
{
|
|
"body": {
|
|
"nativeSrc": "2138:172:2",
|
|
"nodeType": "YulBlock",
|
|
"src": "2138:172:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "2155:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2155:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "2166:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2166:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "2148:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2148:6:2"
|
|
},
|
|
"nativeSrc": "2148:21:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2148:21:2"
|
|
},
|
|
"nativeSrc": "2148:21:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2148:21:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "2189:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2189:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "2200:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2200:2:2",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "2185:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2185:3:2"
|
|
},
|
|
"nativeSrc": "2185:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2185:18:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "2205:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2205:2:2",
|
|
"type": "",
|
|
"value": "22"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "2178:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2178:6:2"
|
|
},
|
|
"nativeSrc": "2178:30:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2178:30:2"
|
|
},
|
|
"nativeSrc": "2178:30:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2178:30:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "2228:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2228:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "2239:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2239:2:2",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "2224:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2224:3:2"
|
|
},
|
|
"nativeSrc": "2224:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2224:18:2"
|
|
},
|
|
{
|
|
"hexValue": "46756e647320617265207374696c6c206c6f636b6564",
|
|
"kind": "string",
|
|
"nativeSrc": "2244:24:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2244:24:2",
|
|
"type": "",
|
|
"value": "Funds are still locked"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nativeSrc": "2217:6:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2217:6:2"
|
|
},
|
|
"nativeSrc": "2217:52:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2217:52:2"
|
|
},
|
|
"nativeSrc": "2217:52:2",
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2217:52:2"
|
|
},
|
|
{
|
|
"nativeSrc": "2278:26:2",
|
|
"nodeType": "YulAssignment",
|
|
"src": "2278:26:2",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "2290:9:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2290:9:2"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "2301:2:2",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2301:2:2",
|
|
"type": "",
|
|
"value": "96"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "2286:3:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2286:3:2"
|
|
},
|
|
"nativeSrc": "2286:18:2",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2286:18:2"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "2278:4:2",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2278:4:2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_5f68e5950a09f0a57cbd0ddd08910c5351d7255c93dc00d33fe526160a61e870__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nativeSrc": "1964:346:2",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nativeSrc": "2115:9:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2115:9:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nativeSrc": "2129:4:2",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2129:4:2",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1964:346:2"
|
|
}
|
|
]
|
|
},
|
|
"contents": "{\n { }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := calldataload(headStart)\n }\n function abi_encode_tuple_t_address_payable__to_t_address_payable__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_stringliteral_09be2a1d7c98765b8c1bd9ab3700b54ab19d501eebe572af39b71382f17d12e8__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 22)\n mstore(add(headStart, 64), \"You can't withdraw yet\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 20)\n mstore(add(headStart, 64), \"You aren't the owner\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed(headStart, value1, value0) -> tail\n {\n tail := add(headStart, 64)\n mstore(headStart, value0)\n mstore(add(headStart, 32), value1)\n }\n function abi_encode_tuple_t_stringliteral_89e55cc556893f1b78ca6c03cf10c4d7118711ad1963724f84ebb37df3159df5__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 37)\n mstore(add(headStart, 64), \"New unlock time must be in the f\")\n mstore(add(headStart, 96), \"uture\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_5f68e5950a09f0a57cbd0ddd08910c5351d7255c93dc00d33fe526160a61e870__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 22)\n mstore(add(headStart, 64), \"Funds are still locked\")\n tail := add(headStart, 96)\n }\n}",
|
|
"id": 2,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "608060405260043610610057575f3560e01c806312065fe014610062578063251c1aa3146100835780633ccfd60b1461009757806344ee3a1c146100ad5780638da5cb5b146100cc578063b79550be14610103575f80fd5b3661005e57005b5f80fd5b34801561006d575f80fd5b50475b6040519081526020015b60405180910390f35b34801561008e575f80fd5b506100705f5481565b3480156100a2575f80fd5b506100ab610117565b005b3480156100b8575f80fd5b506100ab6100c736600461033c565b610205565b3480156100d7575f80fd5b506001546100eb906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b34801561010e575f80fd5b506100ab610291565b5f544210156101665760405162461bcd60e51b8152602060048201526016602482015275165bdd4818d85b89dd081dda5d1a191c985dc81e595d60521b60448201526064015b60405180910390fd5b6001546001600160a01b031633146101905760405162461bcd60e51b815260040161015d90610353565b6040805147808252426020830152917fbf2ed60bd5b5965d685680c01195c9514e4382e28e3a5a2d2d5244bf59411b93910160405180910390a16001546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610201573d5f803e3d5ffd5b5050565b6001546001600160a01b0316331461022f5760405162461bcd60e51b815260040161015d90610353565b5f54811161028d5760405162461bcd60e51b815260206004820152602560248201527f4e657720756e6c6f636b2074696d65206d75737420626520696e207468652066604482015264757475726560d81b606482015260840161015d565b5f55565b6001546001600160a01b031633146102bb5760405162461bcd60e51b815260040161015d90610353565b5f544210156103055760405162461bcd60e51b8152602060048201526016602482015275119d5b991cc8185c99481cdd1a5b1b081b1bd8dad95960521b604482015260640161015d565b60015460405147916001600160a01b03169082156108fc029083905f818181858888f19350505050158015610201573d5f803e3d5ffd5b5f6020828403121561034c575f80fd5b5035919050565b6020808252601490820152732cb7ba9030b932b713ba103a34329037bbb732b960611b60408201526060019056fea2646970667358221220f8bd3b18f9322356eeda7a7c5322568c679f3df93f81603063e1347eebb9859964736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH2 0x62 JUMPI DUP1 PUSH4 0x251C1AA3 EQ PUSH2 0x83 JUMPI DUP1 PUSH4 0x3CCFD60B EQ PUSH2 0x97 JUMPI DUP1 PUSH4 0x44EE3A1C EQ PUSH2 0xAD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xCC JUMPI DUP1 PUSH4 0xB79550BE EQ PUSH2 0x103 JUMPI PUSH0 DUP1 REVERT JUMPDEST CALLDATASIZE PUSH2 0x5E JUMPI STOP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x6D JUMPI PUSH0 DUP1 REVERT JUMPDEST POP SELFBALANCE JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x8E JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH0 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA2 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0x117 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xB8 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0xC7 CALLDATASIZE PUSH1 0x4 PUSH2 0x33C JUMP JUMPDEST PUSH2 0x205 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xD7 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 SLOAD PUSH2 0xEB SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x7A JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x10E JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH2 0xAB PUSH2 0x291 JUMP JUMPDEST PUSH0 SLOAD TIMESTAMP LT ISZERO PUSH2 0x166 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x165BDD4818D85B89DD081DDA5D1A191C985DC81E595D PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x190 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SELFBALANCE DUP1 DUP3 MSTORE TIMESTAMP PUSH1 0x20 DUP4 ADD MSTORE SWAP2 PUSH32 0xBF2ED60BD5B5965D685680C01195C9514E4382E28E3A5A2D2D5244BF59411B93 SWAP2 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 PUSH1 0x1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 DUP3 ISZERO PUSH2 0x8FC MUL SWAP1 DUP4 SWAP1 PUSH0 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x201 JUMPI RETURNDATASIZE PUSH0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH0 REVERT JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x22F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH0 SLOAD DUP2 GT PUSH2 0x28D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E657720756E6C6F636B2074696D65206D75737420626520696E207468652066 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x7574757265 PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x15D JUMP JUMPDEST PUSH0 SSTORE JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x2BB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x15D SWAP1 PUSH2 0x353 JUMP JUMPDEST PUSH0 SLOAD TIMESTAMP LT ISZERO PUSH2 0x305 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x119D5B991CC8185C99481CDD1A5B1B081B1BD8DAD959 PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x15D JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x40 MLOAD SELFBALANCE SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP3 ISZERO PUSH2 0x8FC MUL SWAP1 DUP4 SWAP1 PUSH0 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x201 JUMPI RETURNDATASIZE PUSH0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH0 REVERT JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x34C JUMPI PUSH0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x14 SWAP1 DUP3 ADD MSTORE PUSH20 0x2CB7BA9030B932B713BA103A34329037BBB732B9 PUSH1 0x61 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xF8 0xBD EXTCODESIZE XOR 0xF9 ORIGIN 0x23 JUMP 0xEE 0xDA PUSH27 0x7C5322568C679F3DF93F81603063E1347EEBB9859964736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "92:1669:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1662:97;;;;;;;;;;-1:-1:-1;1731:21:0;1662:97;;;160:25:2;;;148:2;133:18;1662:97:0;;;;;;;;145:25;;;;;;;;;;;;;;;;511:356;;;;;;;;;;;;;:::i;:::-;;940:245;;;;;;;;;;-1:-1:-1;940:245:0;;;;;:::i;:::-;;:::i;176:28::-;;;;;;;;;;-1:-1:-1;176:28:0;;;;-1:-1:-1;;;;;176:28:0;;;;;;-1:-1:-1;;;;;561:32:2;;;543:51;;531:2;516:18;176:28:0;381:219:2;1258:257:0;;;;;;;;;;;;;:::i;511:356::-;575:10;;556:15;:29;;548:64;;;;-1:-1:-1;;;548:64:0;;807:2:2;548:64:0;;;789:21:2;846:2;826:18;;;819:30;-1:-1:-1;;;865:18:2;;;858:52;927:18;;548:64:0;;;;;;;;;644:5;;-1:-1:-1;;;;;644:5:0;630:10;:19;622:52;;;;-1:-1:-1;;;622:52:0;;;;;;;:::i;:::-;739:36;;;703:21;1479:25:2;;;759:15:0;1535:2:2;1520:18;;1513:34;703:21:0;739:36;;1452:18:2;739:36:0;;;;;;;837:5;;:23;;-1:-1:-1;;;;;837:5:0;;;;:23;;;;;852:7;;837:5;:23;:5;:23;852:7;837:5;:23;;;;;;;;;;;;;;;;;;;;;538:329;511:356::o;940:245::-;1023:5;;-1:-1:-1;;;;;1023:5:0;1009:10;:19;1001:52;;;;-1:-1:-1;;;1001:52:0;;;;;;;:::i;:::-;1088:10;;1071:14;:27;1063:77;;;;-1:-1:-1;;;1063:77:0;;1760:2:2;1063:77:0;;;1742:21:2;1799:2;1779:18;;;1772:30;1838:34;1818:18;;;1811:62;-1:-1:-1;;;1889:18:2;;;1882:35;1934:19;;1063:77:0;1558:401:2;1063:77:0;1151:10;:27;940:245::o;1258:257::-;1321:5;;-1:-1:-1;;;;;1321:5:0;1307:10;:19;1299:52;;;;-1:-1:-1;;;1299:52:0;;;;;;;:::i;:::-;1388:10;;1369:15;:29;;1361:64;;;;-1:-1:-1;;;1361:64:0;;2166:2:2;1361:64:0;;;2148:21:2;2205:2;2185:18;;;2178:30;-1:-1:-1;;;2224:18:2;;;2217:52;2286:18;;1361:64:0;1964:346:2;1361:64:0;1485:5;;:23;;1454:21;;-1:-1:-1;;;;;1485:5:0;;:23;;;;;1454:21;;1436:15;1485:23;1436:15;1485:23;1454:21;1485:5;:23;;;;;;;;;;;;;;;;;;;196:180:2;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:2;;196:180;-1:-1:-1;196:180:2:o;956:344::-;1158:2;1140:21;;;1197:2;1177:18;;;1170:30;-1:-1:-1;;;1231:2:2;1216:18;;1209:50;1291:2;1276:18;;956:344::o"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "190200",
|
|
"executionCost": "infinite",
|
|
"totalCost": "infinite"
|
|
},
|
|
"external": {
|
|
"extendLock(uint256)": "26627",
|
|
"getBalance()": "149",
|
|
"owner()": "2402",
|
|
"recoverFunds()": "infinite",
|
|
"unlockTime()": "2282",
|
|
"withdraw()": "infinite"
|
|
}
|
|
},
|
|
"methodIdentifiers": {
|
|
"extendLock(uint256)": "44ee3a1c",
|
|
"getBalance()": "12065fe0",
|
|
"owner()": "8da5cb5b",
|
|
"recoverFunds()": "b79550be",
|
|
"unlockTime()": "251c1aa3",
|
|
"withdraw()": "3ccfd60b"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_unlockTime\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"when\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newUnlockTime\",\"type\":\"uint256\"}],\"name\":\"extendLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"recoverFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/arhan/algocitrae/contracts/Lock.sol\":\"Lock\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/arhan/algocitrae/contracts/Lock.sol\":{\"keccak256\":\"0x1d958625f665ce5b64210385a180219b6733c1b9491548c64bdb36dd073607f8\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://5a8e68e1ab656dd7ebaede1807f289196577fbc1af06c85febc33b1795fd997e\",\"dweb:/ipfs/QmZbRbHNex33g6rDvvpoay32YTNhT9Zp2mR6vYWZ61NWap\"]},\"/home/arhan/algocitrae/contracts/SafeMath.sol\":{\"keccak256\":\"0xbc02d523f38c5164be7f802e6d24bcb6683ebf968b47fac42ddaff6b009540e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8fef988f8e43414527362aaf483fb64b6ad9c2baa6bd81861468674dcd8c7ac9\",\"dweb:/ipfs/QmZenx5rATw9FSb7ySGLBD4MEcuYBRzQQwhCczRRpD3xqY\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [
|
|
{
|
|
"astId": 7,
|
|
"contract": "/home/arhan/algocitrae/contracts/Lock.sol:Lock",
|
|
"label": "unlockTime",
|
|
"offset": 0,
|
|
"slot": "0",
|
|
"type": "t_uint256"
|
|
},
|
|
{
|
|
"astId": 9,
|
|
"contract": "/home/arhan/algocitrae/contracts/Lock.sol:Lock",
|
|
"label": "owner",
|
|
"offset": 0,
|
|
"slot": "1",
|
|
"type": "t_address_payable"
|
|
}
|
|
],
|
|
"types": {
|
|
"t_address_payable": {
|
|
"encoding": "inplace",
|
|
"label": "address payable",
|
|
"numberOfBytes": "20"
|
|
},
|
|
"t_uint256": {
|
|
"encoding": "inplace",
|
|
"label": "uint256",
|
|
"numberOfBytes": "32"
|
|
}
|
|
}
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"/home/arhan/algocitrae/contracts/SafeMath.sol": {
|
|
"SafeMath": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"details": "Wrappers over Solidity's arithmetic operations.",
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220f2967ea7b2ce82e43a47ce214952651677f932d1763a0f56a77d0d06afe888b764736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x55 PUSH1 0x32 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH0 BYTE PUSH1 0x73 EQ PUSH1 0x26 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH0 MSTORE PUSH0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST ADDRESS PUSH0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 CALLCODE SWAP7 PUSH31 0xA7B2CE82E43A47CE214952651677F932D1763A0F56A77D0D06AFE888B76473 PUSH16 0x6C634300081A00330000000000000000 ",
|
|
"sourceMap": "122:6434:1:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;122:6434:1;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220f2967ea7b2ce82e43a47ce214952651677f932d1763a0f56a77d0d06afe888b764736f6c634300081a0033",
|
|
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 CALLCODE SWAP7 PUSH31 0xA7B2CE82E43A47CE214952651677F932D1763A0F56A77D0D06AFE888B76473 PUSH16 0x6C634300081A00330000000000000000 ",
|
|
"sourceMap": "122:6434:1:-:0;;;;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "17000",
|
|
"executionCost": "96",
|
|
"totalCost": "17096"
|
|
},
|
|
"internal": {
|
|
"add(uint256,uint256)": "infinite",
|
|
"div(uint256,uint256)": "infinite",
|
|
"div(uint256,uint256,string memory)": "infinite",
|
|
"mod(uint256,uint256)": "infinite",
|
|
"mod(uint256,uint256,string memory)": "infinite",
|
|
"mul(uint256,uint256)": "infinite",
|
|
"sub(uint256,uint256)": "infinite",
|
|
"sub(uint256,uint256,string memory)": "infinite",
|
|
"tryAdd(uint256,uint256)": "infinite",
|
|
"tryDiv(uint256,uint256)": "infinite",
|
|
"tryMod(uint256,uint256)": "infinite",
|
|
"tryMul(uint256,uint256)": "infinite",
|
|
"trySub(uint256,uint256)": "infinite"
|
|
}
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Wrappers over Solidity's arithmetic operations.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/arhan/algocitrae/contracts/SafeMath.sol\":\"SafeMath\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/arhan/algocitrae/contracts/SafeMath.sol\":{\"keccak256\":\"0xbc02d523f38c5164be7f802e6d24bcb6683ebf968b47fac42ddaff6b009540e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8fef988f8e43414527362aaf483fb64b6ad9c2baa6bd81861468674dcd8c7ac9\",\"dweb:/ipfs/QmZenx5rATw9FSb7ySGLBD4MEcuYBRzQQwhCczRRpD3xqY\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"/home/arhan/algocitrae/contracts/Lock.sol": {
|
|
"ast": {
|
|
"absolutePath": "/home/arhan/algocitrae/contracts/Lock.sol",
|
|
"exportedSymbols": {
|
|
"Lock": [
|
|
157
|
|
],
|
|
"SafeMath": [
|
|
469
|
|
]
|
|
},
|
|
"id": 158,
|
|
"license": "UNLICENSED",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "39:23:0"
|
|
},
|
|
{
|
|
"absolutePath": "/home/arhan/algocitrae/contracts/SafeMath.sol",
|
|
"file": "./SafeMath.sol",
|
|
"id": 2,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 158,
|
|
"sourceUnit": 470,
|
|
"src": "64:24:0",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "Lock",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 157,
|
|
"linearizedBaseContracts": [
|
|
157
|
|
],
|
|
"name": "Lock",
|
|
"nameLocation": "101:4:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"global": false,
|
|
"id": 5,
|
|
"libraryName": {
|
|
"id": 3,
|
|
"name": "SafeMath",
|
|
"nameLocations": [
|
|
"118:8:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 469,
|
|
"src": "118:8:0"
|
|
},
|
|
"nodeType": "UsingForDirective",
|
|
"src": "112:27:0",
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "131:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "251c1aa3",
|
|
"id": 7,
|
|
"mutability": "mutable",
|
|
"name": "unlockTime",
|
|
"nameLocation": "160:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 157,
|
|
"src": "145:25:0",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "145:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"functionSelector": "8da5cb5b",
|
|
"id": 9,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "199:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 157,
|
|
"src": "176:28:0",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 8,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "176:15:0",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "bf2ed60bd5b5965d685680c01195c9514e4382e28e3a5a2d2d5244bf59411b93",
|
|
"id": 15,
|
|
"name": "Withdrawal",
|
|
"nameLocation": "217:10:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 14,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 11,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "236:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "228:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 10,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "228:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "when",
|
|
"nameLocation": "252:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "244:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "244:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "227:30:0"
|
|
},
|
|
"src": "211:47:0"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 40,
|
|
"nodeType": "Block",
|
|
"src": "305:200:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 24,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 21,
|
|
"name": "_unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17,
|
|
"src": "336:11:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 22,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "350:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 23,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "356:9:0",
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "350:15:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "336:29:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "556e6c6f636b2074696d652073686f756c6420626520696e2074686520667574757265",
|
|
"id": 25,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "379:37:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_f6fa9918d4578fba07be58c41841a4c6937c19725f7f4601884cd186799a8413",
|
|
"typeString": "literal_string \"Unlock time should be in the future\""
|
|
},
|
|
"value": "Unlock time should be in the future"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_f6fa9918d4578fba07be58c41841a4c6937c19725f7f4601884cd186799a8413",
|
|
"typeString": "literal_string \"Unlock time should be in the future\""
|
|
}
|
|
],
|
|
"id": 20,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "315:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 26,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "315:111:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 27,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "315:111:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 30,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 28,
|
|
"name": "unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 7,
|
|
"src": "437:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 29,
|
|
"name": "_unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17,
|
|
"src": "450:11:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "437:24:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 31,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "437:24:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 38,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 32,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "471:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 35,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "487:3:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 36,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "491:6:0",
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "487:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 34,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "479:8:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_payable_$",
|
|
"typeString": "type(address payable)"
|
|
},
|
|
"typeName": {
|
|
"id": 33,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:8:0",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 37,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "479:19:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"src": "471:27:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"id": 39,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "471:27:0"
|
|
}
|
|
]
|
|
},
|
|
"id": 41,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 18,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 17,
|
|
"mutability": "mutable",
|
|
"name": "_unlockTime",
|
|
"nameLocation": "284:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 41,
|
|
"src": "276:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 16,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "276:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "275:21:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 19,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "305:0:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "264:241:0",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 80,
|
|
"nodeType": "Block",
|
|
"src": "538:329:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 48,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 45,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "556:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 46,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "562:9:0",
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "556:15:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">=",
|
|
"rightExpression": {
|
|
"id": 47,
|
|
"name": "unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 7,
|
|
"src": "575:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "556:29:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "596f752063616e277420776974686472617720796574",
|
|
"id": 49,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "587:24:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_09be2a1d7c98765b8c1bd9ab3700b54ab19d501eebe572af39b71382f17d12e8",
|
|
"typeString": "literal_string \"You can't withdraw yet\""
|
|
},
|
|
"value": "You can't withdraw yet"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_09be2a1d7c98765b8c1bd9ab3700b54ab19d501eebe572af39b71382f17d12e8",
|
|
"typeString": "literal_string \"You can't withdraw yet\""
|
|
}
|
|
],
|
|
"id": 44,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "548:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 50,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "548:64:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 51,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "548:64:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 56,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 53,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "630:3:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 54,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "634:6:0",
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "630:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 55,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "644:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"src": "630:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "596f75206172656e277420746865206f776e6572",
|
|
"id": 57,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "651:22:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
},
|
|
"value": "You aren't the owner"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
}
|
|
],
|
|
"id": 52,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "622:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 58,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "622:52:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 59,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "622:52:0"
|
|
},
|
|
{
|
|
"assignments": [
|
|
61
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 61,
|
|
"mutability": "mutable",
|
|
"name": "balance",
|
|
"nameLocation": "693:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 80,
|
|
"src": "685:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 60,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "685:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 67,
|
|
"initialValue": {
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 64,
|
|
"name": "this",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967268,
|
|
"src": "711:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
],
|
|
"id": 63,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "703:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_$",
|
|
"typeString": "type(address)"
|
|
},
|
|
"typeName": {
|
|
"id": 62,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "703:7:0",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 65,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "703:13:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 66,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "717:7:0",
|
|
"memberName": "balance",
|
|
"nodeType": "MemberAccess",
|
|
"src": "703:21:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "685:39:0"
|
|
},
|
|
{
|
|
"eventCall": {
|
|
"arguments": [
|
|
{
|
|
"id": 69,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 61,
|
|
"src": "750:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 70,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "759:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 71,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "765:9:0",
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "759:15:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 68,
|
|
"name": "Withdrawal",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 15,
|
|
"src": "739:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
|
|
"typeString": "function (uint256,uint256)"
|
|
}
|
|
},
|
|
"id": 72,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "739:36:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 73,
|
|
"nodeType": "EmitStatement",
|
|
"src": "734:41:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 77,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 61,
|
|
"src": "852:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 74,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "837:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"id": 76,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "843:8:0",
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"src": "837:14:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
|
|
"typeString": "function (uint256)"
|
|
}
|
|
},
|
|
"id": 78,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "837:23:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 79,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "837:23:0"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "3ccfd60b",
|
|
"id": 81,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "withdraw",
|
|
"nameLocation": "520:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 42,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "528:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 43,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "538:0:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "511:356:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 105,
|
|
"nodeType": "Block",
|
|
"src": "991:194:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 90,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 87,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1009:3:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 88,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1013:6:0",
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1009:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 89,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "1023:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"src": "1009:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "596f75206172656e277420746865206f776e6572",
|
|
"id": 91,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1030:22:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
},
|
|
"value": "You aren't the owner"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
}
|
|
],
|
|
"id": 86,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1001:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 92,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1001:52:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 93,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1001:52:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 97,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 95,
|
|
"name": "_newUnlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 83,
|
|
"src": "1071:14:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"id": 96,
|
|
"name": "unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 7,
|
|
"src": "1088:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1071:27:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "4e657720756e6c6f636b2074696d65206d75737420626520696e2074686520667574757265",
|
|
"id": 98,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1100:39:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_89e55cc556893f1b78ca6c03cf10c4d7118711ad1963724f84ebb37df3159df5",
|
|
"typeString": "literal_string \"New unlock time must be in the future\""
|
|
},
|
|
"value": "New unlock time must be in the future"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_89e55cc556893f1b78ca6c03cf10c4d7118711ad1963724f84ebb37df3159df5",
|
|
"typeString": "literal_string \"New unlock time must be in the future\""
|
|
}
|
|
],
|
|
"id": 94,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1063:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 99,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1063:77:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 100,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1063:77:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 103,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 101,
|
|
"name": "unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 7,
|
|
"src": "1151:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 102,
|
|
"name": "_newUnlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 83,
|
|
"src": "1164:14:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1151:27:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 104,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1151:27:0"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "44ee3a1c",
|
|
"id": 106,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "extendLock",
|
|
"nameLocation": "949:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 84,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 83,
|
|
"mutability": "mutable",
|
|
"name": "_newUnlockTime",
|
|
"nameLocation": "968:14:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 106,
|
|
"src": "960:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 82,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "960:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "959:24:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 85,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "991:0:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "940:245:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 139,
|
|
"nodeType": "Block",
|
|
"src": "1289:226:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 113,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 110,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "1307:3:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 111,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1311:6:0",
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1307:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"id": 112,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "1321:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"src": "1307:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "596f75206172656e277420746865206f776e6572",
|
|
"id": 114,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1328:22:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
},
|
|
"value": "You aren't the owner"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_345d93c1110e55177ee5f687f392a2e775da2aa3d491c8308e925f0505e3530a",
|
|
"typeString": "literal_string \"You aren't the owner\""
|
|
}
|
|
],
|
|
"id": 109,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1299:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 115,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1299:52:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 116,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1299:52:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 121,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"expression": {
|
|
"id": 118,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "1369:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 119,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1375:9:0",
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1369:15:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">=",
|
|
"rightExpression": {
|
|
"id": 120,
|
|
"name": "unlockTime",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 7,
|
|
"src": "1388:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1369:29:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "46756e647320617265207374696c6c206c6f636b6564",
|
|
"id": 122,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1400:24:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_5f68e5950a09f0a57cbd0ddd08910c5351d7255c93dc00d33fe526160a61e870",
|
|
"typeString": "literal_string \"Funds are still locked\""
|
|
},
|
|
"value": "Funds are still locked"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_5f68e5950a09f0a57cbd0ddd08910c5351d7255c93dc00d33fe526160a61e870",
|
|
"typeString": "literal_string \"Funds are still locked\""
|
|
}
|
|
],
|
|
"id": 117,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1361:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 123,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1361:64:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 124,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1361:64:0"
|
|
},
|
|
{
|
|
"assignments": [
|
|
126
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 126,
|
|
"mutability": "mutable",
|
|
"name": "balance",
|
|
"nameLocation": "1444:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 139,
|
|
"src": "1436:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 125,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1436:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 132,
|
|
"initialValue": {
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 129,
|
|
"name": "this",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967268,
|
|
"src": "1462:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
],
|
|
"id": 128,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "1454:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_$",
|
|
"typeString": "type(address)"
|
|
},
|
|
"typeName": {
|
|
"id": 127,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1454:7:0",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 130,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1454:13:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 131,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1468:7:0",
|
|
"memberName": "balance",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1454:21:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1436:39:0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 136,
|
|
"name": "balance",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 126,
|
|
"src": "1500:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 133,
|
|
"name": "owner",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "1485:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"id": 135,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1491:8:0",
|
|
"memberName": "transfer",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1485:14:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
|
|
"typeString": "function (uint256)"
|
|
}
|
|
},
|
|
"id": 137,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1485:23:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 138,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1485:23:0"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "b79550be",
|
|
"id": 140,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "recoverFunds",
|
|
"nameLocation": "1267:12:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 107,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1279:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 108,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1289:0:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "1258:257:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 143,
|
|
"nodeType": "Block",
|
|
"src": "1602:2:0",
|
|
"statements": []
|
|
},
|
|
"id": 144,
|
|
"implemented": true,
|
|
"kind": "receive",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 141,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1582:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 142,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1602:0:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "1575:29:0",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 155,
|
|
"nodeType": "Block",
|
|
"src": "1714:45:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 151,
|
|
"name": "this",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967268,
|
|
"src": "1739:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_contract$_Lock_$157",
|
|
"typeString": "contract Lock"
|
|
}
|
|
],
|
|
"id": 150,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "1731:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_$",
|
|
"typeString": "type(address)"
|
|
},
|
|
"typeName": {
|
|
"id": 149,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1731:7:0",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 152,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1731:13:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 153,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "1745:7:0",
|
|
"memberName": "balance",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1731:21:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 148,
|
|
"id": 154,
|
|
"nodeType": "Return",
|
|
"src": "1724:28:0"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "12065fe0",
|
|
"id": 156,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getBalance",
|
|
"nameLocation": "1671:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 145,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1681:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 148,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 147,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 156,
|
|
"src": "1705:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 146,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1705:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1704:9:0"
|
|
},
|
|
"scope": 157,
|
|
"src": "1662:97:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 158,
|
|
"src": "92:1669:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"src": "39:1723:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"/home/arhan/algocitrae/contracts/SafeMath.sol": {
|
|
"ast": {
|
|
"absolutePath": "/home/arhan/algocitrae/contracts/SafeMath.sol",
|
|
"exportedSymbols": {
|
|
"SafeMath": [
|
|
469
|
|
]
|
|
},
|
|
"id": 470,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 159,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "33:23:1"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "SafeMath",
|
|
"contractDependencies": [],
|
|
"contractKind": "library",
|
|
"documentation": {
|
|
"id": 160,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "58:63:1",
|
|
"text": " @dev Wrappers over Solidity's arithmetic operations."
|
|
},
|
|
"fullyImplemented": true,
|
|
"id": 469,
|
|
"linearizedBaseContracts": [
|
|
469
|
|
],
|
|
"name": "SafeMath",
|
|
"nameLocation": "130:8:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 191,
|
|
"nodeType": "Block",
|
|
"src": "357:140:1",
|
|
"statements": [
|
|
{
|
|
"id": 190,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "367:124:1",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
173
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 173,
|
|
"mutability": "mutable",
|
|
"name": "c",
|
|
"nameLocation": "399:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 190,
|
|
"src": "391:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 172,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "391:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 177,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 176,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 174,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 163,
|
|
"src": "403:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"id": 175,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 165,
|
|
"src": "407:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "403:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "391:17:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 180,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 178,
|
|
"name": "c",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 173,
|
|
"src": "426:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"id": 179,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 163,
|
|
"src": "430:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "426:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 185,
|
|
"nodeType": "IfStatement",
|
|
"src": "422:28:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "66616c7365",
|
|
"id": 181,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "441:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 182,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "448:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 183,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "440:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 171,
|
|
"id": 184,
|
|
"nodeType": "Return",
|
|
"src": "433:17:1"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 186,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "472:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"id": 187,
|
|
"name": "c",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 173,
|
|
"src": "478:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 188,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "471:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$",
|
|
"typeString": "tuple(bool,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 171,
|
|
"id": 189,
|
|
"nodeType": "Return",
|
|
"src": "464:16:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 161,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "145:131:1",
|
|
"text": " @dev Returns the addition of two unsigned integers, with an overflow flag.\n _Available since v3.4._"
|
|
},
|
|
"id": 192,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "tryAdd",
|
|
"nameLocation": "290:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 166,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 163,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "305:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 192,
|
|
"src": "297:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 162,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "297:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 165,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "316:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 192,
|
|
"src": "308:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 164,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "308:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "296:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 171,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 168,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 192,
|
|
"src": "342:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 167,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "342:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 170,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 192,
|
|
"src": "348:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 169,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "348:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "341:15:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "281:216:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 219,
|
|
"nodeType": "Block",
|
|
"src": "719:113:1",
|
|
"statements": [
|
|
{
|
|
"id": 218,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "729:97:1",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 206,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 204,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 197,
|
|
"src": "757:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"id": 205,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 195,
|
|
"src": "761:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "757:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 211,
|
|
"nodeType": "IfStatement",
|
|
"src": "753:28:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "66616c7365",
|
|
"id": 207,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "772:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 208,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "779:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 209,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "771:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 203,
|
|
"id": 210,
|
|
"nodeType": "Return",
|
|
"src": "764:17:1"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 212,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "803:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 215,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 213,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 195,
|
|
"src": "809:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "-",
|
|
"rightExpression": {
|
|
"id": 214,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 197,
|
|
"src": "813:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "809:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 216,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "802:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$",
|
|
"typeString": "tuple(bool,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 203,
|
|
"id": 217,
|
|
"nodeType": "Return",
|
|
"src": "795:20:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 193,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "503:135:1",
|
|
"text": " @dev Returns the substraction of two unsigned integers, with an overflow flag.\n _Available since v3.4._"
|
|
},
|
|
"id": 220,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "trySub",
|
|
"nameLocation": "652:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 198,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 195,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "667:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 220,
|
|
"src": "659:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 194,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "659:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 197,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "678:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 220,
|
|
"src": "670:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 196,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "670:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "658:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 203,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 200,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 220,
|
|
"src": "704:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 199,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "704:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 202,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 220,
|
|
"src": "710:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 201,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "710:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "703:15:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "643:189:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 261,
|
|
"nodeType": "Block",
|
|
"src": "1056:417:1",
|
|
"statements": [
|
|
{
|
|
"id": 260,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "1066:401:1",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 234,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 232,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 223,
|
|
"src": "1324:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 233,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1329:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1324:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 239,
|
|
"nodeType": "IfStatement",
|
|
"src": "1320:28:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 235,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1340:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 236,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1346:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 237,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1339:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 231,
|
|
"id": 238,
|
|
"nodeType": "Return",
|
|
"src": "1332:16:1"
|
|
}
|
|
},
|
|
{
|
|
"assignments": [
|
|
241
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 241,
|
|
"mutability": "mutable",
|
|
"name": "c",
|
|
"nameLocation": "1370:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 260,
|
|
"src": "1362:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 240,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1362:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 245,
|
|
"initialValue": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 244,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 242,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 223,
|
|
"src": "1374:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"id": 243,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 225,
|
|
"src": "1378:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1374:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1362:17:1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 250,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 248,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 246,
|
|
"name": "c",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 241,
|
|
"src": "1397:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"id": 247,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 223,
|
|
"src": "1401:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1397:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"id": 249,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 225,
|
|
"src": "1406:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1397:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 255,
|
|
"nodeType": "IfStatement",
|
|
"src": "1393:33:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "66616c7365",
|
|
"id": 251,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1417:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 252,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1424:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 253,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1416:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 231,
|
|
"id": 254,
|
|
"nodeType": "Return",
|
|
"src": "1409:17:1"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 256,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1448:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"id": 257,
|
|
"name": "c",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 241,
|
|
"src": "1454:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 258,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1447:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$",
|
|
"typeString": "tuple(bool,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 231,
|
|
"id": 259,
|
|
"nodeType": "Return",
|
|
"src": "1440:16:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 221,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "838:137:1",
|
|
"text": " @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n _Available since v3.4._"
|
|
},
|
|
"id": 262,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "tryMul",
|
|
"nameLocation": "989:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 226,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 223,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "1004:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 262,
|
|
"src": "996:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 222,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "996:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 225,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "1015:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 262,
|
|
"src": "1007:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 224,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1007:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "995:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 231,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 228,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 262,
|
|
"src": "1041:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 227,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1041:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 230,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 262,
|
|
"src": "1047:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 229,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1047:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1040:15:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "980:493:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 289,
|
|
"nodeType": "Block",
|
|
"src": "1698:114:1",
|
|
"statements": [
|
|
{
|
|
"id": 288,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "1708:98:1",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 276,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 274,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 267,
|
|
"src": "1736:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 275,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1741:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1736:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 281,
|
|
"nodeType": "IfStatement",
|
|
"src": "1732:29:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "66616c7365",
|
|
"id": 277,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1752:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 278,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1759:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 279,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1751:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 273,
|
|
"id": 280,
|
|
"nodeType": "Return",
|
|
"src": "1744:17:1"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 282,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1783:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 285,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 283,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 265,
|
|
"src": "1789:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"id": 284,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 267,
|
|
"src": "1793:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "1789:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 286,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1782:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$",
|
|
"typeString": "tuple(bool,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 273,
|
|
"id": 287,
|
|
"nodeType": "Return",
|
|
"src": "1775:20:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 263,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1479:138:1",
|
|
"text": " @dev Returns the division of two unsigned integers, with a division by zero flag.\n _Available since v3.4._"
|
|
},
|
|
"id": 290,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "tryDiv",
|
|
"nameLocation": "1631:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 268,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 265,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "1646:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 290,
|
|
"src": "1638:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 264,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1638:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 267,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "1657:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 290,
|
|
"src": "1649:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 266,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1649:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1637:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 273,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 270,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 290,
|
|
"src": "1683:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 269,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1683:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 272,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 290,
|
|
"src": "1689:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 271,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1689:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1682:15:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "1622:190:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 317,
|
|
"nodeType": "Block",
|
|
"src": "2047:114:1",
|
|
"statements": [
|
|
{
|
|
"id": 316,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "2057:98:1",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 304,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 302,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 295,
|
|
"src": "2085:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "==",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 303,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2090:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "2085:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 309,
|
|
"nodeType": "IfStatement",
|
|
"src": "2081:29:1",
|
|
"trueBody": {
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "66616c7365",
|
|
"id": 305,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2101:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "false"
|
|
},
|
|
{
|
|
"hexValue": "30",
|
|
"id": 306,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2108:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
}
|
|
],
|
|
"id": 307,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "2100:10:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_rational_0_by_1_$",
|
|
"typeString": "tuple(bool,int_const 0)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 301,
|
|
"id": 308,
|
|
"nodeType": "Return",
|
|
"src": "2093:17:1"
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"hexValue": "74727565",
|
|
"id": 310,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "bool",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "2132:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"value": "true"
|
|
},
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 313,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 311,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 293,
|
|
"src": "2138:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "%",
|
|
"rightExpression": {
|
|
"id": 312,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 295,
|
|
"src": "2142:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2138:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 314,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "2131:13:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$",
|
|
"typeString": "tuple(bool,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 301,
|
|
"id": 315,
|
|
"nodeType": "Return",
|
|
"src": "2124:20:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 291,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1818:148:1",
|
|
"text": " @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n _Available since v3.4._"
|
|
},
|
|
"id": 318,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "tryMod",
|
|
"nameLocation": "1980:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 296,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 293,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "1995:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 318,
|
|
"src": "1987:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 292,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1987:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 295,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "2006:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 318,
|
|
"src": "1998:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 294,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1998:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1986:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 301,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 298,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 318,
|
|
"src": "2032:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 297,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2032:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 300,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 318,
|
|
"src": "2038:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 299,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2038:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2031:15:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "1971:190:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 332,
|
|
"nodeType": "Block",
|
|
"src": "2463:29:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 330,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 328,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 321,
|
|
"src": "2480:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"id": 329,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 323,
|
|
"src": "2484:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2480:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 327,
|
|
"id": 331,
|
|
"nodeType": "Return",
|
|
"src": "2473:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 319,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2167:224:1",
|
|
"text": " @dev Returns the addition of two unsigned integers, reverting on\n overflow.\n Counterpart to Solidity's `+` operator.\n Requirements:\n - Addition cannot overflow."
|
|
},
|
|
"id": 333,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "add",
|
|
"nameLocation": "2405:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 324,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 321,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "2417:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 333,
|
|
"src": "2409:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 320,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2409:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 323,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "2428:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 333,
|
|
"src": "2420:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 322,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2420:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2408:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 327,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 326,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 333,
|
|
"src": "2454:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 325,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2454:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2453:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "2396:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 347,
|
|
"nodeType": "Block",
|
|
"src": "2830:29:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 345,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 343,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 336,
|
|
"src": "2847:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "-",
|
|
"rightExpression": {
|
|
"id": 344,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 338,
|
|
"src": "2851:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "2847:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 342,
|
|
"id": 346,
|
|
"nodeType": "Return",
|
|
"src": "2840:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 334,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2498:260:1",
|
|
"text": " @dev Returns the subtraction of two unsigned integers, reverting on\n overflow (when the result is negative).\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
|
|
},
|
|
"id": 348,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "sub",
|
|
"nameLocation": "2772:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 339,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 336,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "2784:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 348,
|
|
"src": "2776:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 335,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2776:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 338,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "2795:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 348,
|
|
"src": "2787:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 337,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2787:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2775:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 342,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 341,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 348,
|
|
"src": "2821:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 340,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2821:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2820:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "2763:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 362,
|
|
"nodeType": "Block",
|
|
"src": "3173:29:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 360,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 358,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 351,
|
|
"src": "3190:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"id": 359,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 353,
|
|
"src": "3194:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3190:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 357,
|
|
"id": 361,
|
|
"nodeType": "Return",
|
|
"src": "3183:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 349,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2865:236:1",
|
|
"text": " @dev Returns the multiplication of two unsigned integers, reverting on\n overflow.\n Counterpart to Solidity's `*` operator.\n Requirements:\n - Multiplication cannot overflow."
|
|
},
|
|
"id": 363,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mul",
|
|
"nameLocation": "3115:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 354,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 351,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "3127:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 363,
|
|
"src": "3119:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 350,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3119:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 353,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "3138:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 363,
|
|
"src": "3130:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 352,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3130:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3118:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 357,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 356,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 363,
|
|
"src": "3164:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 355,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3164:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3163:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "3106:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 377,
|
|
"nodeType": "Block",
|
|
"src": "3558:29:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 375,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 373,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 366,
|
|
"src": "3575:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"id": 374,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 368,
|
|
"src": "3579:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "3575:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 372,
|
|
"id": 376,
|
|
"nodeType": "Return",
|
|
"src": "3568:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 364,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3208:278:1",
|
|
"text": " @dev Returns the integer division of two unsigned integers, reverting on\n division by zero. The result is rounded towards zero.\n Counterpart to Solidity's `/` operator.\n Requirements:\n - The divisor cannot be zero."
|
|
},
|
|
"id": 378,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "div",
|
|
"nameLocation": "3500:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 369,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 366,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "3512:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 378,
|
|
"src": "3504:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 365,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3504:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 368,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "3523:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 378,
|
|
"src": "3515:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 367,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3515:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3503:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 372,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 371,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 378,
|
|
"src": "3549:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 370,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3549:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3548:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "3491:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 392,
|
|
"nodeType": "Block",
|
|
"src": "4107:29:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 390,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 388,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 381,
|
|
"src": "4124:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "%",
|
|
"rightExpression": {
|
|
"id": 389,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 383,
|
|
"src": "4128:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4124:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 387,
|
|
"id": 391,
|
|
"nodeType": "Return",
|
|
"src": "4117:12:1"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 379,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3593:442:1",
|
|
"text": " @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n reverting when dividing by zero.\n Counterpart to Solidity's `%` operator. This function uses a `revert`\n opcode (which leaves remaining gas untouched) while Solidity uses an\n invalid opcode to revert (consuming all remaining gas).\n Requirements:\n - The divisor cannot be zero."
|
|
},
|
|
"id": 393,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mod",
|
|
"nameLocation": "4049:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 384,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 381,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "4061:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 393,
|
|
"src": "4053:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 380,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4053:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 383,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "4072:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 393,
|
|
"src": "4064:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 382,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4064:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4052:22:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 387,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 386,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 393,
|
|
"src": "4098:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 385,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4098:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4097:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "4040:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 417,
|
|
"nodeType": "Block",
|
|
"src": "4695:106:1",
|
|
"statements": [
|
|
{
|
|
"id": 416,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "4705:90:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 408,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 406,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 398,
|
|
"src": "4737:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<=",
|
|
"rightExpression": {
|
|
"id": 407,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 396,
|
|
"src": "4742:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4737:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"id": 409,
|
|
"name": "errorMessage",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 400,
|
|
"src": "4745:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"id": 405,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "4729:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 410,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "4729:29:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 411,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "4729:29:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 414,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 412,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 396,
|
|
"src": "4779:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "-",
|
|
"rightExpression": {
|
|
"id": 413,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 398,
|
|
"src": "4783:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "4779:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 404,
|
|
"id": 415,
|
|
"nodeType": "Return",
|
|
"src": "4772:12:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 394,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4142:453:1",
|
|
"text": " @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n overflow (when the result is negative).\n CAUTION: This function is deprecated because it requires allocating memory for the error\n message unnecessarily. For custom revert reasons use {trySub}.\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
|
|
},
|
|
"id": 418,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "sub",
|
|
"nameLocation": "4609:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 401,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 396,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "4621:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 418,
|
|
"src": "4613:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 395,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4613:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 398,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "4632:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 418,
|
|
"src": "4624:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 397,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4624:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 400,
|
|
"mutability": "mutable",
|
|
"name": "errorMessage",
|
|
"nameLocation": "4649:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 418,
|
|
"src": "4635:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 399,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4635:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4612:50:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 404,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 403,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 418,
|
|
"src": "4686:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 402,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4686:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4685:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "4600:201:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 442,
|
|
"nodeType": "Block",
|
|
"src": "5603:105:1",
|
|
"statements": [
|
|
{
|
|
"id": 441,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "5613:89:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 433,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 431,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 423,
|
|
"src": "5645:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 432,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "5649:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "5645:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"id": 434,
|
|
"name": "errorMessage",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 425,
|
|
"src": "5652:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"id": 430,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "5637:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 435,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "5637:28:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 436,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "5637:28:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 439,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 437,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 421,
|
|
"src": "5686:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"id": 438,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 423,
|
|
"src": "5690:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "5686:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 429,
|
|
"id": 440,
|
|
"nodeType": "Return",
|
|
"src": "5679:12:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 419,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4807:696:1",
|
|
"text": " @dev Returns the integer division of two unsigned integers, reverting with custom message on\n division by zero. The result is rounded towards zero.\n Counterpart to Solidity's `%` operator. This function uses a `revert`\n opcode (which leaves remaining gas untouched) while Solidity uses an\n invalid opcode to revert (consuming all remaining gas).\n Counterpart to Solidity's `/` operator. Note: this function uses a\n `revert` opcode (which leaves remaining gas untouched) while Solidity\n uses an invalid opcode to revert (consuming all remaining gas).\n Requirements:\n - The divisor cannot be zero."
|
|
},
|
|
"id": 443,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "div",
|
|
"nameLocation": "5517:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 426,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 421,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "5529:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 443,
|
|
"src": "5521:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 420,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5521:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 423,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "5540:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 443,
|
|
"src": "5532:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 422,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5532:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 425,
|
|
"mutability": "mutable",
|
|
"name": "errorMessage",
|
|
"nameLocation": "5557:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 443,
|
|
"src": "5543:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 424,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5543:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5520:50:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 429,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 428,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 443,
|
|
"src": "5594:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 427,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5594:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5593:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "5508:200:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 467,
|
|
"nodeType": "Block",
|
|
"src": "6449:105:1",
|
|
"statements": [
|
|
{
|
|
"id": 466,
|
|
"nodeType": "UncheckedBlock",
|
|
"src": "6459:89:1",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 458,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 456,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 448,
|
|
"src": "6491:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 457,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "6495:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "6491:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"id": 459,
|
|
"name": "errorMessage",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 450,
|
|
"src": "6498:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string memory"
|
|
}
|
|
],
|
|
"id": 455,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "6483:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 460,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "6483:28:1",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 461,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "6483:28:1"
|
|
},
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 464,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 462,
|
|
"name": "a",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 446,
|
|
"src": "6532:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "%",
|
|
"rightExpression": {
|
|
"id": 463,
|
|
"name": "b",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 448,
|
|
"src": "6536:1:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "6532:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 454,
|
|
"id": 465,
|
|
"nodeType": "Return",
|
|
"src": "6525:12:1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 444,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5714:635:1",
|
|
"text": " @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n reverting with custom message when dividing by zero.\n CAUTION: This function is deprecated because it requires allocating memory for the error\n message unnecessarily. For custom revert reasons use {tryMod}.\n Counterpart to Solidity's `%` operator. This function uses a `revert`\n opcode (which leaves remaining gas untouched) while Solidity uses an\n invalid opcode to revert (consuming all remaining gas).\n Requirements:\n - The divisor cannot be zero."
|
|
},
|
|
"id": 468,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mod",
|
|
"nameLocation": "6363:3:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 451,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 446,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "6375:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 468,
|
|
"src": "6367:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 445,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6367:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 448,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "6386:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 468,
|
|
"src": "6378:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 447,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6378:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 450,
|
|
"mutability": "mutable",
|
|
"name": "errorMessage",
|
|
"nameLocation": "6403:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 468,
|
|
"src": "6389:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 449,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6389:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6366:50:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 454,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 453,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 468,
|
|
"src": "6440:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 452,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6440:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6439:9:1"
|
|
},
|
|
"scope": 469,
|
|
"src": "6354:200:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 470,
|
|
"src": "122:6434:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "33:6523:1"
|
|
},
|
|
"id": 1
|
|
}
|
|
}
|
|
} |