UNPKG

arc_dx

Version:

A platform for building DAOs

878 lines 29 kB
{ "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" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.25;\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": "/Users/oren/daostack/daostack2/daostack/contracts/globalConstraints/GlobalConstraintInterface.sol", "ast": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/globalConstraints/GlobalConstraintInterface.sol", "exportedSymbols": { "GlobalConstraintInterface": [ 3842 ] }, "id": 3843, "nodeType": "SourceUnit", "nodes": [ { "id": 3810, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 3842, "linearizedBaseContracts": [ 3842 ], "name": "GlobalConstraintInterface", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "GlobalConstraintInterface.CallPhase", "id": 3814, "members": [ { "id": 3811, "name": "Pre", "nodeType": "EnumValue", "src": "86:3:6" }, { "id": 3812, "name": "Post", "nodeType": "EnumValue", "src": "91:4:6" }, { "id": 3813, "name": "PreAndPost", "nodeType": "EnumValue", "src": "96:10:6" } ], "name": "CallPhase", "nodeType": "EnumDefinition", "src": "69:39:6" }, { "body": null, "documentation": null, "id": 3825, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "pre", "nodeType": "FunctionDefinition", "parameters": { "id": 3821, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3816, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 3825, "src": "128:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3815, "name": "address", "nodeType": "ElementaryTypeName", "src": "128:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3818, "name": "_params", "nodeType": "VariableDeclaration", "scope": 3825, "src": "145:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3817, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "145:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3820, "name": "_method", "nodeType": "VariableDeclaration", "scope": 3825, "src": "162:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3819, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "162:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "126:53:6" }, "payable": false, "returnParameters": { "id": 3824, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3823, "name": "", "nodeType": "VariableDeclaration", "scope": 3825, "src": "195:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3822, "name": "bool", "nodeType": "ElementaryTypeName", "src": "195:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "194:6:6" }, "scope": 3842, "src": "114:87:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3836, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "post", "nodeType": "FunctionDefinition", "parameters": { "id": 3832, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3827, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 3836, "src": "221:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3826, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3829, "name": "_params", "nodeType": "VariableDeclaration", "scope": 3836, "src": "238:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3828, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "238:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3831, "name": "_method", "nodeType": "VariableDeclaration", "scope": 3836, "src": "255:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3830, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "255:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "219:53:6" }, "payable": false, "returnParameters": { "id": 3835, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3834, "name": "", "nodeType": "VariableDeclaration", "scope": 3836, "src": "288:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3833, "name": "bool", "nodeType": "ElementaryTypeName", "src": "288:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "287:6:6" }, "scope": 3842, "src": "206:88:6", "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": 3841, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "when", "nodeType": "FunctionDefinition", "parameters": { "id": 3837, "nodeType": "ParameterList", "parameters": [], "src": "467:2:6" }, "payable": false, "returnParameters": { "id": 3840, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3839, "name": "", "nodeType": "VariableDeclaration", "scope": 3841, "src": "485:9:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$3814", "typeString": "enum GlobalConstraintInterface.CallPhase" }, "typeName": { "contractScope": null, "id": 3838, "name": "CallPhase", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3814, "src": "485:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$3814", "typeString": "enum GlobalConstraintInterface.CallPhase" } }, "value": null, "visibility": "internal" } ], "src": "484:11:6" }, "scope": 3842, "src": "454:42:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 3843, "src": "27:471:6" } ], "src": "0:499:6" }, "legacyAST": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/globalConstraints/GlobalConstraintInterface.sol", "exportedSymbols": { "GlobalConstraintInterface": [ 3842 ] }, "id": 3843, "nodeType": "SourceUnit", "nodes": [ { "id": 3810, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 3842, "linearizedBaseContracts": [ 3842 ], "name": "GlobalConstraintInterface", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "GlobalConstraintInterface.CallPhase", "id": 3814, "members": [ { "id": 3811, "name": "Pre", "nodeType": "EnumValue", "src": "86:3:6" }, { "id": 3812, "name": "Post", "nodeType": "EnumValue", "src": "91:4:6" }, { "id": 3813, "name": "PreAndPost", "nodeType": "EnumValue", "src": "96:10:6" } ], "name": "CallPhase", "nodeType": "EnumDefinition", "src": "69:39:6" }, { "body": null, "documentation": null, "id": 3825, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "pre", "nodeType": "FunctionDefinition", "parameters": { "id": 3821, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3816, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 3825, "src": "128:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3815, "name": "address", "nodeType": "ElementaryTypeName", "src": "128:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3818, "name": "_params", "nodeType": "VariableDeclaration", "scope": 3825, "src": "145:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3817, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "145:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3820, "name": "_method", "nodeType": "VariableDeclaration", "scope": 3825, "src": "162:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3819, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "162:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "126:53:6" }, "payable": false, "returnParameters": { "id": 3824, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3823, "name": "", "nodeType": "VariableDeclaration", "scope": 3825, "src": "195:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3822, "name": "bool", "nodeType": "ElementaryTypeName", "src": "195:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "194:6:6" }, "scope": 3842, "src": "114:87:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3836, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "post", "nodeType": "FunctionDefinition", "parameters": { "id": 3832, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3827, "name": "_scheme", "nodeType": "VariableDeclaration", "scope": 3836, "src": "221:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3826, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3829, "name": "_params", "nodeType": "VariableDeclaration", "scope": 3836, "src": "238:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3828, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "238:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3831, "name": "_method", "nodeType": "VariableDeclaration", "scope": 3836, "src": "255:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3830, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "255:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "219:53:6" }, "payable": false, "returnParameters": { "id": 3835, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3834, "name": "", "nodeType": "VariableDeclaration", "scope": 3836, "src": "288:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3833, "name": "bool", "nodeType": "ElementaryTypeName", "src": "288:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "287:6:6" }, "scope": 3842, "src": "206:88:6", "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": 3841, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "when", "nodeType": "FunctionDefinition", "parameters": { "id": 3837, "nodeType": "ParameterList", "parameters": [], "src": "467:2:6" }, "payable": false, "returnParameters": { "id": 3840, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3839, "name": "", "nodeType": "VariableDeclaration", "scope": 3841, "src": "485:9:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$3814", "typeString": "enum GlobalConstraintInterface.CallPhase" }, "typeName": { "contractScope": null, "id": 3838, "name": "CallPhase", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3814, "src": "485:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_CallPhase_$3814", "typeString": "enum GlobalConstraintInterface.CallPhase" } }, "value": null, "visibility": "internal" } ], "src": "484:11:6" }, "scope": 3842, "src": "454:42:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 3843, "src": "27:471:6" } ], "src": "0:499:6" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-16T14:16:07.333Z" }