@levelk/token-price-oracles
Version:
tools for creating token price data feeds and oracles that integrate with on-chain dex's
1,225 lines (1,224 loc) • 63.9 kB
JSON
{
"contractName": "Initializer",
"abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058207436f4b64c05e0f271670645988db1125f2c004451e32edd4563b924e656fe990029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a723058207436f4b64c05e0f271670645988db1125f2c004451e32edd4563b924e656fe990029",
"sourceMap": "131:1324:12:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131:1324:12;;;;;;;",
"deployedSourceMap": "131:1324:12:-;;;;;",
"source": "pragma solidity >=0.4.24 <0.6.0;\n\n// Renaming zeppelin's initializable since it conflicts with aragon's initializable :( :( :( :(\n\ncontract Initializer {\n\n /**\n * @dev Indicates that the contract has been initialized.\n */\n bool private initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private initializing;\n\n /**\n * @dev Modifier to use in the initializer function of a contract.\n */\n modifier initializer() {\n require(initializing || isConstructor() || !initialized, \"Contract instance has already been initialized\");\n\n bool isTopLevelCall = !initializing;\n if (isTopLevelCall) {\n initializing = true;\n initialized = true;\n }\n\n _;\n\n if (isTopLevelCall) {\n initializing = false;\n }\n }\n\n /// @dev Returns true if and only if the function is running in the constructor\n function isConstructor() private view returns (bool) {\n // extcodesize checks the size of the code stored in an address, and\n // address returns the current address. Since the code is still not\n // deployed when running a constructor, any checks on its code size will\n // yield zero, making it an effective way to detect if a contract is\n // under construction or not.\n uint256 cs;\n assembly { cs := extcodesize(address) }\n return cs == 0;\n }\n\n // Reserved storage space to allow for layout changes in the future.\n uint256[50] private ______gap;\n}\n",
"sourcePath": "@levelk/tidbit/contracts/Initializer.sol",
"ast": {
"absolutePath": "@levelk/tidbit/contracts/Initializer.sol",
"exportedSymbols": {
"Initializer": [
1762
]
},
"id": 1763,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1701,
"literals": [
"solidity",
">=",
"0.4",
".24",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:12"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1762,
"linearizedBaseContracts": [
1762
],
"name": "Initializer",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1703,
"name": "initialized",
"nodeType": "VariableDeclaration",
"scope": 1762,
"src": "229:24:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1702,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "229:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 1705,
"name": "initializing",
"nodeType": "VariableDeclaration",
"scope": 1762,
"src": "348:25:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1704,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "348:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 1742,
"nodeType": "Block",
"src": "482:313:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1714,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1711,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1708,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "496:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1709,
"name": "isConstructor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1757,
"src": "512:13:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 1710,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "512:15:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:31:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 1713,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "531:12:12",
"subExpression": {
"argumentTypes": null,
"id": 1712,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1703,
"src": "532:11:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:47:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564",
"id": 1715,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "545:48:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9fbba6c4dcac9134893b633b9564f36435b3f927c1d5fa152c5c14b20cecb1a4",
"typeString": "literal_string \"Contract instance has already been initialized\""
},
"value": "Contract instance has already been initialized"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9fbba6c4dcac9134893b633b9564f36435b3f927c1d5fa152c5c14b20cecb1a4",
"typeString": "literal_string \"Contract instance has already been initialized\""
}
],
"id": 1707,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1780,
1781
],
"referencedDeclaration": 1781,
"src": "488:7:12",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1716,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "488:106:12",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1717,
"nodeType": "ExpressionStatement",
"src": "488:106:12"
},
{
"assignments": [
1719
],
"declarations": [
{
"constant": false,
"id": 1719,
"name": "isTopLevelCall",
"nodeType": "VariableDeclaration",
"scope": 1743,
"src": "601:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1718,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "601:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1722,
"initialValue": {
"argumentTypes": null,
"id": 1721,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "623:13:12",
"subExpression": {
"argumentTypes": null,
"id": 1720,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "624:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "601:35:12"
},
{
"condition": {
"argumentTypes": null,
"id": 1723,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1719,
"src": "646:14:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1733,
"nodeType": "IfStatement",
"src": "642:80:12",
"trueBody": {
"id": 1732,
"nodeType": "Block",
"src": "662:60:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1726,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1724,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "670:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1725,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "685:4:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "670:19:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1727,
"nodeType": "ExpressionStatement",
"src": "670:19:12"
},
{
"expression": {
"argumentTypes": null,
"id": 1730,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1728,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1703,
"src": "697:11:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1729,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "711:4:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "697:18:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1731,
"nodeType": "ExpressionStatement",
"src": "697:18:12"
}
]
}
},
{
"id": 1734,
"nodeType": "PlaceholderStatement",
"src": "728:1:12"
},
{
"condition": {
"argumentTypes": null,
"id": 1735,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1719,
"src": "740:14:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1741,
"nodeType": "IfStatement",
"src": "736:55:12",
"trueBody": {
"id": 1740,
"nodeType": "Block",
"src": "756:35:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1738,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1736,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "764:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 1737,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "779:5:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "764:20:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1739,
"nodeType": "ExpressionStatement",
"src": "764:20:12"
}
]
}
}
]
},
"documentation": "@dev Modifier to use in the initializer function of a contract.",
"id": 1743,
"name": "initializer",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 1706,
"nodeType": "ParameterList",
"parameters": [],
"src": "479:2:12"
},
"src": "459:336:12",
"visibility": "internal"
},
{
"body": {
"id": 1756,
"nodeType": "Block",
"src": "934:414:12",
"statements": [
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 1749,
"name": "cs",
"nodeType": "VariableDeclaration",
"scope": 1757,
"src": "1269:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1748,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1269:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1750,
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "1269:10:12"
},
{
"externalReferences": [
{
"cs": {
"declaration": 1749,
"isOffset": false,
"isSlot": false,
"src": "1296:2:12",
"valueSize": 1
}
}
],
"id": 1751,
"nodeType": "InlineAssembly",
"operations": "{\n cs := extcodesize(address())\n}",
"src": "1285:50:12"
},
{
"expression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1754,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1752,
"name": "cs",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1749,
"src": "1336:2:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1753,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1342:1:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1336:7:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 1747,
"id": 1755,
"nodeType": "Return",
"src": "1329:14:12"
}
]
},
"documentation": "@dev Returns true if and only if the function is running in the constructor",
"id": 1757,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isConstructor",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1744,
"nodeType": "ParameterList",
"parameters": [],
"src": "903:2:12"
},
"payable": false,
"returnParameters": {
"id": 1747,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1746,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1757,
"src": "928:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1745,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "928:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "927:6:12"
},
"scope": 1762,
"src": "881:467:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "private"
},
{
"constant": false,
"id": 1761,
"name": "______gap",
"nodeType": "VariableDeclaration",
"scope": 1762,
"src": "1423:29:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$50_storage",
"typeString": "uint256[50]"
},
"typeName": {
"baseType": {
"id": 1758,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1423:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1760,
"length": {
"argumentTypes": null,
"hexValue": "3530",
"id": 1759,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1431:2:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "50"
},
"nodeType": "ArrayTypeName",
"src": "1423:11:12",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$50_storage_ptr",
"typeString": "uint256[50]"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 1763,
"src": "131:1324:12"
}
],
"src": "0:1456:12"
},
"legacyAST": {
"absolutePath": "@levelk/tidbit/contracts/Initializer.sol",
"exportedSymbols": {
"Initializer": [
1762
]
},
"id": 1763,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1701,
"literals": [
"solidity",
">=",
"0.4",
".24",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:12"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1762,
"linearizedBaseContracts": [
1762
],
"name": "Initializer",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1703,
"name": "initialized",
"nodeType": "VariableDeclaration",
"scope": 1762,
"src": "229:24:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1702,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "229:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 1705,
"name": "initializing",
"nodeType": "VariableDeclaration",
"scope": 1762,
"src": "348:25:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1704,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "348:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 1742,
"nodeType": "Block",
"src": "482:313:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1714,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1711,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1708,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "496:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1709,
"name": "isConstructor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1757,
"src": "512:13:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 1710,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "512:15:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:31:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 1713,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "531:12:12",
"subExpression": {
"argumentTypes": null,
"id": 1712,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1703,
"src": "532:11:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:47:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564",
"id": 1715,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "545:48:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9fbba6c4dcac9134893b633b9564f36435b3f927c1d5fa152c5c14b20cecb1a4",
"typeString": "literal_string \"Contract instance has already been initialized\""
},
"value": "Contract instance has already been initialized"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9fbba6c4dcac9134893b633b9564f36435b3f927c1d5fa152c5c14b20cecb1a4",
"typeString": "literal_string \"Contract instance has already been initialized\""
}
],
"id": 1707,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1780,
1781
],
"referencedDeclaration": 1781,
"src": "488:7:12",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1716,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "488:106:12",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1717,
"nodeType": "ExpressionStatement",
"src": "488:106:12"
},
{
"assignments": [
1719
],
"declarations": [
{
"constant": false,
"id": 1719,
"name": "isTopLevelCall",
"nodeType": "VariableDeclaration",
"scope": 1743,
"src": "601:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1718,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "601:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1722,
"initialValue": {
"argumentTypes": null,
"id": 1721,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "623:13:12",
"subExpression": {
"argumentTypes": null,
"id": 1720,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "624:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "601:35:12"
},
{
"condition": {
"argumentTypes": null,
"id": 1723,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1719,
"src": "646:14:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1733,
"nodeType": "IfStatement",
"src": "642:80:12",
"trueBody": {
"id": 1732,
"nodeType": "Block",
"src": "662:60:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1726,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1724,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1705,
"src": "670:12:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1725,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "685:4:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "670:19:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1727,
"nodeType": "ExpressionStatement",
"src": "670:19:12"
},
{
"expression": {
"argumentTypes": null,
"id": 1730,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1728,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],