UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

252 lines 7.88 kB
{ "abi": [ { "inputs": [ { "internalType": "address", "name": "_sender", "type": "address" } ], "name": "getAuthorizationStatus", "outputs": [ { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "bool", "name": "isAuthorized", "type": "bool" }, { "internalType": "address", "name": "policyFlow", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "allSourcePaths": { "40": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ILicense.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ILicense.sol", "exportedSymbols": { "ILicense": [ 22433 ] }, "id": 22434, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 22421, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:40" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 22433, "linearizedBaseContracts": [ 22433 ], "name": "ILicense", "nameLocation": "73:8:40", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "d3e9c314", "id": 22432, "implemented": false, "kind": "function", "modifiers": [], "name": "getAuthorizationStatus", "nameLocation": "98:22:40", "nodeType": "FunctionDefinition", "parameters": { "id": 22424, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22423, "mutability": "mutable", "name": "_sender", "nameLocation": "129:7:40", "nodeType": "VariableDeclaration", "scope": 22432, "src": "121:15:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 22422, "name": "address", "nodeType": "ElementaryTypeName", "src": "121:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "120:17:40" }, "returnParameters": { "id": 22431, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22426, "mutability": "mutable", "name": "productId", "nameLocation": "193:9:40", "nodeType": "VariableDeclaration", "scope": 22432, "src": "185:17:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22425, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "185:7:40", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 22428, "mutability": "mutable", "name": "isAuthorized", "nameLocation": "209:12:40", "nodeType": "VariableDeclaration", "scope": 22432, "src": "204:17:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 22427, "name": "bool", "nodeType": "ElementaryTypeName", "src": "204:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, { "constant": false, "id": 22430, "mutability": "mutable", "name": "policyFlow", "nameLocation": "231:10:40", "nodeType": "VariableDeclaration", "scope": 22432, "src": "223:18:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 22429, "name": "address", "nodeType": "ElementaryTypeName", "src": "223:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "184:58:40" }, "scope": 22433, "src": "89:154:40", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 22434, "src": "63:182:40" } ], "src": "39:207:40" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "ILicense", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "kind": "dev", "methods": {}, "version": 1 }, "offset": [ 63, 245 ], "opcodes": "", "pcMap": {}, "sha1": "c22966364d4fe91aa9e7bc05bc58e00c2d4bf289", "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\ninterface ILicense {\n\n function getAuthorizationStatus(address _sender)\n external\n view\n returns (uint256 productId, bool isAuthorized, address policyFlow);\n}\n", "sourceMap": "", "sourcePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ILicense.sol", "type": "interface" }