Skip to content

Instantly share code, notes, and snippets.

@antonvinceguinto
Created October 10, 2021 15:21
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 antonvinceguinto/782ae31fec1e9341716bbc103b90a355 to your computer and use it in GitHub Desktop.
Save antonvinceguinto/782ae31fec1e9341716bbc103b90a355 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
{
"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": {
"@_55": {
"entryPoint": null,
"id": 55,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506103c0806100606000396000f3fe60806040526004361061002d5760003560e01c80638da5cb5b1461006f578063f274c8971461009a5761006d565b3661006d577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258743334604051610063929190610286565b60405180910390a1005b005b34801561007b57600080fd5b506100846100c3565b604051610091919061026b565b60405180910390f35b3480156100a657600080fd5b506100c160048036038101906100bc91906101ea565b6100e7565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c906102af565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156101bb573d6000803e3d6000fd5b505050565b6000813590506101cf8161035c565b92915050565b6000813590506101e481610373565b92915050565b600080604083850312156102015761020061032e565b5b600061020f858286016101c0565b9250506020610220858286016101d5565b9150509250929050565b610233816102e0565b82525050565b60006102466012836102cf565b915061025182610333565b602082019050919050565b61026581610324565b82525050565b6000602082019050610280600083018461022a565b92915050565b600060408201905061029b600083018561022a565b6102a8602083018461025c565b9392505050565b600060208201905081810360008301526102c881610239565b9050919050565b600082825260208201905092915050565b60006102eb82610304565b9050919050565b60006102fd82610304565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f416374696f6e206e6f7420616c6c6f7765640000000000000000000000000000600082015250565b610365816102f2565b811461037057600080fd5b50565b61037c81610324565b811461038757600080fd5b5056fea2646970667358221220954b24cc3cdda2d14b7b4b52cd4be39c342d691350f9768411190d852ba86c4764736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLER PUSH1 0x0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP PUSH2 0x3C0 DUP1 PUSH2 0x60 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 0x8DA5CB5B EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0xF274C897 EQ PUSH2 0x9A JUMPI PUSH2 0x6D JUMP JUMPDEST CALLDATASIZE PUSH2 0x6D JUMPI PUSH32 0x88A5966D370B9919B20F3E2C13FF65706F196A4E32CC2C12BF57088F88525874 CALLER CALLVALUE PUSH1 0x40 MLOAD PUSH2 0x63 SWAP3 SWAP2 SWAP1 PUSH2 0x286 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 STOP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x84 PUSH2 0xC3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x91 SWAP2 SWAP1 PUSH2 0x26B JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xC1 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBC SWAP2 SWAP1 PUSH2 0x1EA JUMP JUMPDEST PUSH2 0xE7 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x175 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x16C SWAP1 PUSH2 0x2AF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC DUP3 SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x1BB JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1CF DUP2 PUSH2 0x35C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1E4 DUP2 PUSH2 0x373 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x201 JUMPI PUSH2 0x200 PUSH2 0x32E JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x20F DUP6 DUP3 DUP7 ADD PUSH2 0x1C0 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x220 DUP6 DUP3 DUP7 ADD PUSH2 0x1D5 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH2 0x233 DUP2 PUSH2 0x2E0 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x246 PUSH1 0x12 DUP4 PUSH2 0x2CF JUMP JUMPDEST SWAP2 POP PUSH2 0x251 DUP3 PUSH2 0x333 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x265 DUP2 PUSH2 0x324 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x280 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x22A JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 ADD SWAP1 POP PUSH2 0x29B PUSH1 0x0 DUP4 ADD DUP6 PUSH2 0x22A JUMP JUMPDEST PUSH2 0x2A8 PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x25C JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x2C8 DUP2 PUSH2 0x239 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EB DUP3 PUSH2 0x304 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2FD DUP3 PUSH2 0x304 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x416374696F6E206E6F7420616C6C6F7765640000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH2 0x365 DUP2 PUSH2 0x2F2 JUMP JUMPDEST DUP2 EQ PUSH2 0x370 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x37C DUP2 PUSH2 0x324 JUMP JUMPDEST DUP2 EQ PUSH2 0x387 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP6 0x4B 0x24 0xCC EXTCODECOPY 0xDD LOG2 0xD1 0x4B PUSH28 0x4B52CD4BE39C342D691350F9768411190D852BA86C4764736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "57:450:0:-:0;;;456:49;;;;;;;;;;488:10;480:5;;:18;;;;;;;;;;;;;;;;;;57:450;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@_22": {
"entryPoint": null,
"id": 22,
"parameterSlots": 0,
"returnSlots": 0
},
"@_5": {
"entryPoint": null,
"id": 5,
"parameterSlots": 0,
"returnSlots": 0
},
"@owner_46": {
"entryPoint": 195,
"id": 46,
"parameterSlots": 0,
"returnSlots": 0
},
"@withdrawMoney_44": {
"entryPoint": 231,
"id": 44,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_decode_t_address_payable": {
"entryPoint": 448,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 469,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_address_payablet_uint256": {
"entryPoint": 490,
"id": null,
"parameterSlots": 2,
"returnSlots": 2
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 554,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b_to_t_string_memory_ptr_fromStack": {
"entryPoint": 569,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 604,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 619,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed": {
"entryPoint": 646,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 687,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 719,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 736,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_address_payable": {
"entryPoint": 754,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 772,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 804,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 814,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"store_literal_in_memory_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b": {
"entryPoint": 819,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address_payable": {
"entryPoint": 860,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 883,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:3792:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "67:95:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "99:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "86:12:1"
},
"nodeType": "YulFunctionCall",
"src": "86:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "77:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "150:5:1"
}
],
"functionName": {
"name": "validator_revert_t_address_payable",
"nodeType": "YulIdentifier",
"src": "115:34:1"
},
"nodeType": "YulFunctionCall",
"src": "115:41:1"
},
"nodeType": "YulExpressionStatement",
"src": "115:41:1"
}
]
},
"name": "abi_decode_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "45:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "53:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "61:5:1",
"type": ""
}
],
"src": "7:155:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "220:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "230:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "252:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "239:12:1"
},
"nodeType": "YulFunctionCall",
"src": "239:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "230:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "295:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "268:26:1"
},
"nodeType": "YulFunctionCall",
"src": "268:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "268:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "198:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "206:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "214:5:1",
"type": ""
}
],
"src": "168:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "404:399:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "450:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "452:77:1"
},
"nodeType": "YulFunctionCall",
"src": "452:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "452:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "425:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "434:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "421:3:1"
},
"nodeType": "YulFunctionCall",
"src": "421:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "446:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "417:3:1"
},
"nodeType": "YulFunctionCall",
"src": "417:32:1"
},
"nodeType": "YulIf",
"src": "414:119:1"
},
{
"nodeType": "YulBlock",
"src": "543:125:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "558:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "572:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "562:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "587:71:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "630:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "641:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "626:3:1"
},
"nodeType": "YulFunctionCall",
"src": "626:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "650:7:1"
}
],
"functionName": {
"name": "abi_decode_t_address_payable",
"nodeType": "YulIdentifier",
"src": "597:28:1"
},
"nodeType": "YulFunctionCall",
"src": "597:61:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "587:6:1"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "678:118:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "693:16:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "707:2:1",
"type": "",
"value": "32"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "697:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "723:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "758:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "769:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "754:3:1"
},
"nodeType": "YulFunctionCall",
"src": "754:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "778:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "733:20:1"
},
"nodeType": "YulFunctionCall",
"src": "733:53:1"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "723:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_address_payablet_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "366:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "377:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "389:6:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "397:6:1",
"type": ""
}
],
"src": "313:490:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "874:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "891:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "914:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "896:17:1"
},
"nodeType": "YulFunctionCall",
"src": "896:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "884:6:1"
},
"nodeType": "YulFunctionCall",
"src": "884:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "884:37:1"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "862:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "869:3:1",
"type": ""
}
],
"src": "809:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1079:220:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1089:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1155:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1160:2:1",
"type": "",
"value": "18"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1096:58:1"
},
"nodeType": "YulFunctionCall",
"src": "1096:67:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1089:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1261:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b",
"nodeType": "YulIdentifier",
"src": "1172:88:1"
},
"nodeType": "YulFunctionCall",
"src": "1172:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "1172:93:1"
},
{
"nodeType": "YulAssignment",
"src": "1274:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1285:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1290:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1281:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1281:12:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1274:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1067:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1075:3:1",
"type": ""
}
],
"src": "933:366:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1370:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1387:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1410:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1392:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1392:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1380:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1380:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "1380:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1358:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1365:3:1",
"type": ""
}
],
"src": "1305:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1527:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1537:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1549:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1560:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1545:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1545:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1537:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1617:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1630:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1641:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1626:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1626:17:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "1573:43:1"
},
"nodeType": "YulFunctionCall",
"src": "1573:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "1573:71:1"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1499:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1511:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1522:4:1",
"type": ""
}
],
"src": "1429:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1783:206:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1793:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1805:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1816:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1801:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1801:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1793:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1873:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1886:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1897:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1882:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1882:17:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "1829:43:1"
},
"nodeType": "YulFunctionCall",
"src": "1829:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "1829:71:1"
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1954:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1967:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1978:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1963:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1963:18:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "1910:43:1"
},
"nodeType": "YulFunctionCall",
"src": "1910:72:1"
},
"nodeType": "YulExpressionStatement",
"src": "1910:72:1"
}
]
},
"name": "abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1747:9:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1759:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1767:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1778:4:1",
"type": ""
}
],
"src": "1657:332:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2166:248:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2176:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2188:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2199:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2184:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2184:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2176:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2223:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2234:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2219:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2219:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2242:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2248:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2238:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2238:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2212:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2212:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "2212:47:1"
},
{
"nodeType": "YulAssignment",
"src": "2268:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2402:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "2276:124:1"
},
"nodeType": "YulFunctionCall",
"src": "2276:131:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2268:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2146:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2161:4:1",
"type": ""
}
],
"src": "1995:419:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2460:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2470:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2486:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2480:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2480:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "2470:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "2453:6:1",
"type": ""
}
],
"src": "2420:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2597:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2614:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2619:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2607:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2607:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "2607:19:1"
},
{
"nodeType": "YulAssignment",
"src": "2635:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2654:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2659:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2650:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2650:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "2635:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2569:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2574:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "2585:11:1",
"type": ""
}
],
"src": "2501:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2721:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2731:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2760:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "2742:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2742:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2731:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2703:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2713:7:1",
"type": ""
}
],
"src": "2676:96:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2831:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2841:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2870:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "2852:17:1"
},
"nodeType": "YulFunctionCall",
"src": "2852:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2841:7:1"
}
]
}
]
},
"name": "cleanup_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2813:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2823:7:1",
"type": ""
}
],
"src": "2778:104:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2933:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2943:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2958:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2965:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2954:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2954:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "2943:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2915:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "2925:7:1",
"type": ""
}
],
"src": "2888:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3065:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3075:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "3086:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "3075:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3047:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "3057:7:1",
"type": ""
}
],
"src": "3020:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3192:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3209:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3212:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3202:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3202:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3202:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "3103:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3315:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3332:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3335:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3325:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3325:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3325:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "3226:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3455:62:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3477:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3485:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3473:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3473:14:1"
},
{
"hexValue": "416374696f6e206e6f7420616c6c6f776564",
"kind": "string",
"nodeType": "YulLiteral",
"src": "3489:20:1",
"type": "",
"value": "Action not allowed"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3466:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3466:44:1"
},
"nodeType": "YulExpressionStatement",
"src": "3466:44:1"
}
]
},
"name": "store_literal_in_memory_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3447:6:1",
"type": ""
}
],
"src": "3349:168:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3574:87:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3639:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3648:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3651:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3641:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3641:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3641:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3597:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3630:5:1"
}
],
"functionName": {
"name": "cleanup_t_address_payable",
"nodeType": "YulIdentifier",
"src": "3604:25:1"
},
"nodeType": "YulFunctionCall",
"src": "3604:32:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "3594:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3594:43:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "3587:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3587:51:1"
},
"nodeType": "YulIf",
"src": "3584:71:1"
}
]
},
"name": "validator_revert_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3567:5:1",
"type": ""
}
],
"src": "3523:138:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3710:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3767:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3776:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3779:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3769:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3769:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "3769:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3733:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3758:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "3740:17:1"
},
"nodeType": "YulFunctionCall",
"src": "3740:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "3730:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3730:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "3723:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3723:43:1"
},
"nodeType": "YulIf",
"src": "3720:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3703:5:1",
"type": ""
}
],
"src": "3667:122:1"
}
]
},
"contents": "{\n\n function abi_decode_t_address_payable(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address_payable(value)\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_address_payablet_uint256(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address_payable(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 18)\n store_literal_in_memory_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value1, add(headStart, 32))\n\n }\n\n function abi_encode_tuple_t_stringliteral_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b__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_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_address_payable(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function store_literal_in_memory_32c7620b5360e60589e0401697015dce3c79159a7bdfc332f8060d2e478c957b(memPtr) {\n\n mstore(add(memPtr, 0), \"Action not allowed\")\n\n }\n\n function validator_revert_t_address_payable(value) {\n if iszero(eq(value, cleanup_t_address_payable(value))) { revert(0, 0) }\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "60806040526004361061002d5760003560e01c80638da5cb5b1461006f578063f274c8971461009a5761006d565b3661006d577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258743334604051610063929190610286565b60405180910390a1005b005b34801561007b57600080fd5b506100846100c3565b604051610091919061026b565b60405180910390f35b3480156100a657600080fd5b506100c160048036038101906100bc91906101ea565b6100e7565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c906102af565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156101bb573d6000803e3d6000fd5b505050565b6000813590506101cf8161035c565b92915050565b6000813590506101e481610373565b92915050565b600080604083850312156102015761020061032e565b5b600061020f858286016101c0565b9250506020610220858286016101d5565b9150509250929050565b610233816102e0565b82525050565b60006102466012836102cf565b915061025182610333565b602082019050919050565b61026581610324565b82525050565b6000602082019050610280600083018461022a565b92915050565b600060408201905061029b600083018561022a565b6102a8602083018461025c565b9392505050565b600060208201905081810360008301526102c881610239565b9050919050565b600082825260208201905092915050565b60006102eb82610304565b9050919050565b60006102fd82610304565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f416374696f6e206e6f7420616c6c6f7765640000000000000000000000000000600082015250565b610365816102f2565b811461037057600080fd5b50565b61037c81610324565b811461038757600080fd5b5056fea2646970667358221220954b24cc3cdda2d14b7b4b52cd4be39c342d691350f9768411190d852ba86c4764736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2D JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0xF274C897 EQ PUSH2 0x9A JUMPI PUSH2 0x6D JUMP JUMPDEST CALLDATASIZE PUSH2 0x6D JUMPI PUSH32 0x88A5966D370B9919B20F3E2C13FF65706F196A4E32CC2C12BF57088F88525874 CALLER CALLVALUE PUSH1 0x40 MLOAD PUSH2 0x63 SWAP3 SWAP2 SWAP1 PUSH2 0x286 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 STOP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x7B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x84 PUSH2 0xC3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x91 SWAP2 SWAP1 PUSH2 0x26B JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xC1 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBC SWAP2 SWAP1 PUSH2 0x1EA JUMP JUMPDEST PUSH2 0xE7 JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x175 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x16C SWAP1 PUSH2 0x2AF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC DUP3 SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x1BB JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1CF DUP2 PUSH2 0x35C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1E4 DUP2 PUSH2 0x373 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x201 JUMPI PUSH2 0x200 PUSH2 0x32E JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x20F DUP6 DUP3 DUP7 ADD PUSH2 0x1C0 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x220 DUP6 DUP3 DUP7 ADD PUSH2 0x1D5 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH2 0x233 DUP2 PUSH2 0x2E0 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x246 PUSH1 0x12 DUP4 PUSH2 0x2CF JUMP JUMPDEST SWAP2 POP PUSH2 0x251 DUP3 PUSH2 0x333 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x265 DUP2 PUSH2 0x324 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x280 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x22A JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 ADD SWAP1 POP PUSH2 0x29B PUSH1 0x0 DUP4 ADD DUP6 PUSH2 0x22A JUMP JUMPDEST PUSH2 0x2A8 PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x25C JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x2C8 DUP2 PUSH2 0x239 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EB DUP3 PUSH2 0x304 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2FD DUP3 PUSH2 0x304 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x416374696F6E206E6F7420616C6C6F7765640000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH2 0x365 DUP2 PUSH2 0x2F2 JUMP JUMPDEST DUP2 EQ PUSH2 0x370 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x37C DUP2 PUSH2 0x324 JUMP JUMPDEST DUP2 EQ PUSH2 0x387 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP6 0x4B 0x24 0xCC EXTCODECOPY 0xDD LOG2 0xD1 0x4B PUSH28 0x4B52CD4BE39C342D691350F9768411190D852BA86C4764736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "57:450:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;208:31;217:10;229:9;208:31;;;;;;;:::i;:::-;;;;;;;;57:450;;;429:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;256:163;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;429:20;;;;;;;;;;;;:::o;256:163::-;348:10;339:19;;:5;;;;;;;;;;:19;;;331:50;;;;;;;;;;;;:::i;:::-;;;;;;;;;391:3;:12;;:21;404:7;391:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;256:163;;:::o;7:155:1:-;61:5;99:6;86:20;77:29;;115:41;150:5;115:41;:::i;:::-;7:155;;;;:::o;168:139::-;214:5;252:6;239:20;230:29;;268:33;295:5;268:33;:::i;:::-;168:139;;;;:::o;313:490::-;389:6;397;446:2;434:9;425:7;421:23;417:32;414:119;;;452:79;;:::i;:::-;414:119;572:1;597:61;650:7;641:6;630:9;626:22;597:61;:::i;:::-;587:71;;543:125;707:2;733:53;778:7;769:6;758:9;754:22;733:53;:::i;:::-;723:63;;678:118;313:490;;;;;:::o;809:118::-;896:24;914:5;896:24;:::i;:::-;891:3;884:37;809:118;;:::o;933:366::-;1075:3;1096:67;1160:2;1155:3;1096:67;:::i;:::-;1089:74;;1172:93;1261:3;1172:93;:::i;:::-;1290:2;1285:3;1281:12;1274:19;;933:366;;;:::o;1305:118::-;1392:24;1410:5;1392:24;:::i;:::-;1387:3;1380:37;1305:118;;:::o;1429:222::-;1522:4;1560:2;1549:9;1545:18;1537:26;;1573:71;1641:1;1630:9;1626:17;1617:6;1573:71;:::i;:::-;1429:222;;;;:::o;1657:332::-;1778:4;1816:2;1805:9;1801:18;1793:26;;1829:71;1897:1;1886:9;1882:17;1873:6;1829:71;:::i;:::-;1910:72;1978:2;1967:9;1963:18;1954:6;1910:72;:::i;:::-;1657:332;;;;;:::o;1995:419::-;2161:4;2199:2;2188:9;2184:18;2176:26;;2248:9;2242:4;2238:20;2234:1;2223:9;2219:17;2212:47;2276:131;2402:4;2276:131;:::i;:::-;2268:139;;1995:419;;;:::o;2501:169::-;2585:11;2619:6;2614:3;2607:19;2659:4;2654:3;2650:14;2635:29;;2501:169;;;;:::o;2676:96::-;2713:7;2742:24;2760:5;2742:24;:::i;:::-;2731:35;;2676:96;;;:::o;2778:104::-;2823:7;2852:24;2870:5;2852:24;:::i;:::-;2841:35;;2778:104;;;:::o;2888:126::-;2925:7;2965:42;2958:5;2954:54;2943:65;;2888:126;;;:::o;3020:77::-;3057:7;3086:5;3075:16;;3020:77;;;:::o;3226:117::-;3335:1;3332;3325:12;3349:168;3489:20;3485:1;3477:6;3473:14;3466:44;3349:168;:::o;3523:138::-;3604:32;3630:5;3604:32;:::i;:::-;3597:5;3594:43;3584:71;;3651:1;3648;3641:12;3584:71;3523:138;:::o;3667:122::-;3740:24;3758:5;3740:24;:::i;:::-;3733:5;3730:35;3720:63;;3779:1;3776;3769:12;3720:63;3667:122;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "192000",
"executionCost": "24498",
"totalCost": "216498"
},
"external": {
"": "107",
"owner()": "2489",
"withdrawMoney(address,uint256)": "infinite"
}
},
"methodIdentifiers": {
"owner()": "8da5cb5b",
"withdrawMoney(address,uint256)": "f274c897"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "Received",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "withdrawMoney",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
}
{
"compiler": {
"version": "0.8.7+commit.e28d00a7"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "Received",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "withdrawMoney",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"SimpleWallet.sol": "SimpleWallet"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"SimpleWallet.sol": {
"keccak256": "0xb6736cec47fea587ef835bee84f9e05806319d129397626f76fc067f61b06a51",
"license": "MIT",
"urls": [
"bzz-raw://837d7a2918f2de85587eb80ac4d0e4afedb79988c035acc22566723ba4cee2cc",
"dweb:/ipfs/Qmda6QR4wKaLcGj8q5PYCebYR1KJ1qprv9G5ztkf1RnHNm"
]
}
},
"version": 1
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract SimpleWallet {
fallback() external payable {}
event Received(address, uint);
receive() external payable {
emit Received(msg.sender, msg.value);
}
function withdrawMoney(address payable _to, uint _amount) public {
require(owner == msg.sender, 'Action not allowed');
_to.transfer(_amount);
}
address public owner;
constructor() {
owner = msg.sender;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment