UNPKG

@etherisc/gif-interface

Version:

This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.

252 lines 7.68 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": { "17": "contracts/modules/ILicense.sol" }, "ast": { "absolutePath": "contracts/modules/ILicense.sol", "exportedSymbols": { "ILicense": [ 2911 ] }, "id": 2912, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2899, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:17" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 2911, "linearizedBaseContracts": [ 2911 ], "name": "ILicense", "nameLocation": "73:8:17", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "d3e9c314", "id": 2910, "implemented": false, "kind": "function", "modifiers": [], "name": "getAuthorizationStatus", "nameLocation": "98:22:17", "nodeType": "FunctionDefinition", "parameters": { "id": 2902, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2901, "mutability": "mutable", "name": "_sender", "nameLocation": "129:7:17", "nodeType": "VariableDeclaration", "scope": 2910, "src": "121:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2900, "name": "address", "nodeType": "ElementaryTypeName", "src": "121:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "120:17:17" }, "returnParameters": { "id": 2909, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2904, "mutability": "mutable", "name": "productId", "nameLocation": "193:9:17", "nodeType": "VariableDeclaration", "scope": 2910, "src": "185:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2903, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "185:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2906, "mutability": "mutable", "name": "isAuthorized", "nameLocation": "209:12:17", "nodeType": "VariableDeclaration", "scope": 2910, "src": "204:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2905, "name": "bool", "nodeType": "ElementaryTypeName", "src": "204:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, { "constant": false, "id": 2908, "mutability": "mutable", "name": "policyFlow", "nameLocation": "231:10:17", "nodeType": "VariableDeclaration", "scope": 2910, "src": "223:18:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2907, "name": "address", "nodeType": "ElementaryTypeName", "src": "223:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "184:58:17" }, "scope": 2911, "src": "89:154:17", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 2912, "src": "63:182:17" } ], "src": "39:207:17" }, "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": "contracts/modules/ILicense.sol", "type": "interface" }