UNPKG

@gooddollar/goodcontracts

Version:
891 lines 31.5 kB
{ "contractName": "GlobalConstraintInterface", "abi": [ { "constant": false, "inputs": [ { "internalType": "address", "name": "_scheme", "type": "address" }, { "internalType": "bytes32", "name": "_params", "type": "bytes32" }, { "internalType": "bytes32", "name": "_method", "type": "bytes32" } ], "name": "pre", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_scheme", "type": "address" }, { "internalType": "bytes32", "name": "_params", "type": "bytes32" }, { "internalType": "bytes32", "name": "_method", "type": "bytes32" } ], "name": "post", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "when", "outputs": [ { "internalType": "enum GlobalConstraintInterface.CallPhase", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_scheme\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_params\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_method\",\"type\":\"bytes32\"}],\"name\":\"post\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_scheme\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_params\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_method\",\"type\":\"bytes32\"}],\"name\":\"pre\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"when\",\"outputs\":[{\"internalType\":\"enum GlobalConstraintInterface.CallPhase\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"when()\":{\"details\":\"when return if this globalConstraints is pre, post or both.\",\"return\":\"CallPhase enum indication Pre, Post or PreAndPost.\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":\"GlobalConstraintInterface\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzz-raw://19495cd88280e54d7ddcd043ffeff75e6d3777a0c42debcd61cae448e9497ea0\",\"dweb:/ipfs/QmYxWz7CgFmmddrcVXJKfob5Ktwykc2imNVUwLSR5WR8bJ\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.4;\n\n\ncontract GlobalConstraintInterface {\n\n enum CallPhase { Pre, Post, PreAndPost }\n\n function pre( address _scheme, bytes32 _params, bytes32 _method ) public returns(bool);\n function post( address _scheme, bytes32 _params, bytes32 _method ) public returns(bool);\n /**\n * @dev when return if this globalConstraints is pre, post or both.\n * @return CallPhase enum indication Pre, Post or PreAndPost.\n */\n function when() public returns(CallPhase);\n}\n", "sourcePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol", "ast": { "absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol", "exportedSymbols": { "GlobalConstraintInterface": [ 14504 ] }, "id": 14505, "nodeType": "SourceUnit", "nodes": [ { "id": 14472, "literals": [ "solidity", "^", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:55" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 14504, "linearizedBaseContracts": [ 14504 ], "name": "GlobalConstraintInterface", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "GlobalConstraintInterface.CallPhase", "id": 14476, "members": [ { "id": 14473, "name": "Pre", "nodeType": "EnumValue", "src": "85:3:55" }, { "id": 14474, "name": "Post", "nodeType": "EnumValue", "src": "90:4:55" }, { "id": 14475, "name": "PreAndPost", "nodeType": "EnumValue", "src": "96:10:55" } ], "name": "CallPhase", "nodeType": "EnumDefinition", "src": "68:40:55" }, { "body": null, "documentation": null, "id": 14487, "implemented": false, "kind": "function", "modifiers": [], "name": "pre", "nodeType": "FunctionDefinition", "parameters": { "id": 14483, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14478, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 14487, "src": "128:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14477, "name": "address", "nodeType": "ElementaryTypeName", "src": "128:7:55", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14480, "name": "_params", "nodeType": "VariableDeclaration", "scope": 14487, "src": "145:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14479, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "145:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14482, "name": "_method", "nodeType": "VariableDeclaration", "scope": 14487, "src": "162:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14481, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "162:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "126:53:55" }, "returnParameters": { "id": 14486, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14485, "name": "", "nodeType": "VariableDeclaration", "scope": 14487, "src": "195:4:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 14484, "name": "bool", "nodeType": "ElementaryTypeName", "src": "195:4:55", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "194:6:55" }, "scope": 14504, "src": "114:87:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 14498, "implemented": false, "kind": "function", "modifiers": [], "name": "post", "nodeType": "FunctionDefinition", "parameters": { "id": 14494, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14489, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 14498, "src": "221:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14488, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:55", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14491, "name": "_params", "nodeType": "VariableDeclaration", "scope": 14498, "src": "238:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14490, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "238:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14493, "name": "_method", "nodeType": "VariableDeclaration", "scope": 14498, "src": "255:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14492, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "255:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "219:53:55" }, "returnParameters": { "id": 14497, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14496, "name": "", "nodeType": "VariableDeclaration", "scope": 14498, "src": "288:4:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 14495, "name": "bool", "nodeType": "ElementaryTypeName", "src": "288:4:55", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "287:6:55" }, "scope": 14504, "src": "206:88:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": "@dev when return if this globalConstraints is pre, post or both.\n@return CallPhase enum indication Pre, Post or PreAndPost.", "id": 14503, "implemented": false, "kind": "function", "modifiers": [], "name": "when", "nodeType": "FunctionDefinition", "parameters": { "id": 14499, "nodeType": "ParameterList", "parameters": [], "src": "467:2:55" }, "returnParameters": { "id": 14502, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14501, "name": "", "nodeType": "VariableDeclaration", "scope": 14503, "src": "485:9:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$14476", "typeString": "enum GlobalConstraintInterface.CallPhase" }, "typeName": { "contractScope": null, "id": 14500, "name": "CallPhase", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 14476, "src": "485:9:55", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$14476", "typeString": "enum GlobalConstraintInterface.CallPhase" } }, "value": null, "visibility": "internal" } ], "src": "484:11:55" }, "scope": 14504, "src": "454:42:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 14505, "src": "26:472:55" } ], "src": "0:499:55" }, "legacyAST": { "absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol", "exportedSymbols": { "GlobalConstraintInterface": [ 14504 ] }, "id": 14505, "nodeType": "SourceUnit", "nodes": [ { "id": 14472, "literals": [ "solidity", "^", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:55" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 14504, "linearizedBaseContracts": [ 14504 ], "name": "GlobalConstraintInterface", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "GlobalConstraintInterface.CallPhase", "id": 14476, "members": [ { "id": 14473, "name": "Pre", "nodeType": "EnumValue", "src": "85:3:55" }, { "id": 14474, "name": "Post", "nodeType": "EnumValue", "src": "90:4:55" }, { "id": 14475, "name": "PreAndPost", "nodeType": "EnumValue", "src": "96:10:55" } ], "name": "CallPhase", "nodeType": "EnumDefinition", "src": "68:40:55" }, { "body": null, "documentation": null, "id": 14487, "implemented": false, "kind": "function", "modifiers": [], "name": "pre", "nodeType": "FunctionDefinition", "parameters": { "id": 14483, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14478, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 14487, "src": "128:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14477, "name": "address", "nodeType": "ElementaryTypeName", "src": "128:7:55", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14480, "name": "_params", "nodeType": "VariableDeclaration", "scope": 14487, "src": "145:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14479, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "145:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14482, "name": "_method", "nodeType": "VariableDeclaration", "scope": 14487, "src": "162:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14481, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "162:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "126:53:55" }, "returnParameters": { "id": 14486, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14485, "name": "", "nodeType": "VariableDeclaration", "scope": 14487, "src": "195:4:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 14484, "name": "bool", "nodeType": "ElementaryTypeName", "src": "195:4:55", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "194:6:55" }, "scope": 14504, "src": "114:87:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 14498, "implemented": false, "kind": "function", "modifiers": [], "name": "post", "nodeType": "FunctionDefinition", "parameters": { "id": 14494, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14489, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 14498, "src": "221:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14488, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:55", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14491, "name": "_params", "nodeType": "VariableDeclaration", "scope": 14498, "src": "238:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14490, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "238:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 14493, "name": "_method", "nodeType": "VariableDeclaration", "scope": 14498, "src": "255:15:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14492, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "255:7:55", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "219:53:55" }, "returnParameters": { "id": 14497, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14496, "name": "", "nodeType": "VariableDeclaration", "scope": 14498, "src": "288:4:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 14495, "name": "bool", "nodeType": "ElementaryTypeName", "src": "288:4:55", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "287:6:55" }, "scope": 14504, "src": "206:88:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": "@dev when return if this globalConstraints is pre, post or both.\n@return CallPhase enum indication Pre, Post or PreAndPost.", "id": 14503, "implemented": false, "kind": "function", "modifiers": [], "name": "when", "nodeType": "FunctionDefinition", "parameters": { "id": 14499, "nodeType": "ParameterList", "parameters": [], "src": "467:2:55" }, "returnParameters": { "id": 14502, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14501, "name": "", "nodeType": "VariableDeclaration", "scope": 14503, "src": "485:9:55", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$14476", "typeString": "enum GlobalConstraintInterface.CallPhase" }, "typeName": { "contractScope": null, "id": 14500, "name": "CallPhase", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 14476, "src": "485:9:55", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$14476", "typeString": "enum GlobalConstraintInterface.CallPhase" } }, "value": null, "visibility": "internal" } ], "src": "484:11:55" }, "scope": 14504, "src": "454:42:55", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 14505, "src": "26:472:55" } ], "src": "0:499:55" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.2.2", "updatedAt": "2021-08-23T07:33:52.414Z", "devdoc": { "methods": { "when()": { "details": "when return if this globalConstraints is pre, post or both.", "return": "CallPhase enum indication Pre, Post or PreAndPost." } } }, "userdoc": { "methods": {} } }