secretstore-contracts
Version:
Secret Store permissioning and service contracts collection and toolkit.
341 lines • 10.6 kB
JSON
{
"contractName": "ISecretStorePermissioning",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "user",
"type": "address"
},
{
"name": "document",
"type": "bytes32"
}
],
"name": "checkPermissions",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.21;\n\n\ncontract ISecretStorePermissioning {\n\n // Must return true if user has permission to get the specified key, false otherwise\n function checkPermissions(address user, bytes32 document) public view returns (bool);\n}",
"sourcePath": "/home/aznagy/work/secretstore/secretstore-contracts/contracts/interfaces/ISecretStorePermissioning.sol",
"ast": {
"absolutePath": "/home/aznagy/work/secretstore/secretstore-contracts/contracts/interfaces/ISecretStorePermissioning.sol",
"exportedSymbols": {
"ISecretStorePermissioning": [
405
]
},
"id": 406,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 395,
"literals": [
"solidity",
"^",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:24:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 405,
"linearizedBaseContracts": [
405
],
"name": "ISecretStorePermissioning",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 404,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkPermissions",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 400,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 397,
"name": "user",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "184:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 396,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "184:7:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 399,
"name": "document",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "198:16:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 398,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "198:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "183:32:1"
},
"payable": false,
"returnParameters": {
"id": 403,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 402,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "237:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 401,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "237:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "236:6:1"
},
"scope": 405,
"src": "158:85:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 406,
"src": "27:218:1"
}
],
"src": "0:245:1"
},
"legacyAST": {
"absolutePath": "/home/aznagy/work/secretstore/secretstore-contracts/contracts/interfaces/ISecretStorePermissioning.sol",
"exportedSymbols": {
"ISecretStorePermissioning": [
405
]
},
"id": 406,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 395,
"literals": [
"solidity",
"^",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:24:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 405,
"linearizedBaseContracts": [
405
],
"name": "ISecretStorePermissioning",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 404,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkPermissions",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 400,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 397,
"name": "user",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "184:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 396,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "184:7:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 399,
"name": "document",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "198:16:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 398,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "198:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "183:32:1"
},
"payable": false,
"returnParameters": {
"id": 403,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 402,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 404,
"src": "237:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 401,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "237:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "236:6:1"
},
"scope": 405,
"src": "158:85:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 406,
"src": "27:218:1"
}
],
"src": "0:245:1"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.2",
"updatedAt": "2019-01-23T09:53:59.511Z"
}