UNPKG

kleros-interaction-2

Version:
285 lines 9.54 kB
{ "contractName": "PermissionInterface", "abi": [ { "constant": true, "inputs": [ { "name": "_value", "type": "bytes32" } ], "name": "isPermitted", "outputs": [ { "name": "allowed", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "/**\n * @title Permission Interface\n * @author Clément Lesaege - <clement@lesaege.com>\n */\n\npragma solidity ^0.4.15;\n\n/**\n * @title Permission Interface\n * This is a permission interface for arbitrary values. The values can be cast to the required types.\n */\ninterface PermissionInterface{\n /* External */\n\n /**\n * @dev Return true if the value is allowed.\n * @param _value The value we want to check.\n * @return allowed True if the value is allowed, false otherwise.\n */\n function isPermitted(bytes32 _value) external view returns (bool allowed);\n}\n", "sourcePath": "/private/tmp/kleros-interaction/contracts/standard/permission/PermissionInterface.sol", "ast": { "absolutePath": "/private/tmp/kleros-interaction/contracts/standard/permission/PermissionInterface.sol", "exportedSymbols": { "PermissionInterface": [ 17526 ] }, "id": 17527, "nodeType": "SourceUnit", "nodes": [ { "id": 17518, "literals": [ "solidity", "^", "0.4", ".15" ], "nodeType": "PragmaDirective", "src": "94:24:47" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": " @title Permission Interface\n This is a permission interface for arbitrary values. The values can be cast to the required types.", "fullyImplemented": false, "id": 17526, "linearizedBaseContracts": [ 17526 ], "name": "PermissionInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": " @dev Return true if the value is allowed.\n @param _value The value we want to check.\n @return allowed True if the value is allowed, false otherwise.", "id": 17525, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isPermitted", "nodeType": "FunctionDefinition", "parameters": { "id": 17521, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17520, "name": "_value", "nodeType": "VariableDeclaration", "scope": 17525, "src": "526:14:47", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 17519, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "526:7:47", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "525:16:47" }, "payable": false, "returnParameters": { "id": 17524, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17523, "name": "allowed", "nodeType": "VariableDeclaration", "scope": 17525, "src": "565:12:47", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 17522, "name": "bool", "nodeType": "ElementaryTypeName", "src": "565:4:47", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "564:14:47" }, "scope": 17526, "src": "505:74:47", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 17527, "src": "263:318:47" } ], "src": "94:488:47" }, "legacyAST": { "absolutePath": "/private/tmp/kleros-interaction/contracts/standard/permission/PermissionInterface.sol", "exportedSymbols": { "PermissionInterface": [ 17526 ] }, "id": 17527, "nodeType": "SourceUnit", "nodes": [ { "id": 17518, "literals": [ "solidity", "^", "0.4", ".15" ], "nodeType": "PragmaDirective", "src": "94:24:47" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": " @title Permission Interface\n This is a permission interface for arbitrary values. The values can be cast to the required types.", "fullyImplemented": false, "id": 17526, "linearizedBaseContracts": [ 17526 ], "name": "PermissionInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": " @dev Return true if the value is allowed.\n @param _value The value we want to check.\n @return allowed True if the value is allowed, false otherwise.", "id": 17525, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isPermitted", "nodeType": "FunctionDefinition", "parameters": { "id": 17521, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17520, "name": "_value", "nodeType": "VariableDeclaration", "scope": 17525, "src": "526:14:47", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 17519, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "526:7:47", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "525:16:47" }, "payable": false, "returnParameters": { "id": 17524, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 17523, "name": "allowed", "nodeType": "VariableDeclaration", "scope": 17525, "src": "565:12:47", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 17522, "name": "bool", "nodeType": "ElementaryTypeName", "src": "565:4:47", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "564:14:47" }, "scope": 17526, "src": "505:74:47", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 17527, "src": "263:318:47" } ], "src": "94:488:47" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-11-02T14:04:11.069Z" }