{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "", "type": "string" } ], "name": "log", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "", "type": "address" } ], "name": "log_address", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "log_bytes", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "log_bytes32", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "int256", "name": "", "type": "int256" } ], "name": "log_int", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "address", "name": "val", "type": "address" } ], "name": "log_named_address", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "bytes", "name": "val", "type": "bytes" } ], "name": "log_named_bytes", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "bytes32", "name": "val", "type": "bytes32" } ], "name": "log_named_bytes32", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "int256", "name": "val", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "decimals", "type": "uint256" } ], "name": "log_named_decimal_int", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "val", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "decimals", "type": "uint256" } ], "name": "log_named_decimal_uint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "int256", "name": "val", "type": "int256" } ], "name": "log_named_int", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "string", "name": "val", "type": "string" } ], "name": "log_named_string", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "key", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "val", "type": "uint256" } ], "name": "log_named_uint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "", "type": "string" } ], "name": "log_string", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "log_uint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "logs", "type": "event" }, { "inputs": [], "name": "IS_TEST", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "failed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": { "object": "0x60806040526000805460ff1916600117905534801561001d57600080fd5b506103688061002d6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063ba414fa61461003b578063fa7626d414610059575b600080fd5b610043610066565b60405161005091906101f2565b60405180910390f35b6000546100439060ff1681565b60008054610100900460ff16156100865750600054610100900460ff1690565b6000737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101e357604051600090737109709ecfa91a80626ff3989d68f67f5b1dd12d907f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4906101119083907f6661696c6564000000000000000000000000000000000000000000000000000090602001610233565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261014d92916020016102c2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610185916102e3565b6000604051808303816000865af19150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b50915050808060200190518101906101df9190610313565b9150505b919050565b8015155b82525050565b6020810161020082846101e8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610200565b6101ec81610206565b806101ec565b604081016102418285610224565b61024e602083018461022d565b9392505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081166101ec565b60005b83811015610298578181015183820152602001610280565b50506000910152565b60006102ab825190565b836102ba82826020870161027d565b019392505050565b6102cc8184610255565b60006102db60048301846102a1565b949350505050565b600061024e82846102a1565b80151581146102fd57600080fd5b50565b80518061030c816102ef565b5092915050565b60006020828403121561032857610328600080fd5b61024e838361030056fea2646970667358221220f0d5770884dc08908b0a1f6e6db3e4a1e540e9b57de42c9a2c13ec429a9262b764736f6c63430008160033", "sourceMap": "715:19781:0:-:0;;;1572:26;;;-1:-1:-1;;1572:26:0;1594:4;1572:26;;;715:19781;;;;;;;;;;;;;;;;", "linkReferences": {} }, "deployedBytecode": { "object": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063ba414fa61461003b578063fa7626d414610059575b600080fd5b610043610066565b60405161005091906101f2565b60405180910390f35b6000546100439060ff1681565b60008054610100900460ff16156100865750600054610100900460ff1690565b6000737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101e357604051600090737109709ecfa91a80626ff3989d68f67f5b1dd12d907f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4906101119083907f6661696c6564000000000000000000000000000000000000000000000000000090602001610233565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261014d92916020016102c2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610185916102e3565b6000604051808303816000865af19150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b50915050808060200190518101906101df9190610313565b9150505b919050565b8015155b82525050565b6020810161020082846101e8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610200565b6101ec81610206565b806101ec565b604081016102418285610224565b61024e602083018461022d565b9392505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081166101ec565b60005b83811015610298578181015183820152602001610280565b50506000910152565b60006102ab825190565b836102ba82826020870161027d565b019392505050565b6102cc8184610255565b60006102db60048301846102a1565b949350505050565b600061024e82846102a1565b80151581146102fd57600080fd5b50565b80518061030c816102ef565b5092915050565b60006020828403121561032857610328600080fd5b61024e838361030056fea2646970667358221220f0d5770884dc08908b0a1f6e6db3e4a1e540e9b57de42c9a2c13ec429a9262b764736f6c63430008160033", "sourceMap": "715:19781:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:584;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1572:26;;;;;;;;;1819:584;1853:4;1873:7;;;;;;;1869:528;;;-1:-1:-1;1903:7:0;;;;;;;;1819:584::o;1869:528::-;1941:17;2997:42;2985:55;3066:16;1980:374;;2196:43;;2023:20;;1671:64;;2135:34;;2196:43;;1671:64;;2221:17;;2196:43;;;:::i;:::-;;;;;;;;;;;;;;;2086:175;;;2196:43;2086:175;;:::i;:::-;;;;;;;;;;;;;;;2047:232;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2020:259;;;2323:7;2312:27;;;;;;;;;;;;:::i;:::-;2297:42;;2002:352;1980:374;2374:12;1819:584;-1:-1:-1;1819:584:0:o;111:89:69:-;86:13;;79:21;174:19;169:3;162:32;;;111:89::o;205:180::-;333:2;318:18;;345:34;322:9;361:6;345:34;:::i;:::-;205:180;;;;:::o;523:96::-;558:7;469:42;458:54;;591:22;390:128;624:95;690:22;706:5;690:22;:::i;796:95::-;878:5;862:22;724:67;896:272;1058:2;1043:18;;1070:37;1047:9;1089:6;1070:37;:::i;:::-;1116:46;1158:2;1147:9;1143:18;1135:6;1116:46;:::i;:::-;896:272;;;;;:::o;1402:111::-;1251:66;1240:78;;1467:39;724:67;1719:250;1804:1;1814:113;1828:6;1825:1;1822:13;1814:113;;;1904:11;;;1898:18;1885:11;;;1878:39;1850:2;1843:10;1814:113;;;-1:-1:-1;;1961:1:69;1943:16;;1936:27;1719:250::o;1974:301::-;2015:3;2047:25;2066:5;1579:12;;1518:75;2047:25;2147:3;2168:67;2228:6;2221:5;2214:4;2207:5;2203:16;2168:67;:::i;:::-;2251:18;;1974:301;-1:-1:-1;;;1974:301:69:o;2280:262::-;2453:30;2479:3;2471:6;2453:30;:::i;:::-;2435:3;2499:37;2533:1;2528:3;2524:11;2516:6;2499:37;:::i;:::-;2492:44;2280:262;-1:-1:-1;;;;2280:262:69:o;2547:189::-;2676:3;2701:29;2726:3;2718:6;2701:29;:::i;2855:116::-;86:13;;79:21;2920:5;2917:30;2907:58;;2961:1;2958;2951:12;2907:58;2855:116;:::o;2976:170::-;3063:13;;;3110:30;3063:13;3110:30;:::i;:::-;;2976:170;;;;:::o;3151:306::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:147;;;3297:79;715:19781:0;;;3297:79:69;3405:46;3443:7;3432:9;3405:46;:::i", "linkReferences": {} }, "methodIdentifiers": { "IS_TEST()": "fa7626d4", "failed()": "ba414fa6" }, "rawMetadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"log_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"log_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"log_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"name\":\"log_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"val\",\"type\":\"address\"}],\"name\":\"log_named_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"val\",\"type\":\"bytes\"}],\"name\":\"log_named_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"val\",\"type\":\"bytes32\"}],\"name\":\"log_named_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"}],\"name\":\"log_named_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"val\",\"type\":\"string\"}],\"name\":\"log_named_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"log_named_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"log_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"logs\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"IS_TEST\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"failed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/forge-std/lib/ds-test/src/test.sol\":\"DSTest\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"details\":{\"constantOptimizer\":true,\"cse\":true,\"deduplicate\":true,\"inliner\":true,\"jumpdestRemover\":true,\"orderLiterals\":true,\"peephole\":true,\"simpleCounterForLoopUncheckedIncrement\":true,\"yul\":true,\"yulDetails\":{\"optimizerSteps\":\"dhfoD[xarrscLMcCTU]uljmul:fDnTOcmu\",\"stackAllocation\":true}},\"runs\":999999999},\"remappings\":[\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@uniswap/v3-core/=lib_uniswap/v3-core/\",\":@uniswap/v3-periphery/=lib_uniswap/v3-periphery/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":v3-core/=lib_uniswap/v3-core/\",\":v3-periphery/libraries/=lib_uniswap/v3-periphery/contracts/libraries/\"]},\"sources\":{\"lib/forge-std/lib/ds-test/src/test.sol\":{\"keccak256\":\"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240\",\"dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k\"]}},\"version\":1}", "metadata": { "compiler": { "version": "0.8.22+commit.4fc1097e" }, "language": "Solidity", "output": { "abi": [ { "inputs": [ { "internalType": "string", "name": "", "type": "string", "indexed": false } ], "type": "event", "name": "log", "anonymous": false }, { "inputs": [ { "internalType": "address", "name": "", "type": "address", "indexed": false } ], "type": "event", "name": "log_address", "anonymous": false }, { "inputs": [ { "internalType": "bytes", "name": "", "type": "bytes", "indexed": false } ], "type": "event", "name": "log_bytes", "anonymous": false }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32", "indexed": false } ], "type": "event", "name": "log_bytes32", "anonymous": false }, { "inputs": [ { "internalType": "int256", "name": "", "type": "int256", "indexed": false } ], "type": "event", "name": "log_int", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "address", "name": "val", "type": "address", "indexed": false } ], "type": "event", "name": "log_named_address", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "bytes", "name": "val", "type": "bytes", "indexed": false } ], "type": "event", "name": "log_named_bytes", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "bytes32", "name": "val", "type": "bytes32", "indexed": false } ], "type": "event", "name": "log_named_bytes32", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "int256", "name": "val", "type": "int256", "indexed": false }, { "internalType": "uint256", "name": "decimals", "type": "uint256", "indexed": false } ], "type": "event", "name": "log_named_decimal_int", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "uint256", "name": "val", "type": "uint256", "indexed": false }, { "internalType": "uint256", "name": "decimals", "type": "uint256", "indexed": false } ], "type": "event", "name": "log_named_decimal_uint", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "int256", "name": "val", "type": "int256", "indexed": false } ], "type": "event", "name": "log_named_int", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "string", "name": "val", "type": "string", "indexed": false } ], "type": "event", "name": "log_named_string", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "key", "type": "string", "indexed": false }, { "internalType": "uint256", "name": "val", "type": "uint256", "indexed": false } ], "type": "event", "name": "log_named_uint", "anonymous": false }, { "inputs": [ { "internalType": "string", "name": "", "type": "string", "indexed": false } ], "type": "event", "name": "log_string", "anonymous": false }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256", "indexed": false } ], "type": "event", "name": "log_uint", "anonymous": false }, { "inputs": [ { "internalType": "bytes", "name": "", "type": "bytes", "indexed": false } ], "type": "event", "name": "logs", "anonymous": false }, { "inputs": [], "stateMutability": "view", "type": "function", "name": "IS_TEST", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ] }, { "inputs": [], "stateMutability": "nonpayable", "type": "function", "name": "failed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ] } ], "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@uniswap/v3-core/=lib_uniswap/v3-core/", "@uniswap/v3-periphery/=lib_uniswap/v3-periphery/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v3-core/=lib_uniswap/v3-core/", "v3-periphery/libraries/=lib_uniswap/v3-periphery/contracts/libraries/" ], "optimizer": { "runs": 999999999, "details": { "peephole": true, "inliner": true, "jumpdestRemover": true, "orderLiterals": true, "deduplicate": true, "cse": true, "constantOptimizer": true, "yul": true, "yulDetails": { "stackAllocation": true, "optimizerSteps": "dhfoD[xarrscLMcCTU]uljmul:fDnTOcmu" } } }, "metadata": { "bytecodeHash": "ipfs" }, "compilationTarget": { "lib/forge-std/lib/ds-test/src/test.sol": "DSTest" }, "libraries": {} }, "sources": { "lib/forge-std/lib/ds-test/src/test.sol": { "keccak256": "0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b", "urls": [ "bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240", "dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k" ], "license": "GPL-3.0-or-later" } }, "version": 1 }, "ast": { "absolutePath": "lib/forge-std/lib/ds-test/src/test.sol", "id": 2292, "exportedSymbols": { "DSTest": [ 2291 ] }, "nodeType": "SourceUnit", "src": "689:19808:0", "nodes": [ { "id": 1, "nodeType": "PragmaDirective", "src": "689:24:0", "nodes": [], "literals": [ "solidity", ">=", "0.5", ".0" ] }, { "id": 2291, "nodeType": "ContractDefinition", "src": "715:19781:0", "nodes": [ { "id": 5, "nodeType": "EventDefinition", "src": "737:38:0", "nodes": [], "anonymous": false, "eventSelector": "41304facd9323d75b11bcdd609cb38effffdb05710f7caf0e9b16c6d9d709f50", "name": "log", "nameLocation": "743:3:0", "parameters": { "id": 4, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5, "src": "767:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2, "name": "string", "nodeType": "ElementaryTypeName", "src": "767:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "766:8:0" } }, { "id": 9, "nodeType": "EventDefinition", "src": "780:37:0", "nodes": [], "anonymous": false, "eventSelector": "e7950ede0394b9f2ce4a5a1bf5a7e1852411f7e6661b4308c913c4bfd11027e4", "name": "logs", "nameLocation": "786:4:0", "parameters": { "id": 8, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 9, "src": "810:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "810:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "809:7:0" } }, { "id": 13, "nodeType": "EventDefinition", "src": "823:39:0", "nodes": [], "anonymous": false, "eventSelector": "7ae74c527414ae135fd97047b12921a5ec3911b804197855d67e25c7b75ee6f3", "name": "log_address", "nameLocation": "829:11:0", "parameters": { "id": 12, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 11, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 13, "src": "853:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10, "name": "address", "nodeType": "ElementaryTypeName", "src": "853:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "852:9:0" } }, { "id": 17, "nodeType": "EventDefinition", "src": "867:39:0", "nodes": [], "anonymous": false, "eventSelector": "e81699b85113eea1c73e10588b2b035e55893369632173afd43feb192fac64e3", "name": "log_bytes32", "nameLocation": "873:11:0", "parameters": { "id": 16, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 17, "src": "897:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "897:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "896:9:0" } }, { "id": 21, "nodeType": "EventDefinition", "src": "911:35:0", "nodes": [], "anonymous": false, "eventSelector": "0eb5d52624c8d28ada9fc55a8c502ed5aa3fbe2fb6e91b71b5f376882b1d2fb8", "name": "log_int", "nameLocation": "917:7:0", "parameters": { "id": 20, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 19, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 21, "src": "941:3:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 18, "name": "int", "nodeType": "ElementaryTypeName", "src": "941:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "940:5:0" } }, { "id": 25, "nodeType": "EventDefinition", "src": "951:36:0", "nodes": [], "anonymous": false, "eventSelector": "2cab9790510fd8bdfbd2115288db33fec66691d476efc5427cfd4c0969301755", "name": "log_uint", "nameLocation": "957:8:0", "parameters": { "id": 24, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 25, "src": "981:4:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22, "name": "uint", "nodeType": "ElementaryTypeName", "src": "981:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "980:6:0" } }, { "id": 29, "nodeType": "EventDefinition", "src": "992:37:0", "nodes": [], "anonymous": false, "eventSelector": "23b62ad0584d24a75f0bf3560391ef5659ec6db1269c56e11aa241d637f19b20", "name": "log_bytes", "nameLocation": "998:9:0", "parameters": { "id": 28, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29, "src": "1022:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 26, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1022:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "1021:7:0" } }, { "id": 33, "nodeType": "EventDefinition", "src": "1034:38:0", "nodes": [], "anonymous": false, "eventSelector": "0b2e13ff20ac7b474198655583edf70dedd2c1dc980e329c4fbb2fc0748b796b", "name": "log_string", "nameLocation": "1040:10:0", "parameters": { "id": 32, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 31, "indexed": false, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 33, "src": "1064:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 30, "name": "string", "nodeType": "ElementaryTypeName", "src": "1064:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "1063:8:0" } }, { "id": 39, "nodeType": "EventDefinition", "src": "1078:55:0", "nodes": [], "anonymous": false, "eventSelector": "9c4e8541ca8f0dc1c413f9108f66d82d3cecb1bddbce437a61caa3175c4cc96f", "name": "log_named_address", "nameLocation": "1084:17:0", "parameters": { "id": 38, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 35, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1115:3:0", "nodeType": "VariableDeclaration", "scope": 39, "src": "1108:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 34, "name": "string", "nodeType": "ElementaryTypeName", "src": "1108:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 37, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1128:3:0", "nodeType": "VariableDeclaration", "scope": 39, "src": "1120:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 36, "name": "address", "nodeType": "ElementaryTypeName", "src": "1120:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1107:25:0" } }, { "id": 45, "nodeType": "EventDefinition", "src": "1138:55:0", "nodes": [], "anonymous": false, "eventSelector": "afb795c9c61e4fe7468c386f925d7a5429ecad9c0495ddb8d38d690614d32f99", "name": "log_named_bytes32", "nameLocation": "1144:17:0", "parameters": { "id": 44, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 41, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1175:3:0", "nodeType": "VariableDeclaration", "scope": 45, "src": "1168:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 40, "name": "string", "nodeType": "ElementaryTypeName", "src": "1168:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 43, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1188:3:0", "nodeType": "VariableDeclaration", "scope": 45, "src": "1180:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 42, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1180:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1167:25:0" } }, { "id": 53, "nodeType": "EventDefinition", "src": "1198:66:0", "nodes": [], "anonymous": false, "eventSelector": "5da6ce9d51151ba10c09a559ef24d520b9dac5c5b8810ae8434e4d0d86411a95", "name": "log_named_decimal_int", "nameLocation": "1204:21:0", "parameters": { "id": 52, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 47, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1235:3:0", "nodeType": "VariableDeclaration", "scope": 53, "src": "1228:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 46, "name": "string", "nodeType": "ElementaryTypeName", "src": "1228:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 49, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1244:3:0", "nodeType": "VariableDeclaration", "scope": 53, "src": "1240:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 48, "name": "int", "nodeType": "ElementaryTypeName", "src": "1240:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 51, "indexed": false, "mutability": "mutable", "name": "decimals", "nameLocation": "1254:8:0", "nodeType": "VariableDeclaration", "scope": 53, "src": "1249:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 50, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1249:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1227:36:0" } }, { "id": 61, "nodeType": "EventDefinition", "src": "1269:67:0", "nodes": [], "anonymous": false, "eventSelector": "eb8ba43ced7537421946bd43e828b8b2b8428927aa8f801c13d934bf11aca57b", "name": "log_named_decimal_uint", "nameLocation": "1275:22:0", "parameters": { "id": 60, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 55, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1306:3:0", "nodeType": "VariableDeclaration", "scope": 61, "src": "1299:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 54, "name": "string", "nodeType": "ElementaryTypeName", "src": "1299:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 57, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1316:3:0", "nodeType": "VariableDeclaration", "scope": 61, "src": "1311:8:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 56, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1311:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 59, "indexed": false, "mutability": "mutable", "name": "decimals", "nameLocation": "1326:8:0", "nodeType": "VariableDeclaration", "scope": 61, "src": "1321:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 58, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1321:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1298:37:0" } }, { "id": 67, "nodeType": "EventDefinition", "src": "1341:51:0", "nodes": [], "anonymous": false, "eventSelector": "2fe632779174374378442a8e978bccfbdcc1d6b2b0d81f7e8eb776ab2286f168", "name": "log_named_int", "nameLocation": "1347:13:0", "parameters": { "id": 66, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 63, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1378:3:0", "nodeType": "VariableDeclaration", "scope": 67, "src": "1371:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 62, "name": "string", "nodeType": "ElementaryTypeName", "src": "1371:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 65, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1387:3:0", "nodeType": "VariableDeclaration", "scope": 67, "src": "1383:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 64, "name": "int", "nodeType": "ElementaryTypeName", "src": "1383:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "1370:21:0" } }, { "id": 73, "nodeType": "EventDefinition", "src": "1397:52:0", "nodes": [], "anonymous": false, "eventSelector": "b2de2fbe801a0df6c0cbddfd448ba3c41d48a040ca35c56c8196ef0fcae721a8", "name": "log_named_uint", "nameLocation": "1403:14:0", "parameters": { "id": 72, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 69, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1434:3:0", "nodeType": "VariableDeclaration", "scope": 73, "src": "1427:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 68, "name": "string", "nodeType": "ElementaryTypeName", "src": "1427:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 71, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1444:3:0", "nodeType": "VariableDeclaration", "scope": 73, "src": "1439:8:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 70, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1439:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1426:22:0" } }, { "id": 79, "nodeType": "EventDefinition", "src": "1454:53:0", "nodes": [], "anonymous": false, "eventSelector": "d26e16cad4548705e4c9e2d94f98ee91c289085ee425594fd5635fa2964ccf18", "name": "log_named_bytes", "nameLocation": "1460:15:0", "parameters": { "id": 78, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 75, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1491:3:0", "nodeType": "VariableDeclaration", "scope": 79, "src": "1484:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 74, "name": "string", "nodeType": "ElementaryTypeName", "src": "1484:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 77, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1502:3:0", "nodeType": "VariableDeclaration", "scope": 79, "src": "1496:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 76, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1496:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "1483:23:0" } }, { "id": 85, "nodeType": "EventDefinition", "src": "1512:54:0", "nodes": [], "anonymous": false, "eventSelector": "280f4446b28a1372417dda658d30b95b2992b12ac9c7f378535f29a97acf3583", "name": "log_named_string", "nameLocation": "1518:16:0", "parameters": { "id": 84, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 81, "indexed": false, "mutability": "mutable", "name": "key", "nameLocation": "1549:3:0", "nodeType": "VariableDeclaration", "scope": 85, "src": "1542:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 80, "name": "string", "nodeType": "ElementaryTypeName", "src": "1542:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 83, "indexed": false, "mutability": "mutable", "name": "val", "nameLocation": "1561:3:0", "nodeType": "VariableDeclaration", "scope": 85, "src": "1554:10:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 82, "name": "string", "nodeType": "ElementaryTypeName", "src": "1554:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "1541:24:0" } }, { "id": 88, "nodeType": "VariableDeclaration", "src": "1572:26:0", "nodes": [], "constant": false, "functionSelector": "fa7626d4", "mutability": "mutable", "name": "IS_TEST", "nameLocation": "1584:7:0", "scope": 2291, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 86, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1572:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": { "hexValue": "74727565", "id": 87, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1594:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "visibility": "public" }, { "id": 90, "nodeType": "VariableDeclaration", "src": "1604:20:0", "nodes": [], "constant": false, "mutability": "mutable", "name": "_failed", "nameLocation": "1617:7:0", "scope": 2291, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 89, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1604:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "private" }, { "id": 107, "nodeType": "VariableDeclaration", "src": "1631:104:0", "nodes": [], "constant": true, "mutability": "constant", "name": "HEVM_ADDRESS", "nameLocation": "1648:12:0", "scope": 2291, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 91, "name": "address", "nodeType": "ElementaryTypeName", "src": "1631:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": { "arguments": [ { "arguments": [ { "arguments": [ { "arguments": [ { "arguments": [ { "hexValue": "6865766d20636865617420636f6465", "id": 101, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1713:17:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_885cb69240a935d632d79c317109709ecfa91a80626ff3989d68f67f5b1dd12d", "typeString": "literal_string \"hevm cheat code\"" }, "value": "hevm cheat code" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_885cb69240a935d632d79c317109709ecfa91a80626ff3989d68f67f5b1dd12d", "typeString": "literal_string \"hevm cheat code\"" } ], "id": 100, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "1703:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 102, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1703:28:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 99, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1695:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": { "id": 98, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1695:7:0", "typeDescriptions": {} } }, "id": 103, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1695:37:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 97, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1687:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint160_$", "typeString": "type(uint160)" }, "typeName": { "id": 96, "name": "uint160", "nodeType": "ElementaryTypeName", "src": "1687:7:0", "typeDescriptions": {} } }, "id": 104, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1687:46:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint160", "typeString": "uint160" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint160", "typeString": "uint160" } ], "id": 95, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1679:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes20_$", "typeString": "type(bytes20)" }, "typeName": { "id": 94, "name": "bytes20", "nodeType": "ElementaryTypeName", "src": "1679:7:0", "typeDescriptions": {} } }, "id": 105, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1679:55:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes20", "typeString": "bytes20" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes20", "typeString": "bytes20" } ], "id": 93, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1671:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 92, "name": "address", "nodeType": "ElementaryTypeName", "src": "1671:7:0", "typeDescriptions": {} } }, "id": 106, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1671:64:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "id": 111, "nodeType": "ModifierDefinition", "src": "1742:27:0", "nodes": [], "body": { "id": 110, "nodeType": "Block", "src": "1763:6:0", "nodes": [], "statements": [ { "id": 109, "nodeType": "PlaceholderStatement", "src": "1765:1:0" } ] }, "name": "mayRevert", "nameLocation": "1751:9:0", "parameters": { "id": 108, "nodeType": "ParameterList", "parameters": [], "src": "1760:2:0" }, "virtual": false, "visibility": "internal" }, { "id": 117, "nodeType": "ModifierDefinition", "src": "1774:39:0", "nodes": [], "body": { "id": 116, "nodeType": "Block", "src": "1807:6:0", "nodes": [], "statements": [ { "id": 115, "nodeType": "PlaceholderStatement", "src": "1809:1:0" } ] }, "name": "testopts", "nameLocation": "1783:8:0", "parameters": { "id": 114, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 113, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 117, "src": "1792:13:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 112, "name": "string", "nodeType": "ElementaryTypeName", "src": "1792:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "1791:15:0" }, "virtual": false, "visibility": "internal" }, { "id": 172, "nodeType": "FunctionDefinition", "src": "1819:584:0", "nodes": [], "body": { "id": 171, "nodeType": "Block", "src": "1859:544:0", "nodes": [], "statements": [ { "condition": { "id": 122, "name": "_failed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 90, "src": "1873:7:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 169, "nodeType": "Block", "src": "1927:470:0", "statements": [ { "assignments": [ 127 ], "declarations": [ { "constant": false, "id": 127, "mutability": "mutable", "name": "globalFailed", "nameLocation": "1946:12:0", "nodeType": "VariableDeclaration", "scope": 169, "src": "1941:17:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 126, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1941:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "id": 129, "initialValue": { "hexValue": "66616c7365", "id": 128, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1961:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "nodeType": "VariableDeclarationStatement", "src": "1941:25:0" }, { "condition": { "arguments": [], "expression": { "argumentTypes": [], "id": 130, "name": "hasHEVMContext", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 231, "src": "1984:14:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, "id": 131, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1984:16:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 166, "nodeType": "IfStatement", "src": "1980:374:0", "trueBody": { "id": 165, "nodeType": "Block", "src": "2002:352:0", "statements": [ { "assignments": [ null, 133 ], "declarations": [ null, { "constant": false, "id": 133, "mutability": "mutable", "name": "retdata", "nameLocation": "2036:7:0", "nodeType": "VariableDeclaration", "scope": 165, "src": "2023:20:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 132, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2023:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "id": 154, "initialValue": { "arguments": [ { "arguments": [ { "arguments": [ { "arguments": [ { "hexValue": "6c6f616428616464726573732c6279746573333229", "id": 141, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2145:23:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4", "typeString": "literal_string \"load(address,bytes32)\"" }, "value": "load(address,bytes32)" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4", "typeString": "literal_string \"load(address,bytes32)\"" } ], "id": 140, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "2135:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 142, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2135:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 139, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2128:6:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes4_$", "typeString": "type(bytes4)" }, "typeName": { "id": 138, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "2128:6:0", "typeDescriptions": {} } }, "id": 143, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2128:42:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, { "arguments": [ { "id": 146, "name": "HEVM_ADDRESS", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 107, "src": "2207:12:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "arguments": [ { "hexValue": "6661696c6564", "id": 149, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2229:8:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f44d68b1a26169d304522fa2f95aa938d98120d628d1db5726120ca84e53b43", "typeString": "literal_string \"failed\"" }, "value": "failed" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_8f44d68b1a26169d304522fa2f95aa938d98120d628d1db5726120ca84e53b43", "typeString": "literal_string \"failed\"" } ], "id": 148, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2221:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes32_$", "typeString": "type(bytes32)" }, "typeName": { "id": 147, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2221:7:0", "typeDescriptions": {} } }, "id": 150, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2221:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "expression": { "id": 144, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "2196:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 145, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "2200:6:0", "memberName": "encode", "nodeType": "MemberAccess", "src": "2196:10:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 151, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2196:43:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "expression": { "id": 136, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "2086:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 137, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "2090:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "2086:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 152, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2086:175:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "expression": { "id": 134, "name": "HEVM_ADDRESS", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 107, "src": "2047:12:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 135, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "2060:4:0", "memberName": "call", "nodeType": "MemberAccess", "src": "2047:17:0", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 153, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2047:232:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "tuple(bool,bytes memory)" } }, "nodeType": "VariableDeclarationStatement", "src": "2020:259:0" }, { "expression": { "id": 163, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 155, "name": "globalFailed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 127, "src": "2297:12:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 158, "name": "retdata", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 133, "src": "2323:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "components": [ { "id": 160, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2333:4:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bool_$", "typeString": "type(bool)" }, "typeName": { "id": 159, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2333:4:0", "typeDescriptions": {} } } ], "id": 161, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "2332:6:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bool_$", "typeString": "type(bool)" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_type$_t_bool_$", "typeString": "type(bool)" } ], "expression": { "id": 156, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "2312:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 157, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "2316:6:0", "memberName": "decode", "nodeType": "MemberAccess", "src": "2312:10:0", "typeDescriptions": { "typeIdentifier": "t_function_abidecode_pure$__$returns$__$", "typeString": "function () pure" } }, "id": 162, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2312:27:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2297:42:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 164, "nodeType": "ExpressionStatement", "src": "2297:42:0" } ] } }, { "expression": { "id": 167, "name": "globalFailed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 127, "src": "2374:12:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 121, "id": 168, "nodeType": "Return", "src": "2367:19:0" } ] }, "id": 170, "nodeType": "IfStatement", "src": "1869:528:0", "trueBody": { "id": 125, "nodeType": "Block", "src": "1882:39:0", "statements": [ { "expression": { "id": 123, "name": "_failed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 90, "src": "1903:7:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 121, "id": 124, "nodeType": "Return", "src": "1896:14:0" } ] } } ] }, "functionSelector": "ba414fa6", "implemented": true, "kind": "function", "modifiers": [], "name": "failed", "nameLocation": "1828:6:0", "parameters": { "id": 118, "nodeType": "ParameterList", "parameters": [], "src": "1834:2:0" }, "returnParameters": { "id": 121, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 120, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 172, "src": "1853:4:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 119, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1853:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1852:6:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "id": 216, "nodeType": "FunctionDefinition", "src": "2409:432:0", "nodes": [], "body": { "id": 215, "nodeType": "Block", "src": "2442:399:0", "nodes": [], "statements": [ { "condition": { "arguments": [], "expression": { "argumentTypes": [], "id": 175, "name": "hasHEVMContext", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 231, "src": "2456:14:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, "id": 176, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2456:16:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 210, "nodeType": "IfStatement", "src": "2452:359:0", "trueBody": { "id": 209, "nodeType": "Block", "src": "2474:337:0", "statements": [ { "assignments": [ 178, null ], "declarations": [ { "constant": false, "id": 178, "mutability": "mutable", "name": "status", "nameLocation": "2494:6:0", "nodeType": "VariableDeclaration", "scope": 209, "src": "2489:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 177, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2489:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, null ], "id": 206, "initialValue": { "arguments": [ { "arguments": [ { "arguments": [ { "arguments": [ { "hexValue": "73746f726528616464726573732c627974657333322c6279746573333229", "id": 186, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2596:32:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_70ca10bbd0dbfd9020a9f4b13402c16cb120705e0d1c0aeab10fa353ae586fc4", "typeString": "literal_string \"store(address,bytes32,bytes32)\"" }, "value": "store(address,bytes32,bytes32)" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_70ca10bbd0dbfd9020a9f4b13402c16cb120705e0d1c0aeab10fa353ae586fc4", "typeString": "literal_string \"store(address,bytes32,bytes32)\"" } ], "id": 185, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "2586:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 187, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2586:43:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 184, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2579:6:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes4_$", "typeString": "type(bytes4)" }, "typeName": { "id": 183, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "2579:6:0", "typeDescriptions": {} } }, "id": 188, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2579:51:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, { "arguments": [ { "id": 191, "name": "HEVM_ADDRESS", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 107, "src": "2663:12:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "arguments": [ { "hexValue": "6661696c6564", "id": 194, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2685:8:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f44d68b1a26169d304522fa2f95aa938d98120d628d1db5726120ca84e53b43", "typeString": "literal_string \"failed\"" }, "value": "failed" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_8f44d68b1a26169d304522fa2f95aa938d98120d628d1db5726120ca84e53b43", "typeString": "literal_string \"failed\"" } ], "id": 193, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2677:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes32_$", "typeString": "type(bytes32)" }, "typeName": { "id": 192, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2677:7:0", "typeDescriptions": {} } }, "id": 195, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2677:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "arguments": [ { "arguments": [ { "hexValue": "30783031", "id": 200, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2712:4:0", "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "0x01" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "id": 199, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2704:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": { "id": 198, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2704:7:0", "typeDescriptions": {} } }, "id": 201, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2704:13:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 197, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2696:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes32_$", "typeString": "type(bytes32)" }, "typeName": { "id": 196, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2696:7:0", "typeDescriptions": {} } }, "id": 202, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2696:22:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "expression": { "id": 189, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "2652:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 190, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "2656:6:0", "memberName": "encode", "nodeType": "MemberAccess", "src": "2652:10:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 203, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2652:67:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "expression": { "id": 181, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "2541:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 182, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "2545:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "2541:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 204, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2541:196:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "expression": { "id": 179, "name": "HEVM_ADDRESS", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 107, "src": "2506:12:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 180, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "2519:4:0", "memberName": "call", "nodeType": "MemberAccess", "src": "2506:17:0", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 205, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2506:245:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "tuple(bool,bytes memory)" } }, "nodeType": "VariableDeclarationStatement", "src": "2488:263:0" }, { "expression": { "id": 207, "name": "status", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 178, "src": "2765:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 208, "nodeType": "ExpressionStatement", "src": "2765:6:0" } ] } }, { "expression": { "id": 213, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 211, "name": "_failed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 90, "src": "2820:7:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "74727565", "id": 212, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2830:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "2820:14:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 214, "nodeType": "ExpressionStatement", "src": "2820:14:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "fail", "nameLocation": "2418:4:0", "parameters": { "id": 173, "nodeType": "ParameterList", "parameters": [], "src": "2422:2:0" }, "returnParameters": { "id": 174, "nodeType": "ParameterList", "parameters": [], "src": "2442:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": true, "visibility": "internal" }, { "id": 231, "nodeType": "FunctionDefinition", "src": "2847:242:0", "nodes": [], "body": { "id": 230, "nodeType": "Block", "src": "2902:187:0", "nodes": [], "statements": [ { "assignments": [ 222 ], "declarations": [ { "constant": false, "id": 222, "mutability": "mutable", "name": "hevmCodeSize", "nameLocation": "2920:12:0", "nodeType": "VariableDeclaration", "scope": 230, "src": "2912:20:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 221, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2912:7:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 224, "initialValue": { "hexValue": "30", "id": 223, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2935:1:0", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "2912:24:0" }, { "AST": { "nativeSrc": "2955:95:0", "nodeType": "YulBlock", "src": "2955:95:0", "statements": [ { "nativeSrc": "2969:71:0", "nodeType": "YulAssignment", "src": "2969:71:0", "value": { "arguments": [ { "kind": "number", "nativeSrc": "2997:42:0", "nodeType": "YulLiteral", "src": "2997:42:0", "type": "", "value": "0x7109709ECfa91a80626fF3989D68f67F5b1DD12D" } ], "functionName": { "name": "extcodesize", "nativeSrc": "2985:11:0", "nodeType": "YulIdentifier", "src": "2985:11:0" }, "nativeSrc": "2985:55:0", "nodeType": "YulFunctionCall", "src": "2985:55:0" }, "variableNames": [ { "name": "hevmCodeSize", "nativeSrc": "2969:12:0", "nodeType": "YulIdentifier", "src": "2969:12:0" } ] } ] }, "evmVersion": "paris", "externalReferences": [ { "declaration": 222, "isOffset": false, "isSlot": false, "src": "2969:12:0", "valueSize": 1 } ], "id": 225, "nodeType": "InlineAssembly", "src": "2946:104:0" }, { "expression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 228, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 226, "name": "hevmCodeSize", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 222, "src": "3066:12:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "hexValue": "30", "id": 227, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3081:1:0", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "3066:16:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 220, "id": 229, "nodeType": "Return", "src": "3059:23:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "hasHEVMContext", "nameLocation": "2856:14:0", "parameters": { "id": 217, "nodeType": "ParameterList", "parameters": [], "src": "2870:2:0" }, "returnParameters": { "id": 220, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 219, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 231, "src": "2896:4:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 218, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2896:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "2895:6:0" }, "scope": 2291, "stateMutability": "view", "virtual": false, "visibility": "internal" }, { "id": 252, "nodeType": "ModifierDefinition", "src": "3095:161:0", "nodes": [], "body": { "id": 251, "nodeType": "Block", "src": "3115:141:0", "nodes": [], "statements": [ { "assignments": [ 234 ], "declarations": [ { "constant": false, "id": 234, "mutability": "mutable", "name": "startGas", "nameLocation": "3130:8:0", "nodeType": "VariableDeclaration", "scope": 251, "src": "3125:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 233, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3125:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 237, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "id": 235, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -7, "src": "3141:7:0", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 236, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3141:9:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "3125:25:0" }, { "id": 238, "nodeType": "PlaceholderStatement", "src": "3160:1:0" }, { "assignments": [ 240 ], "declarations": [ { "constant": false, "id": 240, "mutability": "mutable", "name": "endGas", "nameLocation": "3176:6:0", "nodeType": "VariableDeclaration", "scope": 251, "src": "3171:11:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 239, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3171:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 243, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "id": 241, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -7, "src": "3185:7:0", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 242, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3185:9:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "3171:23:0" }, { "eventCall": { "arguments": [ { "hexValue": "676173", "id": 245, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3224:5:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_4498c2139ad6cf2beef3ae7bec34c4856d471c8680dfd28d553f117df74df6b7", "typeString": "literal_string \"gas\"" }, "value": "gas" }, { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 248, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 246, "name": "startGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 234, "src": "3231:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "id": 247, "name": "endGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 240, "src": "3242:6:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3231:17:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_4498c2139ad6cf2beef3ae7bec34c4856d471c8680dfd28d553f117df74df6b7", "typeString": "literal_string \"gas\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 244, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "3209:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 249, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3209:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 250, "nodeType": "EmitStatement", "src": "3204:45:0" } ] }, "name": "logs_gas", "nameLocation": "3104:8:0", "parameters": { "id": 232, "nodeType": "ParameterList", "parameters": [], "src": "3112:2:0" }, "virtual": false, "visibility": "internal" }, { "id": 269, "nodeType": "FunctionDefinition", "src": "3262:157:0", "nodes": [], "body": { "id": 268, "nodeType": "Block", "src": "3307:112:0", "nodes": [], "statements": [ { "condition": { "id": 258, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "3321:10:0", "subExpression": { "id": 257, "name": "condition", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 254, "src": "3322:9:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 267, "nodeType": "IfStatement", "src": "3317:96:0", "trueBody": { "id": 266, "nodeType": "Block", "src": "3333:80:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a20417373657274696f6e204661696c6564", "id": 260, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3356:25:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_cc8bd7d7034d6f139e4d0b1fc61bcb3025672e801833991d94fa7390aceb1687", "typeString": "literal_string \"Error: Assertion Failed\"" }, "value": "Error: Assertion Failed" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_cc8bd7d7034d6f139e4d0b1fc61bcb3025672e801833991d94fa7390aceb1687", "typeString": "literal_string \"Error: Assertion Failed\"" } ], "id": 259, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "3352:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 261, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3352:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 262, "nodeType": "EmitStatement", "src": "3347:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 263, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "3396:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 264, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3396:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 265, "nodeType": "ExpressionStatement", "src": "3396:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertTrue", "nameLocation": "3271:10:0", "parameters": { "id": 255, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 254, "mutability": "mutable", "name": "condition", "nameLocation": "3287:9:0", "nodeType": "VariableDeclaration", "scope": 269, "src": "3282:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 253, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3282:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "3281:16:0" }, "returnParameters": { "id": 256, "nodeType": "ParameterList", "parameters": [], "src": "3307:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 290, "nodeType": "FunctionDefinition", "src": "3425:191:0", "nodes": [], "body": { "id": 289, "nodeType": "Block", "src": "3489:127:0", "nodes": [], "statements": [ { "condition": { "id": 277, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "3503:10:0", "subExpression": { "id": 276, "name": "condition", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 271, "src": "3504:9:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 288, "nodeType": "IfStatement", "src": "3499:111:0", "trueBody": { "id": 287, "nodeType": "Block", "src": "3515:95:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 279, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3551:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 280, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 273, "src": "3560:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 278, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "3534:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 281, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3534:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 282, "nodeType": "EmitStatement", "src": "3529:35:0" }, { "expression": { "arguments": [ { "id": 284, "name": "condition", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 271, "src": "3589:9:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 283, "name": "assertTrue", "nodeType": "Identifier", "overloadedDeclarations": [ 269, 290 ], "referencedDeclaration": 269, "src": "3578:10:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$", "typeString": "function (bool)" } }, "id": 285, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3578:21:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 286, "nodeType": "ExpressionStatement", "src": "3578:21:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertTrue", "nameLocation": "3434:10:0", "parameters": { "id": 274, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 271, "mutability": "mutable", "name": "condition", "nameLocation": "3450:9:0", "nodeType": "VariableDeclaration", "scope": 290, "src": "3445:14:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 270, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3445:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, { "constant": false, "id": 273, "mutability": "mutable", "name": "err", "nameLocation": "3475:3:0", "nodeType": "VariableDeclaration", "scope": 290, "src": "3461:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 272, "name": "string", "nodeType": "ElementaryTypeName", "src": "3461:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "3444:35:0" }, "returnParameters": { "id": 275, "nodeType": "ParameterList", "parameters": [], "src": "3489:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 320, "nodeType": "FunctionDefinition", "src": "3622:277:0", "nodes": [], "body": { "id": 319, "nodeType": "Block", "src": "3671:228:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 297, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 292, "src": "3685:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 298, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 294, "src": "3690:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "3685:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 318, "nodeType": "IfStatement", "src": "3681:212:0", "trueBody": { "id": 317, "nodeType": "Block", "src": "3693:200:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b616464726573735d", "id": 301, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3716:39:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_9fc6ddd126630392f6812bf6b1418b5ec062ae84acc54ee474317255c7d57017", "typeString": "literal_string \"Error: a == b not satisfied [address]\"" }, "value": "Error: a == b not satisfied [address]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_9fc6ddd126630392f6812bf6b1418b5ec062ae84acc54ee474317255c7d57017", "typeString": "literal_string \"Error: a == b not satisfied [address]\"" } ], "id": 300, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "3712:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 302, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3712:44:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 303, "nodeType": "EmitStatement", "src": "3707:49:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 305, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3793:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 306, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 292, "src": "3807:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 304, "name": "log_named_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 39, "src": "3775:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$returns$__$", "typeString": "function (string memory,address)" } }, "id": 307, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3775:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 308, "nodeType": "EmitStatement", "src": "3770:39:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 310, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3846:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 311, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 294, "src": "3860:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 309, "name": "log_named_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 39, "src": "3828:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$returns$__$", "typeString": "function (string memory,address)" } }, "id": 312, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3828:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 313, "nodeType": "EmitStatement", "src": "3823:39:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 314, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "3876:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 315, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3876:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 316, "nodeType": "ExpressionStatement", "src": "3876:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "3631:8:0", "parameters": { "id": 295, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 292, "mutability": "mutable", "name": "a", "nameLocation": "3648:1:0", "nodeType": "VariableDeclaration", "scope": 320, "src": "3640:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 291, "name": "address", "nodeType": "ElementaryTypeName", "src": "3640:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 294, "mutability": "mutable", "name": "b", "nameLocation": "3659:1:0", "nodeType": "VariableDeclaration", "scope": 320, "src": "3651:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 293, "name": "address", "nodeType": "ElementaryTypeName", "src": "3651:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "3639:22:0" }, "returnParameters": { "id": 296, "nodeType": "ParameterList", "parameters": [], "src": "3671:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 345, "nodeType": "FunctionDefinition", "src": "3904:185:0", "nodes": [], "body": { "id": 344, "nodeType": "Block", "src": "3972:117:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 331, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 329, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 322, "src": "3986:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 330, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 324, "src": "3991:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "3986:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 343, "nodeType": "IfStatement", "src": "3982:101:0", "trueBody": { "id": 342, "nodeType": "Block", "src": "3994:89:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 333, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4031:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 334, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 326, "src": "4040:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 332, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "4013:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 335, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4013:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 336, "nodeType": "EmitStatement", "src": "4008:36:0" }, { "expression": { "arguments": [ { "id": 338, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 322, "src": "4067:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "id": 339, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 324, "src": "4070:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 337, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 320, "src": "4058:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 340, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4058:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 341, "nodeType": "ExpressionStatement", "src": "4058:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "3913:8:0", "parameters": { "id": 327, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 322, "mutability": "mutable", "name": "a", "nameLocation": "3930:1:0", "nodeType": "VariableDeclaration", "scope": 345, "src": "3922:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 321, "name": "address", "nodeType": "ElementaryTypeName", "src": "3922:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 324, "mutability": "mutable", "name": "b", "nameLocation": "3941:1:0", "nodeType": "VariableDeclaration", "scope": 345, "src": "3933:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 323, "name": "address", "nodeType": "ElementaryTypeName", "src": "3933:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 326, "mutability": "mutable", "name": "err", "nameLocation": "3958:3:0", "nodeType": "VariableDeclaration", "scope": 345, "src": "3944:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 325, "name": "string", "nodeType": "ElementaryTypeName", "src": "3944:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "3921:41:0" }, "returnParameters": { "id": 328, "nodeType": "ParameterList", "parameters": [], "src": "3972:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 375, "nodeType": "FunctionDefinition", "src": "4095:277:0", "nodes": [], "body": { "id": 374, "nodeType": "Block", "src": "4144:228:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 354, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 352, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "4158:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 353, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 349, "src": "4163:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "4158:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 373, "nodeType": "IfStatement", "src": "4154:212:0", "trueBody": { "id": 372, "nodeType": "Block", "src": "4166:200:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b627974657333325d", "id": 356, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4189:39:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6605dedc99dd4e0a76d4678a99cc6956499fe2b523ca6525b248ca3582cef3ef", "typeString": "literal_string \"Error: a == b not satisfied [bytes32]\"" }, "value": "Error: a == b not satisfied [bytes32]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_6605dedc99dd4e0a76d4678a99cc6956499fe2b523ca6525b248ca3582cef3ef", "typeString": "literal_string \"Error: a == b not satisfied [bytes32]\"" } ], "id": 355, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "4185:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 357, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4185:44:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 358, "nodeType": "EmitStatement", "src": "4180:49:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 360, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4266:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 361, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "4280:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 359, "name": "log_named_bytes32", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 45, "src": "4248:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes32_$returns$__$", "typeString": "function (string memory,bytes32)" } }, "id": 362, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4248:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 363, "nodeType": "EmitStatement", "src": "4243:39:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 365, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4319:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 366, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 349, "src": "4333:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 364, "name": "log_named_bytes32", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 45, "src": "4301:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes32_$returns$__$", "typeString": "function (string memory,bytes32)" } }, "id": 367, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4301:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 368, "nodeType": "EmitStatement", "src": "4296:39:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 369, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "4349:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 370, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4349:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 371, "nodeType": "ExpressionStatement", "src": "4349:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "4104:8:0", "parameters": { "id": 350, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 347, "mutability": "mutable", "name": "a", "nameLocation": "4121:1:0", "nodeType": "VariableDeclaration", "scope": 375, "src": "4113:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 346, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4113:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 349, "mutability": "mutable", "name": "b", "nameLocation": "4132:1:0", "nodeType": "VariableDeclaration", "scope": 375, "src": "4124:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 348, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4124:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "4112:22:0" }, "returnParameters": { "id": 351, "nodeType": "ParameterList", "parameters": [], "src": "4144:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 400, "nodeType": "FunctionDefinition", "src": "4377:185:0", "nodes": [], "body": { "id": 399, "nodeType": "Block", "src": "4445:117:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 386, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 384, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 377, "src": "4459:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 385, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 379, "src": "4464:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "4459:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 398, "nodeType": "IfStatement", "src": "4455:101:0", "trueBody": { "id": 397, "nodeType": "Block", "src": "4467:89:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 388, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4504:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 389, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 381, "src": "4513:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 387, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "4486:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 390, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4486:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 391, "nodeType": "EmitStatement", "src": "4481:36:0" }, { "expression": { "arguments": [ { "id": 393, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 377, "src": "4540:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 394, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 379, "src": "4543:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 392, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 375, "src": "4531:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$", "typeString": "function (bytes32,bytes32)" } }, "id": 395, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4531:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 396, "nodeType": "ExpressionStatement", "src": "4531:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "4386:8:0", "parameters": { "id": 382, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 377, "mutability": "mutable", "name": "a", "nameLocation": "4403:1:0", "nodeType": "VariableDeclaration", "scope": 400, "src": "4395:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 376, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4395:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 379, "mutability": "mutable", "name": "b", "nameLocation": "4414:1:0", "nodeType": "VariableDeclaration", "scope": 400, "src": "4406:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 378, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4406:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 381, "mutability": "mutable", "name": "err", "nameLocation": "4431:3:0", "nodeType": "VariableDeclaration", "scope": 400, "src": "4417:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 380, "name": "string", "nodeType": "ElementaryTypeName", "src": "4417:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "4394:41:0" }, "returnParameters": { "id": 383, "nodeType": "ParameterList", "parameters": [], "src": "4445:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 413, "nodeType": "FunctionDefinition", "src": "4567:82:0", "nodes": [], "body": { "id": 412, "nodeType": "Block", "src": "4618:31:0", "nodes": [], "statements": [ { "expression": { "arguments": [ { "id": 408, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4637:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 409, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 404, "src": "4640:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 407, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 375, "src": "4628:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$", "typeString": "function (bytes32,bytes32)" } }, "id": 410, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4628:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 411, "nodeType": "ExpressionStatement", "src": "4628:14:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq32", "nameLocation": "4576:10:0", "parameters": { "id": 405, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 402, "mutability": "mutable", "name": "a", "nameLocation": "4595:1:0", "nodeType": "VariableDeclaration", "scope": 413, "src": "4587:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 401, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4587:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 404, "mutability": "mutable", "name": "b", "nameLocation": "4606:1:0", "nodeType": "VariableDeclaration", "scope": 413, "src": "4598:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 403, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4598:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "4586:22:0" }, "returnParameters": { "id": 406, "nodeType": "ParameterList", "parameters": [], "src": "4618:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 429, "nodeType": "FunctionDefinition", "src": "4654:106:0", "nodes": [], "body": { "id": 428, "nodeType": "Block", "src": "4724:36:0", "nodes": [], "statements": [ { "expression": { "arguments": [ { "id": 423, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 415, "src": "4743:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 424, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 417, "src": "4746:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 425, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 419, "src": "4749:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 422, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 400, "src": "4734:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bytes32,bytes32,string memory)" } }, "id": 426, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4734:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 427, "nodeType": "ExpressionStatement", "src": "4734:19:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq32", "nameLocation": "4663:10:0", "parameters": { "id": 420, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 415, "mutability": "mutable", "name": "a", "nameLocation": "4682:1:0", "nodeType": "VariableDeclaration", "scope": 429, "src": "4674:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 414, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4674:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 417, "mutability": "mutable", "name": "b", "nameLocation": "4693:1:0", "nodeType": "VariableDeclaration", "scope": 429, "src": "4685:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 416, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "4685:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 419, "mutability": "mutable", "name": "err", "nameLocation": "4710:3:0", "nodeType": "VariableDeclaration", "scope": 429, "src": "4696:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 418, "name": "string", "nodeType": "ElementaryTypeName", "src": "4696:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "4673:41:0" }, "returnParameters": { "id": 421, "nodeType": "ParameterList", "parameters": [], "src": "4724:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 459, "nodeType": "FunctionDefinition", "src": "4766:257:0", "nodes": [], "body": { "id": 458, "nodeType": "Block", "src": "4807:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 438, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 436, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 431, "src": "4821:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 437, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 433, "src": "4826:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "4821:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 457, "nodeType": "IfStatement", "src": "4817:200:0", "trueBody": { "id": 456, "nodeType": "Block", "src": "4829:188:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b696e745d", "id": 440, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4852:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_0c510d1b16a7b86013fe25431f855bed96290957b4566f7ab53d5bf1855a3a81", "typeString": "literal_string \"Error: a == b not satisfied [int]\"" }, "value": "Error: a == b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_0c510d1b16a7b86013fe25431f855bed96290957b4566f7ab53d5bf1855a3a81", "typeString": "literal_string \"Error: a == b not satisfied [int]\"" } ], "id": 439, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "4848:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 441, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4848:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 442, "nodeType": "EmitStatement", "src": "4843:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 444, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4921:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 445, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 431, "src": "4935:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 443, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "4907:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 446, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4907:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 447, "nodeType": "EmitStatement", "src": "4902:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 449, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4970:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 450, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 433, "src": "4984:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 448, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "4956:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 451, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "4956:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 452, "nodeType": "EmitStatement", "src": "4951:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 453, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "5000:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 454, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5000:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 455, "nodeType": "ExpressionStatement", "src": "5000:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "4775:8:0", "parameters": { "id": 434, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 431, "mutability": "mutable", "name": "a", "nameLocation": "4788:1:0", "nodeType": "VariableDeclaration", "scope": 459, "src": "4784:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 430, "name": "int", "nodeType": "ElementaryTypeName", "src": "4784:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 433, "mutability": "mutable", "name": "b", "nameLocation": "4795:1:0", "nodeType": "VariableDeclaration", "scope": 459, "src": "4791:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 432, "name": "int", "nodeType": "ElementaryTypeName", "src": "4791:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "4783:14:0" }, "returnParameters": { "id": 435, "nodeType": "ParameterList", "parameters": [], "src": "4807:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 484, "nodeType": "FunctionDefinition", "src": "5028:176:0", "nodes": [], "body": { "id": 483, "nodeType": "Block", "src": "5088:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 470, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 468, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 461, "src": "5102:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 469, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 463, "src": "5107:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "5102:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 482, "nodeType": "IfStatement", "src": "5098:100:0", "trueBody": { "id": 481, "nodeType": "Block", "src": "5110:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 472, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5146:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 473, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 465, "src": "5155:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 471, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "5129:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 474, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5129:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 475, "nodeType": "EmitStatement", "src": "5124:35:0" }, { "expression": { "arguments": [ { "id": 477, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 461, "src": "5182:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 478, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 463, "src": "5185:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 476, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 459, "src": "5173:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 479, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5173:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 480, "nodeType": "ExpressionStatement", "src": "5173:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "5037:8:0", "parameters": { "id": 466, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 461, "mutability": "mutable", "name": "a", "nameLocation": "5050:1:0", "nodeType": "VariableDeclaration", "scope": 484, "src": "5046:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 460, "name": "int", "nodeType": "ElementaryTypeName", "src": "5046:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 463, "mutability": "mutable", "name": "b", "nameLocation": "5057:1:0", "nodeType": "VariableDeclaration", "scope": 484, "src": "5053:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 462, "name": "int", "nodeType": "ElementaryTypeName", "src": "5053:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 465, "mutability": "mutable", "name": "err", "nameLocation": "5074:3:0", "nodeType": "VariableDeclaration", "scope": 484, "src": "5060:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 464, "name": "string", "nodeType": "ElementaryTypeName", "src": "5060:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "5045:33:0" }, "returnParameters": { "id": 467, "nodeType": "ParameterList", "parameters": [], "src": "5088:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 514, "nodeType": "FunctionDefinition", "src": "5209:262:0", "nodes": [], "body": { "id": 513, "nodeType": "Block", "src": "5252:219:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 493, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 491, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 486, "src": "5266:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 492, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 488, "src": "5271:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5266:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 512, "nodeType": "IfStatement", "src": "5262:203:0", "trueBody": { "id": 511, "nodeType": "Block", "src": "5274:191:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b75696e745d", "id": 495, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5297:36:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_3bb05d3ba160a011999668447ff4a7cdd52bf87aeb1d7b9b284ef23b37a2b183", "typeString": "literal_string \"Error: a == b not satisfied [uint]\"" }, "value": "Error: a == b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_3bb05d3ba160a011999668447ff4a7cdd52bf87aeb1d7b9b284ef23b37a2b183", "typeString": "literal_string \"Error: a == b not satisfied [uint]\"" } ], "id": 494, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "5293:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 496, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5293:41:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 497, "nodeType": "EmitStatement", "src": "5288:46:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 499, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5368:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 500, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 486, "src": "5382:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 498, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "5353:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 501, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5353:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 502, "nodeType": "EmitStatement", "src": "5348:36:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 504, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5418:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 505, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 488, "src": "5432:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 503, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "5403:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 506, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5403:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 507, "nodeType": "EmitStatement", "src": "5398:36:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 508, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "5448:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 509, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5448:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 510, "nodeType": "ExpressionStatement", "src": "5448:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "5218:8:0", "parameters": { "id": 489, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 486, "mutability": "mutable", "name": "a", "nameLocation": "5232:1:0", "nodeType": "VariableDeclaration", "scope": 514, "src": "5227:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 485, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5227:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 488, "mutability": "mutable", "name": "b", "nameLocation": "5240:1:0", "nodeType": "VariableDeclaration", "scope": 514, "src": "5235:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 487, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5235:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "5226:16:0" }, "returnParameters": { "id": 490, "nodeType": "ParameterList", "parameters": [], "src": "5252:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 539, "nodeType": "FunctionDefinition", "src": "5476:178:0", "nodes": [], "body": { "id": 538, "nodeType": "Block", "src": "5538:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 523, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 516, "src": "5552:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 524, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 518, "src": "5557:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5552:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 537, "nodeType": "IfStatement", "src": "5548:100:0", "trueBody": { "id": 536, "nodeType": "Block", "src": "5560:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 527, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5596:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 528, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 520, "src": "5605:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 526, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "5579:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 529, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5579:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 530, "nodeType": "EmitStatement", "src": "5574:35:0" }, { "expression": { "arguments": [ { "id": 532, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 516, "src": "5632:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 533, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 518, "src": "5635:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 531, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 514, "src": "5623:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 534, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5623:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 535, "nodeType": "ExpressionStatement", "src": "5623:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "5485:8:0", "parameters": { "id": 521, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 516, "mutability": "mutable", "name": "a", "nameLocation": "5499:1:0", "nodeType": "VariableDeclaration", "scope": 539, "src": "5494:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 515, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5494:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 518, "mutability": "mutable", "name": "b", "nameLocation": "5507:1:0", "nodeType": "VariableDeclaration", "scope": 539, "src": "5502:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 517, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5502:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 520, "mutability": "mutable", "name": "err", "nameLocation": "5524:3:0", "nodeType": "VariableDeclaration", "scope": 539, "src": "5510:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 519, "name": "string", "nodeType": "ElementaryTypeName", "src": "5510:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "5493:35:0" }, "returnParameters": { "id": 522, "nodeType": "ParameterList", "parameters": [], "src": "5538:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 573, "nodeType": "FunctionDefinition", "src": "5659:323:0", "nodes": [], "body": { "id": 572, "nodeType": "Block", "src": "5722:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 550, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 548, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 541, "src": "5736:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 549, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 543, "src": "5741:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "5736:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 571, "nodeType": "IfStatement", "src": "5732:244:0", "trueBody": { "id": 570, "nodeType": "Block", "src": "5744:232:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 552, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5767:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_3ee6ef9b326324a79dedc7af5585ef9f689364368b4e76dd3a37559719a19fe6", "typeString": "literal_string \"Error: a == b not satisfied [decimal int]\"" }, "value": "Error: a == b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_3ee6ef9b326324a79dedc7af5585ef9f689364368b4e76dd3a37559719a19fe6", "typeString": "literal_string \"Error: a == b not satisfied [decimal int]\"" } ], "id": 551, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "5763:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 553, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5763:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 554, "nodeType": "EmitStatement", "src": "5758:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 556, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5852:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 557, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 541, "src": "5866:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 558, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 545, "src": "5869:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 555, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "5830:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 559, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5830:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 560, "nodeType": "EmitStatement", "src": "5825:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 562, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5919:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 563, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 543, "src": "5933:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 564, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 545, "src": "5936:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 561, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "5897:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 565, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5897:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 566, "nodeType": "EmitStatement", "src": "5892:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 567, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "5959:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 568, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "5959:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 569, "nodeType": "ExpressionStatement", "src": "5959:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEqDecimal", "nameLocation": "5668:15:0", "parameters": { "id": 546, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 541, "mutability": "mutable", "name": "a", "nameLocation": "5688:1:0", "nodeType": "VariableDeclaration", "scope": 573, "src": "5684:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 540, "name": "int", "nodeType": "ElementaryTypeName", "src": "5684:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 543, "mutability": "mutable", "name": "b", "nameLocation": "5695:1:0", "nodeType": "VariableDeclaration", "scope": 573, "src": "5691:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 542, "name": "int", "nodeType": "ElementaryTypeName", "src": "5691:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 545, "mutability": "mutable", "name": "decimals", "nameLocation": "5703:8:0", "nodeType": "VariableDeclaration", "scope": 573, "src": "5698:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 544, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5698:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "5683:29:0" }, "returnParameters": { "id": 547, "nodeType": "ParameterList", "parameters": [], "src": "5722:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 601, "nodeType": "FunctionDefinition", "src": "5987:215:0", "nodes": [], "body": { "id": 600, "nodeType": "Block", "src": "6069:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 586, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 584, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 575, "src": "6083:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 585, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 577, "src": "6088:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "6083:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 599, "nodeType": "IfStatement", "src": "6079:117:0", "trueBody": { "id": 598, "nodeType": "Block", "src": "6091:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 588, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6127:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 589, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 581, "src": "6136:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 587, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "6110:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 590, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6110:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 591, "nodeType": "EmitStatement", "src": "6105:35:0" }, { "expression": { "arguments": [ { "id": 593, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 575, "src": "6170:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 594, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 577, "src": "6173:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 595, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 579, "src": "6176:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 592, "name": "assertEqDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 573, 601, 635, 663 ], "referencedDeclaration": 573, "src": "6154:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 596, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6154:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 597, "nodeType": "ExpressionStatement", "src": "6154:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEqDecimal", "nameLocation": "5996:15:0", "parameters": { "id": 582, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 575, "mutability": "mutable", "name": "a", "nameLocation": "6016:1:0", "nodeType": "VariableDeclaration", "scope": 601, "src": "6012:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 574, "name": "int", "nodeType": "ElementaryTypeName", "src": "6012:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 577, "mutability": "mutable", "name": "b", "nameLocation": "6023:1:0", "nodeType": "VariableDeclaration", "scope": 601, "src": "6019:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 576, "name": "int", "nodeType": "ElementaryTypeName", "src": "6019:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 579, "mutability": "mutable", "name": "decimals", "nameLocation": "6031:8:0", "nodeType": "VariableDeclaration", "scope": 601, "src": "6026:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 578, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6026:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 581, "mutability": "mutable", "name": "err", "nameLocation": "6055:3:0", "nodeType": "VariableDeclaration", "scope": 601, "src": "6041:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 580, "name": "string", "nodeType": "ElementaryTypeName", "src": "6041:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "6011:48:0" }, "returnParameters": { "id": 583, "nodeType": "ParameterList", "parameters": [], "src": "6069:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 635, "nodeType": "FunctionDefinition", "src": "6207:328:0", "nodes": [], "body": { "id": 634, "nodeType": "Block", "src": "6272:263:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 612, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 610, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 603, "src": "6286:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 611, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 605, "src": "6291:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "6286:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 633, "nodeType": "IfStatement", "src": "6282:247:0", "trueBody": { "id": 632, "nodeType": "Block", "src": "6294:235:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 614, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6317:44:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_acd59a69b2dc4bcee2d5b2a205a178a5eace192e68808cc4db1cea91cdc48141", "typeString": "literal_string \"Error: a == b not satisfied [decimal uint]\"" }, "value": "Error: a == b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_acd59a69b2dc4bcee2d5b2a205a178a5eace192e68808cc4db1cea91cdc48141", "typeString": "literal_string \"Error: a == b not satisfied [decimal uint]\"" } ], "id": 613, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "6313:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 615, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6313:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 616, "nodeType": "EmitStatement", "src": "6308:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 618, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6404:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 619, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 603, "src": "6418:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 620, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 607, "src": "6421:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 617, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "6381:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 621, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6381:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 622, "nodeType": "EmitStatement", "src": "6376:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 624, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6472:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 625, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 605, "src": "6486:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 626, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 607, "src": "6489:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 623, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "6449:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 627, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6449:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 628, "nodeType": "EmitStatement", "src": "6444:54:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 629, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "6512:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 630, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6512:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 631, "nodeType": "ExpressionStatement", "src": "6512:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEqDecimal", "nameLocation": "6216:15:0", "parameters": { "id": 608, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 603, "mutability": "mutable", "name": "a", "nameLocation": "6237:1:0", "nodeType": "VariableDeclaration", "scope": 635, "src": "6232:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 602, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6232:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 605, "mutability": "mutable", "name": "b", "nameLocation": "6245:1:0", "nodeType": "VariableDeclaration", "scope": 635, "src": "6240:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 604, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6240:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 607, "mutability": "mutable", "name": "decimals", "nameLocation": "6253:8:0", "nodeType": "VariableDeclaration", "scope": 635, "src": "6248:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 606, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6248:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "6231:31:0" }, "returnParameters": { "id": 609, "nodeType": "ParameterList", "parameters": [], "src": "6272:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 663, "nodeType": "FunctionDefinition", "src": "6540:217:0", "nodes": [], "body": { "id": 662, "nodeType": "Block", "src": "6624:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 648, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 646, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 637, "src": "6638:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 647, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6643:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "6638:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 661, "nodeType": "IfStatement", "src": "6634:117:0", "trueBody": { "id": 660, "nodeType": "Block", "src": "6646:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 650, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6682:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 651, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "6691:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 649, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "6665:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 652, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6665:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 653, "nodeType": "EmitStatement", "src": "6660:35:0" }, { "expression": { "arguments": [ { "id": 655, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 637, "src": "6725:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 656, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6728:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 657, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6731:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 654, "name": "assertEqDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 573, 601, 635, 663 ], "referencedDeclaration": 635, "src": "6709:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 658, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6709:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 659, "nodeType": "ExpressionStatement", "src": "6709:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEqDecimal", "nameLocation": "6549:15:0", "parameters": { "id": 644, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 637, "mutability": "mutable", "name": "a", "nameLocation": "6570:1:0", "nodeType": "VariableDeclaration", "scope": 663, "src": "6565:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 636, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6565:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 639, "mutability": "mutable", "name": "b", "nameLocation": "6578:1:0", "nodeType": "VariableDeclaration", "scope": 663, "src": "6573:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 638, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6573:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 641, "mutability": "mutable", "name": "decimals", "nameLocation": "6586:8:0", "nodeType": "VariableDeclaration", "scope": 663, "src": "6581:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 640, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6581:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 643, "mutability": "mutable", "name": "err", "nameLocation": "6610:3:0", "nodeType": "VariableDeclaration", "scope": 663, "src": "6596:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 642, "name": "string", "nodeType": "ElementaryTypeName", "src": "6596:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "6564:50:0" }, "returnParameters": { "id": 645, "nodeType": "ParameterList", "parameters": [], "src": "6624:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 693, "nodeType": "FunctionDefinition", "src": "6763:280:0", "nodes": [], "body": { "id": 692, "nodeType": "Block", "src": "6815:228:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 672, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 670, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 665, "src": "6829:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 671, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 667, "src": "6834:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6829:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 691, "nodeType": "IfStatement", "src": "6825:212:0", "trueBody": { "id": 690, "nodeType": "Block", "src": "6837:200:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b616464726573735d", "id": 674, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6860:39:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_414a9b551b0cc51b7f73ec5170135c7d9e5908409f5f0ad1efd63830a38f3d00", "typeString": "literal_string \"Error: a != b not satisfied [address]\"" }, "value": "Error: a != b not satisfied [address]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_414a9b551b0cc51b7f73ec5170135c7d9e5908409f5f0ad1efd63830a38f3d00", "typeString": "literal_string \"Error: a != b not satisfied [address]\"" } ], "id": 673, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "6856:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 675, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6856:44:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 676, "nodeType": "EmitStatement", "src": "6851:49:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 678, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6937:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 679, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 665, "src": "6951:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 677, "name": "log_named_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 39, "src": "6919:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$returns$__$", "typeString": "function (string memory,address)" } }, "id": 680, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6919:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 681, "nodeType": "EmitStatement", "src": "6914:39:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 683, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6990:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 684, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 667, "src": "7004:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 682, "name": "log_named_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 39, "src": "6972:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$returns$__$", "typeString": "function (string memory,address)" } }, "id": 685, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "6972:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 686, "nodeType": "EmitStatement", "src": "6967:39:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 687, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "7020:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 688, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7020:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 689, "nodeType": "ExpressionStatement", "src": "7020:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "6772:11:0", "parameters": { "id": 668, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 665, "mutability": "mutable", "name": "a", "nameLocation": "6792:1:0", "nodeType": "VariableDeclaration", "scope": 693, "src": "6784:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 664, "name": "address", "nodeType": "ElementaryTypeName", "src": "6784:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 667, "mutability": "mutable", "name": "b", "nameLocation": "6803:1:0", "nodeType": "VariableDeclaration", "scope": 693, "src": "6795:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 666, "name": "address", "nodeType": "ElementaryTypeName", "src": "6795:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "6783:22:0" }, "returnParameters": { "id": 669, "nodeType": "ParameterList", "parameters": [], "src": "6815:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 718, "nodeType": "FunctionDefinition", "src": "7048:191:0", "nodes": [], "body": { "id": 717, "nodeType": "Block", "src": "7119:120:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 704, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 702, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 695, "src": "7133:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 703, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 697, "src": "7138:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "7133:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 716, "nodeType": "IfStatement", "src": "7129:104:0", "trueBody": { "id": 715, "nodeType": "Block", "src": "7141:92:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 706, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7178:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 707, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 699, "src": "7187:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 705, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "7160:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 708, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7160:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 709, "nodeType": "EmitStatement", "src": "7155:36:0" }, { "expression": { "arguments": [ { "id": 711, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 695, "src": "7217:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "id": 712, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 697, "src": "7220:1:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 710, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 693, "src": "7205:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 713, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7205:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 714, "nodeType": "ExpressionStatement", "src": "7205:17:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "7057:11:0", "parameters": { "id": 700, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 695, "mutability": "mutable", "name": "a", "nameLocation": "7077:1:0", "nodeType": "VariableDeclaration", "scope": 718, "src": "7069:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 694, "name": "address", "nodeType": "ElementaryTypeName", "src": "7069:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 697, "mutability": "mutable", "name": "b", "nameLocation": "7088:1:0", "nodeType": "VariableDeclaration", "scope": 718, "src": "7080:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 696, "name": "address", "nodeType": "ElementaryTypeName", "src": "7080:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 699, "mutability": "mutable", "name": "err", "nameLocation": "7105:3:0", "nodeType": "VariableDeclaration", "scope": 718, "src": "7091:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 698, "name": "string", "nodeType": "ElementaryTypeName", "src": "7091:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "7068:41:0" }, "returnParameters": { "id": 701, "nodeType": "ParameterList", "parameters": [], "src": "7119:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 748, "nodeType": "FunctionDefinition", "src": "7245:280:0", "nodes": [], "body": { "id": 747, "nodeType": "Block", "src": "7297:228:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 727, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 725, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 720, "src": "7311:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 726, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 722, "src": "7316:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "7311:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 746, "nodeType": "IfStatement", "src": "7307:212:0", "trueBody": { "id": 745, "nodeType": "Block", "src": "7319:200:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b627974657333325d", "id": 729, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7342:39:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_d26817bae5234f3229b95e0e4d57f32485473418473b4f6a6c207a64cb7f0551", "typeString": "literal_string \"Error: a != b not satisfied [bytes32]\"" }, "value": "Error: a != b not satisfied [bytes32]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_d26817bae5234f3229b95e0e4d57f32485473418473b4f6a6c207a64cb7f0551", "typeString": "literal_string \"Error: a != b not satisfied [bytes32]\"" } ], "id": 728, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "7338:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 730, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7338:44:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 731, "nodeType": "EmitStatement", "src": "7333:49:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 733, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7419:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 734, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 720, "src": "7433:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 732, "name": "log_named_bytes32", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 45, "src": "7401:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes32_$returns$__$", "typeString": "function (string memory,bytes32)" } }, "id": 735, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7401:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 736, "nodeType": "EmitStatement", "src": "7396:39:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 738, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7472:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 739, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 722, "src": "7486:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 737, "name": "log_named_bytes32", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 45, "src": "7454:17:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes32_$returns$__$", "typeString": "function (string memory,bytes32)" } }, "id": 740, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7454:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 741, "nodeType": "EmitStatement", "src": "7449:39:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 742, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "7502:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 743, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7502:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 744, "nodeType": "ExpressionStatement", "src": "7502:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "7254:11:0", "parameters": { "id": 723, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 720, "mutability": "mutable", "name": "a", "nameLocation": "7274:1:0", "nodeType": "VariableDeclaration", "scope": 748, "src": "7266:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 719, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7266:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 722, "mutability": "mutable", "name": "b", "nameLocation": "7285:1:0", "nodeType": "VariableDeclaration", "scope": 748, "src": "7277:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 721, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7277:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "7265:22:0" }, "returnParameters": { "id": 724, "nodeType": "ParameterList", "parameters": [], "src": "7297:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 773, "nodeType": "FunctionDefinition", "src": "7530:191:0", "nodes": [], "body": { "id": 772, "nodeType": "Block", "src": "7601:120:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 759, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 757, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 750, "src": "7615:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 758, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 752, "src": "7620:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "7615:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 771, "nodeType": "IfStatement", "src": "7611:104:0", "trueBody": { "id": 770, "nodeType": "Block", "src": "7623:92:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 761, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7660:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 762, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7669:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 760, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "7642:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 763, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7642:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 764, "nodeType": "EmitStatement", "src": "7637:36:0" }, { "expression": { "arguments": [ { "id": 766, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 750, "src": "7699:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 767, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 752, "src": "7702:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 765, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 748, "src": "7687:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$", "typeString": "function (bytes32,bytes32)" } }, "id": 768, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7687:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 769, "nodeType": "ExpressionStatement", "src": "7687:17:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "7539:11:0", "parameters": { "id": 755, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 750, "mutability": "mutable", "name": "a", "nameLocation": "7559:1:0", "nodeType": "VariableDeclaration", "scope": 773, "src": "7551:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 749, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7551:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 752, "mutability": "mutable", "name": "b", "nameLocation": "7570:1:0", "nodeType": "VariableDeclaration", "scope": 773, "src": "7562:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 751, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7562:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 754, "mutability": "mutable", "name": "err", "nameLocation": "7587:3:0", "nodeType": "VariableDeclaration", "scope": 773, "src": "7573:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 753, "name": "string", "nodeType": "ElementaryTypeName", "src": "7573:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "7550:41:0" }, "returnParameters": { "id": 756, "nodeType": "ParameterList", "parameters": [], "src": "7601:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 786, "nodeType": "FunctionDefinition", "src": "7726:88:0", "nodes": [], "body": { "id": 785, "nodeType": "Block", "src": "7780:34:0", "nodes": [], "statements": [ { "expression": { "arguments": [ { "id": 781, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 775, "src": "7802:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 782, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 777, "src": "7805:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 780, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 748, "src": "7790:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$returns$__$", "typeString": "function (bytes32,bytes32)" } }, "id": 783, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7790:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 784, "nodeType": "ExpressionStatement", "src": "7790:17:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq32", "nameLocation": "7735:13:0", "parameters": { "id": 778, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 775, "mutability": "mutable", "name": "a", "nameLocation": "7757:1:0", "nodeType": "VariableDeclaration", "scope": 786, "src": "7749:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 774, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7749:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 777, "mutability": "mutable", "name": "b", "nameLocation": "7768:1:0", "nodeType": "VariableDeclaration", "scope": 786, "src": "7760:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 776, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7760:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "7748:22:0" }, "returnParameters": { "id": 779, "nodeType": "ParameterList", "parameters": [], "src": "7780:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 802, "nodeType": "FunctionDefinition", "src": "7819:112:0", "nodes": [], "body": { "id": 801, "nodeType": "Block", "src": "7892:39:0", "nodes": [], "statements": [ { "expression": { "arguments": [ { "id": 796, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 788, "src": "7914:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 797, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 790, "src": "7917:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 798, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 792, "src": "7920:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 795, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 773, "src": "7902:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bytes32,bytes32,string memory)" } }, "id": 799, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "7902:22:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 800, "nodeType": "ExpressionStatement", "src": "7902:22:0" } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq32", "nameLocation": "7828:13:0", "parameters": { "id": 793, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 788, "mutability": "mutable", "name": "a", "nameLocation": "7850:1:0", "nodeType": "VariableDeclaration", "scope": 802, "src": "7842:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 787, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7842:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 790, "mutability": "mutable", "name": "b", "nameLocation": "7861:1:0", "nodeType": "VariableDeclaration", "scope": 802, "src": "7853:9:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 789, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7853:7:0", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 792, "mutability": "mutable", "name": "err", "nameLocation": "7878:3:0", "nodeType": "VariableDeclaration", "scope": 802, "src": "7864:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 791, "name": "string", "nodeType": "ElementaryTypeName", "src": "7864:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "7841:41:0" }, "returnParameters": { "id": 794, "nodeType": "ParameterList", "parameters": [], "src": "7892:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 832, "nodeType": "FunctionDefinition", "src": "7937:260:0", "nodes": [], "body": { "id": 831, "nodeType": "Block", "src": "7981:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 811, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 809, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "7995:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 810, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "8000:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "7995:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 830, "nodeType": "IfStatement", "src": "7991:200:0", "trueBody": { "id": 829, "nodeType": "Block", "src": "8003:188:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b696e745d", "id": 813, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8026:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_d82ff5c9943e634fee66803c98bc30490cb81ff9f69db686feaa7d8eb6b843b1", "typeString": "literal_string \"Error: a != b not satisfied [int]\"" }, "value": "Error: a != b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_d82ff5c9943e634fee66803c98bc30490cb81ff9f69db686feaa7d8eb6b843b1", "typeString": "literal_string \"Error: a != b not satisfied [int]\"" } ], "id": 812, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "8022:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 814, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8022:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 815, "nodeType": "EmitStatement", "src": "8017:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 817, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8095:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 818, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "8109:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 816, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "8081:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 819, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8081:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 820, "nodeType": "EmitStatement", "src": "8076:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 822, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8144:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 823, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "8158:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 821, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "8130:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8130:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 825, "nodeType": "EmitStatement", "src": "8125:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 826, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "8174:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 827, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8174:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 828, "nodeType": "ExpressionStatement", "src": "8174:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "7946:11:0", "parameters": { "id": 807, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 804, "mutability": "mutable", "name": "a", "nameLocation": "7962:1:0", "nodeType": "VariableDeclaration", "scope": 832, "src": "7958:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 803, "name": "int", "nodeType": "ElementaryTypeName", "src": "7958:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 806, "mutability": "mutable", "name": "b", "nameLocation": "7969:1:0", "nodeType": "VariableDeclaration", "scope": 832, "src": "7965:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 805, "name": "int", "nodeType": "ElementaryTypeName", "src": "7965:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "7957:14:0" }, "returnParameters": { "id": 808, "nodeType": "ParameterList", "parameters": [], "src": "7981:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 857, "nodeType": "FunctionDefinition", "src": "8202:182:0", "nodes": [], "body": { "id": 856, "nodeType": "Block", "src": "8265:119:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 841, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 834, "src": "8279:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 842, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 836, "src": "8284:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "8279:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 855, "nodeType": "IfStatement", "src": "8275:103:0", "trueBody": { "id": 854, "nodeType": "Block", "src": "8287:91:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 845, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8323:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 846, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 838, "src": "8332:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 844, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "8306:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 847, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8306:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 848, "nodeType": "EmitStatement", "src": "8301:35:0" }, { "expression": { "arguments": [ { "id": 850, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 834, "src": "8362:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 851, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 836, "src": "8365:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 849, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 832, "src": "8350:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 852, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8350:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 853, "nodeType": "ExpressionStatement", "src": "8350:17:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "8211:11:0", "parameters": { "id": 839, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 834, "mutability": "mutable", "name": "a", "nameLocation": "8227:1:0", "nodeType": "VariableDeclaration", "scope": 857, "src": "8223:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 833, "name": "int", "nodeType": "ElementaryTypeName", "src": "8223:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 836, "mutability": "mutable", "name": "b", "nameLocation": "8234:1:0", "nodeType": "VariableDeclaration", "scope": 857, "src": "8230:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 835, "name": "int", "nodeType": "ElementaryTypeName", "src": "8230:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 838, "mutability": "mutable", "name": "err", "nameLocation": "8251:3:0", "nodeType": "VariableDeclaration", "scope": 857, "src": "8237:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 837, "name": "string", "nodeType": "ElementaryTypeName", "src": "8237:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "8222:33:0" }, "returnParameters": { "id": 840, "nodeType": "ParameterList", "parameters": [], "src": "8265:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 887, "nodeType": "FunctionDefinition", "src": "8389:265:0", "nodes": [], "body": { "id": 886, "nodeType": "Block", "src": "8435:219:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 866, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 864, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 859, "src": "8449:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 865, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 861, "src": "8454:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8449:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 885, "nodeType": "IfStatement", "src": "8445:203:0", "trueBody": { "id": 884, "nodeType": "Block", "src": "8457:191:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b75696e745d", "id": 868, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8480:36:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_ad64c54cda23ba70d3d0a4681393062e3b52a3dd34cefe2961ebfc5baa0a4249", "typeString": "literal_string \"Error: a != b not satisfied [uint]\"" }, "value": "Error: a != b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_ad64c54cda23ba70d3d0a4681393062e3b52a3dd34cefe2961ebfc5baa0a4249", "typeString": "literal_string \"Error: a != b not satisfied [uint]\"" } ], "id": 867, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "8476:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 869, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8476:41:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 870, "nodeType": "EmitStatement", "src": "8471:46:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 872, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8551:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 873, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 859, "src": "8565:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 871, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "8536:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 874, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8536:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 875, "nodeType": "EmitStatement", "src": "8531:36:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 877, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8601:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 878, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 861, "src": "8615:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 876, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "8586:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 879, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8586:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 880, "nodeType": "EmitStatement", "src": "8581:36:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 881, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "8631:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 882, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8631:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 883, "nodeType": "ExpressionStatement", "src": "8631:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "8398:11:0", "parameters": { "id": 862, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 859, "mutability": "mutable", "name": "a", "nameLocation": "8415:1:0", "nodeType": "VariableDeclaration", "scope": 887, "src": "8410:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 858, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8410:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 861, "mutability": "mutable", "name": "b", "nameLocation": "8423:1:0", "nodeType": "VariableDeclaration", "scope": 887, "src": "8418:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 860, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8418:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "8409:16:0" }, "returnParameters": { "id": 863, "nodeType": "ParameterList", "parameters": [], "src": "8435:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 912, "nodeType": "FunctionDefinition", "src": "8659:184:0", "nodes": [], "body": { "id": 911, "nodeType": "Block", "src": "8724:119:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 898, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 896, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8738:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 897, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 891, "src": "8743:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8738:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 910, "nodeType": "IfStatement", "src": "8734:103:0", "trueBody": { "id": 909, "nodeType": "Block", "src": "8746:91:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 900, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8782:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 901, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 893, "src": "8791:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 899, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "8765:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 902, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8765:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 903, "nodeType": "EmitStatement", "src": "8760:35:0" }, { "expression": { "arguments": [ { "id": 905, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8821:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 906, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 891, "src": "8824:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 904, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 887, "src": "8809:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 907, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8809:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 908, "nodeType": "ExpressionStatement", "src": "8809:17:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "8668:11:0", "parameters": { "id": 894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 889, "mutability": "mutable", "name": "a", "nameLocation": "8685:1:0", "nodeType": "VariableDeclaration", "scope": 912, "src": "8680:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 888, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8680:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 891, "mutability": "mutable", "name": "b", "nameLocation": "8693:1:0", "nodeType": "VariableDeclaration", "scope": 912, "src": "8688:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 890, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8688:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 893, "mutability": "mutable", "name": "err", "nameLocation": "8710:3:0", "nodeType": "VariableDeclaration", "scope": 912, "src": "8696:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 892, "name": "string", "nodeType": "ElementaryTypeName", "src": "8696:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "8679:35:0" }, "returnParameters": { "id": 895, "nodeType": "ParameterList", "parameters": [], "src": "8724:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 946, "nodeType": "FunctionDefinition", "src": "8848:326:0", "nodes": [], "body": { "id": 945, "nodeType": "Block", "src": "8914:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 923, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 921, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 914, "src": "8928:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 922, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 916, "src": "8933:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "8928:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 944, "nodeType": "IfStatement", "src": "8924:244:0", "trueBody": { "id": 943, "nodeType": "Block", "src": "8936:232:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 925, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8959:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_066084a27c1b5169a7853cce63d8c8ab47e015f079365396132cff6d8eb35862", "typeString": "literal_string \"Error: a != b not satisfied [decimal int]\"" }, "value": "Error: a != b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_066084a27c1b5169a7853cce63d8c8ab47e015f079365396132cff6d8eb35862", "typeString": "literal_string \"Error: a != b not satisfied [decimal int]\"" } ], "id": 924, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "8955:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 926, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "8955:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 927, "nodeType": "EmitStatement", "src": "8950:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 929, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9044:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 930, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 914, "src": "9058:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 931, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 918, "src": "9061:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 928, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "9022:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 932, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9022:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 933, "nodeType": "EmitStatement", "src": "9017:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 935, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9111:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 936, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 916, "src": "9125:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 937, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 918, "src": "9128:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 934, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "9089:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 938, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9089:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 939, "nodeType": "EmitStatement", "src": "9084:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 940, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "9151:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 941, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9151:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 942, "nodeType": "ExpressionStatement", "src": "9151:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEqDecimal", "nameLocation": "8857:18:0", "parameters": { "id": 919, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 914, "mutability": "mutable", "name": "a", "nameLocation": "8880:1:0", "nodeType": "VariableDeclaration", "scope": 946, "src": "8876:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 913, "name": "int", "nodeType": "ElementaryTypeName", "src": "8876:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 916, "mutability": "mutable", "name": "b", "nameLocation": "8887:1:0", "nodeType": "VariableDeclaration", "scope": 946, "src": "8883:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 915, "name": "int", "nodeType": "ElementaryTypeName", "src": "8883:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 918, "mutability": "mutable", "name": "decimals", "nameLocation": "8895:8:0", "nodeType": "VariableDeclaration", "scope": 946, "src": "8890:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 917, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8890:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "8875:29:0" }, "returnParameters": { "id": 920, "nodeType": "ParameterList", "parameters": [], "src": "8914:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 974, "nodeType": "FunctionDefinition", "src": "9179:221:0", "nodes": [], "body": { "id": 973, "nodeType": "Block", "src": "9264:136:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 959, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 957, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 948, "src": "9278:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 958, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 950, "src": "9283:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "9278:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 972, "nodeType": "IfStatement", "src": "9274:120:0", "trueBody": { "id": 971, "nodeType": "Block", "src": "9286:108:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 961, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9322:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 962, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 954, "src": "9331:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 960, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "9305:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 963, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9305:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 964, "nodeType": "EmitStatement", "src": "9300:35:0" }, { "expression": { "arguments": [ { "id": 966, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 948, "src": "9368:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 967, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 950, "src": "9371:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 968, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 952, "src": "9374:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 965, "name": "assertNotEqDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 946, 974, 1008, 1036 ], "referencedDeclaration": 946, "src": "9349:18:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 969, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9349:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 970, "nodeType": "ExpressionStatement", "src": "9349:34:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEqDecimal", "nameLocation": "9188:18:0", "parameters": { "id": 955, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 948, "mutability": "mutable", "name": "a", "nameLocation": "9211:1:0", "nodeType": "VariableDeclaration", "scope": 974, "src": "9207:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 947, "name": "int", "nodeType": "ElementaryTypeName", "src": "9207:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 950, "mutability": "mutable", "name": "b", "nameLocation": "9218:1:0", "nodeType": "VariableDeclaration", "scope": 974, "src": "9214:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 949, "name": "int", "nodeType": "ElementaryTypeName", "src": "9214:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 952, "mutability": "mutable", "name": "decimals", "nameLocation": "9226:8:0", "nodeType": "VariableDeclaration", "scope": 974, "src": "9221:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 951, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9221:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 954, "mutability": "mutable", "name": "err", "nameLocation": "9250:3:0", "nodeType": "VariableDeclaration", "scope": 974, "src": "9236:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 953, "name": "string", "nodeType": "ElementaryTypeName", "src": "9236:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "9206:48:0" }, "returnParameters": { "id": 956, "nodeType": "ParameterList", "parameters": [], "src": "9264:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1008, "nodeType": "FunctionDefinition", "src": "9405:331:0", "nodes": [], "body": { "id": 1007, "nodeType": "Block", "src": "9473:263:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 985, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 983, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 976, "src": "9487:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 984, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "9492:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9487:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1006, "nodeType": "IfStatement", "src": "9483:247:0", "trueBody": { "id": 1005, "nodeType": "Block", "src": "9495:235:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 987, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9518:44:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_cb6afe29e5a2177846eadb075878508f0d1fce640de5a828d96757a848e6dc21", "typeString": "literal_string \"Error: a != b not satisfied [decimal uint]\"" }, "value": "Error: a != b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_cb6afe29e5a2177846eadb075878508f0d1fce640de5a828d96757a848e6dc21", "typeString": "literal_string \"Error: a != b not satisfied [decimal uint]\"" } ], "id": 986, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "9514:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 988, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9514:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 989, "nodeType": "EmitStatement", "src": "9509:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 991, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9605:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 992, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 976, "src": "9619:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 993, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 980, "src": "9622:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 990, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "9582:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 994, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9582:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 995, "nodeType": "EmitStatement", "src": "9577:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 997, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9673:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 998, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "9687:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 999, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 980, "src": "9690:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 996, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "9650:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1000, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9650:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1001, "nodeType": "EmitStatement", "src": "9645:54:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1002, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "9713:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1003, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9713:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1004, "nodeType": "ExpressionStatement", "src": "9713:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEqDecimal", "nameLocation": "9414:18:0", "parameters": { "id": 981, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 976, "mutability": "mutable", "name": "a", "nameLocation": "9438:1:0", "nodeType": "VariableDeclaration", "scope": 1008, "src": "9433:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 975, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9433:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 978, "mutability": "mutable", "name": "b", "nameLocation": "9446:1:0", "nodeType": "VariableDeclaration", "scope": 1008, "src": "9441:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 977, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9441:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 980, "mutability": "mutable", "name": "decimals", "nameLocation": "9454:8:0", "nodeType": "VariableDeclaration", "scope": 1008, "src": "9449:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 979, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9449:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "9432:31:0" }, "returnParameters": { "id": 982, "nodeType": "ParameterList", "parameters": [], "src": "9473:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1036, "nodeType": "FunctionDefinition", "src": "9741:223:0", "nodes": [], "body": { "id": 1035, "nodeType": "Block", "src": "9828:136:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1021, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1019, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1010, "src": "9842:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 1020, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1012, "src": "9847:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9842:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1034, "nodeType": "IfStatement", "src": "9838:120:0", "trueBody": { "id": 1033, "nodeType": "Block", "src": "9850:108:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1023, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "9886:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1024, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1016, "src": "9895:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1022, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "9869:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1025, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9869:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1026, "nodeType": "EmitStatement", "src": "9864:35:0" }, { "expression": { "arguments": [ { "id": 1028, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1010, "src": "9932:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1029, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1012, "src": "9935:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1030, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1014, "src": "9938:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1027, "name": "assertNotEqDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 946, 974, 1008, 1036 ], "referencedDeclaration": 1008, "src": "9913:18:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 1031, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "9913:34:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1032, "nodeType": "ExpressionStatement", "src": "9913:34:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEqDecimal", "nameLocation": "9750:18:0", "parameters": { "id": 1017, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1010, "mutability": "mutable", "name": "a", "nameLocation": "9774:1:0", "nodeType": "VariableDeclaration", "scope": 1036, "src": "9769:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1009, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9769:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1012, "mutability": "mutable", "name": "b", "nameLocation": "9782:1:0", "nodeType": "VariableDeclaration", "scope": 1036, "src": "9777:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1011, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9777:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1014, "mutability": "mutable", "name": "decimals", "nameLocation": "9790:8:0", "nodeType": "VariableDeclaration", "scope": 1036, "src": "9785:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1013, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9785:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1016, "mutability": "mutable", "name": "err", "nameLocation": "9814:3:0", "nodeType": "VariableDeclaration", "scope": 1036, "src": "9800:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1015, "name": "string", "nodeType": "ElementaryTypeName", "src": "9800:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "9768:50:0" }, "returnParameters": { "id": 1018, "nodeType": "ParameterList", "parameters": [], "src": "9828:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1066, "nodeType": "FunctionDefinition", "src": "9970:259:0", "nodes": [], "body": { "id": 1065, "nodeType": "Block", "src": "10013:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1045, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1043, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1038, "src": "10027:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1044, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1040, "src": "10032:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10027:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1064, "nodeType": "IfStatement", "src": "10023:200:0", "trueBody": { "id": 1063, "nodeType": "Block", "src": "10035:188:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e2062206e6f7420736174697366696564205b75696e745d", "id": 1047, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10058:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_71977b46fbd6a64b4465b93c7a77bcaa06103df599ead9f7e7004b34129c9e3a", "typeString": "literal_string \"Error: a > b not satisfied [uint]\"" }, "value": "Error: a > b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_71977b46fbd6a64b4465b93c7a77bcaa06103df599ead9f7e7004b34129c9e3a", "typeString": "literal_string \"Error: a > b not satisfied [uint]\"" } ], "id": 1046, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "10054:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1048, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10054:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1049, "nodeType": "EmitStatement", "src": "10049:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1051, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10128:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1052, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1038, "src": "10141:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1050, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "10113:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1053, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10113:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1054, "nodeType": "EmitStatement", "src": "10108:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1056, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10177:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1057, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1040, "src": "10190:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1055, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "10162:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1058, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10162:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1059, "nodeType": "EmitStatement", "src": "10157:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1060, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "10206:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1061, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10206:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1062, "nodeType": "ExpressionStatement", "src": "10206:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGt", "nameLocation": "9979:8:0", "parameters": { "id": 1041, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1038, "mutability": "mutable", "name": "a", "nameLocation": "9993:1:0", "nodeType": "VariableDeclaration", "scope": 1066, "src": "9988:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1037, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9988:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1040, "mutability": "mutable", "name": "b", "nameLocation": "10001:1:0", "nodeType": "VariableDeclaration", "scope": 1066, "src": "9996:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1039, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9996:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "9987:16:0" }, "returnParameters": { "id": 1042, "nodeType": "ParameterList", "parameters": [], "src": "10013:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1091, "nodeType": "FunctionDefinition", "src": "10234:178:0", "nodes": [], "body": { "id": 1090, "nodeType": "Block", "src": "10296:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1077, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1075, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1068, "src": "10310:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1076, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1070, "src": "10315:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10310:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1089, "nodeType": "IfStatement", "src": "10306:100:0", "trueBody": { "id": 1088, "nodeType": "Block", "src": "10318:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1079, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10354:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1080, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1072, "src": "10363:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1078, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "10337:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1081, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10337:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1082, "nodeType": "EmitStatement", "src": "10332:35:0" }, { "expression": { "arguments": [ { "id": 1084, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1068, "src": "10390:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1085, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1070, "src": "10393:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1083, "name": "assertGt", "nodeType": "Identifier", "overloadedDeclarations": [ 1066, 1091, 1121, 1146 ], "referencedDeclaration": 1066, "src": "10381:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 1086, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10381:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1087, "nodeType": "ExpressionStatement", "src": "10381:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGt", "nameLocation": "10243:8:0", "parameters": { "id": 1073, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1068, "mutability": "mutable", "name": "a", "nameLocation": "10257:1:0", "nodeType": "VariableDeclaration", "scope": 1091, "src": "10252:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1067, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10252:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1070, "mutability": "mutable", "name": "b", "nameLocation": "10265:1:0", "nodeType": "VariableDeclaration", "scope": 1091, "src": "10260:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1069, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10260:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1072, "mutability": "mutable", "name": "err", "nameLocation": "10282:3:0", "nodeType": "VariableDeclaration", "scope": 1091, "src": "10268:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1071, "name": "string", "nodeType": "ElementaryTypeName", "src": "10268:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "10251:35:0" }, "returnParameters": { "id": 1074, "nodeType": "ParameterList", "parameters": [], "src": "10296:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1121, "nodeType": "FunctionDefinition", "src": "10417:254:0", "nodes": [], "body": { "id": 1120, "nodeType": "Block", "src": "10458:213:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1100, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1098, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1093, "src": "10472:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1099, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1095, "src": "10477:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "10472:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1119, "nodeType": "IfStatement", "src": "10468:197:0", "trueBody": { "id": 1118, "nodeType": "Block", "src": "10480:185:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e2062206e6f7420736174697366696564205b696e745d", "id": 1102, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10503:34:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c6338b3f9677628b4efbdc683490461f2a94469341c3d2ff3d117001fb77d49b", "typeString": "literal_string \"Error: a > b not satisfied [int]\"" }, "value": "Error: a > b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c6338b3f9677628b4efbdc683490461f2a94469341c3d2ff3d117001fb77d49b", "typeString": "literal_string \"Error: a > b not satisfied [int]\"" } ], "id": 1101, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "10499:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1103, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10499:39:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1104, "nodeType": "EmitStatement", "src": "10494:44:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1106, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10571:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1107, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1093, "src": "10584:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1105, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "10557:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1108, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10557:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1109, "nodeType": "EmitStatement", "src": "10552:34:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1111, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10619:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1112, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1095, "src": "10632:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1110, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "10605:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1113, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10605:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1114, "nodeType": "EmitStatement", "src": "10600:34:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1115, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "10648:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1116, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10648:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1117, "nodeType": "ExpressionStatement", "src": "10648:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGt", "nameLocation": "10426:8:0", "parameters": { "id": 1096, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1093, "mutability": "mutable", "name": "a", "nameLocation": "10439:1:0", "nodeType": "VariableDeclaration", "scope": 1121, "src": "10435:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1092, "name": "int", "nodeType": "ElementaryTypeName", "src": "10435:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1095, "mutability": "mutable", "name": "b", "nameLocation": "10446:1:0", "nodeType": "VariableDeclaration", "scope": 1121, "src": "10442:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1094, "name": "int", "nodeType": "ElementaryTypeName", "src": "10442:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "10434:14:0" }, "returnParameters": { "id": 1097, "nodeType": "ParameterList", "parameters": [], "src": "10458:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1146, "nodeType": "FunctionDefinition", "src": "10676:176:0", "nodes": [], "body": { "id": 1145, "nodeType": "Block", "src": "10736:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1132, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1130, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1123, "src": "10750:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1131, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1125, "src": "10755:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "10750:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1144, "nodeType": "IfStatement", "src": "10746:100:0", "trueBody": { "id": 1143, "nodeType": "Block", "src": "10758:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1134, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10794:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1135, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1127, "src": "10803:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1133, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "10777:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1136, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10777:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1137, "nodeType": "EmitStatement", "src": "10772:35:0" }, { "expression": { "arguments": [ { "id": 1139, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1123, "src": "10830:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1140, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1125, "src": "10833:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1138, "name": "assertGt", "nodeType": "Identifier", "overloadedDeclarations": [ 1066, 1091, 1121, 1146 ], "referencedDeclaration": 1121, "src": "10821:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 1141, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10821:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1142, "nodeType": "ExpressionStatement", "src": "10821:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGt", "nameLocation": "10685:8:0", "parameters": { "id": 1128, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1123, "mutability": "mutable", "name": "a", "nameLocation": "10698:1:0", "nodeType": "VariableDeclaration", "scope": 1146, "src": "10694:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1122, "name": "int", "nodeType": "ElementaryTypeName", "src": "10694:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1125, "mutability": "mutable", "name": "b", "nameLocation": "10705:1:0", "nodeType": "VariableDeclaration", "scope": 1146, "src": "10701:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1124, "name": "int", "nodeType": "ElementaryTypeName", "src": "10701:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1127, "mutability": "mutable", "name": "err", "nameLocation": "10722:3:0", "nodeType": "VariableDeclaration", "scope": 1146, "src": "10708:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1126, "name": "string", "nodeType": "ElementaryTypeName", "src": "10708:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "10693:33:0" }, "returnParameters": { "id": 1129, "nodeType": "ParameterList", "parameters": [], "src": "10736:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1180, "nodeType": "FunctionDefinition", "src": "10857:320:0", "nodes": [], "body": { "id": 1179, "nodeType": "Block", "src": "10920:257:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1157, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1155, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1148, "src": "10934:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1156, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1150, "src": "10939:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "10934:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1178, "nodeType": "IfStatement", "src": "10930:241:0", "trueBody": { "id": 1177, "nodeType": "Block", "src": "10942:229:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 1159, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10965:42:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_85ee98c18b4560d5bfeeef41e54955cef93f7b8071348c487f1fd81bd1aaf2ad", "typeString": "literal_string \"Error: a > b not satisfied [decimal int]\"" }, "value": "Error: a > b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_85ee98c18b4560d5bfeeef41e54955cef93f7b8071348c487f1fd81bd1aaf2ad", "typeString": "literal_string \"Error: a > b not satisfied [decimal int]\"" } ], "id": 1158, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "10961:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1160, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "10961:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1161, "nodeType": "EmitStatement", "src": "10956:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1163, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11049:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1164, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1148, "src": "11062:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1165, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1152, "src": "11065:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1162, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "11027:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1166, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11027:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1167, "nodeType": "EmitStatement", "src": "11022:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1169, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11115:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1170, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1150, "src": "11128:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1171, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1152, "src": "11131:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1168, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "11093:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1172, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11093:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1173, "nodeType": "EmitStatement", "src": "11088:52:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1174, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "11154:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1175, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11154:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1176, "nodeType": "ExpressionStatement", "src": "11154:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGtDecimal", "nameLocation": "10866:15:0", "parameters": { "id": 1153, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1148, "mutability": "mutable", "name": "a", "nameLocation": "10886:1:0", "nodeType": "VariableDeclaration", "scope": 1180, "src": "10882:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1147, "name": "int", "nodeType": "ElementaryTypeName", "src": "10882:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1150, "mutability": "mutable", "name": "b", "nameLocation": "10893:1:0", "nodeType": "VariableDeclaration", "scope": 1180, "src": "10889:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1149, "name": "int", "nodeType": "ElementaryTypeName", "src": "10889:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1152, "mutability": "mutable", "name": "decimals", "nameLocation": "10901:8:0", "nodeType": "VariableDeclaration", "scope": 1180, "src": "10896:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1151, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10896:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "10881:29:0" }, "returnParameters": { "id": 1154, "nodeType": "ParameterList", "parameters": [], "src": "10920:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1208, "nodeType": "FunctionDefinition", "src": "11182:215:0", "nodes": [], "body": { "id": 1207, "nodeType": "Block", "src": "11264:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1193, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1191, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1182, "src": "11278:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1192, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1184, "src": "11283:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "11278:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1206, "nodeType": "IfStatement", "src": "11274:117:0", "trueBody": { "id": 1205, "nodeType": "Block", "src": "11286:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1195, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11322:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1196, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1188, "src": "11331:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1194, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "11305:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1197, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11305:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1198, "nodeType": "EmitStatement", "src": "11300:35:0" }, { "expression": { "arguments": [ { "id": 1200, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1182, "src": "11365:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1201, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1184, "src": "11368:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1202, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1186, "src": "11371:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1199, "name": "assertGtDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1180, 1208, 1242, 1270 ], "referencedDeclaration": 1180, "src": "11349:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 1203, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11349:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1204, "nodeType": "ExpressionStatement", "src": "11349:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGtDecimal", "nameLocation": "11191:15:0", "parameters": { "id": 1189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1182, "mutability": "mutable", "name": "a", "nameLocation": "11211:1:0", "nodeType": "VariableDeclaration", "scope": 1208, "src": "11207:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1181, "name": "int", "nodeType": "ElementaryTypeName", "src": "11207:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1184, "mutability": "mutable", "name": "b", "nameLocation": "11218:1:0", "nodeType": "VariableDeclaration", "scope": 1208, "src": "11214:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1183, "name": "int", "nodeType": "ElementaryTypeName", "src": "11214:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1186, "mutability": "mutable", "name": "decimals", "nameLocation": "11226:8:0", "nodeType": "VariableDeclaration", "scope": 1208, "src": "11221:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1185, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11221:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1188, "mutability": "mutable", "name": "err", "nameLocation": "11250:3:0", "nodeType": "VariableDeclaration", "scope": 1208, "src": "11236:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1187, "name": "string", "nodeType": "ElementaryTypeName", "src": "11236:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "11206:48:0" }, "returnParameters": { "id": 1190, "nodeType": "ParameterList", "parameters": [], "src": "11264:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1242, "nodeType": "FunctionDefinition", "src": "11402:325:0", "nodes": [], "body": { "id": 1241, "nodeType": "Block", "src": "11467:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1217, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1210, "src": "11481:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1218, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1212, "src": "11486:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11481:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1240, "nodeType": "IfStatement", "src": "11477:244:0", "trueBody": { "id": 1239, "nodeType": "Block", "src": "11489:232:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 1221, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11512:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_2a2cca6a3a53808b9763cfdafa62d083cc161a243845052a9c6e09d6d624c69f", "typeString": "literal_string \"Error: a > b not satisfied [decimal uint]\"" }, "value": "Error: a > b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_2a2cca6a3a53808b9763cfdafa62d083cc161a243845052a9c6e09d6d624c69f", "typeString": "literal_string \"Error: a > b not satisfied [decimal uint]\"" } ], "id": 1220, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "11508:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1222, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11508:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1223, "nodeType": "EmitStatement", "src": "11503:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1225, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11598:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1226, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1210, "src": "11611:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1227, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1214, "src": "11614:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1224, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "11575:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1228, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11575:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1229, "nodeType": "EmitStatement", "src": "11570:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1231, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11665:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1232, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1212, "src": "11678:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1233, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1214, "src": "11681:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1230, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "11642:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1234, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11642:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1235, "nodeType": "EmitStatement", "src": "11637:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1236, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "11704:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1237, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11704:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1238, "nodeType": "ExpressionStatement", "src": "11704:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGtDecimal", "nameLocation": "11411:15:0", "parameters": { "id": 1215, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1210, "mutability": "mutable", "name": "a", "nameLocation": "11432:1:0", "nodeType": "VariableDeclaration", "scope": 1242, "src": "11427:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1209, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11427:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1212, "mutability": "mutable", "name": "b", "nameLocation": "11440:1:0", "nodeType": "VariableDeclaration", "scope": 1242, "src": "11435:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1211, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11435:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1214, "mutability": "mutable", "name": "decimals", "nameLocation": "11448:8:0", "nodeType": "VariableDeclaration", "scope": 1242, "src": "11443:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1213, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11443:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11426:31:0" }, "returnParameters": { "id": 1216, "nodeType": "ParameterList", "parameters": [], "src": "11467:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1270, "nodeType": "FunctionDefinition", "src": "11732:217:0", "nodes": [], "body": { "id": 1269, "nodeType": "Block", "src": "11816:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1255, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1253, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1244, "src": "11830:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "id": 1254, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11835:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11830:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1268, "nodeType": "IfStatement", "src": "11826:117:0", "trueBody": { "id": 1267, "nodeType": "Block", "src": "11838:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1257, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11874:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1258, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1250, "src": "11883:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1256, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "11857:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1259, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11857:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1260, "nodeType": "EmitStatement", "src": "11852:35:0" }, { "expression": { "arguments": [ { "id": 1262, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1244, "src": "11917:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1263, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11920:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1264, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1248, "src": "11923:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1261, "name": "assertGtDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1180, 1208, 1242, 1270 ], "referencedDeclaration": 1242, "src": "11901:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 1265, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "11901:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1266, "nodeType": "ExpressionStatement", "src": "11901:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGtDecimal", "nameLocation": "11741:15:0", "parameters": { "id": 1251, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1244, "mutability": "mutable", "name": "a", "nameLocation": "11762:1:0", "nodeType": "VariableDeclaration", "scope": 1270, "src": "11757:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1243, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11757:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1246, "mutability": "mutable", "name": "b", "nameLocation": "11770:1:0", "nodeType": "VariableDeclaration", "scope": 1270, "src": "11765:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1245, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11765:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1248, "mutability": "mutable", "name": "decimals", "nameLocation": "11778:8:0", "nodeType": "VariableDeclaration", "scope": 1270, "src": "11773:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1247, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11773:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1250, "mutability": "mutable", "name": "err", "nameLocation": "11802:3:0", "nodeType": "VariableDeclaration", "scope": 1270, "src": "11788:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1249, "name": "string", "nodeType": "ElementaryTypeName", "src": "11788:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "11756:50:0" }, "returnParameters": { "id": 1252, "nodeType": "ParameterList", "parameters": [], "src": "11816:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1300, "nodeType": "FunctionDefinition", "src": "11955:259:0", "nodes": [], "body": { "id": 1299, "nodeType": "Block", "src": "11998:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1277, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1272, "src": "12012:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1278, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1274, "src": "12016:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12012:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1298, "nodeType": "IfStatement", "src": "12008:200:0", "trueBody": { "id": 1297, "nodeType": "Block", "src": "12019:189:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e3d2062206e6f7420736174697366696564205b75696e745d", "id": 1281, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12042:36:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_ad79593ab7a8c163bd9b5379945ad36a940281a5ef1023478b9c309b02ea375e", "typeString": "literal_string \"Error: a >= b not satisfied [uint]\"" }, "value": "Error: a >= b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_ad79593ab7a8c163bd9b5379945ad36a940281a5ef1023478b9c309b02ea375e", "typeString": "literal_string \"Error: a >= b not satisfied [uint]\"" } ], "id": 1280, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "12038:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1282, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12038:41:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1283, "nodeType": "EmitStatement", "src": "12033:46:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1285, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12113:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1286, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1272, "src": "12126:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1284, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "12098:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1287, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12098:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1288, "nodeType": "EmitStatement", "src": "12093:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1290, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12162:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1291, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1274, "src": "12175:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1289, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "12147:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1292, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12147:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1293, "nodeType": "EmitStatement", "src": "12142:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1294, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "12191:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1295, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12191:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1296, "nodeType": "ExpressionStatement", "src": "12191:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGe", "nameLocation": "11964:8:0", "parameters": { "id": 1275, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1272, "mutability": "mutable", "name": "a", "nameLocation": "11978:1:0", "nodeType": "VariableDeclaration", "scope": 1300, "src": "11973:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1271, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11973:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1274, "mutability": "mutable", "name": "b", "nameLocation": "11986:1:0", "nodeType": "VariableDeclaration", "scope": 1300, "src": "11981:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1273, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11981:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11972:16:0" }, "returnParameters": { "id": 1276, "nodeType": "ParameterList", "parameters": [], "src": "11998:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1325, "nodeType": "FunctionDefinition", "src": "12219:177:0", "nodes": [], "body": { "id": 1324, "nodeType": "Block", "src": "12281:115:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1311, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1309, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1302, "src": "12295:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1310, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1304, "src": "12299:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12295:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1323, "nodeType": "IfStatement", "src": "12291:99:0", "trueBody": { "id": 1322, "nodeType": "Block", "src": "12302:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1313, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12338:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1314, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "12347:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1312, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "12321:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1315, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12321:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1316, "nodeType": "EmitStatement", "src": "12316:35:0" }, { "expression": { "arguments": [ { "id": 1318, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1302, "src": "12374:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1319, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1304, "src": "12377:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1317, "name": "assertGe", "nodeType": "Identifier", "overloadedDeclarations": [ 1300, 1325, 1355, 1380 ], "referencedDeclaration": 1300, "src": "12365:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 1320, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12365:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1321, "nodeType": "ExpressionStatement", "src": "12365:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGe", "nameLocation": "12228:8:0", "parameters": { "id": 1307, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1302, "mutability": "mutable", "name": "a", "nameLocation": "12242:1:0", "nodeType": "VariableDeclaration", "scope": 1325, "src": "12237:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1301, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12237:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1304, "mutability": "mutable", "name": "b", "nameLocation": "12250:1:0", "nodeType": "VariableDeclaration", "scope": 1325, "src": "12245:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1303, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12245:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1306, "mutability": "mutable", "name": "err", "nameLocation": "12267:3:0", "nodeType": "VariableDeclaration", "scope": 1325, "src": "12253:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1305, "name": "string", "nodeType": "ElementaryTypeName", "src": "12253:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "12236:35:0" }, "returnParameters": { "id": 1308, "nodeType": "ParameterList", "parameters": [], "src": "12281:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1355, "nodeType": "FunctionDefinition", "src": "12401:254:0", "nodes": [], "body": { "id": 1354, "nodeType": "Block", "src": "12442:213:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1334, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1332, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1327, "src": "12456:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1333, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1329, "src": "12460:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "12456:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1353, "nodeType": "IfStatement", "src": "12452:197:0", "trueBody": { "id": 1352, "nodeType": "Block", "src": "12463:186:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e3d2062206e6f7420736174697366696564205b696e745d", "id": 1336, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12486:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_9dd34d7cd7d190bc9855e4326f563fd4539c0d764699b480d53bfd72aa5807a6", "typeString": "literal_string \"Error: a >= b not satisfied [int]\"" }, "value": "Error: a >= b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_9dd34d7cd7d190bc9855e4326f563fd4539c0d764699b480d53bfd72aa5807a6", "typeString": "literal_string \"Error: a >= b not satisfied [int]\"" } ], "id": 1335, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "12482:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1337, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12482:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1338, "nodeType": "EmitStatement", "src": "12477:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1340, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12555:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1341, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1327, "src": "12568:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1339, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "12541:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1342, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12541:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1343, "nodeType": "EmitStatement", "src": "12536:34:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1345, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12603:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1346, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1329, "src": "12616:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1344, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "12589:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1347, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12589:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1348, "nodeType": "EmitStatement", "src": "12584:34:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1349, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "12632:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1350, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12632:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1351, "nodeType": "ExpressionStatement", "src": "12632:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGe", "nameLocation": "12410:8:0", "parameters": { "id": 1330, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1327, "mutability": "mutable", "name": "a", "nameLocation": "12423:1:0", "nodeType": "VariableDeclaration", "scope": 1355, "src": "12419:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1326, "name": "int", "nodeType": "ElementaryTypeName", "src": "12419:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1329, "mutability": "mutable", "name": "b", "nameLocation": "12430:1:0", "nodeType": "VariableDeclaration", "scope": 1355, "src": "12426:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1328, "name": "int", "nodeType": "ElementaryTypeName", "src": "12426:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "12418:14:0" }, "returnParameters": { "id": 1331, "nodeType": "ParameterList", "parameters": [], "src": "12442:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1380, "nodeType": "FunctionDefinition", "src": "12660:175:0", "nodes": [], "body": { "id": 1379, "nodeType": "Block", "src": "12720:115:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1366, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1364, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1357, "src": "12734:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1365, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1359, "src": "12738:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "12734:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1378, "nodeType": "IfStatement", "src": "12730:99:0", "trueBody": { "id": 1377, "nodeType": "Block", "src": "12741:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1368, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12777:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1369, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1361, "src": "12786:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1367, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "12760:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1370, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12760:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1371, "nodeType": "EmitStatement", "src": "12755:35:0" }, { "expression": { "arguments": [ { "id": 1373, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1357, "src": "12813:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1374, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1359, "src": "12816:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1372, "name": "assertGe", "nodeType": "Identifier", "overloadedDeclarations": [ 1300, 1325, 1355, 1380 ], "referencedDeclaration": 1355, "src": "12804:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 1375, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12804:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1376, "nodeType": "ExpressionStatement", "src": "12804:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGe", "nameLocation": "12669:8:0", "parameters": { "id": 1362, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1357, "mutability": "mutable", "name": "a", "nameLocation": "12682:1:0", "nodeType": "VariableDeclaration", "scope": 1380, "src": "12678:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1356, "name": "int", "nodeType": "ElementaryTypeName", "src": "12678:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1359, "mutability": "mutable", "name": "b", "nameLocation": "12689:1:0", "nodeType": "VariableDeclaration", "scope": 1380, "src": "12685:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1358, "name": "int", "nodeType": "ElementaryTypeName", "src": "12685:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1361, "mutability": "mutable", "name": "err", "nameLocation": "12706:3:0", "nodeType": "VariableDeclaration", "scope": 1380, "src": "12692:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1360, "name": "string", "nodeType": "ElementaryTypeName", "src": "12692:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "12677:33:0" }, "returnParameters": { "id": 1363, "nodeType": "ParameterList", "parameters": [], "src": "12720:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1414, "nodeType": "FunctionDefinition", "src": "12840:320:0", "nodes": [], "body": { "id": 1413, "nodeType": "Block", "src": "12903:257:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1391, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1389, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1382, "src": "12917:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1390, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1384, "src": "12921:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "12917:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1412, "nodeType": "IfStatement", "src": "12913:241:0", "trueBody": { "id": 1411, "nodeType": "Block", "src": "12924:230:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e3d2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 1393, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12947:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_0f02f65375ca93c3f3c485b8b2455303d1a8668a2b626cba00789d1c4ebd8736", "typeString": "literal_string \"Error: a >= b not satisfied [decimal int]\"" }, "value": "Error: a >= b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_0f02f65375ca93c3f3c485b8b2455303d1a8668a2b626cba00789d1c4ebd8736", "typeString": "literal_string \"Error: a >= b not satisfied [decimal int]\"" } ], "id": 1392, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "12943:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1394, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "12943:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1395, "nodeType": "EmitStatement", "src": "12938:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1397, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13032:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1398, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1382, "src": "13045:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1399, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1386, "src": "13048:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1396, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "13010:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1400, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13010:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1401, "nodeType": "EmitStatement", "src": "13005:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1403, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13098:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1404, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1384, "src": "13111:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1405, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1386, "src": "13114:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1402, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "13076:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1406, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13076:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1407, "nodeType": "EmitStatement", "src": "13071:52:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1408, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "13137:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1409, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13137:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1410, "nodeType": "ExpressionStatement", "src": "13137:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGeDecimal", "nameLocation": "12849:15:0", "parameters": { "id": 1387, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1382, "mutability": "mutable", "name": "a", "nameLocation": "12869:1:0", "nodeType": "VariableDeclaration", "scope": 1414, "src": "12865:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1381, "name": "int", "nodeType": "ElementaryTypeName", "src": "12865:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1384, "mutability": "mutable", "name": "b", "nameLocation": "12876:1:0", "nodeType": "VariableDeclaration", "scope": 1414, "src": "12872:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1383, "name": "int", "nodeType": "ElementaryTypeName", "src": "12872:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1386, "mutability": "mutable", "name": "decimals", "nameLocation": "12884:8:0", "nodeType": "VariableDeclaration", "scope": 1414, "src": "12879:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1385, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12879:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "12864:29:0" }, "returnParameters": { "id": 1388, "nodeType": "ParameterList", "parameters": [], "src": "12903:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1442, "nodeType": "FunctionDefinition", "src": "13165:214:0", "nodes": [], "body": { "id": 1441, "nodeType": "Block", "src": "13247:132:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1427, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1425, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1416, "src": "13261:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1426, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1418, "src": "13265:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "13261:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1440, "nodeType": "IfStatement", "src": "13257:116:0", "trueBody": { "id": 1439, "nodeType": "Block", "src": "13268:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1429, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13304:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1430, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1422, "src": "13313:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1428, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "13287:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1431, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13287:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1432, "nodeType": "EmitStatement", "src": "13282:35:0" }, { "expression": { "arguments": [ { "id": 1434, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1416, "src": "13347:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1435, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1418, "src": "13350:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1436, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1420, "src": "13353:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1433, "name": "assertGeDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1414, 1442, 1476, 1504 ], "referencedDeclaration": 1414, "src": "13331:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 1437, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13331:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1438, "nodeType": "ExpressionStatement", "src": "13331:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGeDecimal", "nameLocation": "13174:15:0", "parameters": { "id": 1423, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1416, "mutability": "mutable", "name": "a", "nameLocation": "13194:1:0", "nodeType": "VariableDeclaration", "scope": 1442, "src": "13190:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1415, "name": "int", "nodeType": "ElementaryTypeName", "src": "13190:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1418, "mutability": "mutable", "name": "b", "nameLocation": "13201:1:0", "nodeType": "VariableDeclaration", "scope": 1442, "src": "13197:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1417, "name": "int", "nodeType": "ElementaryTypeName", "src": "13197:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1420, "mutability": "mutable", "name": "decimals", "nameLocation": "13209:8:0", "nodeType": "VariableDeclaration", "scope": 1442, "src": "13204:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1419, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13204:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1422, "mutability": "mutable", "name": "err", "nameLocation": "13233:3:0", "nodeType": "VariableDeclaration", "scope": 1442, "src": "13219:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1421, "name": "string", "nodeType": "ElementaryTypeName", "src": "13219:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "13189:48:0" }, "returnParameters": { "id": 1424, "nodeType": "ParameterList", "parameters": [], "src": "13247:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1476, "nodeType": "FunctionDefinition", "src": "13384:325:0", "nodes": [], "body": { "id": 1475, "nodeType": "Block", "src": "13449:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1453, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1451, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1444, "src": "13463:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1452, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1446, "src": "13467:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13463:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1474, "nodeType": "IfStatement", "src": "13459:244:0", "trueBody": { "id": 1473, "nodeType": "Block", "src": "13470:233:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203e3d2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 1455, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13493:44:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_1192304a51ee70969886576ac83224cad7adddc5aab218616c612e9fa634c616", "typeString": "literal_string \"Error: a >= b not satisfied [decimal uint]\"" }, "value": "Error: a >= b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_1192304a51ee70969886576ac83224cad7adddc5aab218616c612e9fa634c616", "typeString": "literal_string \"Error: a >= b not satisfied [decimal uint]\"" } ], "id": 1454, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "13489:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1456, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13489:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1457, "nodeType": "EmitStatement", "src": "13484:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1459, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13580:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1460, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1444, "src": "13593:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1461, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1448, "src": "13596:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1458, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "13557:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1462, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13557:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1463, "nodeType": "EmitStatement", "src": "13552:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1465, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13647:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1466, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1446, "src": "13660:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1467, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1448, "src": "13663:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1464, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "13624:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1468, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13624:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1469, "nodeType": "EmitStatement", "src": "13619:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1470, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "13686:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1471, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13686:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1472, "nodeType": "ExpressionStatement", "src": "13686:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGeDecimal", "nameLocation": "13393:15:0", "parameters": { "id": 1449, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1444, "mutability": "mutable", "name": "a", "nameLocation": "13414:1:0", "nodeType": "VariableDeclaration", "scope": 1476, "src": "13409:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1443, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13409:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1446, "mutability": "mutable", "name": "b", "nameLocation": "13422:1:0", "nodeType": "VariableDeclaration", "scope": 1476, "src": "13417:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1445, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13417:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1448, "mutability": "mutable", "name": "decimals", "nameLocation": "13430:8:0", "nodeType": "VariableDeclaration", "scope": 1476, "src": "13425:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1447, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13425:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "13408:31:0" }, "returnParameters": { "id": 1450, "nodeType": "ParameterList", "parameters": [], "src": "13449:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1504, "nodeType": "FunctionDefinition", "src": "13714:216:0", "nodes": [], "body": { "id": 1503, "nodeType": "Block", "src": "13798:132:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1489, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1487, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1478, "src": "13812:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1488, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1480, "src": "13816:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13812:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1502, "nodeType": "IfStatement", "src": "13808:116:0", "trueBody": { "id": 1501, "nodeType": "Block", "src": "13819:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1491, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "13855:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1492, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1484, "src": "13864:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1490, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "13838:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1493, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13838:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1494, "nodeType": "EmitStatement", "src": "13833:35:0" }, { "expression": { "arguments": [ { "id": 1496, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1478, "src": "13898:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1497, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1480, "src": "13901:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1498, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1482, "src": "13904:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1495, "name": "assertGeDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1414, 1442, 1476, 1504 ], "referencedDeclaration": 1476, "src": "13882:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 1499, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "13882:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1500, "nodeType": "ExpressionStatement", "src": "13882:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertGeDecimal", "nameLocation": "13723:15:0", "parameters": { "id": 1485, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1478, "mutability": "mutable", "name": "a", "nameLocation": "13744:1:0", "nodeType": "VariableDeclaration", "scope": 1504, "src": "13739:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1477, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13739:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1480, "mutability": "mutable", "name": "b", "nameLocation": "13752:1:0", "nodeType": "VariableDeclaration", "scope": 1504, "src": "13747:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1479, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13747:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1482, "mutability": "mutable", "name": "decimals", "nameLocation": "13760:8:0", "nodeType": "VariableDeclaration", "scope": 1504, "src": "13755:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1481, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13755:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1484, "mutability": "mutable", "name": "err", "nameLocation": "13784:3:0", "nodeType": "VariableDeclaration", "scope": 1504, "src": "13770:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1483, "name": "string", "nodeType": "ElementaryTypeName", "src": "13770:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "13738:50:0" }, "returnParameters": { "id": 1486, "nodeType": "ParameterList", "parameters": [], "src": "13798:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1534, "nodeType": "FunctionDefinition", "src": "13936:259:0", "nodes": [], "body": { "id": 1533, "nodeType": "Block", "src": "13979:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1513, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1511, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1506, "src": "13993:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1512, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1508, "src": "13998:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13993:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1532, "nodeType": "IfStatement", "src": "13989:200:0", "trueBody": { "id": 1531, "nodeType": "Block", "src": "14001:188:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c2062206e6f7420736174697366696564205b75696e745d", "id": 1515, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14024:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4a5f85d4936ddbc273c762d0b3a90fefdc47bf4d5496816359b86f70b5c74f9", "typeString": "literal_string \"Error: a < b not satisfied [uint]\"" }, "value": "Error: a < b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4a5f85d4936ddbc273c762d0b3a90fefdc47bf4d5496816359b86f70b5c74f9", "typeString": "literal_string \"Error: a < b not satisfied [uint]\"" } ], "id": 1514, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "14020:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1516, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14020:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1517, "nodeType": "EmitStatement", "src": "14015:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1519, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14094:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1520, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1506, "src": "14107:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1518, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "14079:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1521, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14079:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1522, "nodeType": "EmitStatement", "src": "14074:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1524, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14143:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1525, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1508, "src": "14156:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1523, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "14128:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1526, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14128:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1527, "nodeType": "EmitStatement", "src": "14123:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1528, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "14172:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1529, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14172:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1530, "nodeType": "ExpressionStatement", "src": "14172:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLt", "nameLocation": "13945:8:0", "parameters": { "id": 1509, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1506, "mutability": "mutable", "name": "a", "nameLocation": "13959:1:0", "nodeType": "VariableDeclaration", "scope": 1534, "src": "13954:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1505, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13954:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1508, "mutability": "mutable", "name": "b", "nameLocation": "13967:1:0", "nodeType": "VariableDeclaration", "scope": 1534, "src": "13962:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1507, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13962:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "13953:16:0" }, "returnParameters": { "id": 1510, "nodeType": "ParameterList", "parameters": [], "src": "13979:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1559, "nodeType": "FunctionDefinition", "src": "14200:178:0", "nodes": [], "body": { "id": 1558, "nodeType": "Block", "src": "14262:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1545, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1543, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1536, "src": "14276:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1544, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1538, "src": "14281:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14276:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1557, "nodeType": "IfStatement", "src": "14272:100:0", "trueBody": { "id": 1556, "nodeType": "Block", "src": "14284:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1547, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14320:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1548, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1540, "src": "14329:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1546, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "14303:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1549, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14303:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1550, "nodeType": "EmitStatement", "src": "14298:35:0" }, { "expression": { "arguments": [ { "id": 1552, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1536, "src": "14356:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1553, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1538, "src": "14359:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1551, "name": "assertLt", "nodeType": "Identifier", "overloadedDeclarations": [ 1534, 1559, 1589, 1614 ], "referencedDeclaration": 1534, "src": "14347:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 1554, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14347:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1555, "nodeType": "ExpressionStatement", "src": "14347:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLt", "nameLocation": "14209:8:0", "parameters": { "id": 1541, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1536, "mutability": "mutable", "name": "a", "nameLocation": "14223:1:0", "nodeType": "VariableDeclaration", "scope": 1559, "src": "14218:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1535, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14218:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1538, "mutability": "mutable", "name": "b", "nameLocation": "14231:1:0", "nodeType": "VariableDeclaration", "scope": 1559, "src": "14226:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1537, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14226:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1540, "mutability": "mutable", "name": "err", "nameLocation": "14248:3:0", "nodeType": "VariableDeclaration", "scope": 1559, "src": "14234:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1539, "name": "string", "nodeType": "ElementaryTypeName", "src": "14234:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "14217:35:0" }, "returnParameters": { "id": 1542, "nodeType": "ParameterList", "parameters": [], "src": "14262:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1589, "nodeType": "FunctionDefinition", "src": "14383:254:0", "nodes": [], "body": { "id": 1588, "nodeType": "Block", "src": "14424:213:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1568, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1566, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1561, "src": "14438:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1567, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1563, "src": "14443:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "14438:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1587, "nodeType": "IfStatement", "src": "14434:197:0", "trueBody": { "id": 1586, "nodeType": "Block", "src": "14446:185:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c2062206e6f7420736174697366696564205b696e745d", "id": 1570, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14469:34:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_62edb5e296dde1308ab599c3156f51dcd32b6d82784df4b0c0246d307d4bd055", "typeString": "literal_string \"Error: a < b not satisfied [int]\"" }, "value": "Error: a < b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_62edb5e296dde1308ab599c3156f51dcd32b6d82784df4b0c0246d307d4bd055", "typeString": "literal_string \"Error: a < b not satisfied [int]\"" } ], "id": 1569, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "14465:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1571, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14465:39:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1572, "nodeType": "EmitStatement", "src": "14460:44:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1574, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14537:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1575, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1561, "src": "14550:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1573, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "14523:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1576, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14523:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1577, "nodeType": "EmitStatement", "src": "14518:34:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1579, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14585:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1580, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1563, "src": "14598:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1578, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "14571:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1581, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14571:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1582, "nodeType": "EmitStatement", "src": "14566:34:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1583, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "14614:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1584, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14614:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1585, "nodeType": "ExpressionStatement", "src": "14614:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLt", "nameLocation": "14392:8:0", "parameters": { "id": 1564, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1561, "mutability": "mutable", "name": "a", "nameLocation": "14405:1:0", "nodeType": "VariableDeclaration", "scope": 1589, "src": "14401:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1560, "name": "int", "nodeType": "ElementaryTypeName", "src": "14401:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1563, "mutability": "mutable", "name": "b", "nameLocation": "14412:1:0", "nodeType": "VariableDeclaration", "scope": 1589, "src": "14408:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1562, "name": "int", "nodeType": "ElementaryTypeName", "src": "14408:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "14400:14:0" }, "returnParameters": { "id": 1565, "nodeType": "ParameterList", "parameters": [], "src": "14424:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1614, "nodeType": "FunctionDefinition", "src": "14642:176:0", "nodes": [], "body": { "id": 1613, "nodeType": "Block", "src": "14702:116:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1600, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1598, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1591, "src": "14716:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1599, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1593, "src": "14721:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "14716:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1612, "nodeType": "IfStatement", "src": "14712:100:0", "trueBody": { "id": 1611, "nodeType": "Block", "src": "14724:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1602, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14760:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1603, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1595, "src": "14769:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1601, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "14743:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1604, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14743:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1605, "nodeType": "EmitStatement", "src": "14738:35:0" }, { "expression": { "arguments": [ { "id": 1607, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1591, "src": "14796:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1608, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1593, "src": "14799:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1606, "name": "assertLt", "nodeType": "Identifier", "overloadedDeclarations": [ 1534, 1559, 1589, 1614 ], "referencedDeclaration": 1589, "src": "14787:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 1609, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14787:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1610, "nodeType": "ExpressionStatement", "src": "14787:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLt", "nameLocation": "14651:8:0", "parameters": { "id": 1596, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1591, "mutability": "mutable", "name": "a", "nameLocation": "14664:1:0", "nodeType": "VariableDeclaration", "scope": 1614, "src": "14660:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1590, "name": "int", "nodeType": "ElementaryTypeName", "src": "14660:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1593, "mutability": "mutable", "name": "b", "nameLocation": "14671:1:0", "nodeType": "VariableDeclaration", "scope": 1614, "src": "14667:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1592, "name": "int", "nodeType": "ElementaryTypeName", "src": "14667:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1595, "mutability": "mutable", "name": "err", "nameLocation": "14688:3:0", "nodeType": "VariableDeclaration", "scope": 1614, "src": "14674:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1594, "name": "string", "nodeType": "ElementaryTypeName", "src": "14674:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "14659:33:0" }, "returnParameters": { "id": 1597, "nodeType": "ParameterList", "parameters": [], "src": "14702:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1648, "nodeType": "FunctionDefinition", "src": "14823:320:0", "nodes": [], "body": { "id": 1647, "nodeType": "Block", "src": "14886:257:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1625, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1623, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1616, "src": "14900:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1624, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1618, "src": "14905:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "14900:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1646, "nodeType": "IfStatement", "src": "14896:241:0", "trueBody": { "id": 1645, "nodeType": "Block", "src": "14908:229:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 1627, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "14931:42:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_a598de9e78c706978d3e40be19632446c2f234152ee02226f88acff1b63da79a", "typeString": "literal_string \"Error: a < b not satisfied [decimal int]\"" }, "value": "Error: a < b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_a598de9e78c706978d3e40be19632446c2f234152ee02226f88acff1b63da79a", "typeString": "literal_string \"Error: a < b not satisfied [decimal int]\"" } ], "id": 1626, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "14927:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1628, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14927:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1629, "nodeType": "EmitStatement", "src": "14922:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1631, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15015:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1632, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1616, "src": "15028:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1633, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1620, "src": "15031:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1630, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "14993:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1634, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "14993:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1635, "nodeType": "EmitStatement", "src": "14988:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1637, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15081:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1638, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1618, "src": "15094:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1639, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1620, "src": "15097:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1636, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "15059:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1640, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15059:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1641, "nodeType": "EmitStatement", "src": "15054:52:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1642, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "15120:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1643, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15120:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1644, "nodeType": "ExpressionStatement", "src": "15120:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLtDecimal", "nameLocation": "14832:15:0", "parameters": { "id": 1621, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1616, "mutability": "mutable", "name": "a", "nameLocation": "14852:1:0", "nodeType": "VariableDeclaration", "scope": 1648, "src": "14848:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1615, "name": "int", "nodeType": "ElementaryTypeName", "src": "14848:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1618, "mutability": "mutable", "name": "b", "nameLocation": "14859:1:0", "nodeType": "VariableDeclaration", "scope": 1648, "src": "14855:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1617, "name": "int", "nodeType": "ElementaryTypeName", "src": "14855:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1620, "mutability": "mutable", "name": "decimals", "nameLocation": "14867:8:0", "nodeType": "VariableDeclaration", "scope": 1648, "src": "14862:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1619, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14862:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "14847:29:0" }, "returnParameters": { "id": 1622, "nodeType": "ParameterList", "parameters": [], "src": "14886:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1676, "nodeType": "FunctionDefinition", "src": "15148:215:0", "nodes": [], "body": { "id": 1675, "nodeType": "Block", "src": "15230:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1661, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1659, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1650, "src": "15244:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1660, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1652, "src": "15249:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "15244:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1674, "nodeType": "IfStatement", "src": "15240:117:0", "trueBody": { "id": 1673, "nodeType": "Block", "src": "15252:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1663, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15288:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1664, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1656, "src": "15297:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1662, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "15271:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1665, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15271:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1666, "nodeType": "EmitStatement", "src": "15266:35:0" }, { "expression": { "arguments": [ { "id": 1668, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1650, "src": "15331:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1669, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1652, "src": "15334:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1670, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1654, "src": "15337:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1667, "name": "assertLtDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1648, 1676, 1710, 1738 ], "referencedDeclaration": 1648, "src": "15315:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 1671, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15315:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1672, "nodeType": "ExpressionStatement", "src": "15315:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLtDecimal", "nameLocation": "15157:15:0", "parameters": { "id": 1657, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1650, "mutability": "mutable", "name": "a", "nameLocation": "15177:1:0", "nodeType": "VariableDeclaration", "scope": 1676, "src": "15173:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1649, "name": "int", "nodeType": "ElementaryTypeName", "src": "15173:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1652, "mutability": "mutable", "name": "b", "nameLocation": "15184:1:0", "nodeType": "VariableDeclaration", "scope": 1676, "src": "15180:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1651, "name": "int", "nodeType": "ElementaryTypeName", "src": "15180:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1654, "mutability": "mutable", "name": "decimals", "nameLocation": "15192:8:0", "nodeType": "VariableDeclaration", "scope": 1676, "src": "15187:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1653, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15187:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1656, "mutability": "mutable", "name": "err", "nameLocation": "15216:3:0", "nodeType": "VariableDeclaration", "scope": 1676, "src": "15202:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1655, "name": "string", "nodeType": "ElementaryTypeName", "src": "15202:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "15172:48:0" }, "returnParameters": { "id": 1658, "nodeType": "ParameterList", "parameters": [], "src": "15230:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1710, "nodeType": "FunctionDefinition", "src": "15368:325:0", "nodes": [], "body": { "id": 1709, "nodeType": "Block", "src": "15433:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1687, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1685, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1678, "src": "15447:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1686, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1680, "src": "15452:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "15447:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1708, "nodeType": "IfStatement", "src": "15443:244:0", "trueBody": { "id": 1707, "nodeType": "Block", "src": "15455:232:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 1689, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15478:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_8057606f9e67842ac0149f4a7ffdaca59331aea176cd1419e89b7b4b21bbc6d9", "typeString": "literal_string \"Error: a < b not satisfied [decimal uint]\"" }, "value": "Error: a < b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_8057606f9e67842ac0149f4a7ffdaca59331aea176cd1419e89b7b4b21bbc6d9", "typeString": "literal_string \"Error: a < b not satisfied [decimal uint]\"" } ], "id": 1688, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "15474:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1690, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15474:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1691, "nodeType": "EmitStatement", "src": "15469:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1693, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15564:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1694, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1678, "src": "15577:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1695, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1682, "src": "15580:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1692, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "15541:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1696, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15541:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1697, "nodeType": "EmitStatement", "src": "15536:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1699, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15631:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1700, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1680, "src": "15644:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1701, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1682, "src": "15647:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1698, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "15608:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1702, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15608:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1703, "nodeType": "EmitStatement", "src": "15603:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1704, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "15670:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1705, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15670:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1706, "nodeType": "ExpressionStatement", "src": "15670:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLtDecimal", "nameLocation": "15377:15:0", "parameters": { "id": 1683, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1678, "mutability": "mutable", "name": "a", "nameLocation": "15398:1:0", "nodeType": "VariableDeclaration", "scope": 1710, "src": "15393:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1677, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15393:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1680, "mutability": "mutable", "name": "b", "nameLocation": "15406:1:0", "nodeType": "VariableDeclaration", "scope": 1710, "src": "15401:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1679, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15401:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1682, "mutability": "mutable", "name": "decimals", "nameLocation": "15414:8:0", "nodeType": "VariableDeclaration", "scope": 1710, "src": "15409:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1681, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15409:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "15392:31:0" }, "returnParameters": { "id": 1684, "nodeType": "ParameterList", "parameters": [], "src": "15433:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1738, "nodeType": "FunctionDefinition", "src": "15698:217:0", "nodes": [], "body": { "id": 1737, "nodeType": "Block", "src": "15782:133:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1723, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1721, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1712, "src": "15796:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 1722, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1714, "src": "15801:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "15796:6:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1736, "nodeType": "IfStatement", "src": "15792:117:0", "trueBody": { "id": 1735, "nodeType": "Block", "src": "15804:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1725, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "15840:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1726, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1718, "src": "15849:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1724, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "15823:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1727, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15823:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1728, "nodeType": "EmitStatement", "src": "15818:35:0" }, { "expression": { "arguments": [ { "id": 1730, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1712, "src": "15883:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1731, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1714, "src": "15886:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1732, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1716, "src": "15889:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1729, "name": "assertLtDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1648, 1676, 1710, 1738 ], "referencedDeclaration": 1710, "src": "15867:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 1733, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "15867:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1734, "nodeType": "ExpressionStatement", "src": "15867:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLtDecimal", "nameLocation": "15707:15:0", "parameters": { "id": 1719, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1712, "mutability": "mutable", "name": "a", "nameLocation": "15728:1:0", "nodeType": "VariableDeclaration", "scope": 1738, "src": "15723:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1711, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15723:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1714, "mutability": "mutable", "name": "b", "nameLocation": "15736:1:0", "nodeType": "VariableDeclaration", "scope": 1738, "src": "15731:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1713, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15731:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1716, "mutability": "mutable", "name": "decimals", "nameLocation": "15744:8:0", "nodeType": "VariableDeclaration", "scope": 1738, "src": "15739:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1715, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15739:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1718, "mutability": "mutable", "name": "err", "nameLocation": "15768:3:0", "nodeType": "VariableDeclaration", "scope": 1738, "src": "15754:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1717, "name": "string", "nodeType": "ElementaryTypeName", "src": "15754:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "15722:50:0" }, "returnParameters": { "id": 1720, "nodeType": "ParameterList", "parameters": [], "src": "15782:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1768, "nodeType": "FunctionDefinition", "src": "15921:259:0", "nodes": [], "body": { "id": 1767, "nodeType": "Block", "src": "15964:216:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1747, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1745, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1740, "src": "15978:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1746, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1742, "src": "15982:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "15978:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1766, "nodeType": "IfStatement", "src": "15974:200:0", "trueBody": { "id": 1765, "nodeType": "Block", "src": "15985:189:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c3d2062206e6f7420736174697366696564205b75696e745d", "id": 1749, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16008:36:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6d5420eec28b94f3fd7dd1c7ce81f45c79bfa9fab37300faf965a8d6272e32ff", "typeString": "literal_string \"Error: a <= b not satisfied [uint]\"" }, "value": "Error: a <= b not satisfied [uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_6d5420eec28b94f3fd7dd1c7ce81f45c79bfa9fab37300faf965a8d6272e32ff", "typeString": "literal_string \"Error: a <= b not satisfied [uint]\"" } ], "id": 1748, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "16004:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1750, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16004:41:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1751, "nodeType": "EmitStatement", "src": "15999:46:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1753, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16079:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1754, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1740, "src": "16092:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1752, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "16064:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1755, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16064:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1756, "nodeType": "EmitStatement", "src": "16059:35:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1758, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16128:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1759, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1742, "src": "16141:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1757, "name": "log_named_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 73, "src": "16113:14:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256)" } }, "id": 1760, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16113:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1761, "nodeType": "EmitStatement", "src": "16108:35:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1762, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "16157:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1763, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16157:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1764, "nodeType": "ExpressionStatement", "src": "16157:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLe", "nameLocation": "15930:8:0", "parameters": { "id": 1743, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1740, "mutability": "mutable", "name": "a", "nameLocation": "15944:1:0", "nodeType": "VariableDeclaration", "scope": 1768, "src": "15939:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1739, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15939:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1742, "mutability": "mutable", "name": "b", "nameLocation": "15952:1:0", "nodeType": "VariableDeclaration", "scope": 1768, "src": "15947:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1741, "name": "uint", "nodeType": "ElementaryTypeName", "src": "15947:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "15938:16:0" }, "returnParameters": { "id": 1744, "nodeType": "ParameterList", "parameters": [], "src": "15964:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1793, "nodeType": "FunctionDefinition", "src": "16185:177:0", "nodes": [], "body": { "id": 1792, "nodeType": "Block", "src": "16247:115:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1779, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1777, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1770, "src": "16261:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1778, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1772, "src": "16265:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "16261:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1791, "nodeType": "IfStatement", "src": "16257:99:0", "trueBody": { "id": 1790, "nodeType": "Block", "src": "16268:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1781, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16304:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1782, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1774, "src": "16313:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1780, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "16287:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1783, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16287:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1784, "nodeType": "EmitStatement", "src": "16282:35:0" }, { "expression": { "arguments": [ { "id": 1786, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1770, "src": "16340:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1787, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1772, "src": "16343:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1785, "name": "assertLe", "nodeType": "Identifier", "overloadedDeclarations": [ 1768, 1793, 1823, 1848 ], "referencedDeclaration": 1768, "src": "16331:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 1788, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16331:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1789, "nodeType": "ExpressionStatement", "src": "16331:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLe", "nameLocation": "16194:8:0", "parameters": { "id": 1775, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1770, "mutability": "mutable", "name": "a", "nameLocation": "16208:1:0", "nodeType": "VariableDeclaration", "scope": 1793, "src": "16203:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1769, "name": "uint", "nodeType": "ElementaryTypeName", "src": "16203:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1772, "mutability": "mutable", "name": "b", "nameLocation": "16216:1:0", "nodeType": "VariableDeclaration", "scope": 1793, "src": "16211:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1771, "name": "uint", "nodeType": "ElementaryTypeName", "src": "16211:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1774, "mutability": "mutable", "name": "err", "nameLocation": "16233:3:0", "nodeType": "VariableDeclaration", "scope": 1793, "src": "16219:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1773, "name": "string", "nodeType": "ElementaryTypeName", "src": "16219:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "16202:35:0" }, "returnParameters": { "id": 1776, "nodeType": "ParameterList", "parameters": [], "src": "16247:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1823, "nodeType": "FunctionDefinition", "src": "16367:254:0", "nodes": [], "body": { "id": 1822, "nodeType": "Block", "src": "16408:213:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1802, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1800, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1795, "src": "16422:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1801, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1797, "src": "16426:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "16422:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1821, "nodeType": "IfStatement", "src": "16418:197:0", "trueBody": { "id": 1820, "nodeType": "Block", "src": "16429:186:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c3d2062206e6f7420736174697366696564205b696e745d", "id": 1804, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16452:35:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_558ba41c44b763b352271d6c22f0cb02f5c0c4dbb25ed68172916a4e6a662555", "typeString": "literal_string \"Error: a <= b not satisfied [int]\"" }, "value": "Error: a <= b not satisfied [int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_558ba41c44b763b352271d6c22f0cb02f5c0c4dbb25ed68172916a4e6a662555", "typeString": "literal_string \"Error: a <= b not satisfied [int]\"" } ], "id": 1803, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "16448:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1805, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16448:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1806, "nodeType": "EmitStatement", "src": "16443:45:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1808, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16521:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1809, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1795, "src": "16534:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1807, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "16507:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1810, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16507:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1811, "nodeType": "EmitStatement", "src": "16502:34:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1813, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16569:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1814, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1797, "src": "16582:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1812, "name": "log_named_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 67, "src": "16555:13:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$returns$__$", "typeString": "function (string memory,int256)" } }, "id": 1815, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16555:29:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1816, "nodeType": "EmitStatement", "src": "16550:34:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1817, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "16598:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1818, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16598:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1819, "nodeType": "ExpressionStatement", "src": "16598:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLe", "nameLocation": "16376:8:0", "parameters": { "id": 1798, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1795, "mutability": "mutable", "name": "a", "nameLocation": "16389:1:0", "nodeType": "VariableDeclaration", "scope": 1823, "src": "16385:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1794, "name": "int", "nodeType": "ElementaryTypeName", "src": "16385:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1797, "mutability": "mutable", "name": "b", "nameLocation": "16396:1:0", "nodeType": "VariableDeclaration", "scope": 1823, "src": "16392:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1796, "name": "int", "nodeType": "ElementaryTypeName", "src": "16392:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" } ], "src": "16384:14:0" }, "returnParameters": { "id": 1799, "nodeType": "ParameterList", "parameters": [], "src": "16408:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1848, "nodeType": "FunctionDefinition", "src": "16626:175:0", "nodes": [], "body": { "id": 1847, "nodeType": "Block", "src": "16686:115:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1834, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1832, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1825, "src": "16700:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1833, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1827, "src": "16704:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "16700:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1846, "nodeType": "IfStatement", "src": "16696:99:0", "trueBody": { "id": 1845, "nodeType": "Block", "src": "16707:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1836, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16743:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1837, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1829, "src": "16752:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1835, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "16726:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1838, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16726:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1839, "nodeType": "EmitStatement", "src": "16721:35:0" }, { "expression": { "arguments": [ { "id": 1841, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1825, "src": "16779:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1842, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1827, "src": "16782:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" } ], "id": 1840, "name": "assertLe", "nodeType": "Identifier", "overloadedDeclarations": [ 1768, 1793, 1823, 1848 ], "referencedDeclaration": 1823, "src": "16770:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$returns$__$", "typeString": "function (int256,int256)" } }, "id": 1843, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16770:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1844, "nodeType": "ExpressionStatement", "src": "16770:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLe", "nameLocation": "16635:8:0", "parameters": { "id": 1830, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1825, "mutability": "mutable", "name": "a", "nameLocation": "16648:1:0", "nodeType": "VariableDeclaration", "scope": 1848, "src": "16644:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1824, "name": "int", "nodeType": "ElementaryTypeName", "src": "16644:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1827, "mutability": "mutable", "name": "b", "nameLocation": "16655:1:0", "nodeType": "VariableDeclaration", "scope": 1848, "src": "16651:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1826, "name": "int", "nodeType": "ElementaryTypeName", "src": "16651:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1829, "mutability": "mutable", "name": "err", "nameLocation": "16672:3:0", "nodeType": "VariableDeclaration", "scope": 1848, "src": "16658:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1828, "name": "string", "nodeType": "ElementaryTypeName", "src": "16658:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "16643:33:0" }, "returnParameters": { "id": 1831, "nodeType": "ParameterList", "parameters": [], "src": "16686:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1882, "nodeType": "FunctionDefinition", "src": "16806:320:0", "nodes": [], "body": { "id": 1881, "nodeType": "Block", "src": "16869:257:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1859, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1857, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1850, "src": "16883:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1858, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1852, "src": "16887:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "16883:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1880, "nodeType": "IfStatement", "src": "16879:241:0", "trueBody": { "id": 1879, "nodeType": "Block", "src": "16890:230:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c3d2062206e6f7420736174697366696564205b646563696d616c20696e745d", "id": 1861, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16913:43:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_a855fbfffc345e8a0ab544e824618dabd995fdc5bda653c7d4869b57deb1d23a", "typeString": "literal_string \"Error: a <= b not satisfied [decimal int]\"" }, "value": "Error: a <= b not satisfied [decimal int]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_a855fbfffc345e8a0ab544e824618dabd995fdc5bda653c7d4869b57deb1d23a", "typeString": "literal_string \"Error: a <= b not satisfied [decimal int]\"" } ], "id": 1860, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "16909:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1862, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16909:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1863, "nodeType": "EmitStatement", "src": "16904:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1865, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "16998:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1866, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1850, "src": "17011:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1867, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1854, "src": "17014:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1864, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "16976:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1868, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "16976:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1869, "nodeType": "EmitStatement", "src": "16971:52:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1871, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17064:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1872, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1852, "src": "17077:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1873, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1854, "src": "17080:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1870, "name": "log_named_decimal_int", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 53, "src": "17042:21:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (string memory,int256,uint256)" } }, "id": 1874, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17042:47:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1875, "nodeType": "EmitStatement", "src": "17037:52:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1876, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "17103:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1877, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17103:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1878, "nodeType": "ExpressionStatement", "src": "17103:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLeDecimal", "nameLocation": "16815:15:0", "parameters": { "id": 1855, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1850, "mutability": "mutable", "name": "a", "nameLocation": "16835:1:0", "nodeType": "VariableDeclaration", "scope": 1882, "src": "16831:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1849, "name": "int", "nodeType": "ElementaryTypeName", "src": "16831:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1852, "mutability": "mutable", "name": "b", "nameLocation": "16842:1:0", "nodeType": "VariableDeclaration", "scope": 1882, "src": "16838:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1851, "name": "int", "nodeType": "ElementaryTypeName", "src": "16838:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1854, "mutability": "mutable", "name": "decimals", "nameLocation": "16850:8:0", "nodeType": "VariableDeclaration", "scope": 1882, "src": "16845:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1853, "name": "uint", "nodeType": "ElementaryTypeName", "src": "16845:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "16830:29:0" }, "returnParameters": { "id": 1856, "nodeType": "ParameterList", "parameters": [], "src": "16869:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1910, "nodeType": "FunctionDefinition", "src": "17131:214:0", "nodes": [], "body": { "id": 1909, "nodeType": "Block", "src": "17213:132:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_int256", "typeString": "int256" }, "id": 1895, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1893, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1884, "src": "17227:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1894, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1886, "src": "17231:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "src": "17227:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1908, "nodeType": "IfStatement", "src": "17223:116:0", "trueBody": { "id": 1907, "nodeType": "Block", "src": "17234:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1897, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17270:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1898, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1890, "src": "17279:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1896, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "17253:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1899, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17253:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1900, "nodeType": "EmitStatement", "src": "17248:35:0" }, { "expression": { "arguments": [ { "id": 1902, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1884, "src": "17313:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1903, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1886, "src": "17316:1:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, { "id": 1904, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1888, "src": "17319:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_int256", "typeString": "int256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1901, "name": "assertLeDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1882, 1910, 1944, 1972 ], "referencedDeclaration": 1882, "src": "17297:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_int256_$_t_int256_$_t_uint256_$returns$__$", "typeString": "function (int256,int256,uint256)" } }, "id": 1905, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17297:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1906, "nodeType": "ExpressionStatement", "src": "17297:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLeDecimal", "nameLocation": "17140:15:0", "parameters": { "id": 1891, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1884, "mutability": "mutable", "name": "a", "nameLocation": "17160:1:0", "nodeType": "VariableDeclaration", "scope": 1910, "src": "17156:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1883, "name": "int", "nodeType": "ElementaryTypeName", "src": "17156:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1886, "mutability": "mutable", "name": "b", "nameLocation": "17167:1:0", "nodeType": "VariableDeclaration", "scope": 1910, "src": "17163:5:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 1885, "name": "int", "nodeType": "ElementaryTypeName", "src": "17163:3:0", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 1888, "mutability": "mutable", "name": "decimals", "nameLocation": "17175:8:0", "nodeType": "VariableDeclaration", "scope": 1910, "src": "17170:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1887, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17170:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1890, "mutability": "mutable", "name": "err", "nameLocation": "17199:3:0", "nodeType": "VariableDeclaration", "scope": 1910, "src": "17185:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1889, "name": "string", "nodeType": "ElementaryTypeName", "src": "17185:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "17155:48:0" }, "returnParameters": { "id": 1892, "nodeType": "ParameterList", "parameters": [], "src": "17213:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1944, "nodeType": "FunctionDefinition", "src": "17350:325:0", "nodes": [], "body": { "id": 1943, "nodeType": "Block", "src": "17415:260:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1921, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1919, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1912, "src": "17429:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1920, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1914, "src": "17433:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "17429:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1942, "nodeType": "IfStatement", "src": "17425:244:0", "trueBody": { "id": 1941, "nodeType": "Block", "src": "17436:233:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203c3d2062206e6f7420736174697366696564205b646563696d616c2075696e745d", "id": 1923, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17459:44:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_32bce37771ce1d01bc601c73b51f2296c0d8e2a50c2d19a6ac89c6b917715c51", "typeString": "literal_string \"Error: a <= b not satisfied [decimal uint]\"" }, "value": "Error: a <= b not satisfied [decimal uint]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_32bce37771ce1d01bc601c73b51f2296c0d8e2a50c2d19a6ac89c6b917715c51", "typeString": "literal_string \"Error: a <= b not satisfied [decimal uint]\"" } ], "id": 1922, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "17455:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1924, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17455:49:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1925, "nodeType": "EmitStatement", "src": "17450:54:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652061", "id": 1927, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17546:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, "value": " Value a" }, { "id": 1928, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1912, "src": "17559:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1929, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1916, "src": "17562:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c592b529b874569f165479a5a4380dedf000796f11e04035f76bfa7310b31d26", "typeString": "literal_string \" Value a\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1926, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "17523:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1930, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17523:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1931, "nodeType": "EmitStatement", "src": "17518:53:0" }, { "eventCall": { "arguments": [ { "hexValue": "202056616c75652062", "id": 1933, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17613:11:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, "value": " Value b" }, { "id": 1934, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1914, "src": "17626:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1935, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1916, "src": "17629:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e4b1d025132960c3fb1a582cf2366864dc416744d1b9770aa69fe3749623ebc3", "typeString": "literal_string \" Value b\"" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1932, "name": "log_named_decimal_uint", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 61, "src": "17590:22:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (string memory,uint256,uint256)" } }, "id": 1936, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17590:48:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1937, "nodeType": "EmitStatement", "src": "17585:53:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 1938, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "17652:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 1939, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17652:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1940, "nodeType": "ExpressionStatement", "src": "17652:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLeDecimal", "nameLocation": "17359:15:0", "parameters": { "id": 1917, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1912, "mutability": "mutable", "name": "a", "nameLocation": "17380:1:0", "nodeType": "VariableDeclaration", "scope": 1944, "src": "17375:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1911, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17375:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1914, "mutability": "mutable", "name": "b", "nameLocation": "17388:1:0", "nodeType": "VariableDeclaration", "scope": 1944, "src": "17383:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1913, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17383:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1916, "mutability": "mutable", "name": "decimals", "nameLocation": "17396:8:0", "nodeType": "VariableDeclaration", "scope": 1944, "src": "17391:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1915, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17391:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "17374:31:0" }, "returnParameters": { "id": 1918, "nodeType": "ParameterList", "parameters": [], "src": "17415:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 1972, "nodeType": "FunctionDefinition", "src": "17680:216:0", "nodes": [], "body": { "id": 1971, "nodeType": "Block", "src": "17764:132:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1957, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1955, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1946, "src": "17778:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 1956, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1948, "src": "17782:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "17778:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1970, "nodeType": "IfStatement", "src": "17774:116:0", "trueBody": { "id": 1969, "nodeType": "Block", "src": "17785:105:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 1959, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "17821:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 1960, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1952, "src": "17830:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1958, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "17804:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1961, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17804:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1962, "nodeType": "EmitStatement", "src": "17799:35:0" }, { "expression": { "arguments": [ { "id": 1964, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1946, "src": "17864:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1965, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1948, "src": "17867:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 1966, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1950, "src": "17870:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1963, "name": "assertLeDecimal", "nodeType": "Identifier", "overloadedDeclarations": [ 1882, 1910, 1944, 1972 ], "referencedDeclaration": 1944, "src": "17848:15:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256,uint256)" } }, "id": 1967, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17848:31:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1968, "nodeType": "ExpressionStatement", "src": "17848:31:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertLeDecimal", "nameLocation": "17689:15:0", "parameters": { "id": 1953, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1946, "mutability": "mutable", "name": "a", "nameLocation": "17710:1:0", "nodeType": "VariableDeclaration", "scope": 1972, "src": "17705:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1945, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17705:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1948, "mutability": "mutable", "name": "b", "nameLocation": "17718:1:0", "nodeType": "VariableDeclaration", "scope": 1972, "src": "17713:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1947, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17713:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1950, "mutability": "mutable", "name": "decimals", "nameLocation": "17726:8:0", "nodeType": "VariableDeclaration", "scope": 1972, "src": "17721:13:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1949, "name": "uint", "nodeType": "ElementaryTypeName", "src": "17721:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1952, "mutability": "mutable", "name": "err", "nameLocation": "17750:3:0", "nodeType": "VariableDeclaration", "scope": 1972, "src": "17736:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1951, "name": "string", "nodeType": "ElementaryTypeName", "src": "17736:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "17704:50:0" }, "returnParameters": { "id": 1954, "nodeType": "ParameterList", "parameters": [], "src": "17764:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2012, "nodeType": "FunctionDefinition", "src": "17902:344:0", "nodes": [], "body": { "id": 2011, "nodeType": "Block", "src": "17963:283:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 1991, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [ { "arguments": [ { "id": 1982, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1974, "src": "18004:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 1980, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "17987:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 1981, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "17991:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "17987:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 1983, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17987:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 1979, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "17977:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 1984, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "17977:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "arguments": [ { "arguments": [ { "id": 1988, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1976, "src": "18038:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 1986, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18021:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 1987, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18025:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18021:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 1989, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18021:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 1985, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18011:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 1990, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18011:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "17977:64:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2010, "nodeType": "IfStatement", "src": "17973:267:0", "trueBody": { "id": 2009, "nodeType": "Block", "src": "18043:197:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b737472696e675d", "id": 1993, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18066:38:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_58e3ca0e65e73c038df3db6a7cab1bf7de300d13038b802ce0f4435889c48e5e", "typeString": "literal_string \"Error: a == b not satisfied [string]\"" }, "value": "Error: a == b not satisfied [string]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_58e3ca0e65e73c038df3db6a7cab1bf7de300d13038b802ce0f4435889c48e5e", "typeString": "literal_string \"Error: a == b not satisfied [string]\"" } ], "id": 1992, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "18062:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 1994, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18062:43:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1995, "nodeType": "EmitStatement", "src": "18057:48:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 1997, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18141:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 1998, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1974, "src": "18155:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 1996, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "18124:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 1999, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18124:33:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2000, "nodeType": "EmitStatement", "src": "18119:38:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 2002, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18193:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 2003, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1976, "src": "18207:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2001, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "18176:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2004, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18176:33:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2005, "nodeType": "EmitStatement", "src": "18171:38:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 2006, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "18223:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2007, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18223:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2008, "nodeType": "ExpressionStatement", "src": "18223:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "17911:8:0", "parameters": { "id": 1977, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1974, "mutability": "mutable", "name": "a", "nameLocation": "17934:1:0", "nodeType": "VariableDeclaration", "scope": 2012, "src": "17920:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1973, "name": "string", "nodeType": "ElementaryTypeName", "src": "17920:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1976, "mutability": "mutable", "name": "b", "nameLocation": "17951:1:0", "nodeType": "VariableDeclaration", "scope": 2012, "src": "17937:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1975, "name": "string", "nodeType": "ElementaryTypeName", "src": "17937:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "17919:34:0" }, "returnParameters": { "id": 1978, "nodeType": "ParameterList", "parameters": [], "src": "17963:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2047, "nodeType": "FunctionDefinition", "src": "18251:254:0", "nodes": [], "body": { "id": 2046, "nodeType": "Block", "src": "18331:174:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 2033, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [ { "arguments": [ { "id": 2024, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2014, "src": "18372:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2022, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18355:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2023, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18359:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18355:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2025, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18355:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2021, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18345:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2026, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18345:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "arguments": [ { "arguments": [ { "id": 2030, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2016, "src": "18406:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2028, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18389:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2029, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18393:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18389:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2031, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18389:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2027, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18379:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2032, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18379:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "18345:64:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2045, "nodeType": "IfStatement", "src": "18341:158:0", "trueBody": { "id": 2044, "nodeType": "Block", "src": "18411:88:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 2035, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18447:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 2036, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2018, "src": "18456:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2034, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "18430:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2037, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18430:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2038, "nodeType": "EmitStatement", "src": "18425:35:0" }, { "expression": { "arguments": [ { "id": 2040, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2014, "src": "18483:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 2041, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2016, "src": "18486:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2039, "name": "assertEq", "nodeType": "Identifier", "overloadedDeclarations": [ 320, 345, 375, 400, 459, 484, 514, 539, 2012, 2047 ], "referencedDeclaration": 2012, "src": "18474:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2042, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18474:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2043, "nodeType": "ExpressionStatement", "src": "18474:14:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq", "nameLocation": "18260:8:0", "parameters": { "id": 2019, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2014, "mutability": "mutable", "name": "a", "nameLocation": "18283:1:0", "nodeType": "VariableDeclaration", "scope": 2047, "src": "18269:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2013, "name": "string", "nodeType": "ElementaryTypeName", "src": "18269:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 2016, "mutability": "mutable", "name": "b", "nameLocation": "18300:1:0", "nodeType": "VariableDeclaration", "scope": 2047, "src": "18286:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2015, "name": "string", "nodeType": "ElementaryTypeName", "src": "18286:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 2018, "mutability": "mutable", "name": "err", "nameLocation": "18317:3:0", "nodeType": "VariableDeclaration", "scope": 2047, "src": "18303:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2017, "name": "string", "nodeType": "ElementaryTypeName", "src": "18303:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "18268:53:0" }, "returnParameters": { "id": 2020, "nodeType": "ParameterList", "parameters": [], "src": "18331:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2087, "nodeType": "FunctionDefinition", "src": "18511:347:0", "nodes": [], "body": { "id": 2086, "nodeType": "Block", "src": "18575:283:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 2066, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [ { "arguments": [ { "id": 2057, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2049, "src": "18616:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2055, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18599:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2056, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18603:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18599:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2058, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18599:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2054, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18589:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2059, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18589:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "arguments": [ { "id": 2063, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2051, "src": "18650:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2061, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18633:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2062, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18637:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18633:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2064, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18633:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2060, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18623:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2065, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18623:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "18589:64:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2085, "nodeType": "IfStatement", "src": "18585:267:0", "trueBody": { "id": 2084, "nodeType": "Block", "src": "18655:197:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b737472696e675d", "id": 2068, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18678:38:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b4e56cf4a8fa3c214a65222c2e20d4c9025a6edce861c3fcd0ec05159f954d37", "typeString": "literal_string \"Error: a != b not satisfied [string]\"" }, "value": "Error: a != b not satisfied [string]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_b4e56cf4a8fa3c214a65222c2e20d4c9025a6edce861c3fcd0ec05159f954d37", "typeString": "literal_string \"Error: a != b not satisfied [string]\"" } ], "id": 2067, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "18674:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 2069, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18674:43:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2070, "nodeType": "EmitStatement", "src": "18669:48:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 2072, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18753:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 2073, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2049, "src": "18767:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2071, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "18736:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2074, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18736:33:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2075, "nodeType": "EmitStatement", "src": "18731:38:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 2077, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "18805:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 2078, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2051, "src": "18819:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2076, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "18788:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2079, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18788:33:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2080, "nodeType": "EmitStatement", "src": "18783:38:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 2081, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "18835:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2082, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18835:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2083, "nodeType": "ExpressionStatement", "src": "18835:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "18520:11:0", "parameters": { "id": 2052, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2049, "mutability": "mutable", "name": "a", "nameLocation": "18546:1:0", "nodeType": "VariableDeclaration", "scope": 2087, "src": "18532:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2048, "name": "string", "nodeType": "ElementaryTypeName", "src": "18532:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 2051, "mutability": "mutable", "name": "b", "nameLocation": "18563:1:0", "nodeType": "VariableDeclaration", "scope": 2087, "src": "18549:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2050, "name": "string", "nodeType": "ElementaryTypeName", "src": "18549:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "18531:34:0" }, "returnParameters": { "id": 2053, "nodeType": "ParameterList", "parameters": [], "src": "18575:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2122, "nodeType": "FunctionDefinition", "src": "18863:260:0", "nodes": [], "body": { "id": 2121, "nodeType": "Block", "src": "18946:177:0", "nodes": [], "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 2108, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [ { "arguments": [ { "id": 2099, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "18987:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2097, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "18970:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2098, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "18974:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "18970:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2100, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18970:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2096, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18960:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2101, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18960:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "arguments": [ { "id": 2105, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2091, "src": "19021:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "expression": { "id": 2103, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -1, "src": "19004:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2104, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberLocation": "19008:12:0", "memberName": "encodePacked", "nodeType": "MemberAccess", "src": "19004:16:0", "typeDescriptions": { "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", "typeString": "function () pure returns (bytes memory)" } }, "id": 2106, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19004:19:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2102, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "18994:9:0", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2107, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "18994:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "18960:64:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2120, "nodeType": "IfStatement", "src": "18956:161:0", "trueBody": { "id": 2119, "nodeType": "Block", "src": "19026:91:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 2110, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "19062:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 2111, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2093, "src": "19071:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2109, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "19045:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2112, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19045:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2113, "nodeType": "EmitStatement", "src": "19040:35:0" }, { "expression": { "arguments": [ { "id": 2115, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "19101:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 2116, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2091, "src": "19104:1:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2114, "name": "assertNotEq", "nodeType": "Identifier", "overloadedDeclarations": [ 693, 718, 748, 773, 832, 857, 887, 912, 2087, 2122 ], "referencedDeclaration": 2087, "src": "19089:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2117, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19089:17:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2118, "nodeType": "ExpressionStatement", "src": "19089:17:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq", "nameLocation": "18872:11:0", "parameters": { "id": 2094, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2089, "mutability": "mutable", "name": "a", "nameLocation": "18898:1:0", "nodeType": "VariableDeclaration", "scope": 2122, "src": "18884:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2088, "name": "string", "nodeType": "ElementaryTypeName", "src": "18884:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 2091, "mutability": "mutable", "name": "b", "nameLocation": "18915:1:0", "nodeType": "VariableDeclaration", "scope": 2122, "src": "18901:15:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2090, "name": "string", "nodeType": "ElementaryTypeName", "src": "18901:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 2093, "mutability": "mutable", "name": "err", "nameLocation": "18932:3:0", "nodeType": "VariableDeclaration", "scope": 2122, "src": "18918:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2092, "name": "string", "nodeType": "ElementaryTypeName", "src": "18918:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "18883:53:0" }, "returnParameters": { "id": 2095, "nodeType": "ParameterList", "parameters": [], "src": "18946:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2174, "nodeType": "FunctionDefinition", "src": "19129:345:0", "nodes": [], "body": { "id": 2173, "nodeType": "Block", "src": "19211:263:0", "nodes": [], "statements": [ { "expression": { "id": 2133, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 2131, "name": "ok", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "19221:2:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "74727565", "id": 2132, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "19226:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "19221:9:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2134, "nodeType": "ExpressionStatement", "src": "19221:9:0" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2139, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 2135, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2124, "src": "19244:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "id": 2136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "19246:6:0", "memberName": "length", "nodeType": "MemberAccess", "src": "19244:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 2137, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2126, "src": "19256:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "id": 2138, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "19258:6:0", "memberName": "length", "nodeType": "MemberAccess", "src": "19256:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "19244:20:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 2171, "nodeType": "Block", "src": "19433:35:0", "statements": [ { "expression": { "id": 2169, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 2167, "name": "ok", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "19447:2:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "66616c7365", "id": 2168, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "19452:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "19447:10:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2170, "nodeType": "ExpressionStatement", "src": "19447:10:0" } ] }, "id": 2172, "nodeType": "IfStatement", "src": "19240:228:0", "trueBody": { "id": 2166, "nodeType": "Block", "src": "19266:161:0", "statements": [ { "body": { "id": 2164, "nodeType": "Block", "src": "19316:101:0", "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_bytes1", "typeString": "bytes1" }, "id": 2157, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 2151, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2124, "src": "19338:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "id": 2153, "indexExpression": { "id": 2152, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2141, "src": "19340:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "19338:4:0", "typeDescriptions": { "typeIdentifier": "t_bytes1", "typeString": "bytes1" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "baseExpression": { "id": 2154, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2126, "src": "19346:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "id": 2156, "indexExpression": { "id": 2155, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2141, "src": "19348:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "19346:4:0", "typeDescriptions": { "typeIdentifier": "t_bytes1", "typeString": "bytes1" } }, "src": "19338:12:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2163, "nodeType": "IfStatement", "src": "19334:69:0", "trueBody": { "id": 2162, "nodeType": "Block", "src": "19352:51:0", "statements": [ { "expression": { "id": 2160, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 2158, "name": "ok", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "19374:2:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "66616c7365", "id": 2159, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "19379:5:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "19374:10:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2161, "nodeType": "ExpressionStatement", "src": "19374:10:0" } ] } } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2147, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 2144, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2141, "src": "19297:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "id": 2145, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2124, "src": "19301:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "id": 2146, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "19303:6:0", "memberName": "length", "nodeType": "MemberAccess", "src": "19301:8:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "19297:12:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2165, "initializationExpression": { "assignments": [ 2141 ], "declarations": [ { "constant": false, "id": 2141, "mutability": "mutable", "name": "i", "nameLocation": "19290:1:0", "nodeType": "VariableDeclaration", "scope": 2165, "src": "19285:6:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2140, "name": "uint", "nodeType": "ElementaryTypeName", "src": "19285:4:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 2143, "initialValue": { "hexValue": "30", "id": 2142, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "19294:1:0", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "19285:10:0" }, "isSimpleCounterLoop": true, "loopExpression": { "expression": { "id": 2149, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "19311:3:0", "subExpression": { "id": 2148, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2141, "src": "19311:1:0", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2150, "nodeType": "ExpressionStatement", "src": "19311:3:0" }, "nodeType": "ForStatement", "src": "19280:137:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "checkEq0", "nameLocation": "19138:8:0", "parameters": { "id": 2127, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2124, "mutability": "mutable", "name": "a", "nameLocation": "19160:1:0", "nodeType": "VariableDeclaration", "scope": 2174, "src": "19147:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2123, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19147:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2126, "mutability": "mutable", "name": "b", "nameLocation": "19176:1:0", "nodeType": "VariableDeclaration", "scope": 2174, "src": "19163:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2125, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19163:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "19146:32:0" }, "returnParameters": { "id": 2130, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2129, "mutability": "mutable", "name": "ok", "nameLocation": "19207:2:0", "nodeType": "VariableDeclaration", "scope": 2174, "src": "19202:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2128, "name": "bool", "nodeType": "ElementaryTypeName", "src": "19202:4:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "19201:9:0" }, "scope": 2291, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { "id": 2206, "nodeType": "FunctionDefinition", "src": "19479:291:0", "nodes": [], "body": { "id": 2205, "nodeType": "Block", "src": "19539:231:0", "nodes": [], "statements": [ { "condition": { "id": 2185, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "19553:15:0", "subExpression": { "arguments": [ { "id": 2182, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2176, "src": "19563:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2183, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2178, "src": "19566:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2181, "name": "checkEq0", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2174, "src": "19554:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$", "typeString": "function (bytes memory,bytes memory) pure returns (bool)" } }, "id": 2184, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19554:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2204, "nodeType": "IfStatement", "src": "19549:215:0", "trueBody": { "id": 2203, "nodeType": "Block", "src": "19570:194:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a2061203d3d2062206e6f7420736174697366696564205b62797465735d", "id": 2187, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "19593:37:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_9bb7b728691fe2872efdd27bd07c4a95b3586c3b7ec3afa731a7c21a76e39cfc", "typeString": "literal_string \"Error: a == b not satisfied [bytes]\"" }, "value": "Error: a == b not satisfied [bytes]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_9bb7b728691fe2872efdd27bd07c4a95b3586c3b7ec3afa731a7c21a76e39cfc", "typeString": "literal_string \"Error: a == b not satisfied [bytes]\"" } ], "id": 2186, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "19589:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 2188, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19589:42:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2189, "nodeType": "EmitStatement", "src": "19584:47:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 2191, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "19666:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 2192, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2176, "src": "19680:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2190, "name": "log_named_bytes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 79, "src": "19650:15:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (string memory,bytes memory)" } }, "id": 2193, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19650:32:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2194, "nodeType": "EmitStatement", "src": "19645:37:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 2196, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "19717:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 2197, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2178, "src": "19731:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2195, "name": "log_named_bytes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 79, "src": "19701:15:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (string memory,bytes memory)" } }, "id": 2198, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19701:32:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2199, "nodeType": "EmitStatement", "src": "19696:37:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 2200, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "19747:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2201, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19747:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2202, "nodeType": "ExpressionStatement", "src": "19747:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq0", "nameLocation": "19488:9:0", "parameters": { "id": 2179, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2176, "mutability": "mutable", "name": "a", "nameLocation": "19511:1:0", "nodeType": "VariableDeclaration", "scope": 2206, "src": "19498:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2175, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19498:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2178, "mutability": "mutable", "name": "b", "nameLocation": "19527:1:0", "nodeType": "VariableDeclaration", "scope": 2206, "src": "19514:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2177, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19514:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "19497:32:0" }, "returnParameters": { "id": 2180, "nodeType": "ParameterList", "parameters": [], "src": "19539:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2233, "nodeType": "FunctionDefinition", "src": "19775:205:0", "nodes": [], "body": { "id": 2232, "nodeType": "Block", "src": "19854:126:0", "nodes": [], "statements": [ { "condition": { "id": 2219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "19868:15:0", "subExpression": { "arguments": [ { "id": 2216, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2208, "src": "19878:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2217, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2210, "src": "19881:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2215, "name": "checkEq0", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2174, "src": "19869:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$", "typeString": "function (bytes memory,bytes memory) pure returns (bool)" } }, "id": 2218, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19869:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2231, "nodeType": "IfStatement", "src": "19864:110:0", "trueBody": { "id": 2230, "nodeType": "Block", "src": "19885:89:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 2221, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "19921:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 2222, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2212, "src": "19930:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2220, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "19904:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2223, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19904:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2224, "nodeType": "EmitStatement", "src": "19899:35:0" }, { "expression": { "arguments": [ { "id": 2226, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2208, "src": "19958:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2227, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2210, "src": "19961:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2225, "name": "assertEq0", "nodeType": "Identifier", "overloadedDeclarations": [ 2206, 2233 ], "referencedDeclaration": 2206, "src": "19948:9:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (bytes memory,bytes memory)" } }, "id": 2228, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "19948:15:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2229, "nodeType": "ExpressionStatement", "src": "19948:15:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertEq0", "nameLocation": "19784:9:0", "parameters": { "id": 2213, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2208, "mutability": "mutable", "name": "a", "nameLocation": "19807:1:0", "nodeType": "VariableDeclaration", "scope": 2233, "src": "19794:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2207, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19794:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2210, "mutability": "mutable", "name": "b", "nameLocation": "19823:1:0", "nodeType": "VariableDeclaration", "scope": 2233, "src": "19810:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2209, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "19810:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2212, "mutability": "mutable", "name": "err", "nameLocation": "19840:3:0", "nodeType": "VariableDeclaration", "scope": 2233, "src": "19826:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2211, "name": "string", "nodeType": "ElementaryTypeName", "src": "19826:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "19793:51:0" }, "returnParameters": { "id": 2214, "nodeType": "ParameterList", "parameters": [], "src": "19854:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2264, "nodeType": "FunctionDefinition", "src": "19986:293:0", "nodes": [], "body": { "id": 2263, "nodeType": "Block", "src": "20049:230:0", "nodes": [], "statements": [ { "condition": { "arguments": [ { "id": 2241, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2235, "src": "20072:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2242, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2237, "src": "20075:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2240, "name": "checkEq0", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2174, "src": "20063:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$", "typeString": "function (bytes memory,bytes memory) pure returns (bool)" } }, "id": 2243, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20063:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2262, "nodeType": "IfStatement", "src": "20059:214:0", "trueBody": { "id": 2261, "nodeType": "Block", "src": "20079:194:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f723a206120213d2062206e6f7420736174697366696564205b62797465735d", "id": 2245, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "20102:37:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_91ce3ba02234d036a8a94424c4ec94c882f340b202bcb6447be57ed8132caac6", "typeString": "literal_string \"Error: a != b not satisfied [bytes]\"" }, "value": "Error: a != b not satisfied [bytes]" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_91ce3ba02234d036a8a94424c4ec94c882f340b202bcb6447be57ed8132caac6", "typeString": "literal_string \"Error: a != b not satisfied [bytes]\"" } ], "id": 2244, "name": "log", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5, "src": "20098:3:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory)" } }, "id": 2246, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20098:42:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2247, "nodeType": "EmitStatement", "src": "20093:47:0" }, { "eventCall": { "arguments": [ { "hexValue": "2020202020204c656674", "id": 2249, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "20175:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, "value": " Left" }, { "id": 2250, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2235, "src": "20189:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_bbf7c57905778f125dacfa4fd24c0b99a73d897099071adb94dd57d06b52ce31", "typeString": "literal_string \" Left\"" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2248, "name": "log_named_bytes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 79, "src": "20159:15:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (string memory,bytes memory)" } }, "id": 2251, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20159:32:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2252, "nodeType": "EmitStatement", "src": "20154:37:0" }, { "eventCall": { "arguments": [ { "hexValue": "20202020205269676874", "id": 2254, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "20226:12:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, "value": " Right" }, { "id": 2255, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2237, "src": "20240:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_f594094f8f37a3e37fa75233058696f0caafa00827fc96f5c5afe6f0e2570053", "typeString": "literal_string \" Right\"" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2253, "name": "log_named_bytes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 79, "src": "20210:15:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (string memory,bytes memory)" } }, "id": 2256, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20210:32:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2257, "nodeType": "EmitStatement", "src": "20205:37:0" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 2258, "name": "fail", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "20256:4:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2259, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20256:6:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2260, "nodeType": "ExpressionStatement", "src": "20256:6:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq0", "nameLocation": "19995:12:0", "parameters": { "id": 2238, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2235, "mutability": "mutable", "name": "a", "nameLocation": "20021:1:0", "nodeType": "VariableDeclaration", "scope": 2264, "src": "20008:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2234, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "20008:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2237, "mutability": "mutable", "name": "b", "nameLocation": "20037:1:0", "nodeType": "VariableDeclaration", "scope": 2264, "src": "20024:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2236, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "20024:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "20007:32:0" }, "returnParameters": { "id": 2239, "nodeType": "ParameterList", "parameters": [], "src": "20049:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "id": 2290, "nodeType": "FunctionDefinition", "src": "20284:210:0", "nodes": [], "body": { "id": 2289, "nodeType": "Block", "src": "20366:128:0", "nodes": [], "statements": [ { "condition": { "arguments": [ { "id": 2274, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2266, "src": "20389:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2275, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2268, "src": "20392:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2273, "name": "checkEq0", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2174, "src": "20380:8:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$", "typeString": "function (bytes memory,bytes memory) pure returns (bool)" } }, "id": 2276, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20380:14:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2288, "nodeType": "IfStatement", "src": "20376:112:0", "trueBody": { "id": 2287, "nodeType": "Block", "src": "20396:92:0", "statements": [ { "eventCall": { "arguments": [ { "hexValue": "4572726f72", "id": 2278, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "20432:7:0", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, "value": "Error" }, { "id": 2279, "name": "err", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2270, "src": "20441:3:0", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e342daa49723ff3485f4ff5f755a17b8bc9c3c33bbd312ceee37c94eebfe45c1", "typeString": "literal_string \"Error\"" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 2277, "name": "log_named_string", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 85, "src": "20415:16:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory,string memory)" } }, "id": 2280, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20415:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2281, "nodeType": "EmitStatement", "src": "20410:35:0" }, { "expression": { "arguments": [ { "id": 2283, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2266, "src": "20472:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "id": 2284, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2268, "src": "20475:1:0", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2282, "name": "assertNotEq0", "nodeType": "Identifier", "overloadedDeclarations": [ 2264, 2290 ], "referencedDeclaration": 2264, "src": "20459:12:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (bytes memory,bytes memory)" } }, "id": 2285, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "20459:18:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2286, "nodeType": "ExpressionStatement", "src": "20459:18:0" } ] } } ] }, "implemented": true, "kind": "function", "modifiers": [], "name": "assertNotEq0", "nameLocation": "20293:12:0", "parameters": { "id": 2271, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2266, "mutability": "mutable", "name": "a", "nameLocation": "20319:1:0", "nodeType": "VariableDeclaration", "scope": 2290, "src": "20306:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2265, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "20306:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2268, "mutability": "mutable", "name": "b", "nameLocation": "20335:1:0", "nodeType": "VariableDeclaration", "scope": 2290, "src": "20322:14:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2267, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "20322:5:0", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2270, "mutability": "mutable", "name": "err", "nameLocation": "20352:3:0", "nodeType": "VariableDeclaration", "scope": 2290, "src": "20338:17:0", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 2269, "name": "string", "nodeType": "ElementaryTypeName", "src": "20338:6:0", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "20305:51:0" }, "returnParameters": { "id": 2272, "nodeType": "ParameterList", "parameters": [], "src": "20366:0:0" }, "scope": 2291, "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" } ], "abstract": false, "baseContracts": [], "canonicalName": "DSTest", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ 2291 ], "name": "DSTest", "nameLocation": "724:6:0", "scope": 2292, "usedErrors": [], "usedEvents": [ 5, 9, 13, 17, 21, 25, 29, 33, 39, 45, 53, 61, 67, 73, 79, 85 ] } ], "license": "GPL-3.0-or-later" }, "id": 0 }