UNPKG

secretstore-contracts

Version:

Secret Store permissioning and service contracts collection and toolkit.

1,283 lines 46.8 kB
{ "contractName": "ERC165", "abi": [ { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "constant": true, "inputs": [ { "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\nimport \"./IERC165.sol\";\n\n/**\n * @title ERC165\n * @author Matt Condon (@shrugs)\n * @dev Implements ERC165 using a lookup table.\n */\ncontract ERC165 is IERC165 {\n\n bytes4 private constant _InterfaceId_ERC165 = 0x01ffc9a7;\n /**\n * 0x01ffc9a7 ===\n * bytes4(keccak256('supportsInterface(bytes4)'))\n */\n\n /**\n * @dev a mapping of interface id to whether or not it's supported\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself\n */\n constructor()\n internal\n {\n _registerInterface(_InterfaceId_ERC165);\n }\n\n /**\n * @dev implement supportsInterface(bytes4) using a lookup table\n */\n function supportsInterface(bytes4 interfaceId)\n external\n view\n returns (bool)\n {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev internal method for registering an interface\n */\n function _registerInterface(bytes4 interfaceId)\n internal\n {\n require(interfaceId != 0xffffffff);\n _supportedInterfaces[interfaceId] = true;\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 4704 ] }, "id": 4705, "nodeType": "SourceUnit", "nodes": [ { "id": 4655, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:10" }, { "absolutePath": "openzeppelin-solidity/contracts/introspection/IERC165.sol", "file": "./IERC165.sol", "id": 4656, "nodeType": "ImportDirective", "scope": 4705, "sourceUnit": 4715, "src": "26:23:10", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4657, "name": "IERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4714, "src": "176:7:10", "typeDescriptions": { "typeIdentifier": "t_contract$_IERC165_$4714", "typeString": "contract IERC165" } }, "id": 4658, "nodeType": "InheritanceSpecifier", "src": "176:7:10" } ], "contractDependencies": [ 4714 ], "contractKind": "contract", "documentation": "@title ERC165\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 4704, "linearizedBaseContracts": [ 4704, 4714 ], "name": "ERC165", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 4661, "name": "_InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 4704, "src": "189:56:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4659, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "189:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 4660, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "235:10:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "private" }, { "constant": false, "id": 4665, "name": "_supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 4704, "src": "417:52:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 4664, "keyType": { "id": 4662, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "425:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "417:23:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 4663, "name": "bool", "nodeType": "ElementaryTypeName", "src": "435:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "private" }, { "body": { "id": 4672, "nodeType": "Block", "src": "606:50:10", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 4669, "name": "_InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4661, "src": "631:19:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 4668, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4703, "src": "612:18:10", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 4670, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "612:39:10", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4671, "nodeType": "ExpressionStatement", "src": "612:39:10" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 4673, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 4666, "nodeType": "ParameterList", "parameters": [], "src": "588:2:10" }, "payable": false, "returnParameters": { "id": 4667, "nodeType": "ParameterList", "parameters": [], "src": "606:0:10" }, "scope": 4704, "src": "577:79:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 4684, "nodeType": "Block", "src": "829:51:10", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4680, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4665, "src": "842:20:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 4682, "indexExpression": { "argumentTypes": null, "id": 4681, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4675, "src": "863:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "842:33:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 4679, "id": 4683, "nodeType": "Return", "src": "835:40:10" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 4685, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 4676, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4675, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 4685, "src": "766:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4674, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "766:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "765:20:10" }, "payable": false, "returnParameters": { "id": 4679, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4678, "name": "", "nodeType": "VariableDeclaration", "scope": 4685, "src": "821:4:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4677, "name": "bool", "nodeType": "ElementaryTypeName", "src": "821:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "820:6:10" }, "scope": 4704, "src": "739:141:10", "stateMutability": "view", "superFunction": 4713, "visibility": "external" }, { "body": { "id": 4702, "nodeType": "Block", "src": "1014:91:10", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 4693, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 4691, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4687, "src": "1028:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 4692, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1043:10:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1028:25:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 4690, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4841, 4842 ], "referencedDeclaration": 4841, "src": "1020:7:10", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 4694, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1020:34:10", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4695, "nodeType": "ExpressionStatement", "src": "1020:34:10" }, { "expression": { "argumentTypes": null, "id": 4700, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4696, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4665, "src": "1060:20:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 4698, "indexExpression": { "argumentTypes": null, "id": 4697, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4687, "src": "1081:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1060:33:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 4699, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1096:4:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1060:40:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 4701, "nodeType": "ExpressionStatement", "src": "1060:40:10" } ] }, "documentation": "@dev internal method for registering an interface", "id": 4703, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 4688, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4687, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 4703, "src": "979:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4686, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "979:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "978:20:10" }, "payable": false, "returnParameters": { "id": 4689, "nodeType": "ParameterList", "parameters": [], "src": "1014:0:10" }, "scope": 4704, "src": "951:154:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 4705, "src": "157:950:10" } ], "src": "0:1108:10" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/introspection/ERC165.sol", "exportedSymbols": { "ERC165": [ 4704 ] }, "id": 4705, "nodeType": "SourceUnit", "nodes": [ { "id": 4655, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:10" }, { "absolutePath": "openzeppelin-solidity/contracts/introspection/IERC165.sol", "file": "./IERC165.sol", "id": 4656, "nodeType": "ImportDirective", "scope": 4705, "sourceUnit": 4715, "src": "26:23:10", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4657, "name": "IERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4714, "src": "176:7:10", "typeDescriptions": { "typeIdentifier": "t_contract$_IERC165_$4714", "typeString": "contract IERC165" } }, "id": 4658, "nodeType": "InheritanceSpecifier", "src": "176:7:10" } ], "contractDependencies": [ 4714 ], "contractKind": "contract", "documentation": "@title ERC165\n@author Matt Condon (@shrugs)\n@dev Implements ERC165 using a lookup table.", "fullyImplemented": true, "id": 4704, "linearizedBaseContracts": [ 4704, 4714 ], "name": "ERC165", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 4661, "name": "_InterfaceId_ERC165", "nodeType": "VariableDeclaration", "scope": 4704, "src": "189:56:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4659, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "189:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 4660, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "235:10:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "private" }, { "constant": false, "id": 4665, "name": "_supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 4704, "src": "417:52:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 4664, "keyType": { "id": 4662, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "425:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "417:23:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 4663, "name": "bool", "nodeType": "ElementaryTypeName", "src": "435:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "private" }, { "body": { "id": 4672, "nodeType": "Block", "src": "606:50:10", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 4669, "name": "_InterfaceId_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4661, "src": "631:19:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 4668, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4703, "src": "612:18:10", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 4670, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "612:39:10", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4671, "nodeType": "ExpressionStatement", "src": "612:39:10" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 4673, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 4666, "nodeType": "ParameterList", "parameters": [], "src": "588:2:10" }, "payable": false, "returnParameters": { "id": 4667, "nodeType": "ParameterList", "parameters": [], "src": "606:0:10" }, "scope": 4704, "src": "577:79:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 4684, "nodeType": "Block", "src": "829:51:10", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4680, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4665, "src": "842:20:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 4682, "indexExpression": { "argumentTypes": null, "id": 4681, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4675, "src": "863:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "842:33:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 4679, "id": 4683, "nodeType": "Return", "src": "835:40:10" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 4685, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 4676, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4675, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 4685, "src": "766:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4674, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "766:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "765:20:10" }, "payable": false, "returnParameters": { "id": 4679, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4678, "name": "", "nodeType": "VariableDeclaration", "scope": 4685, "src": "821:4:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4677, "name": "bool", "nodeType": "ElementaryTypeName", "src": "821:4:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "820:6:10" }, "scope": 4704, "src": "739:141:10", "stateMutability": "view", "superFunction": 4713, "visibility": "external" }, { "body": { "id": 4702, "nodeType": "Block", "src": "1014:91:10", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 4693, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 4691, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4687, "src": "1028:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 4692, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1043:10:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "1028:25:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 4690, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4841, 4842 ], "referencedDeclaration": 4841, "src": "1020:7:10", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 4694, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1020:34:10", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4695, "nodeType": "ExpressionStatement", "src": "1020:34:10" }, { "expression": { "argumentTypes": null, "id": 4700, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4696, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4665, "src": "1060:20:10", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 4698, "indexExpression": { "argumentTypes": null, "id": 4697, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4687, "src": "1081:11:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1060:33:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 4699, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1096:4:10", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1060:40:10", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 4701, "nodeType": "ExpressionStatement", "src": "1060:40:10" } ] }, "documentation": "@dev internal method for registering an interface", "id": 4703, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 4688, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4687, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 4703, "src": "979:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 4686, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "979:6:10", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "978:20:10" }, "payable": false, "returnParameters": { "id": 4689, "nodeType": "ParameterList", "parameters": [], "src": "1014:0:10" }, "scope": 4704, "src": "951:154:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 4705, "src": "157:950:10" } ], "src": "0:1108:10" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.2", "updatedAt": "2019-01-23T09:53:59.555Z" }