@gooddollar/goodcontracts
Version:
GoodDollar Contracts
882 lines • 29.1 kB
JSON
{
"contractName": "GlobalConstraintInterface",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_scheme",
"type": "address"
},
{
"name": "_params",
"type": "bytes32"
},
{
"name": "_method",
"type": "bytes32"
}
],
"name": "pre",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_scheme",
"type": "address"
},
{
"name": "_params",
"type": "bytes32"
},
{
"name": "_method",
"type": "bytes32"
}
],
"name": "post",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "when",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "",
"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": [
9115
]
},
"id": 9116,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9083,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:46"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 9115,
"linearizedBaseContracts": [
9115
],
"name": "GlobalConstraintInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "GlobalConstraintInterface.CallPhase",
"id": 9087,
"members": [
{
"id": 9084,
"name": "Pre",
"nodeType": "EnumValue",
"src": "85:3:46"
},
{
"id": 9085,
"name": "Post",
"nodeType": "EnumValue",
"src": "90:4:46"
},
{
"id": 9086,
"name": "PreAndPost",
"nodeType": "EnumValue",
"src": "96:10:46"
}
],
"name": "CallPhase",
"nodeType": "EnumDefinition",
"src": "68:40:46"
},
{
"body": null,
"documentation": null,
"id": 9098,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "pre",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9094,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9089,
"name": "_scheme",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "128:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9088,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "128:7:46",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9091,
"name": "_params",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "145:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9090,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "145:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9093,
"name": "_method",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "162:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9092,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "162:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "126:53:46"
},
"returnParameters": {
"id": 9097,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9096,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "195:4:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 9095,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "195:4:46",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "194:6:46"
},
"scope": 9115,
"src": "114:87:46",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 9109,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "post",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9105,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9100,
"name": "_scheme",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "221:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9099,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "221:7:46",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9102,
"name": "_params",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "238:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9101,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "238:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9104,
"name": "_method",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "255:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9103,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "255:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "219:53:46"
},
"returnParameters": {
"id": 9108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9107,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "288:4:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 9106,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "288:4:46",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "287:6:46"
},
"scope": 9115,
"src": "206:88:46",
"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": 9114,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "when",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9110,
"nodeType": "ParameterList",
"parameters": [],
"src": "467:2:46"
},
"returnParameters": {
"id": 9113,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9112,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9114,
"src": "485:9:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_CallPhase_$9087",
"typeString": "enum GlobalConstraintInterface.CallPhase"
},
"typeName": {
"contractScope": null,
"id": 9111,
"name": "CallPhase",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 9087,
"src": "485:9:46",
"typeDescriptions": {
"typeIdentifier": "t_enum$_CallPhase_$9087",
"typeString": "enum GlobalConstraintInterface.CallPhase"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "484:11:46"
},
"scope": 9115,
"src": "454:42:46",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 9116,
"src": "26:472:46"
}
],
"src": "0:499:46"
},
"legacyAST": {
"absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol",
"exportedSymbols": {
"GlobalConstraintInterface": [
9115
]
},
"id": 9116,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9083,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:46"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 9115,
"linearizedBaseContracts": [
9115
],
"name": "GlobalConstraintInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "GlobalConstraintInterface.CallPhase",
"id": 9087,
"members": [
{
"id": 9084,
"name": "Pre",
"nodeType": "EnumValue",
"src": "85:3:46"
},
{
"id": 9085,
"name": "Post",
"nodeType": "EnumValue",
"src": "90:4:46"
},
{
"id": 9086,
"name": "PreAndPost",
"nodeType": "EnumValue",
"src": "96:10:46"
}
],
"name": "CallPhase",
"nodeType": "EnumDefinition",
"src": "68:40:46"
},
{
"body": null,
"documentation": null,
"id": 9098,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "pre",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9094,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9089,
"name": "_scheme",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "128:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9088,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "128:7:46",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9091,
"name": "_params",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "145:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9090,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "145:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9093,
"name": "_method",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "162:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9092,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "162:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "126:53:46"
},
"returnParameters": {
"id": 9097,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9096,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9098,
"src": "195:4:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 9095,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "195:4:46",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "194:6:46"
},
"scope": 9115,
"src": "114:87:46",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 9109,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "post",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9105,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9100,
"name": "_scheme",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "221:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9099,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "221:7:46",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9102,
"name": "_params",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "238:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9101,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "238:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9104,
"name": "_method",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "255:15:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 9103,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "255:7:46",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "219:53:46"
},
"returnParameters": {
"id": 9108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9107,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9109,
"src": "288:4:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 9106,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "288:4:46",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "287:6:46"
},
"scope": 9115,
"src": "206:88:46",
"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": 9114,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "when",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9110,
"nodeType": "ParameterList",
"parameters": [],
"src": "467:2:46"
},
"returnParameters": {
"id": 9113,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9112,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 9114,
"src": "485:9:46",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_CallPhase_$9087",
"typeString": "enum GlobalConstraintInterface.CallPhase"
},
"typeName": {
"contractScope": null,
"id": 9111,
"name": "CallPhase",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 9087,
"src": "485:9:46",
"typeDescriptions": {
"typeIdentifier": "t_enum$_CallPhase_$9087",
"typeString": "enum GlobalConstraintInterface.CallPhase"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "484:11:46"
},
"scope": 9115,
"src": "454:42:46",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 9116,
"src": "26:472:46"
}
],
"src": "0:499:46"
},
"compiler": {
"name": "solc",
"version": "0.5.4+commit.9549d8ff.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.16",
"updatedAt": "2020-07-07T14:28:01.975Z",
"devdoc": {
"methods": {
"when()": {
"details": "when return if this globalConstraints is pre, post or both.",
"return": "CallPhase enum indication Pre, Post or PreAndPost."
}
}
},
"userdoc": {
"methods": {}
}
}