Skip to content

Instantly share code, notes, and snippets.

@mdip226
Created October 21, 2021 03:01
Show Gist options
  • Save mdip226/7d7dc4c78aac552f2b96f9297bd21060 to your computer and use it in GitHub Desktop.
Save mdip226/7d7dc4c78aac552f2b96f9297bd21060 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {
"@_55": {
"entryPoint": null,
"id": 55,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060006001819055506000808190555033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506108dd806100706000396000f3fe60806040526004361061004e5760003560e01c80634717f97c146100ea5780634900a285146101155780639a0e7d661461013e578063d55ec9c114610169578063d8bff5a514610192576100e5565b366100e557600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100da9061059c565b60405180910390fd5b005b600080fd5b3480156100f657600080fd5b506100ff6101cf565b60405161010c91906105bc565b60405180910390f35b34801561012157600080fd5b5061013c60048036038101906101379190610513565b6101d8565b005b34801561014a57600080fd5b5061015361020b565b60405161016091906105bc565b60405180910390f35b34801561017557600080fd5b50610190600480360381019061018b91906104ca565b610215565b005b34801561019e57600080fd5b506101b960048036038101906101b4919061049d565b6103a8565b6040516101c69190610581565b60405180910390f35b60008054905090565b806000808282546101e99190610639565b925050819055506001600081548092919061020390610718565b919050555050565b6000600154905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029c9061059c565b60405180910390fd5b60005b81518110156103a4578181815181106102c4576102c3610790565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166108fc60019081150290604051600060405180830381858888f19350505050158015610312573d6000803e3d6000fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6003600084848151811061034b5761034a610790565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061039c90610718565b9150506102a8565b5050565b60036020528060005260406000206000915090505481565b60006103d36103ce846105fc565b6105d7565b905080838252602082019050828560208602820111156103f6576103f56107f3565b5b60005b85811015610426578161040c8882610445565b8452602084019350602083019250506001810190506103f9565b5050509392505050565b60008135905061043f81610862565b92915050565b60008135905061045481610879565b92915050565b600082601f83011261046f5761046e6107ee565b5b813561047f8482602086016103c0565b91505092915050565b60008135905061049781610890565b92915050565b6000602082840312156104b3576104b26107fd565b5b60006104c184828501610430565b91505092915050565b6000602082840312156104e0576104df6107fd565b5b600082013567ffffffffffffffff8111156104fe576104fd6107f8565b5b61050a8482850161045a565b91505092915050565b600060208284031215610529576105286107fd565b5b600061053784828501610488565b91505092915050565b610549816106b3565b82525050565b600061055c602483610628565b915061056782610813565b604082019050919050565b61057b816106dd565b82525050565b60006020820190506105966000830184610540565b92915050565b600060208201905081810360008301526105b58161054f565b9050919050565b60006020820190506105d16000830184610572565b92915050565b60006105e16105f2565b90506105ed82826106e7565b919050565b6000604051905090565b600067ffffffffffffffff821115610617576106166107bf565b5b602082029050602081019050919050565b600082825260208201905092915050565b6000610644826106dd565b915061064f836106dd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561068457610683610761565b5b828201905092915050565b600061069a826106bd565b9050919050565b60006106ac826106bd565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6106f082610802565b810181811067ffffffffffffffff8211171561070f5761070e6107bf565b5b80604052505050565b6000610723826106dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561075657610755610761565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a20596f7520617265206e6f7420746865206f776e65722c2060008201527f4279652e00000000000000000000000000000000000000000000000000000000602082015250565b61086b8161068f565b811461087657600080fd5b50565b610882816106a1565b811461088d57600080fd5b50565b610899816106dd565b81146108a457600080fd5b5056fea2646970667358221220de1da446a85eafad86e484fcff8138f479660c4b69a44cf0f8c6605ab4eb6b2464736f6c63430008070033",
"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 0x8DD DUP1 PUSH2 0x70 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4E JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x4717F97C EQ PUSH2 0xEA JUMPI DUP1 PUSH4 0x4900A285 EQ PUSH2 0x115 JUMPI DUP1 PUSH4 0x9A0E7D66 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xD55EC9C1 EQ PUSH2 0x169 JUMPI DUP1 PUSH4 0xD8BFF5A5 EQ PUSH2 0x192 JUMPI PUSH2 0xE5 JUMP JUMPDEST CALLDATASIZE PUSH2 0xE5 JUMPI PUSH1 0x2 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xE3 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0xDA SWAP1 PUSH2 0x59C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xFF PUSH2 0x1CF JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x10C SWAP2 SWAP1 PUSH2 0x5BC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x121 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x13C PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x137 SWAP2 SWAP1 PUSH2 0x513 JUMP JUMPDEST PUSH2 0x1D8 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x14A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH2 0x20B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x160 SWAP2 SWAP1 PUSH2 0x5BC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x175 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x190 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CA JUMP JUMPDEST PUSH2 0x215 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1B9 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1B4 SWAP2 SWAP1 PUSH2 0x49D JUMP JUMPDEST PUSH2 0x3A8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1C6 SWAP2 SWAP1 PUSH2 0x581 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x1E9 SWAP2 SWAP1 PUSH2 0x639 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH1 0x1 PUSH1 0x0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0x203 SWAP1 PUSH2 0x718 JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x2A5 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x29C SWAP1 PUSH2 0x59C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x3A4 JUMPI DUP2 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x2C4 JUMPI PUSH2 0x2C3 PUSH2 0x790 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC PUSH1 0x1 SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x312 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x3 PUSH1 0x0 DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x34B JUMPI PUSH2 0x34A PUSH2 0x790 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP2 SWAP1 SSTORE POP DUP1 DUP1 PUSH2 0x39C SWAP1 PUSH2 0x718 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x2A8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x3 PUSH1 0x20 MSTORE DUP1 PUSH1 0x0 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH1 0x0 SWAP2 POP SWAP1 POP SLOAD DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3D3 PUSH2 0x3CE DUP5 PUSH2 0x5FC JUMP JUMPDEST PUSH2 0x5D7 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 0x3F6 JUMPI PUSH2 0x3F5 PUSH2 0x7F3 JUMP JUMPDEST JUMPDEST PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x426 JUMPI DUP2 PUSH2 0x40C DUP9 DUP3 PUSH2 0x445 JUMP JUMPDEST DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP4 ADD SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x3F9 JUMP JUMPDEST POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x43F DUP2 PUSH2 0x862 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x454 DUP2 PUSH2 0x879 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x46F JUMPI PUSH2 0x46E PUSH2 0x7EE JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x47F DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x3C0 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x497 DUP2 PUSH2 0x890 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x4B3 JUMPI PUSH2 0x4B2 PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x4C1 DUP5 DUP3 DUP6 ADD PUSH2 0x430 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x4E0 JUMPI PUSH2 0x4DF PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x4FE JUMPI PUSH2 0x4FD PUSH2 0x7F8 JUMP JUMPDEST JUMPDEST PUSH2 0x50A DUP5 DUP3 DUP6 ADD PUSH2 0x45A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x529 JUMPI PUSH2 0x528 PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x537 DUP5 DUP3 DUP6 ADD PUSH2 0x488 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x549 DUP2 PUSH2 0x6B3 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x55C PUSH1 0x24 DUP4 PUSH2 0x628 JUMP JUMPDEST SWAP2 POP PUSH2 0x567 DUP3 PUSH2 0x813 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x57B DUP2 PUSH2 0x6DD JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x596 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x540 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x5B5 DUP2 PUSH2 0x54F JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x5D1 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x572 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5E1 PUSH2 0x5F2 JUMP JUMPDEST SWAP1 POP PUSH2 0x5ED DUP3 DUP3 PUSH2 0x6E7 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 0x617 JUMPI PUSH2 0x616 PUSH2 0x7BF JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP3 MUL SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x644 DUP3 PUSH2 0x6DD JUMP JUMPDEST SWAP2 POP PUSH2 0x64F DUP4 PUSH2 0x6DD JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x684 JUMPI PUSH2 0x683 PUSH2 0x761 JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x69A DUP3 PUSH2 0x6BD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x6AC DUP3 PUSH2 0x6BD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 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 0x6F0 DUP3 PUSH2 0x802 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x70F JUMPI PUSH2 0x70E PUSH2 0x7BF JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x723 DUP3 PUSH2 0x6DD JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x756 JUMPI PUSH2 0x755 PUSH2 0x761 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 0x4F776E61626C653A20596F7520617265206E6F7420746865206F776E65722C20 PUSH1 0x0 DUP3 ADD MSTORE PUSH32 0x4279652E00000000000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH2 0x86B DUP2 PUSH2 0x68F JUMP JUMPDEST DUP2 EQ PUSH2 0x876 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x882 DUP2 PUSH2 0x6A1 JUMP JUMPDEST DUP2 EQ PUSH2 0x88D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x899 DUP2 PUSH2 0x6DD JUMP JUMPDEST DUP2 EQ PUSH2 0x8A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDE SAR LOG4 CHAINID 0xA8 0x5E 0xAF 0xAD DUP7 0xE4 DUP5 0xFC SELFDESTRUCT DUP2 CODESIZE DELEGATECALL PUSH26 0x660C4B69A44CF0F8C6605AB4EB6B2464736F6C63430008070033 ",
"sourceMap": "26:1185:0:-:0;;;440:89;;;;;;;;;;476:1;463:10;:14;;;;495:1;485:7;:11;;;;512:10;504:5;;:18;;;;;;;;;;;;;;;;;;26:1185;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@_61": {
"entryPoint": null,
"id": 61,
"parameterSlots": 0,
"returnSlots": 0
},
"@getResults_69": {
"entryPoint": 463,
"id": 69,
"parameterSlots": 0,
"returnSlots": 1
},
"@getTotalVotes_77": {
"entryPoint": 523,
"id": 77,
"parameterSlots": 0,
"returnSlots": 1
},
"@registerVoters_128": {
"entryPoint": 533,
"id": 128,
"parameterSlots": 1,
"returnSlots": 0
},
"@sendBallot_90": {
"entryPoint": 472,
"id": 90,
"parameterSlots": 1,
"returnSlots": 0
},
"@votes_11": {
"entryPoint": 936,
"id": 11,
"parameterSlots": 0,
"returnSlots": 0
},
"abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 960,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_address": {
"entryPoint": 1072,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_address_payable": {
"entryPoint": 1093,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 1114,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 1160,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_address": {
"entryPoint": 1181,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 1226,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 1299,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_int256_to_t_int256_fromStack": {
"entryPoint": 1344,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38_to_t_string_memory_ptr_fromStack": {
"entryPoint": 1359,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 1394,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_int256__to_t_int256__fromStack_reversed": {
"entryPoint": 1409,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 1436,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 1468,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 1495,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 1522,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr": {
"entryPoint": 1532,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 1576,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_add_t_uint256": {
"entryPoint": 1593,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 1679,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_address_payable": {
"entryPoint": 1697,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_int256": {
"entryPoint": 1715,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 1725,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 1757,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 1767,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"increment_t_uint256": {
"entryPoint": 1816,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 1889,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 1936,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 1983,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 2030,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef": {
"entryPoint": 2035,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 2040,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 2045,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 2050,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"store_literal_in_memory_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38": {
"entryPoint": 2067,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address": {
"entryPoint": 2146,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address_payable": {
"entryPoint": 2169,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 2192,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:8223: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": "836:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "846:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "868:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "855:12:1"
},
"nodeType": "YulFunctionCall",
"src": "855:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "846:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "911:5:1"
}
],
"functionName": {
"name": "validator_revert_t_address",
"nodeType": "YulIdentifier",
"src": "884:26:1"
},
"nodeType": "YulFunctionCall",
"src": "884:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "884:33:1"
}
]
},
"name": "abi_decode_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "814:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "822:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "830:5:1",
"type": ""
}
],
"src": "784:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "989:95:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "999:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1021:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1008:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1008:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "999:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1072:5:1"
}
],
"functionName": {
"name": "validator_revert_t_address_payable",
"nodeType": "YulIdentifier",
"src": "1037:34:1"
},
"nodeType": "YulFunctionCall",
"src": "1037:41:1"
},
"nodeType": "YulExpressionStatement",
"src": "1037:41:1"
}
]
},
"name": "abi_decode_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "967:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "975:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "983:5:1",
"type": ""
}
],
"src": "929:155:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1200:301:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1249:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "1251:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1251:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1251:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1228:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1236:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1224:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1224:17:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1243:3:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1220:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1220:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1213:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1213:35:1"
},
"nodeType": "YulIf",
"src": "1210:122:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "1341:34:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1368:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1355:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1355:20:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1345:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1384:111:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1468:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1476:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1464:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1464:17:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1483:6:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1491:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "1393:70:1"
},
"nodeType": "YulFunctionCall",
"src": "1393:102:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "1384:5:1"
}
]
}
]
},
"name": "abi_decode_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1178:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1186:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "1194:5:1",
"type": ""
}
],
"src": "1115:386:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1559:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1569:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1591:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1578:12:1"
},
"nodeType": "YulFunctionCall",
"src": "1578:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1569:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1634:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "1607:26:1"
},
"nodeType": "YulFunctionCall",
"src": "1607:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1607:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1537:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1545:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1553:5:1",
"type": ""
}
],
"src": "1507:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1718:263:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1764:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "1766:77:1"
},
"nodeType": "YulFunctionCall",
"src": "1766:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "1766:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1739:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1748:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1735:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1735:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1760:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1731:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1731:32:1"
},
"nodeType": "YulIf",
"src": "1728:119:1"
},
{
"nodeType": "YulBlock",
"src": "1857:117:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1872:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1886:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1876:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1901:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1936:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1947:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1932:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1932:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1956:7:1"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "1911:20:1"
},
"nodeType": "YulFunctionCall",
"src": "1911:53:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1901:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1688:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1699:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1711:6:1",
"type": ""
}
],
"src": "1652:329:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2086:456:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2132:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "2134:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2134:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2134:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2107:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2116:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2103:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2103:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2128:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2099:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2099:32:1"
},
"nodeType": "YulIf",
"src": "2096:119:1"
},
{
"nodeType": "YulBlock",
"src": "2225:310:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2240:45:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2271:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2282:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2267:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2267:17:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2254:12:1"
},
"nodeType": "YulFunctionCall",
"src": "2254:31:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2244:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2332:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "2334:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2334:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2334:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2304:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2312:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2301:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2301:30:1"
},
"nodeType": "YulIf",
"src": "2298:117:1"
},
{
"nodeType": "YulAssignment",
"src": "2429:96:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2497:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2508:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2493:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2493:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2517:7:1"
}
],
"functionName": {
"name": "abi_decode_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "2439:53:1"
},
"nodeType": "YulFunctionCall",
"src": "2439:86:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2429:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2056:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2067:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2079:6:1",
"type": ""
}
],
"src": "1987:555:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2614:263:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2660:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "2662:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2662:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2662:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2635:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2644:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2631:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2631:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2656:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2627:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2627:32:1"
},
"nodeType": "YulIf",
"src": "2624:119:1"
},
{
"nodeType": "YulBlock",
"src": "2753:117:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2768:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2782:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2772:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "2797:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2832:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2843:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2828:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2828:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2852:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "2807:20:1"
},
"nodeType": "YulFunctionCall",
"src": "2807:53:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2797:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2584:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2595:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2607:6:1",
"type": ""
}
],
"src": "2548:329:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2946:52:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2963:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2985:5:1"
}
],
"functionName": {
"name": "cleanup_t_int256",
"nodeType": "YulIdentifier",
"src": "2968:16:1"
},
"nodeType": "YulFunctionCall",
"src": "2968:23:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2956:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2956:36:1"
},
"nodeType": "YulExpressionStatement",
"src": "2956:36:1"
}
]
},
"name": "abi_encode_t_int256_to_t_int256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2934:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2941:3:1",
"type": ""
}
],
"src": "2883:115:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3150:220:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3160:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3226:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3231:2:1",
"type": "",
"value": "36"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "3167:58:1"
},
"nodeType": "YulFunctionCall",
"src": "3167:67:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3160:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3332:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38",
"nodeType": "YulIdentifier",
"src": "3243:88:1"
},
"nodeType": "YulFunctionCall",
"src": "3243:93:1"
},
"nodeType": "YulExpressionStatement",
"src": "3243:93:1"
},
{
"nodeType": "YulAssignment",
"src": "3345:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3356:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3361:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3352:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3352:12:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3345:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3138:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3146:3:1",
"type": ""
}
],
"src": "3004:366:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3441:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3458:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3481:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "3463:17:1"
},
"nodeType": "YulFunctionCall",
"src": "3463:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3451:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3451:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "3451:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3429:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3436:3:1",
"type": ""
}
],
"src": "3376:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3596:122:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3606:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3618:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3629:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3614:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3614:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3606:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3684:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3697:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3708:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3693:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3693:17:1"
}
],
"functionName": {
"name": "abi_encode_t_int256_to_t_int256_fromStack",
"nodeType": "YulIdentifier",
"src": "3642:41:1"
},
"nodeType": "YulFunctionCall",
"src": "3642:69:1"
},
"nodeType": "YulExpressionStatement",
"src": "3642:69:1"
}
]
},
"name": "abi_encode_tuple_t_int256__to_t_int256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3568:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3580:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3591:4:1",
"type": ""
}
],
"src": "3500:218:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3895:248:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3905:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3917:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3928:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3913:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3913:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3905:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3952:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3963:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3948:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3948:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3971:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3977:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3967:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3967:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3941:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3941:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "3941:47:1"
},
{
"nodeType": "YulAssignment",
"src": "3997:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4131:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "4005:124:1"
},
"nodeType": "YulFunctionCall",
"src": "4005:131:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3997:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3875:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3890:4:1",
"type": ""
}
],
"src": "3724:419:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4247:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4257:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4269:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4280:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4265:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4265:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4257:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4337:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4350:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4361:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4346:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4346:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "4293:43:1"
},
"nodeType": "YulFunctionCall",
"src": "4293:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "4293:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4219:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4231:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4242:4:1",
"type": ""
}
],
"src": "4149:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4418:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4428:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "4438:18:1"
},
"nodeType": "YulFunctionCall",
"src": "4438:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4428:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4487:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4495:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "4467:19:1"
},
"nodeType": "YulFunctionCall",
"src": "4467:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "4467:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "4402:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "4411:6:1",
"type": ""
}
],
"src": "4377:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4552:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4562:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4578:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4572:5:1"
},
"nodeType": "YulFunctionCall",
"src": "4572:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "4562:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "4545:6:1",
"type": ""
}
],
"src": "4512:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4683:229:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4788:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "4790:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4790:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4790:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4760:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4768:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4757:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4757:30:1"
},
"nodeType": "YulIf",
"src": "4754:56:1"
},
{
"nodeType": "YulAssignment",
"src": "4820:25:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4832:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4840:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "4828:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4828:17:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4820:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "4882:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4894:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4900:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4890:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4890:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "4882:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_array$_t_address_payable_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4667:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "4678:4:1",
"type": ""
}
],
"src": "4593:319:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5014:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5031:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5036:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5024:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5024:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "5024:19:1"
},
{
"nodeType": "YulAssignment",
"src": "5052:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5071:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5076:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5067:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5067:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "5052:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "4986:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4991:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "5002:11:1",
"type": ""
}
],
"src": "4918:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5137:261:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5147:25:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5170:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "5152:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5152:20:1"
},
"variableNames": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5147:1:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "5181:25:1",
"value": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5204:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "5186:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5186:20:1"
},
"variableNames": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5181:1:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5344:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "5346:16:1"
},
"nodeType": "YulFunctionCall",
"src": "5346:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "5346:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5265:1:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5272:66:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5340:1:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "5268:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5268:74:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "5262:2:1"
},
"nodeType": "YulFunctionCall",
"src": "5262:81:1"
},
"nodeType": "YulIf",
"src": "5259:107:1"
},
{
"nodeType": "YulAssignment",
"src": "5376:16:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5387:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5390:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5383:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5383:9:1"
},
"variableNames": [
{
"name": "sum",
"nodeType": "YulIdentifier",
"src": "5376:3:1"
}
]
}
]
},
"name": "checked_add_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "5124:1:1",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "5127:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nodeType": "YulTypedName",
"src": "5133:3:1",
"type": ""
}
],
"src": "5093:305:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5449:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5459:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5488:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "5470:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5470:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5459:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5431:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5441:7:1",
"type": ""
}
],
"src": "5404:96:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5559:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5569:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5598:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "5580:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5580:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5569:7:1"
}
]
}
]
},
"name": "cleanup_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5541:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5551:7:1",
"type": ""
}
],
"src": "5506:104:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5660:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5670:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "5681:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5670:7:1"
}
]
}
]
},
"name": "cleanup_t_int256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5642:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5652:7:1",
"type": ""
}
],
"src": "5616:76:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5743:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5753:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5768:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5775:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5764:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5764:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5753:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5725:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5735:7:1",
"type": ""
}
],
"src": "5698:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5875:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5885:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "5896:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5885:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5857:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5867:7:1",
"type": ""
}
],
"src": "5830:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5956:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5966:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "5988:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "6018:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "5996:21:1"
},
"nodeType": "YulFunctionCall",
"src": "5996:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5984:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5984:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "5970:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6135:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "6137:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6137:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6137:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6078:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6090:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "6075:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6075:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6114:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "6126:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "6111:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6111:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "6072:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6072:62:1"
},
"nodeType": "YulIf",
"src": "6069:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6173:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "6177:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6166:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6166:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "6166:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "5942:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "5950:4:1",
"type": ""
}
],
"src": "5913:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6243:190:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6253:33:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6280:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "6262:17:1"
},
"nodeType": "YulFunctionCall",
"src": "6262:24:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6253:5:1"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6376:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "6378:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6378:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6378:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6301:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6308:66:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "6298:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6298:77:1"
},
"nodeType": "YulIf",
"src": "6295:103:1"
},
{
"nodeType": "YulAssignment",
"src": "6407:20:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6418:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6425:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6414:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6414:13:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "6407:3:1"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6229:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "6239:3:1",
"type": ""
}
],
"src": "6200:233:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6467:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6484:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6487:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6477:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6477:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6477:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6581:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6584:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6574:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6574:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6574:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6605:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6608:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6598:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6598:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6598:15:1"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "6439:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6653:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6670:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6673:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6663:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6663:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6663:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6767:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6770:4:1",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6760:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6760:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6760:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6791:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6794:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6784:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6784:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6784:15:1"
}
]
},
"name": "panic_error_0x32",
"nodeType": "YulFunctionDefinition",
"src": "6625:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6839:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6856:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6859:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6849:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6849:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6849:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6953:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6956:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6946:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6946:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6946:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6977:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6980:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6970:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6970:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6970:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "6811:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7086:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7103:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7106:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7096:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7096:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7096:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "6997:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7209:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7226:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7229:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7219:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7219:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7219:12:1"
}
]
},
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulFunctionDefinition",
"src": "7120:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7332:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7349:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7352:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7342:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7342:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7342:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "7243:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7455:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7472:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7475:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7465:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7465:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7465:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "7366:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7537:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "7547:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7565:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7572:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7561:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7561:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7581:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "7577:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7577:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "7557:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7557:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "7547:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7520:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "7530:6:1",
"type": ""
}
],
"src": "7489:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7703:117:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "7725:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7733:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7721:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7721:14:1"
},
{
"hexValue": "4f776e61626c653a20596f7520617265206e6f7420746865206f776e65722c20",
"kind": "string",
"nodeType": "YulLiteral",
"src": "7737:34:1",
"type": "",
"value": "Ownable: You are not the owner, "
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7714:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7714:58:1"
},
"nodeType": "YulExpressionStatement",
"src": "7714:58:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "7793:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7801:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7789:3:1"
},
"nodeType": "YulFunctionCall",
"src": "7789:15:1"
},
{
"hexValue": "4279652e",
"kind": "string",
"nodeType": "YulLiteral",
"src": "7806:6:1",
"type": "",
"value": "Bye."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7782:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7782:31:1"
},
"nodeType": "YulExpressionStatement",
"src": "7782:31:1"
}
]
},
"name": "store_literal_in_memory_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "7695:6:1",
"type": ""
}
],
"src": "7597:223:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7869:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "7926:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7935:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7938:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "7928:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7928:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "7928:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7892:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7917:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "7899:17:1"
},
"nodeType": "YulFunctionCall",
"src": "7899:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "7889:2:1"
},
"nodeType": "YulFunctionCall",
"src": "7889:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "7882:6:1"
},
"nodeType": "YulFunctionCall",
"src": "7882:43:1"
},
"nodeType": "YulIf",
"src": "7879:63:1"
}
]
},
"name": "validator_revert_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7862:5:1",
"type": ""
}
],
"src": "7826:122:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8005:87: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": "8028:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8061:5:1"
}
],
"functionName": {
"name": "cleanup_t_address_payable",
"nodeType": "YulIdentifier",
"src": "8035:25:1"
},
"nodeType": "YulFunctionCall",
"src": "8035:32:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "8025:2:1"
},
"nodeType": "YulFunctionCall",
"src": "8025:43:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "8018:6:1"
},
"nodeType": "YulFunctionCall",
"src": "8018:51:1"
},
"nodeType": "YulIf",
"src": "8015:71:1"
}
]
},
"name": "validator_revert_t_address_payable",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7998:5:1",
"type": ""
}
],
"src": "7954:138:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8141:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "8198:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8207:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8210:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "8200:6:1"
},
"nodeType": "YulFunctionCall",
"src": "8200:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "8200:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8164:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8189:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "8171:17:1"
},
"nodeType": "YulFunctionCall",
"src": "8171:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "8161:2:1"
},
"nodeType": "YulFunctionCall",
"src": "8161:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "8154:6:1"
},
"nodeType": "YulFunctionCall",
"src": "8154:43:1"
},
"nodeType": "YulIf",
"src": "8151:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "8134:5:1",
"type": ""
}
],
"src": "8098: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(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\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_address(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_address(add(headStart, offset), dataEnd)\n }\n\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_int256_to_t_int256_fromStack(value, pos) {\n mstore(pos, cleanup_t_int256(value))\n }\n\n function abi_encode_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 36)\n store_literal_in_memory_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_int256__to_t_int256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_int256_to_t_int256_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_stringliteral_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38__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_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38_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_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(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_address_payable(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_int256(value) -> cleaned {\n cleaned := 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_96bf9f53224ed4d52ee21711cc998a0fc7706c40ad7d4c7ec601bbd824cf6d38(memPtr) {\n\n mstore(add(memPtr, 0), \"Ownable: You are not the owner, \")\n\n mstore(add(memPtr, 32), \"Bye.\")\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\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": "60806040526004361061004e5760003560e01c80634717f97c146100ea5780634900a285146101155780639a0e7d661461013e578063d55ec9c114610169578063d8bff5a514610192576100e5565b366100e557600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100da9061059c565b60405180910390fd5b005b600080fd5b3480156100f657600080fd5b506100ff6101cf565b60405161010c91906105bc565b60405180910390f35b34801561012157600080fd5b5061013c60048036038101906101379190610513565b6101d8565b005b34801561014a57600080fd5b5061015361020b565b60405161016091906105bc565b60405180910390f35b34801561017557600080fd5b50610190600480360381019061018b91906104ca565b610215565b005b34801561019e57600080fd5b506101b960048036038101906101b4919061049d565b6103a8565b6040516101c69190610581565b60405180910390f35b60008054905090565b806000808282546101e99190610639565b925050819055506001600081548092919061020390610718565b919050555050565b6000600154905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029c9061059c565b60405180910390fd5b60005b81518110156103a4578181815181106102c4576102c3610790565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166108fc60019081150290604051600060405180830381858888f19350505050158015610312573d6000803e3d6000fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6003600084848151811061034b5761034a610790565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061039c90610718565b9150506102a8565b5050565b60036020528060005260406000206000915090505481565b60006103d36103ce846105fc565b6105d7565b905080838252602082019050828560208602820111156103f6576103f56107f3565b5b60005b85811015610426578161040c8882610445565b8452602084019350602083019250506001810190506103f9565b5050509392505050565b60008135905061043f81610862565b92915050565b60008135905061045481610879565b92915050565b600082601f83011261046f5761046e6107ee565b5b813561047f8482602086016103c0565b91505092915050565b60008135905061049781610890565b92915050565b6000602082840312156104b3576104b26107fd565b5b60006104c184828501610430565b91505092915050565b6000602082840312156104e0576104df6107fd565b5b600082013567ffffffffffffffff8111156104fe576104fd6107f8565b5b61050a8482850161045a565b91505092915050565b600060208284031215610529576105286107fd565b5b600061053784828501610488565b91505092915050565b610549816106b3565b82525050565b600061055c602483610628565b915061056782610813565b604082019050919050565b61057b816106dd565b82525050565b60006020820190506105966000830184610540565b92915050565b600060208201905081810360008301526105b58161054f565b9050919050565b60006020820190506105d16000830184610572565b92915050565b60006105e16105f2565b90506105ed82826106e7565b919050565b6000604051905090565b600067ffffffffffffffff821115610617576106166107bf565b5b602082029050602081019050919050565b600082825260208201905092915050565b6000610644826106dd565b915061064f836106dd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561068457610683610761565b5b828201905092915050565b600061069a826106bd565b9050919050565b60006106ac826106bd565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6106f082610802565b810181811067ffffffffffffffff8211171561070f5761070e6107bf565b5b80604052505050565b6000610723826106dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561075657610755610761565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a20596f7520617265206e6f7420746865206f776e65722c2060008201527f4279652e00000000000000000000000000000000000000000000000000000000602082015250565b61086b8161068f565b811461087657600080fd5b50565b610882816106a1565b811461088d57600080fd5b50565b610899816106dd565b81146108a457600080fd5b5056fea2646970667358221220de1da446a85eafad86e484fcff8138f479660c4b69a44cf0f8c6605ab4eb6b2464736f6c63430008070033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4E JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x4717F97C EQ PUSH2 0xEA JUMPI DUP1 PUSH4 0x4900A285 EQ PUSH2 0x115 JUMPI DUP1 PUSH4 0x9A0E7D66 EQ PUSH2 0x13E JUMPI DUP1 PUSH4 0xD55EC9C1 EQ PUSH2 0x169 JUMPI DUP1 PUSH4 0xD8BFF5A5 EQ PUSH2 0x192 JUMPI PUSH2 0xE5 JUMP JUMPDEST CALLDATASIZE PUSH2 0xE5 JUMPI PUSH1 0x2 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xE3 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0xDA SWAP1 PUSH2 0x59C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xFF PUSH2 0x1CF JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x10C SWAP2 SWAP1 PUSH2 0x5BC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x121 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x13C PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x137 SWAP2 SWAP1 PUSH2 0x513 JUMP JUMPDEST PUSH2 0x1D8 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x14A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH2 0x20B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x160 SWAP2 SWAP1 PUSH2 0x5BC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x175 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x190 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x18B SWAP2 SWAP1 PUSH2 0x4CA JUMP JUMPDEST PUSH2 0x215 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1B9 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1B4 SWAP2 SWAP1 PUSH2 0x49D JUMP JUMPDEST PUSH2 0x3A8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1C6 SWAP2 SWAP1 PUSH2 0x581 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP1 DUP3 DUP3 SLOAD PUSH2 0x1E9 SWAP2 SWAP1 PUSH2 0x639 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH1 0x1 PUSH1 0x0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0x203 SWAP1 PUSH2 0x718 JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x2A5 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x29C SWAP1 PUSH2 0x59C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x3A4 JUMPI DUP2 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x2C4 JUMPI PUSH2 0x2C3 PUSH2 0x790 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x8FC PUSH1 0x1 SWAP1 DUP2 ISZERO MUL SWAP1 PUSH1 0x40 MLOAD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x312 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x3 PUSH1 0x0 DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x34B JUMPI PUSH2 0x34A PUSH2 0x790 JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP2 SWAP1 SSTORE POP DUP1 DUP1 PUSH2 0x39C SWAP1 PUSH2 0x718 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x2A8 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x3 PUSH1 0x20 MSTORE DUP1 PUSH1 0x0 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH1 0x0 SWAP2 POP SWAP1 POP SLOAD DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3D3 PUSH2 0x3CE DUP5 PUSH2 0x5FC JUMP JUMPDEST PUSH2 0x5D7 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 0x3F6 JUMPI PUSH2 0x3F5 PUSH2 0x7F3 JUMP JUMPDEST JUMPDEST PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x426 JUMPI DUP2 PUSH2 0x40C DUP9 DUP3 PUSH2 0x445 JUMP JUMPDEST DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP4 ADD SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x3F9 JUMP JUMPDEST POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x43F DUP2 PUSH2 0x862 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x454 DUP2 PUSH2 0x879 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x46F JUMPI PUSH2 0x46E PUSH2 0x7EE JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x47F DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x3C0 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x497 DUP2 PUSH2 0x890 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x4B3 JUMPI PUSH2 0x4B2 PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x4C1 DUP5 DUP3 DUP6 ADD PUSH2 0x430 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x4E0 JUMPI PUSH2 0x4DF PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x4FE JUMPI PUSH2 0x4FD PUSH2 0x7F8 JUMP JUMPDEST JUMPDEST PUSH2 0x50A DUP5 DUP3 DUP6 ADD PUSH2 0x45A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x529 JUMPI PUSH2 0x528 PUSH2 0x7FD JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x537 DUP5 DUP3 DUP6 ADD PUSH2 0x488 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x549 DUP2 PUSH2 0x6B3 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x55C PUSH1 0x24 DUP4 PUSH2 0x628 JUMP JUMPDEST SWAP2 POP PUSH2 0x567 DUP3 PUSH2 0x813 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x57B DUP2 PUSH2 0x6DD JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x596 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x540 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x5B5 DUP2 PUSH2 0x54F JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x5D1 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x572 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5E1 PUSH2 0x5F2 JUMP JUMPDEST SWAP1 POP PUSH2 0x5ED DUP3 DUP3 PUSH2 0x6E7 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 0x617 JUMPI PUSH2 0x616 PUSH2 0x7BF JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP3 MUL SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x644 DUP3 PUSH2 0x6DD JUMP JUMPDEST SWAP2 POP PUSH2 0x64F DUP4 PUSH2 0x6DD JUMP JUMPDEST SWAP3 POP DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB DUP3 GT ISZERO PUSH2 0x684 JUMPI PUSH2 0x683 PUSH2 0x761 JUMP JUMPDEST JUMPDEST DUP3 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x69A DUP3 PUSH2 0x6BD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x6AC DUP3 PUSH2 0x6BD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 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 0x6F0 DUP3 PUSH2 0x802 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x70F JUMPI PUSH2 0x70E PUSH2 0x7BF JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x723 DUP3 PUSH2 0x6DD JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x756 JUMPI PUSH2 0x755 PUSH2 0x761 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 0x4F776E61626C653A20596F7520617265206E6F7420746865206F776E65722C20 PUSH1 0x0 DUP3 ADD MSTORE PUSH32 0x4279652E00000000000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH2 0x86B DUP2 PUSH2 0x68F JUMP JUMPDEST DUP2 EQ PUSH2 0x876 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x882 DUP2 PUSH2 0x6A1 JUMP JUMPDEST DUP2 EQ PUSH2 0x88D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x899 DUP2 PUSH2 0x6DD JUMP JUMPDEST DUP2 EQ PUSH2 0x8A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDE SAR LOG4 CHAINID 0xA8 0x5E 0xAF 0xAD DUP7 0xE4 DUP5 0xFC SELFDESTRUCT DUP2 CODESIZE DELEGATECALL PUSH26 0x660C4B69A44CF0F8C6605AB4EB6B2464736F6C63430008070033 ",
"sourceMap": "26:1185:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;248:5;;;;;;;;;;;234:19;;:10;:19;;;226:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;26:1185;;;;;587:82;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;778:98;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;679:88;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;886:273;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;154:36;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;587:82;629:7;655;;648:14;;587:82;:::o;778:98::-;841:6;830:7;;:17;;;;;;;:::i;:::-;;;;;;;;857:10;;:12;;;;;;;;;:::i;:::-;;;;;;778:98;:::o;679:88::-;724:7;750:10;;743:17;;679:88;:::o;886:273::-;248:5;;;;;;;;;;;234:19;;:10;:19;;;226:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;975:6:::1;970:183;991:7;:14;987:1;:18;970:183;;;1026:7;1034:1;1026:10;;;;;;;;:::i;:::-;;;;;;;;:19;;:22;1046:1;1026:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;1140:2;1120:5;:17;1126:7;1134:1;1126:10;;;;;;;;:::i;:::-;;;;;;;;1120:17;;;;;;;;;;;;;;;:22;;;;1007:3;;;;;:::i;:::-;;;;970:183;;;;886:273:::0;:::o;154:36::-;;;;;;;;;;;;;;;;;:::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:139::-;830:5;868:6;855:20;846:29;;884:33;911:5;884:33;:::i;:::-;784:139;;;;:::o;929:155::-;983:5;1021:6;1008:20;999:29;;1037:41;1072:5;1037:41;:::i;:::-;929:155;;;;:::o;1115:386::-;1194:5;1243:3;1236:4;1228:6;1224:17;1220:27;1210:122;;1251:79;;:::i;:::-;1210:122;1368:6;1355:20;1393:102;1491:3;1483:6;1476:4;1468:6;1464:17;1393:102;:::i;:::-;1384:111;;1200:301;1115:386;;;;:::o;1507:139::-;1553:5;1591:6;1578:20;1569:29;;1607:33;1634:5;1607:33;:::i;:::-;1507:139;;;;:::o;1652:329::-;1711:6;1760:2;1748:9;1739:7;1735:23;1731:32;1728:119;;;1766:79;;:::i;:::-;1728:119;1886:1;1911:53;1956:7;1947:6;1936:9;1932:22;1911:53;:::i;:::-;1901:63;;1857:117;1652:329;;;;:::o;1987:555::-;2079:6;2128:2;2116:9;2107:7;2103:23;2099:32;2096:119;;;2134:79;;:::i;:::-;2096:119;2282:1;2271:9;2267:17;2254:31;2312:18;2304:6;2301:30;2298:117;;;2334:79;;:::i;:::-;2298:117;2439:86;2517:7;2508:6;2497:9;2493:22;2439:86;:::i;:::-;2429:96;;2225:310;1987:555;;;;:::o;2548:329::-;2607:6;2656:2;2644:9;2635:7;2631:23;2627:32;2624:119;;;2662:79;;:::i;:::-;2624:119;2782:1;2807:53;2852:7;2843:6;2832:9;2828:22;2807:53;:::i;:::-;2797:63;;2753:117;2548:329;;;;:::o;2883:115::-;2968:23;2985:5;2968:23;:::i;:::-;2963:3;2956:36;2883:115;;:::o;3004:366::-;3146:3;3167:67;3231:2;3226:3;3167:67;:::i;:::-;3160:74;;3243:93;3332:3;3243:93;:::i;:::-;3361:2;3356:3;3352:12;3345:19;;3004:366;;;:::o;3376:118::-;3463:24;3481:5;3463:24;:::i;:::-;3458:3;3451:37;3376:118;;:::o;3500:218::-;3591:4;3629:2;3618:9;3614:18;3606:26;;3642:69;3708:1;3697:9;3693:17;3684:6;3642:69;:::i;:::-;3500:218;;;;:::o;3724:419::-;3890:4;3928:2;3917:9;3913:18;3905:26;;3977:9;3971:4;3967:20;3963:1;3952:9;3948:17;3941:47;4005:131;4131:4;4005:131;:::i;:::-;3997:139;;3724:419;;;:::o;4149:222::-;4242:4;4280:2;4269:9;4265:18;4257:26;;4293:71;4361:1;4350:9;4346:17;4337:6;4293:71;:::i;:::-;4149:222;;;;:::o;4377:129::-;4411:6;4438:20;;:::i;:::-;4428:30;;4467:33;4495:4;4487:6;4467:33;:::i;:::-;4377:129;;;:::o;4512:75::-;4545:6;4578:2;4572:9;4562:19;;4512:75;:::o;4593:319::-;4678:4;4768:18;4760:6;4757:30;4754:56;;;4790:18;;:::i;:::-;4754:56;4840:4;4832:6;4828:17;4820:25;;4900:4;4894;4890:15;4882:23;;4593:319;;;:::o;4918:169::-;5002:11;5036:6;5031:3;5024:19;5076:4;5071:3;5067:14;5052:29;;4918:169;;;;:::o;5093:305::-;5133:3;5152:20;5170:1;5152:20;:::i;:::-;5147:25;;5186:20;5204:1;5186:20;:::i;:::-;5181:25;;5340:1;5272:66;5268:74;5265:1;5262:81;5259:107;;;5346:18;;:::i;:::-;5259:107;5390:1;5387;5383:9;5376:16;;5093:305;;;;:::o;5404:96::-;5441:7;5470:24;5488:5;5470:24;:::i;:::-;5459:35;;5404:96;;;:::o;5506:104::-;5551:7;5580:24;5598:5;5580:24;:::i;:::-;5569:35;;5506:104;;;:::o;5616:76::-;5652:7;5681:5;5670:16;;5616:76;;;:::o;5698:126::-;5735:7;5775:42;5768:5;5764:54;5753:65;;5698:126;;;:::o;5830:77::-;5867:7;5896:5;5885:16;;5830:77;;;:::o;5913:281::-;5996:27;6018:4;5996:27;:::i;:::-;5988:6;5984:40;6126:6;6114:10;6111:22;6090:18;6078:10;6075:34;6072:62;6069:88;;;6137:18;;:::i;:::-;6069:88;6177:10;6173:2;6166:22;5956:238;5913:281;;:::o;6200:233::-;6239:3;6262:24;6280:5;6262:24;:::i;:::-;6253:33;;6308:66;6301:5;6298:77;6295:103;;;6378:18;;:::i;:::-;6295:103;6425:1;6418:5;6414:13;6407:20;;6200:233;;;:::o;6439:180::-;6487:77;6484:1;6477:88;6584:4;6581:1;6574:15;6608:4;6605:1;6598:15;6625:180;6673:77;6670:1;6663:88;6770:4;6767:1;6760:15;6794:4;6791:1;6784:15;6811:180;6859:77;6856:1;6849:88;6956:4;6953:1;6946:15;6980:4;6977:1;6970:15;6997:117;7106:1;7103;7096:12;7120:117;7229:1;7226;7219:12;7243:117;7352:1;7349;7342:12;7366:117;7475:1;7472;7465:12;7489:102;7530:6;7581:2;7577:7;7572:2;7565:5;7561:14;7557:28;7547:38;;7489:102;;;:::o;7597:223::-;7737:34;7733:1;7725:6;7721:14;7714:58;7806:6;7801:2;7793:6;7789:15;7782:31;7597:223;:::o;7826:122::-;7899:24;7917:5;7899:24;:::i;:::-;7892:5;7889:35;7879:63;;7938:1;7935;7928:12;7879:63;7826:122;:::o;7954:138::-;8035:32;8061:5;8035:32;:::i;:::-;8028:5;8025:43;8015:71;;8082:1;8079;8072:12;8015:71;7954:138;:::o;8098:122::-;8171:24;8189:5;8171:24;:::i;:::-;8164:5;8161:35;8151:63;;8210:1;8207;8200:12;8151:63;8098:122;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "453800",
"executionCost": "34780",
"totalCost": "488580"
},
"external": {
"getResults()": "2415",
"getTotalVotes()": "2459",
"registerVoters(address[])": "infinite",
"sendBallot(uint256)": "infinite",
"votes(address)": "2880"
}
},
"methodIdentifiers": {
"getResults()": "4717f97c",
"getTotalVotes()": "9a0e7d66",
"registerVoters(address[])": "d55ec9c1",
"sendBallot(uint256)": "4900a285",
"votes(address)": "d8bff5a5"
}
},
"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"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "votes",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
}
{
"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"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "votes",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"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": "0x73f19a2529af389fd1f486ba7f8015bad922bfcdcfad7e832621f9df353a76fd",
"urls": [
"bzz-raw://5e350b9b94e15b4680c333ebcc80376e44f79c321e3406f4b8bc3374bdd5f2f9",
"dweb:/ipfs/QmayjXtGrAvqYdiqMBAniZma2WnN6RY7cpZJrMqbE4KQm5"
]
}
},
"version": 1
}
pragma solidity '0.8.7';
contract Democracy {
// int tallyYes = 0;
uint results;
uint totalVotes;
address owner;
mapping(address => int) public votes;
modifier onlyOwner {
require(msg.sender == owner, "Ownable: You are not the owner, Bye.");
_;
}
modifier onlyRegistered {
require(votes[msg.sender] == -1, "Unregistered voter. Cya.");
_;
}
constructor () {
totalVotes = 0;
results = 0;
owner = msg.sender;
}
receive() external payable onlyOwner {}
function getResults() view public returns(uint256) {
return results;
}
function getTotalVotes() view public returns(uint256) {
return totalVotes;
}
function sendBallot(int ballot) public onlyRegistered {
results += ballot;
totalVotes++;
votes[msg.sender] = ballot;
}
function registerVoters(address payable[] memory _voters) public onlyOwner{
for (uint i = 0; i < _voters.length; i++) {
_voters[i].transfer(1); // ??
// init as negative -1 to signify null
votes[_voters[i]] = -1;
}
}
// selfdestruct to return ether to owner
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment