token-price-oracles
Version:
tools for creating token price data feeds and oracles that integrate with on-chain dex's
1,227 lines • 63.8 kB
JSON
{
"contractName": "Initializer",
"abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820015fb5ffaf33139143fcd7503f33c06d776ba30fca9ba357586c1f7690c163ca0029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a72305820015fb5ffaf33139143fcd7503f33c06d776ba30fca9ba357586c1f7690c163ca0029",
"sourceMap": "131:1324:9:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131:1324:9;;;;;;;",
"deployedSourceMap": "131:1324:9:-;;;;;",
"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": "tidbit/contracts/Initializer.sol",
"ast": {
"absolutePath": "tidbit/contracts/Initializer.sol",
"exportedSymbols": {
"Initializer": [
1489
]
},
"id": 1490,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1428,
"literals": [
"solidity",
">=",
"0.4",
".24",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:9"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1489,
"linearizedBaseContracts": [
1489
],
"name": "Initializer",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1430,
"name": "initialized",
"nodeType": "VariableDeclaration",
"scope": 1489,
"src": "229:24:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1429,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "229:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 1432,
"name": "initializing",
"nodeType": "VariableDeclaration",
"scope": 1489,
"src": "348:25:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1431,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "348:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 1469,
"nodeType": "Block",
"src": "482:313:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1441,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1438,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1435,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "496:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1436,
"name": "isConstructor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1484,
"src": "512:13:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 1437,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "512:15:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:31:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 1440,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "531:12:9",
"subExpression": {
"argumentTypes": null,
"id": 1439,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1430,
"src": "532:11:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:47:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564",
"id": 1442,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "545:48:9",
"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": 1434,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1507,
1508
],
"referencedDeclaration": 1508,
"src": "488:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1443,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "488:106:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1444,
"nodeType": "ExpressionStatement",
"src": "488:106:9"
},
{
"assignments": [
1446
],
"declarations": [
{
"constant": false,
"id": 1446,
"name": "isTopLevelCall",
"nodeType": "VariableDeclaration",
"scope": 1470,
"src": "601:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1445,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "601:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1449,
"initialValue": {
"argumentTypes": null,
"id": 1448,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "623:13:9",
"subExpression": {
"argumentTypes": null,
"id": 1447,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "624:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "601:35:9"
},
{
"condition": {
"argumentTypes": null,
"id": 1450,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1446,
"src": "646:14:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1460,
"nodeType": "IfStatement",
"src": "642:80:9",
"trueBody": {
"id": 1459,
"nodeType": "Block",
"src": "662:60:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1453,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1451,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "670:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1452,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "685:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "670:19:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1454,
"nodeType": "ExpressionStatement",
"src": "670:19:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1457,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1455,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1430,
"src": "697:11:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1456,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "711:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "697:18:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1458,
"nodeType": "ExpressionStatement",
"src": "697:18:9"
}
]
}
},
{
"id": 1461,
"nodeType": "PlaceholderStatement",
"src": "728:1:9"
},
{
"condition": {
"argumentTypes": null,
"id": 1462,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1446,
"src": "740:14:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1468,
"nodeType": "IfStatement",
"src": "736:55:9",
"trueBody": {
"id": 1467,
"nodeType": "Block",
"src": "756:35:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1465,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1463,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "764:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 1464,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "779:5:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "764:20:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1466,
"nodeType": "ExpressionStatement",
"src": "764:20:9"
}
]
}
}
]
},
"documentation": "@dev Modifier to use in the initializer function of a contract.",
"id": 1470,
"name": "initializer",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 1433,
"nodeType": "ParameterList",
"parameters": [],
"src": "479:2:9"
},
"src": "459:336:9",
"visibility": "internal"
},
{
"body": {
"id": 1483,
"nodeType": "Block",
"src": "934:414:9",
"statements": [
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 1476,
"name": "cs",
"nodeType": "VariableDeclaration",
"scope": 1484,
"src": "1269:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1475,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1269:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1477,
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "1269:10:9"
},
{
"externalReferences": [
{
"cs": {
"declaration": 1476,
"isOffset": false,
"isSlot": false,
"src": "1296:2:9",
"valueSize": 1
}
}
],
"id": 1478,
"nodeType": "InlineAssembly",
"operations": "{\n cs := extcodesize(address())\n}",
"src": "1285:50:9"
},
{
"expression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1481,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1479,
"name": "cs",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1476,
"src": "1336:2:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1480,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1342:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1336:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 1474,
"id": 1482,
"nodeType": "Return",
"src": "1329:14:9"
}
]
},
"documentation": "@dev Returns true if and only if the function is running in the constructor",
"id": 1484,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isConstructor",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1471,
"nodeType": "ParameterList",
"parameters": [],
"src": "903:2:9"
},
"payable": false,
"returnParameters": {
"id": 1474,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1473,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1484,
"src": "928:4:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1472,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "928:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "927:6:9"
},
"scope": 1489,
"src": "881:467:9",
"stateMutability": "view",
"superFunction": null,
"visibility": "private"
},
{
"constant": false,
"id": 1488,
"name": "______gap",
"nodeType": "VariableDeclaration",
"scope": 1489,
"src": "1423:29:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$50_storage",
"typeString": "uint256[50]"
},
"typeName": {
"baseType": {
"id": 1485,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1423:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1487,
"length": {
"argumentTypes": null,
"hexValue": "3530",
"id": 1486,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1431:2:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "50"
},
"nodeType": "ArrayTypeName",
"src": "1423:11:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$50_storage_ptr",
"typeString": "uint256[50]"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 1490,
"src": "131:1324:9"
}
],
"src": "0:1456:9"
},
"legacyAST": {
"absolutePath": "tidbit/contracts/Initializer.sol",
"exportedSymbols": {
"Initializer": [
1489
]
},
"id": 1490,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1428,
"literals": [
"solidity",
">=",
"0.4",
".24",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:9"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1489,
"linearizedBaseContracts": [
1489
],
"name": "Initializer",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 1430,
"name": "initialized",
"nodeType": "VariableDeclaration",
"scope": 1489,
"src": "229:24:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1429,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "229:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 1432,
"name": "initializing",
"nodeType": "VariableDeclaration",
"scope": 1489,
"src": "348:25:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1431,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "348:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 1469,
"nodeType": "Block",
"src": "482:313:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1441,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 1438,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1435,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "496:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1436,
"name": "isConstructor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1484,
"src": "512:13:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 1437,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "512:15:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:31:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 1440,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "531:12:9",
"subExpression": {
"argumentTypes": null,
"id": 1439,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1430,
"src": "532:11:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "496:47:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564",
"id": 1442,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "545:48:9",
"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": 1434,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1507,
1508
],
"referencedDeclaration": 1508,
"src": "488:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1443,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "488:106:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1444,
"nodeType": "ExpressionStatement",
"src": "488:106:9"
},
{
"assignments": [
1446
],
"declarations": [
{
"constant": false,
"id": 1446,
"name": "isTopLevelCall",
"nodeType": "VariableDeclaration",
"scope": 1470,
"src": "601:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1445,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "601:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1449,
"initialValue": {
"argumentTypes": null,
"id": 1448,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "623:13:9",
"subExpression": {
"argumentTypes": null,
"id": 1447,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "624:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "601:35:9"
},
{
"condition": {
"argumentTypes": null,
"id": 1450,
"name": "isTopLevelCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1446,
"src": "646:14:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1460,
"nodeType": "IfStatement",
"src": "642:80:9",
"trueBody": {
"id": 1459,
"nodeType": "Block",
"src": "662:60:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1453,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1451,
"name": "initializing",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1432,
"src": "670:12:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 1452,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "685:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "670:19:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1454,
"nodeType": "ExpressionStatement",
"src": "670:19:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1457,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1455,
"name": "initialized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1430,
"src": "697:11:9",
"typeDescript