{
  "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": [
        3809
      ]
    },
    "id": 3810,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3777,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:25"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 3809,
        "linearizedBaseContracts": [
          3809
        ],
        "name": "GlobalConstraintInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "GlobalConstraintInterface.CallPhase",
            "id": 3781,
            "members": [
              {
                "id": 3778,
                "name": "Pre",
                "nodeType": "EnumValue",
                "src": "85:3:25"
              },
              {
                "id": 3779,
                "name": "Post",
                "nodeType": "EnumValue",
                "src": "90:4:25"
              },
              {
                "id": 3780,
                "name": "PreAndPost",
                "nodeType": "EnumValue",
                "src": "96:10:25"
              }
            ],
            "name": "CallPhase",
            "nodeType": "EnumDefinition",
            "src": "68:40:25"
          },
          {
            "body": null,
            "documentation": null,
            "id": 3792,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "pre",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3788,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3783,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "128:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3782,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "128:7:25",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3785,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "145:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3784,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "145:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3787,
                  "name": "_method",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "162:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3786,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "162:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "126:53:25"
            },
            "returnParameters": {
              "id": 3791,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3790,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "195:4:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3789,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "195:4:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "194:6:25"
            },
            "scope": 3809,
            "src": "114:87:25",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 3803,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "post",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3799,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3794,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "221:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3793,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "221:7:25",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3796,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "238:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3795,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "238:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3798,
                  "name": "_method",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "255:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3797,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "255:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "219:53:25"
            },
            "returnParameters": {
              "id": 3802,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3801,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "288:4:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3800,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "288:4:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "287:6:25"
            },
            "scope": 3809,
            "src": "206:88:25",
            "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": 3808,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "when",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3804,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "467:2:25"
            },
            "returnParameters": {
              "id": 3807,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3806,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3808,
                  "src": "485:9:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_CallPhase_$3781",
                    "typeString": "enum GlobalConstraintInterface.CallPhase"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3805,
                    "name": "CallPhase",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3781,
                    "src": "485:9:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "484:11:25"
            },
            "scope": 3809,
            "src": "454:42:25",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 3810,
        "src": "26:472:25"
      }
    ],
    "src": "0:499:25"
  },
  "legacyAST": {
    "absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol",
    "exportedSymbols": {
      "GlobalConstraintInterface": [
        3809
      ]
    },
    "id": 3810,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3777,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:25"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 3809,
        "linearizedBaseContracts": [
          3809
        ],
        "name": "GlobalConstraintInterface",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "GlobalConstraintInterface.CallPhase",
            "id": 3781,
            "members": [
              {
                "id": 3778,
                "name": "Pre",
                "nodeType": "EnumValue",
                "src": "85:3:25"
              },
              {
                "id": 3779,
                "name": "Post",
                "nodeType": "EnumValue",
                "src": "90:4:25"
              },
              {
                "id": 3780,
                "name": "PreAndPost",
                "nodeType": "EnumValue",
                "src": "96:10:25"
              }
            ],
            "name": "CallPhase",
            "nodeType": "EnumDefinition",
            "src": "68:40:25"
          },
          {
            "body": null,
            "documentation": null,
            "id": 3792,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "pre",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3788,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3783,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "128:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3782,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "128:7:25",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3785,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "145:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3784,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "145:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3787,
                  "name": "_method",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "162:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3786,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "162:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "126:53:25"
            },
            "returnParameters": {
              "id": 3791,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3790,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3792,
                  "src": "195:4:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3789,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "195:4:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "194:6:25"
            },
            "scope": 3809,
            "src": "114:87:25",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 3803,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "post",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3799,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3794,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "221:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3793,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "221:7:25",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3796,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "238:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3795,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "238:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3798,
                  "name": "_method",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "255:15:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3797,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "255:7:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "219:53:25"
            },
            "returnParameters": {
              "id": 3802,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3801,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3803,
                  "src": "288:4:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3800,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "288:4:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "287:6:25"
            },
            "scope": 3809,
            "src": "206:88:25",
            "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": 3808,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "when",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3804,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "467:2:25"
            },
            "returnParameters": {
              "id": 3807,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3806,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3808,
                  "src": "485:9:25",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_CallPhase_$3781",
                    "typeString": "enum GlobalConstraintInterface.CallPhase"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3805,
                    "name": "CallPhase",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3781,
                    "src": "485:9:25",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "484:11:25"
            },
            "scope": 3809,
            "src": "454:42:25",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 3810,
        "src": "26:472:25"
      }
    ],
    "src": "0:499:25"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.4+commit.9549d8ff.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.9",
  "updatedAt": "2019-05-28T21:12:52.294Z",
  "devdoc": {
    "methods": {
      "when()": {
        "details": "when return if this globalConstraints is pre, post or both.",
        "return": "CallPhase enum indication  Pre, Post or PreAndPost."
      }
    }
  },
  "userdoc": {
    "methods": {}
  }
}