Skip to content

Instantly share code, notes, and snippets.

@mdip226
Created October 16, 2021 23:16
Show Gist options
  • Save mdip226/dd7af3ee9808ab55dd39f0aa27b4476c to your computer and use it in GitHub Desktop.
Save mdip226/dd7af3ee9808ab55dd39f0aa27b4476c 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": {
"@_36": {
"entryPoint": null,
"id": 36,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060006001819055506000808190555033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610698806100706000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634717f97c146100515780634900a2851461006f5780639a0e7d661461008b578063d55ec9c1146100a9575b600080fd5b6100596100c5565b60405161006691906103c2565b60405180910390f35b6100896004803603810190610084919061030b565b6100ce565b005b610093610101565b6040516100a091906103c2565b60405180910390f35b6100c360048036038101906100be91906102c2565b61010b565b005b60008054905090565b806000808282546100df919061044a565b92505081905550600160008154809291906100f99061050d565b919050555050565b6000600154905090565b60005b81518110156101f65760008083838151811061012d5761012c610585565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166103e860405161015a9061038d565b60006040518083038185875af1925050503d8060008114610197576040519150601f19603f3d011682016040523d82523d6000602084013e61019c565b606091505b5091509150816101e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d8906103a2565b60405180910390fd5b505080806101ee9061050d565b91505061010e565b5050565b600061020d61020884610402565b6103dd565b905080838252602082019050828560208602820111156102305761022f6105e8565b5b60005b858110156102605781610246888261026a565b845260208401935060208301925050600181019050610233565b5050509392505050565b60008135905061027981610634565b92915050565b600082601f830112610294576102936105e3565b5b81356102a48482602086016101fa565b91505092915050565b6000813590506102bc8161064b565b92915050565b6000602082840312156102d8576102d76105f2565b5b600082013567ffffffffffffffff8111156102f6576102f56105ed565b5b6103028482850161027f565b91505092915050565b600060208284031215610321576103206105f2565b5b600061032f848285016102ad565b91505092915050565b6000610345601483610439565b915061035082610608565b602082019050919050565b600061036860008361042e565b915061037382610631565b600082019050919050565b610387816104d2565b82525050565b60006103988261035b565b9150819050919050565b600060208201905081810360008301526103bb81610338565b9050919050565b60006020820190506103d7600083018461037e565b92915050565b60006103e76103f8565b90506103f382826104dc565b919050565b6000604051905090565b600067ffffffffffffffff82111561041d5761041c6105b4565b5b602082029050602081019050919050565b600081905092915050565b600082825260208201905092915050565b6000610455826104d2565b9150610460836104d2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561049557610494610556565b5b828201905092915050565b60006104ab826104b2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6104e5826105f7565b810181811067ffffffffffffffff82111715610504576105036105b4565b5b80604052505050565b6000610518826104d2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561054b5761054a610556565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b50565b61063d816104a0565b811461064857600080fd5b50565b610654816104d2565b811461065f57600080fd5b5056fea26469706673582212201286b1d7cff3fa49f001e839fb048fd893f1405770256b2aaf1fe9bf45a33c3f64736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 PUSH1 0x1 DUP2 SWAP1 SSTORE POP PUSH1 0x0 DUP1 DUP2 SWAP1 SSTORE POP CALLER PUSH1 0x2 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP PUSH2 0x698 DUP1 PUSH2 0x70 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x4717F97C EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x4900A285 EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0x9A0E7D66 EQ PUSH2 0x8B JUMPI DUP1 PUSH4 0xD55EC9C1 EQ PUSH2 0xA9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xC5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x3C2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x89 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x84 SWAP2 SWAP1 PUSH2 0x30B JUMP JUMPDEST PUSH2 0xCE JUMP JUMPDEST STOP JUMPDEST PUSH2 0x93 PUSH2 0x101 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA0 SWAP2 SWAP1 PUSH2 0x3C2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xC3 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBE SWAP2 SWAP1 PUSH2 0x2C2 JUMP JUMPDEST PUSH2 0x10B JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0xDF SWAP2 SWAP1 PUSH2 0x44A JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH1 0x1 PUSH1 0x0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0xF9 SWAP1 PUSH2 0x50D JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x1F6 JUMPI PUSH1 0x0 DUP1 DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x12D JUMPI PUSH2 0x12C PUSH2 0x585 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x3E8 PUSH1 0x40 MLOAD PUSH2 0x15A SWAP1 PUSH2 0x38D 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 0x197 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 0x19C JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP2 POP SWAP2 POP DUP2 PUSH2 0x1E1 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1D8 SWAP1 PUSH2 0x3A2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP DUP1 DUP1 PUSH2 0x1EE SWAP1 PUSH2 0x50D JUMP JUMPDEST SWAP2 POP POP PUSH2 0x10E JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x20D PUSH2 0x208 DUP5 PUSH2 0x402 JUMP JUMPDEST PUSH2 0x3DD JUMP JUMPDEST SWAP1 POP DUP1 DUP4 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP DUP3 DUP6 PUSH1 0x20 DUP7 MUL DUP3 ADD GT ISZERO PUSH2 0x230 JUMPI PUSH2 0x22F PUSH2 0x5E8 JUMP JUMPDEST JUMPDEST PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x260 JUMPI DUP2 PUSH2 0x246 DUP9 DUP3 PUSH2 0x26A JUMP JUMPDEST DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP4 ADD SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x233 JUMP JUMPDEST POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x279 DUP2 PUSH2 0x634 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x294 JUMPI PUSH2 0x293 PUSH2 0x5E3 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2A4 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x1FA JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x2BC DUP2 PUSH2 0x64B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2D8 JUMPI PUSH2 0x2D7 PUSH2 0x5F2 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x2F6 JUMPI PUSH2 0x2F5 PUSH2 0x5ED JUMP JUMPDEST JUMPDEST PUSH2 0x302 DUP5 DUP3 DUP6 ADD PUSH2 0x27F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x321 JUMPI PUSH2 0x320 PUSH2 0x5F2 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x32F DUP5 DUP3 DUP6 ADD PUSH2 0x2AD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x345 PUSH1 0x14 DUP4 PUSH2 0x439 JUMP JUMPDEST SWAP2 POP PUSH2 0x350 DUP3 PUSH2 0x608 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x368 PUSH1 0x0 DUP4 PUSH2 0x42E JUMP JUMPDEST SWAP2 POP PUSH2 0x373 DUP3 PUSH2 0x631 JUMP JUMPDEST PUSH1 0x0 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x387 DUP2 PUSH2 0x4D2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x398 DUP3 PUSH2 0x35B JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x3BB DUP2 PUSH2 0x338 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x3D7 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x37E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3E7 PUSH2 0x3F8 JUMP JUMPDEST SWAP1 POP PUSH2 0x3F3 DUP3 DUP3 PUSH2 0x4DC JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x41D JUMPI PUSH2 0x41C PUSH2 0x5B4 JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP3 MUL SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x455 DUP3 PUSH2 0x4D2 JUMP JUMPDEST SWAP2 POP PUSH2 0x460 DUP4 PUSH2 0x4D2 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x495 JUMPI PUSH2 0x494 PUSH2 0x556 JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4AB DUP3 PUSH2 0x4B2 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 PUSH2 0x4E5 DUP3 PUSH2 0x5F7 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x504 JUMPI PUSH2 0x503 PUSH2 0x5B4 JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x518 DUP3 PUSH2 0x4D2 JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x54B JUMPI PUSH2 0x54A PUSH2 0x556 JUMP JUMPDEST JUMPDEST PUSH1 0x1 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4661696C656420746F2073656E64204574686572000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x63D DUP2 PUSH2 0x4A0 JUMP JUMPDEST DUP2 EQ PUSH2 0x648 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x654 DUP2 PUSH2 0x4D2 JUMP JUMPDEST DUP2 EQ PUSH2 0x65F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SLT DUP7 0xB1 0xD7 0xCF RETURN STATICCALL 0x49 CREATE ADD 0xE8 CODECOPY 0xFB DIV DUP16 0xD8 SWAP4 CALL BLOCKHASH JUMPI PUSH17 0x256B2AAF1FE9BF45A33C3F64736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "26:973:0:-:0;;;253:87;;;;;;;;;;289:1;276:10;:14;;;;310:1;300:7;:11;;;;325:10;317:5;;:18;;;;;;;;;;;;;;;;;;26:973;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@getResults_44": {
"entryPoint": 197,
"id": 44,
"parameterSlots": 0,
"returnSlots": 1
},
"@getTotalVotes_52": {
"entryPoint": 257,
"id": 52,
"parameterSlots": 0,
"returnSlots": 1
},
"@registerVoters_103": {
"entryPoint": 267,
"id": 103,
"parameterSlots": 1,
"returnSlots": 0
},
"@sendBallot_65": {
"entryPoint": 206,
"id": 65,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 506,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_address_payable": {
"entryPoint": 618,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 639,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 685,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 706,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 779,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack": {
"entryPoint": 824,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 859,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 894,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 909,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 930,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 962,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 989,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 1016,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 1026,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 1070,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 1081,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_add_t_uint256": {
"entryPoint": 1098,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address_payable": {
"entryPoint": 1184,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 1202,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 1234,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 1244,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"increment_t_uint256": {
"entryPoint": 1293,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 1366,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 1413,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 1460,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 1507,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef": {
"entryPoint": 1512,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 1517,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 1522,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 1527,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb": {
"entryPoint": 1544,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470": {
"entryPoint": 1585,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address_payable": {
"entryPoint": 1588,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 1611,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:8095:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "142:636:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "152:98:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "242:6:1"
}
],
"functionName": {
"name": "array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "177:64:1"
},
"nodeType": "YulFunctionCall",
"src": "177:72:1"
}
],
"functionName": {
"name": "allocate_memory",
"nodeType": "YulIdentifier",
"src": "161:15:1"
},
"nodeType": "YulFunctionCall",
"src": "161:89:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "152:5:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "259:16:1",
"value": {
"name": "array",
"nodeType": "YulIdentifier",
"src": "270:5:1"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "263:3:1",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "292:5:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "299:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "285:6:1"
},
"nodeType": "YulFunctionCall",
"src": "285:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "285:21:1"
},
{
"nodeType": "YulAssignment",
"src": "315:23:1",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "326:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "333:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "322:3:1"
},
"nodeType": "YulFunctionCall",
"src": "322:16:1"
},
"variableNames": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "315:3:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "348:17:1",
"value": {
"name": "offset",
"nodeType": "YulIdentifier",
"src": "359:6:1"
},
"variables": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "352:3:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "414:103:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulIdentifier",
"src": "428:77:1"
},
"nodeType": "YulFunctionCall",
"src": "428:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "428:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "384:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "393:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "401:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "389:3:1"
},
"nodeType": "YulFunctionCall",
"src": "389:17:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "380:3:1"
},
"nodeType": "YulFunctionCall",
"src": "380:27:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "409:3:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "377:2:1"
},
"nodeType": "YulFunctionCall",
"src": "377:36:1"
},
"nodeType": "YulIf",
"src": "374:143:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "586:186:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "601:21:1",
"value": {
"name": "src",
"nodeType": "YulIdentifier",
"src": "619:3:1"
},
"variables": [
{
"name": "elementPos",
"nodeType": "YulTypedName",
"src": "605:10:1",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "643:3:1"
},
{
"arguments": [
{
"name": "elementPos",
"nodeType": "YulIdentifier",
"src": "677:10:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "689:3:1"
}
],
"functionName": {
"name": "abi_decode_t_address_payable",
"nodeType": "YulIdentifier",
"src": "648:28:1"
},
"nodeType": "YulFunctionCall",
"src": "648:45:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "636:6:1"
},
"nodeType": "YulFunctionCall",
"src": "636:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "636:58:1"
},
{
"nodeType": "YulAssignment",
"src": "707:21:1",
"value": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "718:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "723:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "714:3:1"
},
"nodeType": "YulFunctionCall",
"src": "714:14:1"
},
"variableNames": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "707:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "741:21:1",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "752:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "757:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "748:3:1"
},
"nodeType": "YulFunctionCall",
"src": "748:14:1"
},
"variableNames": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "741:3:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "548:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "551:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "545:2:1"
},
"nodeType": "YulFunctionCall",
"src": "545:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "559:18:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "561:14:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "570:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "573:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "566:3:1"
},
"nodeType": "YulFunctionCall",
"src": "566:9:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "561:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "530:14:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "532:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "541:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "536:1:1",
"type": ""
}
]
}
]
},
"src": "526:246:1"
}
]
},
"name": "abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "112:6:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "120:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "128:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "136:5:1",
"type": ""
}
],
"src": "32:746:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "844:95:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "854:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "876:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "863:12:1"
},
"nodeType": "YulFunctionCall",
"src": "863:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "854:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "927:5:1"
}
],
"functionName": {
"name": "validator_revert_t_address_payable",
"nodeType": "YulIdentifier",
"src": "892:34:1"
},
"nodeType": "YulFunctionCall",
"src": "892:41:1"
},
"nodeType": "YulExpressionStatement",
"src": "892:41:1"
}
]
},
"name": "abi_decode_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "822:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "830:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "838:5:1",
"type": ""
}
],
"src": "784:155:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1055:301:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1104:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "1106:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1106:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1106:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1083:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1091:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1079:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1079:17:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1098:3:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1075:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1075:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1068:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1068:35:1"
},
"nodeType": "YulIf",
"src": "1065:122:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "1196:34:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1223:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1210:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1210:20:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1200:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1239:111:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1323:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1331:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1319:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1319:17:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1338:6:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1346:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "1248:70:1"
},
"nodeType": "YulFunctionCall",
"src": "1248:102:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "1239:5:1"
}
]
}
]
},
"name": "abi_decode_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1033:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1041:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "1049:5:1",
"type": ""
}
],
"src": "970:386:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1414:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1424:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1446:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1433:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1433:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1424:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1489:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "1462:26:1"
},
"nodeType": "YulFunctionCall",
"src": "1462:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1462:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1392:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1400:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1408:5:1",
"type": ""
}
],
"src": "1362:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1606:456: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:310:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1760:45:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1791:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1802:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1787:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1787:17:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1774:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1774:31:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1764:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1852:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "1854:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1854:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1854:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1824:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1832:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1821:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1821:30:1"
},
"nodeType": "YulIf",
"src": "1818:117:1"
},
{
"nodeType": "YulAssignment",
"src": "1949:96:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2017:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2028:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2013:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2013:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2037:7:1"
}
],
"functionName": {
"name": "abi_decode_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "1959:53:1"
},
"nodeType": "YulFunctionCall",
"src": "1959:86:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1949:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_array$_t_address_payable_$dyn_memory_ptr",
"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": "1507:555:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2134:263:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2180:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "2182:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2182:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2182:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2155:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2164:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2151:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2151:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2176:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2147:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2147:32:1"
},
"nodeType": "YulIf",
"src": "2144:119:1"
},
{
"nodeType": "YulBlock",
"src": "2273:117:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2288:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2302:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2292:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "2317:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2352:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2363:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2348:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2348:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2372:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "2327:20:1"
},
"nodeType": "YulFunctionCall",
"src": "2327:53:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2317:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2104:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2115:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2127:6:1",
"type": ""
}
],
"src": "2068:329:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2549:220:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2559:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2625:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2630:2:1",
"type": "",
"value": "20"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "2566:58:1"
},
"nodeType": "YulFunctionCall",
"src": "2566:67:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2559:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2731:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb",
"nodeType": "YulIdentifier",
"src": "2642:88:1"
},
"nodeType": "YulFunctionCall",
"src": "2642:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "2642:93:1"
},
{
"nodeType": "YulAssignment",
"src": "2744:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2755:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2760:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2751:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2751:12:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2744:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2537:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2545:3:1",
"type": ""
}
],
"src": "2403:366:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2938:235:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2948:90:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3031:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3036:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "2955:75:1"
},
"nodeType": "YulFunctionCall",
"src": "2955:83:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2948:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3136:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nodeType": "YulIdentifier",
"src": "3047:88:1"
},
"nodeType": "YulFunctionCall",
"src": "3047:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "3047:93:1"
},
{
"nodeType": "YulAssignment",
"src": "3149:18:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3160:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3165:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3156:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3156:11:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3149:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2926:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2934:3:1",
"type": ""
}
],
"src": "2775:398:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3244:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3261:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3284:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "3266:17:1"
},
"nodeType": "YulFunctionCall",
"src": "3266:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3254:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3254:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "3254:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3232:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3239:3:1",
"type": ""
}
],
"src": "3179:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3491:191:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3502:154:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3652:3:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulIdentifier",
"src": "3509:141:1"
},
"nodeType": "YulFunctionCall",
"src": "3509:147:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3502:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3666:10:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3673:3:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3666: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": "3478:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3487:3:1",
"type": ""
}
],
"src": "3303:379:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3859:248:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3869:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3881:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3892:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3877:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3877:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3869:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3916:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3927:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3912:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3912:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3935:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3941:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3931:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3931:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3905:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3905:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "3905:47:1"
},
{
"nodeType": "YulAssignment",
"src": "3961:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4095:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "3969:124:1"
},
"nodeType": "YulFunctionCall",
"src": "3969:131:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3961:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3839:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3854:4:1",
"type": ""
}
],
"src": "3688:419:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4211:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4221:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4233:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4244:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4229:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4229:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4221:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4301:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4314:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4325:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4310:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4310:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "4257:43:1"
},
"nodeType": "YulFunctionCall",
"src": "4257:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "4257:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4183:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4195:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4206:4:1",
"type": ""
}
],
"src": "4113:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4382:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4392:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "4402:18:1"
},
"nodeType": "YulFunctionCall",
"src": "4402:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4392:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4451:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4459:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "4431:19:1"
},
"nodeType": "YulFunctionCall",
"src": "4431:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "4431:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "4366:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "4375:6:1",
"type": ""
}
],
"src": "4341:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4516:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4526:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4542:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4536:5:1"
},
"nodeType": "YulFunctionCall",
"src": "4536:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4526:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "4509:6:1",
"type": ""
}
],
"src": "4476:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4647:229:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4752:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "4754:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4754:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4754:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4724:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4732:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4721:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4721:30:1"
},
"nodeType": "YulIf",
"src": "4718:56:1"
},
{
"nodeType": "YulAssignment",
"src": "4784:25:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4796:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4804:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "4792:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4792:17:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4784:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "4846:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4858:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4864:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4854:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4854:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4846:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4631:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "4642:4:1",
"type": ""
}
],
"src": "4557:319:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4995:34:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5005:18:1",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5020:3:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "5005:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "4967:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4972:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "4983:11:1",
"type": ""
}
],
"src": "4882:147:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5131:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5148:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5153:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5141:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5141:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "5141:19:1"
},
{
"nodeType": "YulAssignment",
"src": "5169:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5188:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5193:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5184:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5184:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "5169:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5103:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5108:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "5119:11:1",
"type": ""
}
],
"src": "5035:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5254:261:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5264:25:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5287:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "5269:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5269:20:1"
},
"variableNames": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5264:1:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "5298:25:1",
"value": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5321:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "5303:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5303:20:1"
},
"variableNames": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5298:1:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5461:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "5463:16:1"
},
"nodeType": "YulFunctionCall",
"src": "5463:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "5463:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5382:1:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5389:66:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5457:1:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "5385:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5385:74:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "5379:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5379:81:1"
},
"nodeType": "YulIf",
"src": "5376:107:1"
},
{
"nodeType": "YulAssignment",
"src": "5493:16:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5504:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5507:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5500:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5500:9:1"
},
"variableNames": [
{
"name": "sum",
"nodeType": "YulIdentifier",
"src": "5493:3:1"
}
]
}
]
},
"name": "checked_add_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "5241:1:1",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "5244:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nodeType": "YulTypedName",
"src": "5250:3:1",
"type": ""
}
],
"src": "5210:305:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5574:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5584:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5613:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "5595:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5595:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5584:7:1"
}
]
}
]
},
"name": "cleanup_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5556:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5566:7:1",
"type": ""
}
],
"src": "5521:104:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5676:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5686:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5701:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5708:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5697:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5697:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5686:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5658:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5668:7:1",
"type": ""
}
],
"src": "5631:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5808:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5818:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "5829:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5818:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5790:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5800:7:1",
"type": ""
}
],
"src": "5763:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5889:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5899:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "5921:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "5951:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "5929:21:1"
},
"nodeType": "YulFunctionCall",
"src": "5929:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5917:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5917:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "5903:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6068:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "6070:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6070:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6070:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6011:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6023:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "6008:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6008:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6047:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "6059:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "6044:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6044:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "6005:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6005:62:1"
},
"nodeType": "YulIf",
"src": "6002:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6106:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6110:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6099:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6099:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "6099:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "5875:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "5883:4:1",
"type": ""
}
],
"src": "5846:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6176:190:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6186:33:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6213:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "6195:17:1"
},
"nodeType": "YulFunctionCall",
"src": "6195:24:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6186:5:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6309:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "6311:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6311:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6311:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6234:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6241:66:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "6231:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6231:77:1"
},
"nodeType": "YulIf",
"src": "6228:103:1"
},
{
"nodeType": "YulAssignment",
"src": "6340:20:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6351:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6358:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6347:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6347:13:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "6340:3:1"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6162:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "6172:3:1",
"type": ""
}
],
"src": "6133:233:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6400:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6417:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6420:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6410:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6410:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6410:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6514:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6517:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6507:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6507:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6507:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6538:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6541:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6531:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6531:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6531:15:1"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "6372:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6586:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6603:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6606:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6596:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6596:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6596:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6700:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6703:4:1",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6693:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6693:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6693:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6724:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6727:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6717:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6717:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6717:15:1"
}
]
},
"name": "panic_error_0x32",
"nodeType": "YulFunctionDefinition",
"src": "6558:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6772:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6789:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6792:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6782:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6782:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6782:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6886:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6889:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6879:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6879:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6879:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6910:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6913:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6903:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6903:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6903:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "6744:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7019:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7036:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7039:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7029:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7029:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7029:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "6930:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7142:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7159:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7162:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7152:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7152:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7152:12:1"
}
]
},
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulFunctionDefinition",
"src": "7053:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7265:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7282:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7285:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7275:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7275:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7275:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "7176:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7388:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7405:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7408:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7398:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7398:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7398:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "7299:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7470:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "7480:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7498:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7505:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7494:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7494:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7514:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "7510:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7510:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "7490:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7490:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "7480:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7453:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "7463:6:1",
"type": ""
}
],
"src": "7422:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7636:64:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "7658:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7666:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7654:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7654:14:1"
},
{
"hexValue": "4661696c656420746f2073656e64204574686572",
"kind": "string",
"nodeType": "YulLiteral",
"src": "7670:22:1",
"type": "",
"value": "Failed to send Ether"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7647:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7647:46:1"
},
"nodeType": "YulExpressionStatement",
"src": "7647:46:1"
}
]
},
"name": "store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "7628:6:1",
"type": ""
}
],
"src": "7530:170:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7812:8:1",
"statements": []
},
"name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "7804:6:1",
"type": ""
}
],
"src": "7706:114:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7877:87:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "7942:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7951:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7954:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7944:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7944:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7944:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7900:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7933:5:1"
}
],
"functionName": {
"name": "cleanup_t_address_payable",
"nodeType": "YulIdentifier",
"src": "7907:25:1"
},
"nodeType": "YulFunctionCall",
"src": "7907:32:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "7897:2:1"
},
"nodeType": "YulFunctionCall",
"src": "7897:43:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "7890:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7890:51:1"
},
"nodeType": "YulIf",
"src": "7887:71:1"
}
]
},
"name": "validator_revert_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7870:5:1",
"type": ""
}
],
"src": "7826:138:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8013:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "8070:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8079:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8082:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "8072:6:1"
},
"nodeType": "YulFunctionCall",
"src": "8072:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "8072:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8036:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8061:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "8043:17:1"
},
"nodeType": "YulFunctionCall",
"src": "8043:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "8033:2:1"
},
"nodeType": "YulFunctionCall",
"src": "8033:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "8026:6:1"
},
"nodeType": "YulFunctionCall",
"src": "8026:43:1"
},
"nodeType": "YulIf",
"src": "8023:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "8006:5:1",
"type": ""
}
],
"src": "7970:122:1"
}
]
},
"contents": "{\n\n // address payable[]\n function abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr(offset, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr(length))\n let dst := array\n\n mstore(array, length)\n dst := add(array, 0x20)\n\n let src := offset\n if gt(add(src, mul(length, 0x20)), end) {\n revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef()\n }\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n\n let elementPos := src\n\n mstore(dst, abi_decode_t_address_payable(elementPos, end))\n dst := add(dst, 0x20)\n src := add(src, 0x20)\n }\n }\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 // address payable[]\n function abi_decode_t_array$_t_address_payable_$dyn_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr(add(offset, 0x20), length, end)\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_array$_t_address_payable_$dyn_memory_ptr(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_array$_t_address_payable_$dyn_memory_ptr(add(headStart, offset), dataEnd)\n }\n\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 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_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_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\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 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 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_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := mul(length, 0x20)\n\n // add length slot\n size := add(size, 0x20)\n\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 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 checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\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 finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function increment_t_uint256(value) -> ret {\n value := cleanup_t_uint256(value)\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function store_literal_in_memory_445140255c9d889994129d349e64078d6f76b4b37ec896948f7e858f9b8a0dcb(memPtr) {\n\n mstore(add(memPtr, 0), \"Failed to send Ether\")\n\n }\n\n function store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470(memPtr) {\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": "608060405234801561001057600080fd5b506004361061004c5760003560e01c80634717f97c146100515780634900a2851461006f5780639a0e7d661461008b578063d55ec9c1146100a9575b600080fd5b6100596100c5565b60405161006691906103c2565b60405180910390f35b6100896004803603810190610084919061030b565b6100ce565b005b610093610101565b6040516100a091906103c2565b60405180910390f35b6100c360048036038101906100be91906102c2565b61010b565b005b60008054905090565b806000808282546100df919061044a565b92505081905550600160008154809291906100f99061050d565b919050555050565b6000600154905090565b60005b81518110156101f65760008083838151811061012d5761012c610585565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166103e860405161015a9061038d565b60006040518083038185875af1925050503d8060008114610197576040519150601f19603f3d011682016040523d82523d6000602084013e61019c565b606091505b5091509150816101e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d8906103a2565b60405180910390fd5b505080806101ee9061050d565b91505061010e565b5050565b600061020d61020884610402565b6103dd565b905080838252602082019050828560208602820111156102305761022f6105e8565b5b60005b858110156102605781610246888261026a565b845260208401935060208301925050600181019050610233565b5050509392505050565b60008135905061027981610634565b92915050565b600082601f830112610294576102936105e3565b5b81356102a48482602086016101fa565b91505092915050565b6000813590506102bc8161064b565b92915050565b6000602082840312156102d8576102d76105f2565b5b600082013567ffffffffffffffff8111156102f6576102f56105ed565b5b6103028482850161027f565b91505092915050565b600060208284031215610321576103206105f2565b5b600061032f848285016102ad565b91505092915050565b6000610345601483610439565b915061035082610608565b602082019050919050565b600061036860008361042e565b915061037382610631565b600082019050919050565b610387816104d2565b82525050565b60006103988261035b565b9150819050919050565b600060208201905081810360008301526103bb81610338565b9050919050565b60006020820190506103d7600083018461037e565b92915050565b60006103e76103f8565b90506103f382826104dc565b919050565b6000604051905090565b600067ffffffffffffffff82111561041d5761041c6105b4565b5b602082029050602081019050919050565b600081905092915050565b600082825260208201905092915050565b6000610455826104d2565b9150610460836104d2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561049557610494610556565b5b828201905092915050565b60006104ab826104b2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6104e5826105f7565b810181811067ffffffffffffffff82111715610504576105036105b4565b5b80604052505050565b6000610518826104d2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561054b5761054a610556565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b50565b61063d816104a0565b811461064857600080fd5b50565b610654816104d2565b811461065f57600080fd5b5056fea26469706673582212201286b1d7cff3fa49f001e839fb048fd893f1405770256b2aaf1fe9bf45a33c3f64736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x4717F97C EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x4900A285 EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0x9A0E7D66 EQ PUSH2 0x8B JUMPI DUP1 PUSH4 0xD55EC9C1 EQ PUSH2 0xA9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xC5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x3C2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x89 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x84 SWAP2 SWAP1 PUSH2 0x30B JUMP JUMPDEST PUSH2 0xCE JUMP JUMPDEST STOP JUMPDEST PUSH2 0x93 PUSH2 0x101 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA0 SWAP2 SWAP1 PUSH2 0x3C2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xC3 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBE SWAP2 SWAP1 PUSH2 0x2C2 JUMP JUMPDEST PUSH2 0x10B JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0xDF SWAP2 SWAP1 PUSH2 0x44A JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH1 0x1 PUSH1 0x0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0xF9 SWAP1 PUSH2 0x50D JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x1F6 JUMPI PUSH1 0x0 DUP1 DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x12D JUMPI PUSH2 0x12C PUSH2 0x585 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x3E8 PUSH1 0x40 MLOAD PUSH2 0x15A SWAP1 PUSH2 0x38D 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 0x197 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 0x19C JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP2 POP SWAP2 POP DUP2 PUSH2 0x1E1 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1D8 SWAP1 PUSH2 0x3A2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP DUP1 DUP1 PUSH2 0x1EE SWAP1 PUSH2 0x50D JUMP JUMPDEST SWAP2 POP POP PUSH2 0x10E JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x20D PUSH2 0x208 DUP5 PUSH2 0x402 JUMP JUMPDEST PUSH2 0x3DD JUMP JUMPDEST SWAP1 POP DUP1 DUP4 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP DUP3 DUP6 PUSH1 0x20 DUP7 MUL DUP3 ADD GT ISZERO PUSH2 0x230 JUMPI PUSH2 0x22F PUSH2 0x5E8 JUMP JUMPDEST JUMPDEST PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x260 JUMPI DUP2 PUSH2 0x246 DUP9 DUP3 PUSH2 0x26A JUMP JUMPDEST DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP4 ADD SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x233 JUMP JUMPDEST POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x279 DUP2 PUSH2 0x634 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x294 JUMPI PUSH2 0x293 PUSH2 0x5E3 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2A4 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x1FA JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x2BC DUP2 PUSH2 0x64B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2D8 JUMPI PUSH2 0x2D7 PUSH2 0x5F2 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x2F6 JUMPI PUSH2 0x2F5 PUSH2 0x5ED JUMP JUMPDEST JUMPDEST PUSH2 0x302 DUP5 DUP3 DUP6 ADD PUSH2 0x27F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x321 JUMPI PUSH2 0x320 PUSH2 0x5F2 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x32F DUP5 DUP3 DUP6 ADD PUSH2 0x2AD JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x345 PUSH1 0x14 DUP4 PUSH2 0x439 JUMP JUMPDEST SWAP2 POP PUSH2 0x350 DUP3 PUSH2 0x608 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x368 PUSH1 0x0 DUP4 PUSH2 0x42E JUMP JUMPDEST SWAP2 POP PUSH2 0x373 DUP3 PUSH2 0x631 JUMP JUMPDEST PUSH1 0x0 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x387 DUP2 PUSH2 0x4D2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x398 DUP3 PUSH2 0x35B JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x3BB DUP2 PUSH2 0x338 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x3D7 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x37E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3E7 PUSH2 0x3F8 JUMP JUMPDEST SWAP1 POP PUSH2 0x3F3 DUP3 DUP3 PUSH2 0x4DC JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x41D JUMPI PUSH2 0x41C PUSH2 0x5B4 JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP3 MUL SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x455 DUP3 PUSH2 0x4D2 JUMP JUMPDEST SWAP2 POP PUSH2 0x460 DUP4 PUSH2 0x4D2 JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x495 JUMPI PUSH2 0x494 PUSH2 0x556 JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4AB DUP3 PUSH2 0x4B2 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 PUSH2 0x4E5 DUP3 PUSH2 0x5F7 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x504 JUMPI PUSH2 0x503 PUSH2 0x5B4 JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x518 DUP3 PUSH2 0x4D2 JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x54B JUMPI PUSH2 0x54A PUSH2 0x556 JUMP JUMPDEST JUMPDEST PUSH1 0x1 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4661696C656420746F2073656E64204574686572000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x63D DUP2 PUSH2 0x4A0 JUMP JUMPDEST DUP2 EQ PUSH2 0x648 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x654 DUP2 PUSH2 0x4D2 JUMP JUMPDEST DUP2 EQ PUSH2 0x65F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SLT DUP7 0xB1 0xD7 0xCF RETURN STATICCALL 0x49 CREATE ADD 0xE8 CODECOPY 0xFB DIV DUP16 0xD8 SWAP4 CALL BLOCKHASH JUMPI PUSH17 0x256B2AAF1FE9BF45A33C3F64736F6C6343 STOP ADDMOD SMOD STOP CALLER ",
"sourceMap": "26:973:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;351:82;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;542:98;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;443:88;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;650:347;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;351:82;393:7;419;;412:14;;351:82;:::o;542:98::-;605:6;594:7;;:17;;;;;;;:::i;:::-;;;;;;;;621:10;;:12;;;;;;;;;:::i;:::-;;;;;;542:98;:::o;443:88::-;488:7;514:10;;507:17;;443:88;:::o;650:347::-;771:6;766:225;787:7;:14;783:1;:18;766:225;;;823:9;834:17;855:7;863:1;855:10;;;;;;;;:::i;:::-;;;;;;;;:15;;878:4;855:32;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;822:65;;;;905:4;897:37;;;;;;;;;;;;:::i;:::-;;;;;;;;;808:183;;803:3;;;;;:::i;:::-;;;;766:225;;;;650:347;:::o;32:746:1:-;136:5;161:89;177:72;242:6;177:72;:::i;:::-;161:89;:::i;:::-;152:98;;270:5;299:6;292:5;285:21;333:4;326:5;322:16;315:23;;359:6;409:3;401:4;393:6;389:17;384:3;380:27;377:36;374:143;;;428:79;;:::i;:::-;374:143;541:1;526:246;551:6;548:1;545:13;526:246;;;619:3;648:45;689:3;677:10;648:45;:::i;:::-;643:3;636:58;723:4;718:3;714:14;707:21;;757:4;752:3;748:14;741:21;;586:186;573:1;570;566:9;561:14;;526:246;;;530:14;142:636;;32:746;;;;;:::o;784:155::-;838:5;876:6;863:20;854:29;;892:41;927:5;892:41;:::i;:::-;784:155;;;;:::o;970:386::-;1049:5;1098:3;1091:4;1083:6;1079:17;1075:27;1065:122;;1106:79;;:::i;:::-;1065:122;1223:6;1210:20;1248:102;1346:3;1338:6;1331:4;1323:6;1319:17;1248:102;:::i;:::-;1239:111;;1055:301;970:386;;;;:::o;1362:139::-;1408:5;1446:6;1433:20;1424:29;;1462:33;1489:5;1462:33;:::i;:::-;1362:139;;;;:::o;1507:555::-;1599:6;1648:2;1636:9;1627:7;1623:23;1619:32;1616:119;;;1654:79;;:::i;:::-;1616:119;1802:1;1791:9;1787:17;1774:31;1832:18;1824:6;1821:30;1818:117;;;1854:79;;:::i;:::-;1818:117;1959:86;2037:7;2028:6;2017:9;2013:22;1959:86;:::i;:::-;1949:96;;1745:310;1507:555;;;;:::o;2068:329::-;2127:6;2176:2;2164:9;2155:7;2151:23;2147:32;2144:119;;;2182:79;;:::i;:::-;2144:119;2302:1;2327:53;2372:7;2363:6;2352:9;2348:22;2327:53;:::i;:::-;2317:63;;2273:117;2068:329;;;;:::o;2403:366::-;2545:3;2566:67;2630:2;2625:3;2566:67;:::i;:::-;2559:74;;2642:93;2731:3;2642:93;:::i;:::-;2760:2;2755:3;2751:12;2744:19;;2403:366;;;:::o;2775:398::-;2934:3;2955:83;3036:1;3031:3;2955:83;:::i;:::-;2948:90;;3047:93;3136:3;3047:93;:::i;:::-;3165:1;3160:3;3156:11;3149:18;;2775:398;;;:::o;3179:118::-;3266:24;3284:5;3266:24;:::i;:::-;3261:3;3254:37;3179:118;;:::o;3303:379::-;3487:3;3509:147;3652:3;3509:147;:::i;:::-;3502:154;;3673:3;3666:10;;3303:379;;;:::o;3688:419::-;3854:4;3892:2;3881:9;3877:18;3869:26;;3941:9;3935:4;3931:20;3927:1;3916:9;3912:17;3905:47;3969:131;4095:4;3969:131;:::i;:::-;3961:139;;3688:419;;;:::o;4113:222::-;4206:4;4244:2;4233:9;4229:18;4221:26;;4257:71;4325:1;4314:9;4310:17;4301:6;4257:71;:::i;:::-;4113:222;;;;:::o;4341:129::-;4375:6;4402:20;;:::i;:::-;4392:30;;4431:33;4459:4;4451:6;4431:33;:::i;:::-;4341:129;;;:::o;4476:75::-;4509:6;4542:2;4536:9;4526:19;;4476:75;:::o;4557:319::-;4642:4;4732:18;4724:6;4721:30;4718:56;;;4754:18;;:::i;:::-;4718:56;4804:4;4796:6;4792:17;4784:25;;4864:4;4858;4854:15;4846:23;;4557:319;;;:::o;4882:147::-;4983:11;5020:3;5005:18;;4882:147;;;;:::o;5035:169::-;5119:11;5153:6;5148:3;5141:19;5193:4;5188:3;5184:14;5169:29;;5035:169;;;;:::o;5210:305::-;5250:3;5269:20;5287:1;5269:20;:::i;:::-;5264:25;;5303:20;5321:1;5303:20;:::i;:::-;5298:25;;5457:1;5389:66;5385:74;5382:1;5379:81;5376:107;;;5463:18;;:::i;:::-;5376:107;5507:1;5504;5500:9;5493:16;;5210:305;;;;:::o;5521:104::-;5566:7;5595:24;5613:5;5595:24;:::i;:::-;5584:35;;5521:104;;;:::o;5631:126::-;5668:7;5708:42;5701:5;5697:54;5686:65;;5631:126;;;:::o;5763:77::-;5800:7;5829:5;5818:16;;5763:77;;;:::o;5846:281::-;5929:27;5951:4;5929:27;:::i;:::-;5921:6;5917:40;6059:6;6047:10;6044:22;6023:18;6011:10;6008:34;6005:62;6002:88;;;6070:18;;:::i;:::-;6002:88;6110:10;6106:2;6099:22;5889:238;5846:281;;:::o;6133:233::-;6172:3;6195:24;6213:5;6195:24;:::i;:::-;6186:33;;6241:66;6234:5;6231:77;6228:103;;;6311:18;;:::i;:::-;6228:103;6358:1;6351:5;6347:13;6340:20;;6133:233;;;:::o;6372:180::-;6420:77;6417:1;6410:88;6517:4;6514:1;6507:15;6541:4;6538:1;6531:15;6558:180;6606:77;6603:1;6596:88;6703:4;6700:1;6693:15;6727:4;6724:1;6717:15;6744:180;6792:77;6789:1;6782:88;6889:4;6886:1;6879:15;6913:4;6910:1;6903:15;6930:117;7039:1;7036;7029:12;7053:117;7162:1;7159;7152:12;7176:117;7285:1;7282;7275:12;7299:117;7408:1;7405;7398:12;7422:102;7463:6;7514:2;7510:7;7505:2;7498:5;7494:14;7490:28;7480:38;;7422:102;;;:::o;7530:170::-;7670:22;7666:1;7658:6;7654:14;7647:46;7530:170;:::o;7706:114::-;;:::o;7826:138::-;7907:32;7933:5;7907:32;:::i;:::-;7900:5;7897:43;7887:71;;7954:1;7951;7944:12;7887:71;7826:138;:::o;7970:122::-;8043:24;8061:5;8043:24;:::i;:::-;8036:5;8033:35;8023:63;;8082:1;8079;8072:12;8023:63;7970:122;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "337600",
"executionCost": "34668",
"totalCost": "372268"
},
"external": {
"getResults()": "2415",
"getTotalVotes()": "2459",
"registerVoters(address[])": "infinite",
"sendBallot(uint256)": "infinite"
}
},
"methodIdentifiers": {
"getResults()": "4717f97c",
"getTotalVotes()": "9a0e7d66",
"registerVoters(address[])": "d55ec9c1",
"sendBallot(uint256)": "4900a285"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getResults",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalVotes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable[]",
"name": "_voters",
"type": "address[]"
}
],
"name": "registerVoters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "ballot",
"type": "uint256"
}
],
"name": "sendBallot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.7+commit.e28d00a7"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getResults",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalVotes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable[]",
"name": "_voters",
"type": "address[]"
}
],
"name": "registerVoters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "ballot",
"type": "uint256"
}
],
"name": "sendBallot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"gist-29806d9f4dbe24ed27ae6855965ff87b/Democracy.sol": "Democracy"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"gist-29806d9f4dbe24ed27ae6855965ff87b/Democracy.sol": {
"keccak256": "0x964ac2b83fbee2977c7248a6fb3b0d9adfa13d361612021b3946dfd462573168",
"urls": [
"bzz-raw://9cb807f8855e20563722b4abde70f5020c9e0885b8c55d44344ef57a0de5f5da",
"dweb:/ipfs/QmVjTUiYUzrGaC7BY7GeVsxVpNbNeG3DoHFEnvLNUKhuTR"
]
}
},
"version": 1
}
pragma solidity '0.8.7';
contract Democracy {
// int tallyYes = 0;
uint256 results;
uint256 totalVotes;
address owner;
modifier onlyOwner {
require(msg.sender == owner, "Ownable: You are not the owner, Bye.");
_;
}
constructor () {
totalVotes = 0;
results = 0;
owner = msg.sender;
}
function getResults() view public returns(uint256) {
return results;
}
function getTotalVotes() view public returns(uint256) {
return totalVotes;
}
function sendBallot(uint256 ballot) public{
results += ballot;
totalVotes++;
}
function registerVoters(address payable[] memory _voters) public {
// require(msg.sender == owner);
for (uint i = 0; i < _voters.length; i++) {
(bool sent, bytes memory data) = _voters[i].call{value: 1000}("");
require(sent, "Failed to send Ether");
// _voters[i].transfer(10000000);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment