{
  "contractName": "Controller",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "globalConstraintsRegisterPre",
      "outputs": [
        {
          "name": "isRegistered",
          "type": "bool"
        },
        {
          "name": "index",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "newController",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "globalConstraintsPre",
      "outputs": [
        {
          "name": "gcAddress",
          "type": "address"
        },
        {
          "name": "params",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "avatar",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "globalConstraintsRegisterPost",
      "outputs": [
        {
          "name": "isRegistered",
          "type": "bool"
        },
        {
          "name": "index",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "nativeReputation",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "schemes",
      "outputs": [
        {
          "name": "paramsHash",
          "type": "bytes32"
        },
        {
          "name": "permissions",
          "type": "bytes4"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "nativeToken",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "globalConstraintsPost",
      "outputs": [
        {
          "name": "gcAddress",
          "type": "address"
        },
        {
          "name": "params",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "fallback"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_to",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "MintReputation",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_from",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "BurnReputation",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "MintTokens",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_scheme",
          "type": "address"
        }
      ],
      "name": "RegisterScheme",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_scheme",
          "type": "address"
        }
      ],
      "name": "UnregisterScheme",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_oldController",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_newController",
          "type": "address"
        }
      ],
      "name": "UpgradeController",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_params",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "name": "_when",
          "type": "uint8"
        }
      ],
      "name": "AddGlobalConstraint",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_index",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_isPre",
          "type": "bool"
        }
      ],
      "name": "RemoveGlobalConstraint",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_amount",
          "type": "uint256"
        },
        {
          "name": "_to",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "mintReputation",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_amount",
          "type": "uint256"
        },
        {
          "name": "_from",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "burnReputation",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_amount",
          "type": "uint256"
        },
        {
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "mintTokens",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_paramsHash",
          "type": "bytes32"
        },
        {
          "name": "_permissions",
          "type": "bytes4"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "registerScheme",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "unregisterScheme",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "unregisterSelf",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "name": "_params",
          "type": "bytes32"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "addGlobalConstraint",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "removeGlobalConstraint",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_newController",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "upgradeController",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_contract",
          "type": "address"
        },
        {
          "name": "_data",
          "type": "bytes"
        },
        {
          "name": "_avatar",
          "type": "address"
        },
        {
          "name": "_value",
          "type": "uint256"
        }
      ],
      "name": "genericCall",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        },
        {
          "name": "",
          "type": "bytes"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_amountInWei",
          "type": "uint256"
        },
        {
          "name": "_to",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "sendEther",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_externalToken",
          "type": "address"
        },
        {
          "name": "_to",
          "type": "address"
        },
        {
          "name": "_value",
          "type": "uint256"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "externalTokenTransfer",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_externalToken",
          "type": "address"
        },
        {
          "name": "_from",
          "type": "address"
        },
        {
          "name": "_to",
          "type": "address"
        },
        {
          "name": "_value",
          "type": "uint256"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "externalTokenTransferFrom",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_externalToken",
          "type": "address"
        },
        {
          "name": "_spender",
          "type": "address"
        },
        {
          "name": "_value",
          "type": "uint256"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "externalTokenApproval",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_metaData",
          "type": "string"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "metaData",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "getNativeReputation",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "isSchemeRegistered",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "getSchemeParameters",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "getSchemePermissions",
      "outputs": [
        {
          "name": "",
          "type": "bytes4"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "getGlobalConstraintParameters",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "globalConstraintsCount",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_globalConstraint",
          "type": "address"
        },
        {
          "name": "_avatar",
          "type": "address"
        }
      ],
      "name": "isGlobalConstraintRegistered",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.4+commit.9549d8ff\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"_scheme\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"unregisterScheme\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"globalConstraintsRegisterPre\",\"outputs\":[{\"name\":\"isRegistered\",\"type\":\"bool\"},{\"name\":\"index\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_scheme\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"getSchemeParameters\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"newController\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newController\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"upgradeController\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"globalConstraintsPre\",\"outputs\":[{\"name\":\"gcAddress\",\"type\":\"address\"},{\"name\":\"params\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"removeGlobalConstraint\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"externalTokenApproval\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"avatar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amountInWei\",\"type\":\"uint256\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"sendEther\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"mintTokens\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"unregisterSelf\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"burnReputation\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"globalConstraintsRegisterPost\",\"outputs\":[{\"name\":\"isRegistered\",\"type\":\"bool\"},{\"name\":\"index\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"globalConstraintsCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"nativeReputation\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"getNativeReputation\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_scheme\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"getSchemePermissions\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes4\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_scheme\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"isSchemeRegistered\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"externalTokenTransfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_metaData\",\"type\":\"string\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"metaData\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_contract\",\"type\":\"address\"},{\"name\":\"_data\",\"type\":\"bytes\"},{\"name\":\"_avatar\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"genericCall\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"},{\"name\":\"\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"schemes\",\"outputs\":[{\"name\":\"paramsHash\",\"type\":\"bytes32\"},{\"name\":\"permissions\",\"type\":\"bytes4\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"address\"}],\"name\":\"getGlobalConstraintParameters\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"nativeToken\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"name\":\"_params\",\"type\":\"bytes32\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"addGlobalConstraint\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_scheme\",\"type\":\"address\"},{\"name\":\"_paramsHash\",\"type\":\"bytes32\"},{\"name\":\"_permissions\",\"type\":\"bytes4\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"registerScheme\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"globalConstraintsPost\",\"outputs\":[{\"name\":\"gcAddress\",\"type\":\"address\"},{\"name\":\"params\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"mintReputation\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"isGlobalConstraintRegistered\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"},{\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"externalTokenTransferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_avatar\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"MintReputation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"BurnReputation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"MintTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_scheme\",\"type\":\"address\"}],\"name\":\"RegisterScheme\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_scheme\",\"type\":\"address\"}],\"name\":\"UnregisterScheme\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_oldController\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_newController\",\"type\":\"address\"}],\"name\":\"UpgradeController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_params\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_when\",\"type\":\"uint8\"}],\"name\":\"AddGlobalConstraint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_globalConstraint\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_index\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_isPre\",\"type\":\"bool\"}],\"name\":\"RemoveGlobalConstraint\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"A controller controls the organizations tokens, reputation and avatar. It is subject to a set of schemes and constraints that determine its behavior. Each scheme has it own parameters and operation permissions.\",\"methods\":{\"addGlobalConstraint(address,bytes32,address)\":{\"details\":\"add or update Global Constraint\",\"params\":{\"_globalConstraint\":\"the address of the global constraint to be added.\",\"_params\":\"the constraint parameters hash.\"},\"return\":\"bool which represents a success\"},\"burnReputation(uint256,address,address)\":{\"details\":\"Burns `_amount` of reputation from `_from`\",\"params\":{\"_amount\":\"amount of reputation to burn\",\"_from\":\"The address that will lose the reputation\"},\"return\":\"bool which represents a success\"},\"externalTokenApproval(address,address,uint256,address)\":{\"details\":\"externalTokenApproval approve the spender address to spend a specified amount of tokens     on behalf of msg.sender.\",\"params\":{\"_externalToken\":\"the address of the Token Contract\",\"_spender\":\"address\",\"_value\":\"the amount of ether (in Wei) which the approval is referring to.\"},\"return\":\"bool which represents a success\"},\"externalTokenTransfer(address,address,uint256,address)\":{\"details\":\"send some amount of arbitrary ERC20 Tokens\",\"params\":{\"_externalToken\":\"the address of the Token Contract\",\"_to\":\"address of the beneficiary\",\"_value\":\"the amount of ether (in Wei) to send\"},\"return\":\"bool which represents a success\"},\"externalTokenTransferFrom(address,address,address,uint256,address)\":{\"details\":\"transfer token \\\"from\\\" address \\\"to\\\" address     One must to approve the amount of tokens which can be spend from the     \\\"from\\\" account.This can be done using externalTokenApprove.\",\"params\":{\"_externalToken\":\"the address of the Token Contract\",\"_from\":\"address of the account to send from\",\"_to\":\"address of the beneficiary\",\"_value\":\"the amount of ether (in Wei) to send\"},\"return\":\"bool which represents a success\"},\"genericCall(address,bytes,address,uint256)\":{\"details\":\"perform a generic call to an arbitrary contract\",\"params\":{\"_avatar\":\"the controller's avatar address\",\"_contract\":\"the contract's address to call\",\"_data\":\"ABI-encoded contract call to call `_contract` address.\",\"_value\":\"value (ETH) to transfer with the transaction\"},\"return\":\"bool -success        bytes  - the return value of the called _contract's function.\"},\"getNativeReputation(address)\":{\"details\":\"getNativeReputation\",\"params\":{\"_avatar\":\"the organization avatar.\"},\"return\":\"organization native reputation\"},\"globalConstraintsCount(address)\":{\"details\":\"globalConstraintsCount return the global constraint pre and post count\",\"return\":\"uint256 globalConstraintsPre count.uint256 globalConstraintsPost count.\"},\"metaData(string,address)\":{\"details\":\"metaData emits an event with a string, should contain the hash of some meta data.\",\"params\":{\"_avatar\":\"Avatar\",\"_metaData\":\"a string representing a hash of the meta data\"},\"return\":\"bool which represents a success\"},\"mintReputation(uint256,address,address)\":{\"details\":\"Mint `_amount` of reputation that are assigned to `_to` .\",\"params\":{\"_amount\":\"amount of reputation to mint\",\"_to\":\"beneficiary address\"},\"return\":\"bool which represents a success\"},\"mintTokens(uint256,address,address)\":{\"details\":\"mint tokens .\",\"params\":{\"_amount\":\"amount of token to mint\",\"_beneficiary\":\"beneficiary address\"},\"return\":\"bool which represents a success\"},\"registerScheme(address,bytes32,bytes4,address)\":{\"details\":\"register a scheme\",\"params\":{\"_paramsHash\":\"a hashed configuration of the usage of the scheme\",\"_permissions\":\"the permissions the new scheme will have\",\"_scheme\":\"the address of the scheme\"},\"return\":\"bool which represents a success\"},\"removeGlobalConstraint(address,address)\":{\"details\":\"remove Global Constraint\",\"params\":{\"_globalConstraint\":\"the address of the global constraint to be remove.\"},\"return\":\"bool which represents a success\"},\"sendEther(uint256,address,address)\":{\"details\":\"send some ether\",\"params\":{\"_amountInWei\":\"the amount of ether (in Wei) to send\",\"_to\":\"address of the beneficiary\"},\"return\":\"bool which represents a success\"},\"unregisterScheme(address,address)\":{\"details\":\"unregister a scheme\",\"params\":{\"_scheme\":\"the address of the scheme\"},\"return\":\"bool which represents a success\"},\"unregisterSelf(address)\":{\"details\":\"unregister the caller's scheme\",\"return\":\"bool which represents a success\"},\"upgradeController(address,address)\":{\"details\":\"upgrade the Controller     The function will trigger an event 'UpgradeController'.\",\"params\":{\"_newController\":\"the address of the new controller.\"},\"return\":\"bool which represents a success\"}},\"title\":\"Controller contract\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/arc/contracts/controller/Controller.sol\":\"Controller\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzzr://b0af60e651a75274a028dc4b53d06091a46ca0efa3bfb4153879e76cf86a49dc\"]},\"@daostack/arc/contracts/controller/Controller.sol\":{\"keccak256\":\"0xb46102ed94ae64c1c4cdb758e0f35b652f3bea6f7a32fa1fe988cbbeb489872a\",\"urls\":[\"bzzr://9467146ce6219d7bef810e57371991ed2fac2d8bdf3aae036c226b1b8ecb162b\"]},\"@daostack/arc/contracts/controller/ControllerInterface.sol\":{\"keccak256\":\"0x933e92612c90f292c7b59908958b003f1a13d90b97bed0572b566353c20974dc\",\"urls\":[\"bzzr://e8050774c20b9b22636b47cdd353eaf5df72e0bca8f2b8569365be30f4eaef0c\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzzr://7ba306fdbad344e01474e3ae9c37b27b64efdc1cb17ffc0f3ec1c4427fde359d\"]},\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzzr://d1f293a0bbaa292296a83977cb36a14048db404a32e3f6aa9bd79ea61ac3c4c3\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzzr://cd706a2dc7540d093b591a280b464256c596ddad598b68886e6db2e7958f9916\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzzr://7f219e1874d4f1aea860cc665b75015797f55f149e9bf490abab5d7ad2adfeb9\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzzr://41ca38f6b0fa4b77b0feec43e422cfbec48b7eb38a41edf0b85c77e8d9a296b1\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzzr://08894efa2a557982070beda6a81a032407e70532d24bdafe80d39660c74904d9\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzzr://80cd02a56e6e33504318124d0d645c82e615cc8a4b5829cc9d82d17635c644c8\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzzr://f4ebb7c5b9e429b98b07e2caca6156c13c3724e9b1191cca8423ab8427bc6265\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzzr://48248e86f64407a95f241d6c5c8cfea6b4d4ebf4ebb467e5c98c8af3868fafe4\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzzr://63fc4af0d7a99a770925b96a6cf48f25fc00d30274266f82db05f30baa238267\"]}},\"version\":1}",
  "bytecode": "0x60806040523480156200001157600080fd5b5060405160208062003f0b833981018060405260208110156200003357600080fd5b505160018054600160a060020a031916600160a060020a038084169190911791829055604080517fe1758bd80000000000000000000000000000000000000000000000000000000081529051929091169163e1758bd891600480820192602092909190829003018186803b158015620000ab57600080fd5b505afa158015620000c0573d6000803e3d6000fd5b505050506040513d6020811015620000d757600080fd5b505160028054600160a060020a031916600160a060020a03928316179055600154604080517f89ae1c90000000000000000000000000000000000000000000000000000000008152905191909216916389ae1c90916004808301926020929190829003018186803b1580156200014c57600080fd5b505afa15801562000161573d6000803e3d6000fd5b505050506040513d60208110156200017857600080fd5b505160038054600160a060020a031916600160a060020a039092169190911790555060408051808201825260008082527c1f000000000000000000000000000000000000000000000000000000006020808401918252338352829052928120915182559151600191909101805463ffffffff19167c0100000000000000000000000000000000000000000000000000000000909204919091179055613ce79081906200022490396000f3fe608060405234801561001057600080fd5b50600436106101e95760003560e060020a9004806389ae1c9011610113578063e08738da116100a6578063e8c98b2211610075578063e8c98b2214610842578063eaf994b21461085f578063f76488be14610893578063fb4856a2146108c1576101e9565b8063e08738da14610792578063e1758bd8146107c0578063e4537a74146107c8578063e869d45f146107fe576101e9565b8063b9a04cdd116100e2578063b9a04cdd14610583578063c9b62eb1146105bf578063d1b7089a14610638578063db6149ce1461074a576101e9565b806389ae1c90146104dc5780638da03997146104e45780639b51e35a1461050a5780639be2faed14610555576101e9565b806351803cd81161018b5780636c525b131161015a5780636c525b131461041d5780636e94d27814610443578063814784f614610477578063824f2f1f1461049d576101e9565b806351803cd8146103715780635aef7de6146103ad578063634965da146103b55780636407e432146103e9576101e9565b80633a02263c116101c75780633a02263c146102b157806342427bf8146102d55780634422d372146103035780634f52b5be14610343576101e9565b8063039de01d146101ee578063177eebb0146102305780631c4d560814610271575b600080fd5b61021c6004803603604081101561020457600080fd5b50600160a060020a0381358116916020013516610907565b604080519115158252519081900360200190f35b6102566004803603602081101561024657600080fd5b5035600160a060020a0316610c60565b60408051921515835260208301919091528051918290030190f35b61029f6004803603604081101561028757600080fd5b50600160a060020a0381358116916020013516610c7f565b60408051918252519081900360200190f35b6102b9610cc1565b60408051600160a060020a039092168252519081900360200190f35b61021c600480360360408110156102eb57600080fd5b50600160a060020a0381358116916020013516610cd0565b6103206004803603602081101561031957600080fd5b5035611243565b60408051600160a060020a03909316835260208301919091528051918290030190f35b61021c6004803603604081101561035957600080fd5b50600160a060020a0381358116916020013516611279565b61021c6004803603608081101561038757600080fd5b50600160a060020a038135811691602081013582169160408201359160600135166116ad565b6102b96119b5565b61021c600480360360608110156103cb57600080fd5b50803590600160a060020a03602082013581169160400135166119c4565b61021c600480360360608110156103ff57600080fd5b50803590600160a060020a0360208201358116916040013516611cc3565b61021c6004803603602081101561043357600080fd5b5035600160a060020a0316611ff9565b61021c6004803603606081101561045957600080fd5b50803590600160a060020a0360208201358116916040013516612082565b6102566004803603602081101561048d57600080fd5b5035600160a060020a03166123b8565b6104c3600480360360208110156104b357600080fd5b5035600160a060020a03166123d7565b6040805192835260208301919091528051918290030190f35b6102b9612409565b6102b9600480360360208110156104fa57600080fd5b5035600160a060020a0316612418565b6105386004803603604081101561052057600080fd5b50600160a060020a038135811691602001351661244a565b60408051600160e060020a03199092168252519081900360200190f35b61021c6004803603604081101561056b57600080fd5b50600160a060020a0381358116916020013516612490565b61021c6004803603608081101561059957600080fd5b50600160a060020a038135811691602081013582169160408201359160600135166124c0565b61021c600480360360408110156105d557600080fd5b8101906020810181356401000000008111156105f057600080fd5b82018360208201111561060257600080fd5b8035906020019184600183028401116401000000008311171561062457600080fd5b919350915035600160a060020a03166127be565b6106c76004803603608081101561064e57600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561067957600080fd5b82018360208201111561068b57600080fd5b803590602001918460018302840111640100000000831117156106ad57600080fd5b9193509150600160a060020a0381351690602001356128e3565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561070e5781810151838201526020016106f6565b50505050905090810190601f16801561073b5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6107706004803603602081101561076057600080fd5b5035600160a060020a0316612ca4565b60408051928352600160e060020a031990911660208301528051918290030190f35b61029f600480360360408110156107a857600080fd5b50600160a060020a0381358116916020013516612cc3565b6102b9612d93565b61021c600480360360608110156107de57600080fd5b50600160a060020a03813581169160208101359160409091013516612da2565b61021c6004803603608081101561081457600080fd5b50600160a060020a038135811691602081013591600160e060020a03196040830135169160600135166131ab565b6103206004803603602081101561085857600080fd5b5035613554565b61021c6004803603606081101561087557600080fd5b50803590600160a060020a0360208201358116916040013516613562565b61021c600480360360408110156108a957600080fd5b50600160a060020a0381358116916020013516613898565b61021c600480360360a08110156108d757600080fd5b50600160a060020a03813581169160208101358216916040820135811691606081013591608090910135166138fa565b3360009081526020819052604081206001015460e060020a027c02000000000000000000000000000000000000000000000000000000009081161461094b57600080fd5b7f756e7265676973746572536368656d650000000000000000000000000000000060005b600554811015610a6557600580548290811061098757fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab2913391859081106109ba57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015610a2657600080fd5b505af1158015610a3a573d6000803e3d6000fd5b505050506040513d6020811015610a5057600080fd5b50511515610a5d57600080fd5b60010161096f565b6001548490600160a060020a03808316911614610a8157600080fd5b610a8a86613c0b565b1515610a995760009350610b5c565b33600090815260208190526040808220600190810154600160a060020a038a168452919092209091015460e060020a918202199102167c1f000000000000000000000000000000000000000000000000000000001615610af857600080fd5b604051600160a060020a0387169033907f10bb2cf04cb8b902a8e736d494f1a51003be6d4b16ef6fb95ce62c38445023bf90600090a3600160a060020a03861660009081526020819052604081209081556001908101805463ffffffff1916905593505b50600090505b600654811015610c58576006805482908110610b7a57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110610bad57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015610c1957600080fd5b505af1158015610c2d573d6000803e3d6000fd5b505050506040513d6020811015610c4357600080fd5b50511515610c5057600080fd5b600101610b62565b505092915050565b6007602052600090815260409020805460019091015460ff9091169082565b6001546000908290600160a060020a03808316911614610c9e57600080fd5b600160a060020a03841660009081526020819052604090205491505b5092915050565b600454600160a060020a031681565b3360009081526020819052604081206001015460e060020a027c080000000000000000000000000000000000000000000000000000000090811614610d1457600080fd5b6001548290600160a060020a03808316911614610d3057600080fd5b600454600160a060020a031615610d4657600080fd5b600160a060020a0384161515610d5b57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038681169182178355600154604080517ff2fde38b00000000000000000000000000000000000000000000000000000000815294850193909352915191169163f2fde38b91602480830192600092919082900301818387803b158015610de257600080fd5b505af1158015610df6573d6000803e3d6000fd5b5050505083600160a060020a0316600160009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b158015610e5557600080fd5b505afa158015610e69573d6000803e3d6000fd5b505050506040513d6020811015610e7f57600080fd5b5051600160a060020a031614610e9457600080fd5b600254604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290513092600160a060020a031691638da5cb5b916004808301926020929190829003018186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d6020811015610f1b57600080fd5b5051600160a060020a0316141561104557600254604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0387811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b5050505083600160a060020a0316600260009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d602081101561103057600080fd5b5051600160a060020a03161461104557600080fd5b600354604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290513092600160a060020a031691638da5cb5b916004808301926020929190829003018186803b1580156110a257600080fd5b505afa1580156110b6573d6000803e3d6000fd5b505050506040513d60208110156110cc57600080fd5b5051600160a060020a031614156111f657600354604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0387811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b15801561114457600080fd5b505af1158015611158573d6000803e3d6000fd5b5050505083600160a060020a0316600360009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b1580156111b757600080fd5b505afa1580156111cb573d6000803e3d6000fd5b505050506040513d60208110156111e157600080fd5b5051600160a060020a0316146111f657600080fd5b60045460408051600160a060020a039290921682525130917fdb7cbacf8df312d794506c0cc9af07f64d29ca075796ea2e950a3832cc9a63dd919081900360200190a25060019392505050565b600580548290811061125157fe5b600091825260209091206002909102018054600190910154600160a060020a03909116915082565b3360009081526020819052604081206001015460e060020a027c0400000000000000000000000000000000000000000000000000000000908116146112bd57600080fd5b6001548290600160a060020a038083169116146112d957600080fd5b6112e1613c34565b6112e9613c34565b600086600160a060020a031663e2b0caef6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561132957600080fd5b505af115801561133d573d6000803e3d6000fd5b505050506040513d602081101561135357600080fd5b5051905060008082600281111561136657fe5b148061137d5750600282600281111561137b57fe5b145b156114ce57600160a060020a0388166000908152600760209081526040918290208251808401909352805460ff161580158452600190910154918301919091529094506114ce576001600580549050038460200151101561148f576005805460001981019081106113ea57fe5b6000918252602091829020604080518082019091526002909202018054600160a060020a03168252600101548183015290850151600580549295508592909190811061143257fe5b60009182526020808320845160029390930201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03938416178155938101516001948501558781015187519092168352600790526040909120909101555b60058054906114a2906000198301613c4b565b5050600160a060020a0387166000908152600760205260408120805460ff191681556001908101919091555b60018260028111156114dc57fe5b14806114f3575060028260028111156114f157fe5b145b1561164457600160a060020a0388166000908152600860209081526040918290208251808401909352805460ff1615801584526001909101549183019190915290945061164457600160068054905003846020015110156116055760068054600019810190811061156057fe5b6000918252602091829020604080518082019091526002909202018054600160a060020a0316825260010154818301529085015160068054929550859290919081106115a857fe5b60009182526020808320845160029390930201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03938416178155938101516001948501558781015187519092168352600890526040909120909101555b6006805490611618906000198301613c4b565b5050600160a060020a0387166000908152600860205260408120805460ff191681556001908101919091555b80156116a2576020840151600160a060020a038916907fcdf1a50ea6b7de555bd409f8a4a53ea43c6dc6b4caa961889da9e005f21bbaa990600085600281111561168a57fe5b60408051938452911460208301528051918290030190a25b979650505050505050565b3360009081526020819052604081206001015460e060020a9081028116146116d457600080fd5b7f65787465726e616c546f6b656e496e637265617365417070726f76616c00000060005b6005548110156117ee57600580548290811061171057fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061174357fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156117af57600080fd5b505af11580156117c3573d6000803e3d6000fd5b505050506040513d60208110156117d957600080fd5b505115156117e657600080fd5b6001016116f8565b6001548490600160a060020a0380831691161461180a57600080fd5b600154604080517fab751f71000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a90529151919092169163ab751f719160648083019260209291908290030181600087803b15801561188157600080fd5b505af1158015611895573d6000803e3d6000fd5b505050506040513d60208110156118ab57600080fd5b5051935050600090505b6006548110156119ab5760068054829081106118cd57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061190057fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561196c57600080fd5b505af1158015611980573d6000803e3d6000fd5b505050506040513d602081101561199657600080fd5b505115156119a357600080fd5b6001016118b5565b5050949350505050565b600154600160a060020a031681565b3360009081526020819052604081206001015460e060020a9081028116146119eb57600080fd5b7f73656e644574686572000000000000000000000000000000000000000000000060005b600554811015611b05576005805482908110611a2757fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab291339185908110611a5a57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611ac657600080fd5b505af1158015611ada573d6000803e3d6000fd5b505050506040513d6020811015611af057600080fd5b50511515611afd57600080fd5b600101611a0f565b6001548490600160a060020a03808316911614611b2157600080fd5b600154604080517fcb16d4a2000000000000000000000000000000000000000000000000000000008152600481018a9052600160a060020a0389811660248301529151919092169163cb16d4a29160448083019260209291908290030181600087803b158015611b9057600080fd5b505af1158015611ba4573d6000803e3d6000fd5b505050506040513d6020811015611bba57600080fd5b5051935050600090505b600654811015611cba576006805482908110611bdc57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110611c0f57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611c7b57600080fd5b505af1158015611c8f573d6000803e3d6000fd5b505050506040513d6020811015611ca557600080fd5b50511515611cb257600080fd5b600101611bc4565b50509392505050565b3360009081526020819052604081206001015460e060020a908102811614611cea57600080fd5b7f6d696e74546f6b656e730000000000000000000000000000000000000000000060005b600554811015611e04576005805482908110611d2657fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab291339185908110611d5957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611dc557600080fd5b505af1158015611dd9573d6000803e3d6000fd5b505050506040513d6020811015611def57600080fd5b50511515611dfc57600080fd5b600101611d0e565b6001548490600160a060020a03808316911614611e2057600080fd5b604080518881529051600160a060020a0388169133917f21f9c9a1a1f9a311a50f15fec5c1faa9e21fc9edf964f0fdecba5bd490484c5e9181900360200190a3600254604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b9052915191909216916340c10f199160448083019260209291908290030181600087803b158015611ecf57600080fd5b505af1158015611ee3573d6000803e3d6000fd5b505050506040513d6020811015611ef957600080fd5b5051935050600090505b600654811015611cba576006805482908110611f1b57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110611f4e57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611fba57600080fd5b505af1158015611fce573d6000803e3d6000fd5b505050506040513d6020811015611fe457600080fd5b50511515611ff157600080fd5b600101611f03565b6001546000908290600160a060020a0380831691161461201857600080fd5b61202133613c0b565b1515612030576000915061207c565b33600081815260208190526040808220828155600101805463ffffffff191690555182917f10bb2cf04cb8b902a8e736d494f1a51003be6d4b16ef6fb95ce62c38445023bf91a3600191505b50919050565b3360009081526020819052604081206001015460e060020a9081028116146120a957600080fd5b7f6275726e52657075746174696f6e00000000000000000000000000000000000060005b6005548110156121c35760058054829081106120e557fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061211857fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561218457600080fd5b505af1158015612198573d6000803e3d6000fd5b505050506040513d60208110156121ae57600080fd5b505115156121bb57600080fd5b6001016120cd565b6001548490600160a060020a038083169116146121df57600080fd5b604080518881529051600160a060020a0388169133917f186d8887e1b22f9d9b16849c36baa748950d09d9c9b67a4a6ea140eaad00c21c9181900360200190a3600354604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b905291519190921691639dc29fac9160448083019260209291908290030181600087803b15801561228e57600080fd5b505af11580156122a2573d6000803e3d6000fd5b505050506040513d60208110156122b857600080fd5b5051935050600090505b600654811015611cba5760068054829081106122da57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061230d57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561237957600080fd5b505af115801561238d573d6000803e3d6000fd5b505050506040513d60208110156123a357600080fd5b505115156123b057600080fd5b6001016122c2565b6008602052600090815260409020805460019091015460ff9091169082565b60015460009081908390600160a060020a038083169116146123f857600080fd5b600554600654909350915050915091565b600354600160a060020a031681565b6001546000908290600160a060020a0380831691161461243757600080fd5b5050600354600160a060020a0316919050565b6001546000908290600160a060020a0380831691161461246957600080fd5b505050600160a060020a031660009081526020819052604090206001015460e060020a0290565b6001546000908290600160a060020a038083169116146124af57600080fd5b6124b884613c0b565b949350505050565b3360009081526020819052604081206001015460e060020a9081028116146124e757600080fd5b7f65787465726e616c546f6b656e5472616e73666572000000000000000000000060005b60055481101561260157600580548290811061252357fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061255657fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156125c257600080fd5b505af11580156125d6573d6000803e3d6000fd5b505050506040513d60208110156125ec57600080fd5b505115156125f957600080fd5b60010161250b565b6001548490600160a060020a0380831691161461261d57600080fd5b600154604080517fdab0efff000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a90529151919092169163dab0efff9160648083019260209291908290030181600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050506040513d60208110156126be57600080fd5b5051935050600090505b6006548110156119ab5760068054829081106126e057fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061271357fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561277f57600080fd5b505af1158015612793573d6000803e3d6000fd5b505050506040513d60208110156127a957600080fd5b505115156127b657600080fd5b6001016126c8565b3360009081526020819052604081206001015460e060020a027c10000000000000000000000000000000000000000000000000000000009081161461280257600080fd5b6001548290600160a060020a0380831691161461281e57600080fd5b6001546040517f890ac46c00000000000000000000000000000000000000000000000000000000815260206004820190815260248201879052600160a060020a039092169163890ac46c91889188918190604401848480828437600081840152601f19601f8201169050808301925050509350505050602060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050506040513d60208110156128d857600080fd5b505195945050505050565b3360009081526020819052604081206001015460609060e060020a027c10000000000000000000000000000000000000000000000000000000009081161461292a57600080fd5b7f67656e6572696343616c6c00000000000000000000000000000000000000000060005b600554811015612a4457600580548290811061296657fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061299957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015612a0557600080fd5b505af1158015612a19573d6000803e3d6000fd5b505050506040513d6020811015612a2f57600080fd5b50511515612a3c57600080fd5b60010161294e565b6001548690600160a060020a03808316911614612a6057600080fd5b6001546040517f2bf16458000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301908152604483018a9052606060248401908152606484018d90529190931692632bf16458928e928e928e928d9290608401858580828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015612b0757600080fd5b505af1158015612b1b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015612b4457600080fd5b815160208301805191939283019291640100000000811115612b6557600080fd5b82016020810184811115612b7857600080fd5b8151640100000000811182820187101715612b9257600080fd5b5094995097505050505050600090505b600654811015612c98576006805482908110612bba57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110612bed57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015612c5957600080fd5b505af1158015612c6d573d6000803e3d6000fd5b505050506040513d6020811015612c8357600080fd5b50511515612c9057600080fd5b600101612ba2565b50509550959350505050565b6000602081905290815260409020805460019091015460e060020a0282565b6000612ccd613c34565b50600160a060020a0383166000908152600760209081526040918290208251808401909352805460ff16158015845260019091015491830191909152612d3a5760058160200151815481101515612d2057fe5b906000526020600020906002020160010154915050612d8d565b50600160a060020a0383166000908152600860209081526040918290208251808401909352805460ff16158015845260019091015491830191909152610cba5760068160200151815481101515612d2057fe5b92915050565b600254600160a060020a031681565b3360009081526020819052604081206001015460e060020a027c040000000000000000000000000000000000000000000000000000000090811614612de657600080fd5b6001548290600160a060020a03808316911614612e0257600080fd5b600085600160a060020a031663e2b0caef6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015612e4257600080fd5b505af1158015612e56573d6000803e3d6000fd5b505050506040513d6020811015612e6c57600080fd5b505190506000816002811115612e7e57fe5b1480612e9557506002816002811115612e9357fe5b145b15612fdc57600160a060020a03861660009081526007602052604090205460ff161515612f9b57604080518082018252600160a060020a0388811680835260208084018a81526005805460018082018355600083815297517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06002909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919098161790965591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db190920191909155855180870187528481529054600019018183019081529285526007909152939092209251835460ff19169015151783559051910155612fdc565b600160a060020a038616600090815260076020526040902060010154600580548792908110612fc657fe5b9060005260206000209060020201600101819055505b6001816002811115612fea57fe5b148061300157506002816002811115612fff57fe5b145b1561314857600160a060020a03861660009081526008602052604090205460ff16151561310757604080518082018252600160a060020a0388811680835260208084018a81526006805460018082018355600083815297517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f6002909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919098161790965591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090920191909155855180870187528481529054600019018183019081529285526008909152939092209251835460ff19169015151783559051910155613148565b600160a060020a03861660009081526008602052604090206001015460068054879290811061313257fe5b9060005260206000209060020201600101819055505b85600160a060020a03167f78800d7333b8d0174a0845569e3913b7ce4a3c03ca444dd9904172fc14f2fdad86836040518083815260200182600281111561318b57fe5b60ff1681526020019250505060405180910390a250600195945050505050565b3360009081526020819052604081206001015460e060020a027c0200000000000000000000000000000000000000000000000000000000908116146131ef57600080fd5b7f7265676973746572536368656d6500000000000000000000000000000000000060005b60055481101561330957600580548290811061322b57fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061325e57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156132ca57600080fd5b505af11580156132de573d6000803e3d6000fd5b505050506040513d60208110156132f457600080fd5b5051151561330157600080fd5b600101613213565b6001548490600160a060020a0380831691161461332557600080fd5b61332d613c34565b50600160a060020a0388166000908152602081815260408083208151808301835281548152600191820154600160e060020a031960e060020a918202168286019081523387529486905292909420015491518918910219167c1f0000000000000000000000000000000000000000000000000000000016156133ae57600080fd5b33600090815260208181526040909120600101549082015160e060020a90910219167c1f0000000000000000000000000000000000000000000000000000000016156133f957600080fd5b600160a060020a0389166000818152602081905260408082208b8155600101805463ffffffff191660e060020a8c8117041790555133917f546816e99403df442acb68ef69562682a50762c20a3fb6b472f7af9923736cfc91a3600194505050600090505b6006548110156119ab57600680548290811061347657fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d913391859081106134a957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561351557600080fd5b505af1158015613529573d6000803e3d6000fd5b505050506040513d602081101561353f57600080fd5b5051151561354c57600080fd5b60010161345e565b600680548290811061125157fe5b3360009081526020819052604081206001015460e060020a90810281161461358957600080fd5b7f6d696e7452657075746174696f6e00000000000000000000000000000000000060005b6005548110156136a35760058054829081106135c557fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab2913391859081106135f857fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561366457600080fd5b505af1158015613678573d6000803e3d6000fd5b505050506040513d602081101561368e57600080fd5b5051151561369b57600080fd5b6001016135ad565b6001548490600160a060020a038083169116146136bf57600080fd5b604080518881529051600160a060020a0388169133917f837f2931e3df0592458212be4e470025f197feb7a8e39deb5b7f1f1d42e6f2629181900360200190a3600354604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b9052915191909216916340c10f199160448083019260209291908290030181600087803b15801561376e57600080fd5b505af1158015613782573d6000803e3d6000fd5b505050506040513d602081101561379857600080fd5b5051935050600090505b600654811015611cba5760068054829081106137ba57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d913391859081106137ed57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561385957600080fd5b505af115801561386d573d6000803e3d6000fd5b505050506040513d602081101561388357600080fd5b5051151561389057600080fd5b6001016137a2565b6001546000908290600160a060020a038083169116146138b757600080fd5b600160a060020a03841660009081526007602052604090205460ff16806124b85750505050600160a060020a031660009081526008602052604090205460ff1690565b3360009081526020819052604081206001015460e060020a90810281161461392157600080fd5b7f65787465726e616c546f6b656e5472616e7366657246726f6d0000000000000060005b600554811015613a3b57600580548290811061395d57fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061399057fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156139fc57600080fd5b505af1158015613a10573d6000803e3d6000fd5b505050506040513d6020811015613a2657600080fd5b50511515613a3357600080fd5b600101613945565b6001548490600160a060020a03808316911614613a5757600080fd5b600154604080517fb756d5a2000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301528b811660248301528a81166044830152606482018a90529151919092169163b756d5a29160848083019260209291908290030181600087803b158015613ad657600080fd5b505af1158015613aea573d6000803e3d6000fd5b505050506040513d6020811015613b0057600080fd5b5051935050600090505b600654811015613c00576006805482908110613b2257fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110613b5557fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015613bc157600080fd5b505af1158015613bd5573d6000803e3d6000fd5b505050506040513d6020811015613beb57600080fd5b50511515613bf857600080fd5b600101613b0a565b505095945050505050565b600160a060020a031660009081526020819052604090206001015460e060020a90810216151590565b604080518082019091526000808252602082015290565b815481835581811115613c7757600202816002028360005260206000209182019101613c779190613c7c565b505050565b613cb891905b80821115613cb457805473ffffffffffffffffffffffffffffffffffffffff1916815560006001820155600201613c82565b5090565b9056fea165627a7a7230582065609c24b6d8d712077fb073f8adcd9fc687f8841814613e8cf2f4c07ba056070029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101e95760003560e060020a9004806389ae1c9011610113578063e08738da116100a6578063e8c98b2211610075578063e8c98b2214610842578063eaf994b21461085f578063f76488be14610893578063fb4856a2146108c1576101e9565b8063e08738da14610792578063e1758bd8146107c0578063e4537a74146107c8578063e869d45f146107fe576101e9565b8063b9a04cdd116100e2578063b9a04cdd14610583578063c9b62eb1146105bf578063d1b7089a14610638578063db6149ce1461074a576101e9565b806389ae1c90146104dc5780638da03997146104e45780639b51e35a1461050a5780639be2faed14610555576101e9565b806351803cd81161018b5780636c525b131161015a5780636c525b131461041d5780636e94d27814610443578063814784f614610477578063824f2f1f1461049d576101e9565b806351803cd8146103715780635aef7de6146103ad578063634965da146103b55780636407e432146103e9576101e9565b80633a02263c116101c75780633a02263c146102b157806342427bf8146102d55780634422d372146103035780634f52b5be14610343576101e9565b8063039de01d146101ee578063177eebb0146102305780631c4d560814610271575b600080fd5b61021c6004803603604081101561020457600080fd5b50600160a060020a0381358116916020013516610907565b604080519115158252519081900360200190f35b6102566004803603602081101561024657600080fd5b5035600160a060020a0316610c60565b60408051921515835260208301919091528051918290030190f35b61029f6004803603604081101561028757600080fd5b50600160a060020a0381358116916020013516610c7f565b60408051918252519081900360200190f35b6102b9610cc1565b60408051600160a060020a039092168252519081900360200190f35b61021c600480360360408110156102eb57600080fd5b50600160a060020a0381358116916020013516610cd0565b6103206004803603602081101561031957600080fd5b5035611243565b60408051600160a060020a03909316835260208301919091528051918290030190f35b61021c6004803603604081101561035957600080fd5b50600160a060020a0381358116916020013516611279565b61021c6004803603608081101561038757600080fd5b50600160a060020a038135811691602081013582169160408201359160600135166116ad565b6102b96119b5565b61021c600480360360608110156103cb57600080fd5b50803590600160a060020a03602082013581169160400135166119c4565b61021c600480360360608110156103ff57600080fd5b50803590600160a060020a0360208201358116916040013516611cc3565b61021c6004803603602081101561043357600080fd5b5035600160a060020a0316611ff9565b61021c6004803603606081101561045957600080fd5b50803590600160a060020a0360208201358116916040013516612082565b6102566004803603602081101561048d57600080fd5b5035600160a060020a03166123b8565b6104c3600480360360208110156104b357600080fd5b5035600160a060020a03166123d7565b6040805192835260208301919091528051918290030190f35b6102b9612409565b6102b9600480360360208110156104fa57600080fd5b5035600160a060020a0316612418565b6105386004803603604081101561052057600080fd5b50600160a060020a038135811691602001351661244a565b60408051600160e060020a03199092168252519081900360200190f35b61021c6004803603604081101561056b57600080fd5b50600160a060020a0381358116916020013516612490565b61021c6004803603608081101561059957600080fd5b50600160a060020a038135811691602081013582169160408201359160600135166124c0565b61021c600480360360408110156105d557600080fd5b8101906020810181356401000000008111156105f057600080fd5b82018360208201111561060257600080fd5b8035906020019184600183028401116401000000008311171561062457600080fd5b919350915035600160a060020a03166127be565b6106c76004803603608081101561064e57600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561067957600080fd5b82018360208201111561068b57600080fd5b803590602001918460018302840111640100000000831117156106ad57600080fd5b9193509150600160a060020a0381351690602001356128e3565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561070e5781810151838201526020016106f6565b50505050905090810190601f16801561073b5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6107706004803603602081101561076057600080fd5b5035600160a060020a0316612ca4565b60408051928352600160e060020a031990911660208301528051918290030190f35b61029f600480360360408110156107a857600080fd5b50600160a060020a0381358116916020013516612cc3565b6102b9612d93565b61021c600480360360608110156107de57600080fd5b50600160a060020a03813581169160208101359160409091013516612da2565b61021c6004803603608081101561081457600080fd5b50600160a060020a038135811691602081013591600160e060020a03196040830135169160600135166131ab565b6103206004803603602081101561085857600080fd5b5035613554565b61021c6004803603606081101561087557600080fd5b50803590600160a060020a0360208201358116916040013516613562565b61021c600480360360408110156108a957600080fd5b50600160a060020a0381358116916020013516613898565b61021c600480360360a08110156108d757600080fd5b50600160a060020a03813581169160208101358216916040820135811691606081013591608090910135166138fa565b3360009081526020819052604081206001015460e060020a027c02000000000000000000000000000000000000000000000000000000009081161461094b57600080fd5b7f756e7265676973746572536368656d650000000000000000000000000000000060005b600554811015610a6557600580548290811061098757fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab2913391859081106109ba57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015610a2657600080fd5b505af1158015610a3a573d6000803e3d6000fd5b505050506040513d6020811015610a5057600080fd5b50511515610a5d57600080fd5b60010161096f565b6001548490600160a060020a03808316911614610a8157600080fd5b610a8a86613c0b565b1515610a995760009350610b5c565b33600090815260208190526040808220600190810154600160a060020a038a168452919092209091015460e060020a918202199102167c1f000000000000000000000000000000000000000000000000000000001615610af857600080fd5b604051600160a060020a0387169033907f10bb2cf04cb8b902a8e736d494f1a51003be6d4b16ef6fb95ce62c38445023bf90600090a3600160a060020a03861660009081526020819052604081209081556001908101805463ffffffff1916905593505b50600090505b600654811015610c58576006805482908110610b7a57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110610bad57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015610c1957600080fd5b505af1158015610c2d573d6000803e3d6000fd5b505050506040513d6020811015610c4357600080fd5b50511515610c5057600080fd5b600101610b62565b505092915050565b6007602052600090815260409020805460019091015460ff9091169082565b6001546000908290600160a060020a03808316911614610c9e57600080fd5b600160a060020a03841660009081526020819052604090205491505b5092915050565b600454600160a060020a031681565b3360009081526020819052604081206001015460e060020a027c080000000000000000000000000000000000000000000000000000000090811614610d1457600080fd5b6001548290600160a060020a03808316911614610d3057600080fd5b600454600160a060020a031615610d4657600080fd5b600160a060020a0384161515610d5b57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038681169182178355600154604080517ff2fde38b00000000000000000000000000000000000000000000000000000000815294850193909352915191169163f2fde38b91602480830192600092919082900301818387803b158015610de257600080fd5b505af1158015610df6573d6000803e3d6000fd5b5050505083600160a060020a0316600160009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b158015610e5557600080fd5b505afa158015610e69573d6000803e3d6000fd5b505050506040513d6020811015610e7f57600080fd5b5051600160a060020a031614610e9457600080fd5b600254604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290513092600160a060020a031691638da5cb5b916004808301926020929190829003018186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d6020811015610f1b57600080fd5b5051600160a060020a0316141561104557600254604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0387811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b5050505083600160a060020a0316600260009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d602081101561103057600080fd5b5051600160a060020a03161461104557600080fd5b600354604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290513092600160a060020a031691638da5cb5b916004808301926020929190829003018186803b1580156110a257600080fd5b505afa1580156110b6573d6000803e3d6000fd5b505050506040513d60208110156110cc57600080fd5b5051600160a060020a031614156111f657600354604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0387811660048301529151919092169163f2fde38b91602480830192600092919082900301818387803b15801561114457600080fd5b505af1158015611158573d6000803e3d6000fd5b5050505083600160a060020a0316600360009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a02815260040160206040518083038186803b1580156111b757600080fd5b505afa1580156111cb573d6000803e3d6000fd5b505050506040513d60208110156111e157600080fd5b5051600160a060020a0316146111f657600080fd5b60045460408051600160a060020a039290921682525130917fdb7cbacf8df312d794506c0cc9af07f64d29ca075796ea2e950a3832cc9a63dd919081900360200190a25060019392505050565b600580548290811061125157fe5b600091825260209091206002909102018054600190910154600160a060020a03909116915082565b3360009081526020819052604081206001015460e060020a027c0400000000000000000000000000000000000000000000000000000000908116146112bd57600080fd5b6001548290600160a060020a038083169116146112d957600080fd5b6112e1613c34565b6112e9613c34565b600086600160a060020a031663e2b0caef6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561132957600080fd5b505af115801561133d573d6000803e3d6000fd5b505050506040513d602081101561135357600080fd5b5051905060008082600281111561136657fe5b148061137d5750600282600281111561137b57fe5b145b156114ce57600160a060020a0388166000908152600760209081526040918290208251808401909352805460ff161580158452600190910154918301919091529094506114ce576001600580549050038460200151101561148f576005805460001981019081106113ea57fe5b6000918252602091829020604080518082019091526002909202018054600160a060020a03168252600101548183015290850151600580549295508592909190811061143257fe5b60009182526020808320845160029390930201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03938416178155938101516001948501558781015187519092168352600790526040909120909101555b60058054906114a2906000198301613c4b565b5050600160a060020a0387166000908152600760205260408120805460ff191681556001908101919091555b60018260028111156114dc57fe5b14806114f3575060028260028111156114f157fe5b145b1561164457600160a060020a0388166000908152600860209081526040918290208251808401909352805460ff1615801584526001909101549183019190915290945061164457600160068054905003846020015110156116055760068054600019810190811061156057fe5b6000918252602091829020604080518082019091526002909202018054600160a060020a0316825260010154818301529085015160068054929550859290919081106115a857fe5b60009182526020808320845160029390930201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03938416178155938101516001948501558781015187519092168352600890526040909120909101555b6006805490611618906000198301613c4b565b5050600160a060020a0387166000908152600860205260408120805460ff191681556001908101919091555b80156116a2576020840151600160a060020a038916907fcdf1a50ea6b7de555bd409f8a4a53ea43c6dc6b4caa961889da9e005f21bbaa990600085600281111561168a57fe5b60408051938452911460208301528051918290030190a25b979650505050505050565b3360009081526020819052604081206001015460e060020a9081028116146116d457600080fd5b7f65787465726e616c546f6b656e496e637265617365417070726f76616c00000060005b6005548110156117ee57600580548290811061171057fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061174357fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156117af57600080fd5b505af11580156117c3573d6000803e3d6000fd5b505050506040513d60208110156117d957600080fd5b505115156117e657600080fd5b6001016116f8565b6001548490600160a060020a0380831691161461180a57600080fd5b600154604080517fab751f71000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a90529151919092169163ab751f719160648083019260209291908290030181600087803b15801561188157600080fd5b505af1158015611895573d6000803e3d6000fd5b505050506040513d60208110156118ab57600080fd5b5051935050600090505b6006548110156119ab5760068054829081106118cd57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061190057fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561196c57600080fd5b505af1158015611980573d6000803e3d6000fd5b505050506040513d602081101561199657600080fd5b505115156119a357600080fd5b6001016118b5565b5050949350505050565b600154600160a060020a031681565b3360009081526020819052604081206001015460e060020a9081028116146119eb57600080fd5b7f73656e644574686572000000000000000000000000000000000000000000000060005b600554811015611b05576005805482908110611a2757fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab291339185908110611a5a57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611ac657600080fd5b505af1158015611ada573d6000803e3d6000fd5b505050506040513d6020811015611af057600080fd5b50511515611afd57600080fd5b600101611a0f565b6001548490600160a060020a03808316911614611b2157600080fd5b600154604080517fcb16d4a2000000000000000000000000000000000000000000000000000000008152600481018a9052600160a060020a0389811660248301529151919092169163cb16d4a29160448083019260209291908290030181600087803b158015611b9057600080fd5b505af1158015611ba4573d6000803e3d6000fd5b505050506040513d6020811015611bba57600080fd5b5051935050600090505b600654811015611cba576006805482908110611bdc57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110611c0f57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611c7b57600080fd5b505af1158015611c8f573d6000803e3d6000fd5b505050506040513d6020811015611ca557600080fd5b50511515611cb257600080fd5b600101611bc4565b50509392505050565b3360009081526020819052604081206001015460e060020a908102811614611cea57600080fd5b7f6d696e74546f6b656e730000000000000000000000000000000000000000000060005b600554811015611e04576005805482908110611d2657fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab291339185908110611d5957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611dc557600080fd5b505af1158015611dd9573d6000803e3d6000fd5b505050506040513d6020811015611def57600080fd5b50511515611dfc57600080fd5b600101611d0e565b6001548490600160a060020a03808316911614611e2057600080fd5b604080518881529051600160a060020a0388169133917f21f9c9a1a1f9a311a50f15fec5c1faa9e21fc9edf964f0fdecba5bd490484c5e9181900360200190a3600254604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b9052915191909216916340c10f199160448083019260209291908290030181600087803b158015611ecf57600080fd5b505af1158015611ee3573d6000803e3d6000fd5b505050506040513d6020811015611ef957600080fd5b5051935050600090505b600654811015611cba576006805482908110611f1b57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110611f4e57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015611fba57600080fd5b505af1158015611fce573d6000803e3d6000fd5b505050506040513d6020811015611fe457600080fd5b50511515611ff157600080fd5b600101611f03565b6001546000908290600160a060020a0380831691161461201857600080fd5b61202133613c0b565b1515612030576000915061207c565b33600081815260208190526040808220828155600101805463ffffffff191690555182917f10bb2cf04cb8b902a8e736d494f1a51003be6d4b16ef6fb95ce62c38445023bf91a3600191505b50919050565b3360009081526020819052604081206001015460e060020a9081028116146120a957600080fd5b7f6275726e52657075746174696f6e00000000000000000000000000000000000060005b6005548110156121c35760058054829081106120e557fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061211857fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561218457600080fd5b505af1158015612198573d6000803e3d6000fd5b505050506040513d60208110156121ae57600080fd5b505115156121bb57600080fd5b6001016120cd565b6001548490600160a060020a038083169116146121df57600080fd5b604080518881529051600160a060020a0388169133917f186d8887e1b22f9d9b16849c36baa748950d09d9c9b67a4a6ea140eaad00c21c9181900360200190a3600354604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b905291519190921691639dc29fac9160448083019260209291908290030181600087803b15801561228e57600080fd5b505af11580156122a2573d6000803e3d6000fd5b505050506040513d60208110156122b857600080fd5b5051935050600090505b600654811015611cba5760068054829081106122da57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061230d57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561237957600080fd5b505af115801561238d573d6000803e3d6000fd5b505050506040513d60208110156123a357600080fd5b505115156123b057600080fd5b6001016122c2565b6008602052600090815260409020805460019091015460ff9091169082565b60015460009081908390600160a060020a038083169116146123f857600080fd5b600554600654909350915050915091565b600354600160a060020a031681565b6001546000908290600160a060020a0380831691161461243757600080fd5b5050600354600160a060020a0316919050565b6001546000908290600160a060020a0380831691161461246957600080fd5b505050600160a060020a031660009081526020819052604090206001015460e060020a0290565b6001546000908290600160a060020a038083169116146124af57600080fd5b6124b884613c0b565b949350505050565b3360009081526020819052604081206001015460e060020a9081028116146124e757600080fd5b7f65787465726e616c546f6b656e5472616e73666572000000000000000000000060005b60055481101561260157600580548290811061252357fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061255657fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156125c257600080fd5b505af11580156125d6573d6000803e3d6000fd5b505050506040513d60208110156125ec57600080fd5b505115156125f957600080fd5b60010161250b565b6001548490600160a060020a0380831691161461261d57600080fd5b600154604080517fdab0efff000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a90529151919092169163dab0efff9160648083019260209291908290030181600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050506040513d60208110156126be57600080fd5b5051935050600090505b6006548110156119ab5760068054829081106126e057fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d9133918590811061271357fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561277f57600080fd5b505af1158015612793573d6000803e3d6000fd5b505050506040513d60208110156127a957600080fd5b505115156127b657600080fd5b6001016126c8565b3360009081526020819052604081206001015460e060020a027c10000000000000000000000000000000000000000000000000000000009081161461280257600080fd5b6001548290600160a060020a0380831691161461281e57600080fd5b6001546040517f890ac46c00000000000000000000000000000000000000000000000000000000815260206004820190815260248201879052600160a060020a039092169163890ac46c91889188918190604401848480828437600081840152601f19601f8201169050808301925050509350505050602060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050506040513d60208110156128d857600080fd5b505195945050505050565b3360009081526020819052604081206001015460609060e060020a027c10000000000000000000000000000000000000000000000000000000009081161461292a57600080fd5b7f67656e6572696343616c6c00000000000000000000000000000000000000000060005b600554811015612a4457600580548290811061296657fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061299957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015612a0557600080fd5b505af1158015612a19573d6000803e3d6000fd5b505050506040513d6020811015612a2f57600080fd5b50511515612a3c57600080fd5b60010161294e565b6001548690600160a060020a03808316911614612a6057600080fd5b6001546040517f2bf16458000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301908152604483018a9052606060248401908152606484018d90529190931692632bf16458928e928e928e928d9290608401858580828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015612b0757600080fd5b505af1158015612b1b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015612b4457600080fd5b815160208301805191939283019291640100000000811115612b6557600080fd5b82016020810184811115612b7857600080fd5b8151640100000000811182820187101715612b9257600080fd5b5094995097505050505050600090505b600654811015612c98576006805482908110612bba57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110612bed57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015612c5957600080fd5b505af1158015612c6d573d6000803e3d6000fd5b505050506040513d6020811015612c8357600080fd5b50511515612c9057600080fd5b600101612ba2565b50509550959350505050565b6000602081905290815260409020805460019091015460e060020a0282565b6000612ccd613c34565b50600160a060020a0383166000908152600760209081526040918290208251808401909352805460ff16158015845260019091015491830191909152612d3a5760058160200151815481101515612d2057fe5b906000526020600020906002020160010154915050612d8d565b50600160a060020a0383166000908152600860209081526040918290208251808401909352805460ff16158015845260019091015491830191909152610cba5760068160200151815481101515612d2057fe5b92915050565b600254600160a060020a031681565b3360009081526020819052604081206001015460e060020a027c040000000000000000000000000000000000000000000000000000000090811614612de657600080fd5b6001548290600160a060020a03808316911614612e0257600080fd5b600085600160a060020a031663e2b0caef6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015612e4257600080fd5b505af1158015612e56573d6000803e3d6000fd5b505050506040513d6020811015612e6c57600080fd5b505190506000816002811115612e7e57fe5b1480612e9557506002816002811115612e9357fe5b145b15612fdc57600160a060020a03861660009081526007602052604090205460ff161515612f9b57604080518082018252600160a060020a0388811680835260208084018a81526005805460018082018355600083815297517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06002909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919098161790965591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db190920191909155855180870187528481529054600019018183019081529285526007909152939092209251835460ff19169015151783559051910155612fdc565b600160a060020a038616600090815260076020526040902060010154600580548792908110612fc657fe5b9060005260206000209060020201600101819055505b6001816002811115612fea57fe5b148061300157506002816002811115612fff57fe5b145b1561314857600160a060020a03861660009081526008602052604090205460ff16151561310757604080518082018252600160a060020a0388811680835260208084018a81526006805460018082018355600083815297517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f6002909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919098161790965591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090920191909155855180870187528481529054600019018183019081529285526008909152939092209251835460ff19169015151783559051910155613148565b600160a060020a03861660009081526008602052604090206001015460068054879290811061313257fe5b9060005260206000209060020201600101819055505b85600160a060020a03167f78800d7333b8d0174a0845569e3913b7ce4a3c03ca444dd9904172fc14f2fdad86836040518083815260200182600281111561318b57fe5b60ff1681526020019250505060405180910390a250600195945050505050565b3360009081526020819052604081206001015460e060020a027c0200000000000000000000000000000000000000000000000000000000908116146131ef57600080fd5b7f7265676973746572536368656d6500000000000000000000000000000000000060005b60055481101561330957600580548290811061322b57fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061325e57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156132ca57600080fd5b505af11580156132de573d6000803e3d6000fd5b505050506040513d60208110156132f457600080fd5b5051151561330157600080fd5b600101613213565b6001548490600160a060020a0380831691161461332557600080fd5b61332d613c34565b50600160a060020a0388166000908152602081815260408083208151808301835281548152600191820154600160e060020a031960e060020a918202168286019081523387529486905292909420015491518918910219167c1f0000000000000000000000000000000000000000000000000000000016156133ae57600080fd5b33600090815260208181526040909120600101549082015160e060020a90910219167c1f0000000000000000000000000000000000000000000000000000000016156133f957600080fd5b600160a060020a0389166000818152602081905260408082208b8155600101805463ffffffff191660e060020a8c8117041790555133917f546816e99403df442acb68ef69562682a50762c20a3fb6b472f7af9923736cfc91a3600194505050600090505b6006548110156119ab57600680548290811061347657fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d913391859081106134a957fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561351557600080fd5b505af1158015613529573d6000803e3d6000fd5b505050506040513d602081101561353f57600080fd5b5051151561354c57600080fd5b60010161345e565b600680548290811061125157fe5b3360009081526020819052604081206001015460e060020a90810281161461358957600080fd5b7f6d696e7452657075746174696f6e00000000000000000000000000000000000060005b6005548110156136a35760058054829081106135c557fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab2913391859081106135f857fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561366457600080fd5b505af1158015613678573d6000803e3d6000fd5b505050506040513d602081101561368e57600080fd5b5051151561369b57600080fd5b6001016135ad565b6001548490600160a060020a038083169116146136bf57600080fd5b604080518881529051600160a060020a0388169133917f837f2931e3df0592458212be4e470025f197feb7a8e39deb5b7f1f1d42e6f2629181900360200190a3600354604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018b9052915191909216916340c10f199160448083019260209291908290030181600087803b15801561376e57600080fd5b505af1158015613782573d6000803e3d6000fd5b505050506040513d602081101561379857600080fd5b5051935050600090505b600654811015611cba5760068054829081106137ba57fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d913391859081106137ed57fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b15801561385957600080fd5b505af115801561386d573d6000803e3d6000fd5b505050506040513d602081101561388357600080fd5b5051151561389057600080fd5b6001016137a2565b6001546000908290600160a060020a038083169116146138b757600080fd5b600160a060020a03841660009081526007602052604090205460ff16806124b85750505050600160a060020a031660009081526008602052604090205460ff1690565b3360009081526020819052604081206001015460e060020a90810281161461392157600080fd5b7f65787465726e616c546f6b656e5472616e7366657246726f6d0000000000000060005b600554811015613a3b57600580548290811061395d57fe5b600091825260209091206002909102015460058054600160a060020a039092169163c1786ab29133918590811061399057fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b1580156139fc57600080fd5b505af1158015613a10573d6000803e3d6000fd5b505050506040513d6020811015613a2657600080fd5b50511515613a3357600080fd5b600101613945565b6001548490600160a060020a03808316911614613a5757600080fd5b600154604080517fb756d5a2000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301528b811660248301528a81166044830152606482018a90529151919092169163b756d5a29160848083019260209291908290030181600087803b158015613ad657600080fd5b505af1158015613aea573d6000803e3d6000fd5b505050506040513d6020811015613b0057600080fd5b5051935050600090505b600654811015613c00576006805482908110613b2257fe5b600091825260209091206002909102015460068054600160a060020a0390921691638043154d91339185908110613b5557fe5b906000526020600020906002020160010154856040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050602060405180830381600087803b158015613bc157600080fd5b505af1158015613bd5573d6000803e3d6000fd5b505050506040513d6020811015613beb57600080fd5b50511515613bf857600080fd5b600101613b0a565b505095945050505050565b600160a060020a031660009081526020819052604090206001015460e060020a90810216151590565b604080518082019091526000808252602082015290565b815481835581811115613c7757600202816002028360005260206000209182019101613c779190613c7c565b505050565b613cb891905b80821115613cb457805473ffffffffffffffffffffffffffffffffffffffff1916815560006001820155600201613c82565b5090565b9056fea165627a7a7230582065609c24b6d8d712077fb073f8adcd9fc687f8841814613e8cf2f4c07ba056070029",
  "sourceMap": "410:20743:22:-;;;3076:264;8:9:-1;5:2;;;30:1;27;20:12;5:2;3076:264:22;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3076:264:22;3122:6;:16;;-1:-1:-1;;;;;;3122:16:22;-1:-1:-1;;;;;3122:16:22;;;;;;;;;;;3162:20;;;;;;;;:6;;;;;:18;;:20;;;;;3076:264;;3162:20;;;;;;;;:6;:20;;;5:2:-1;;;;30:1;27;20:12;5:2;3162:20:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3162:20:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3162:20:22;3148:11;:34;;-1:-1:-1;;;;;;3148:34:22;-1:-1:-1;;;;;3148:34:22;;;;;;-1:-1:-1;3211:6:22;:25;;;;;;;;:6;;;;;:23;;:25;;;;;3162:20;;3211:25;;;;;;;:6;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;3211:25:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3211:25:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3211:25:22;3192:16;:44;;-1:-1:-1;;;;;;3192:44:22;-1:-1:-1;;;;;3192:44:22;;;;;;;;;-1:-1:-1;3268:65:22;;;;;;;;-1:-1:-1;3268:65:22;;;3313:18;3211:25;3268:65;;;;;;3254:10;3246:19;;;;;;;;:87;;;;;;-1:-1:-1;3246:87:22;;;;;;-1:-1:-1;;3246:87:22;3313:18;3246:87;;;;;;;;;410:20743;;;;;;;;",
  "deployedSourceMap": "410:20743:22:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;410:20743:22;;;;;;;;-1:-1:-1;;;410:20743:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3459:8;;;8236:638;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8236:638:22;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2027:78;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2027:78:22;-1:-1:-1;;;;;2027:78:22;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;19310:188;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;19310:188:22;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1598:28;;;:::i;:::-;;;;-1:-1:-1;;;;;1598:28:22;;;;;;;;;;;;;;14008:918;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14008:918:22;;;;;;;;;;:::i;1723:46::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1723:46:22;;:::i;:::-;;;;-1:-1:-1;;;;;1723:46:22;;;;;;;;;;;;;;;;;;;;;11373:2405;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;11373:2405:22;;;;;;;;;;:::i;18008:347::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;18008:347:22;;;;;;;;;;;;;;;;;;;;;;:::i;1406:20::-;;;:::i;15868:274::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15868:274:22;;;-1:-1:-1;;;;;15868:274:22;;;;;;;;;;;;:::i;6371:328::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6371:328:22;;;-1:-1:-1;;;;;6371:328:22;;;;;;;;;;;;:::i;8986:298::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8986:298:22;-1:-1:-1;;;;;8986:298:22;;:::i;5858:324::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5858:324:22;;;-1:-1:-1;;;;;5858:324:22;;;;;;;;;;;;:::i;2220:79::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2220:79:22;-1:-1:-1;;;;;2220:79:22;;:::i;20411:229::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20411:229:22;-1:-1:-1;;;;;20411:229:22;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1465:34;;;:::i;18984:149::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18984:149:22;-1:-1:-1;;;;;18984:149:22;;:::i;19504:189::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;19504:189:22;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;19504:189:22;;;;;;;;;;;;;;19139:165;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;19139:165:22;;;;;;;;;;:::i;16426:329::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;16426:329:22;;;;;;;;;;;;;;;;;;;;;;:::i;18612:225::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18612:225:22;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;18612:225:22;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;18612:225:22;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;18612:225:22;;-1:-1:-1;18612:225:22;-1:-1:-1;18612:225:22;-1:-1:-1;;;;;18612:225:22;;:::i;15357:317::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;15357:317:22;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;15357:317:22;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;15357:317:22;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;15357:317:22;;-1:-1:-1;15357:317:22;-1:-1:-1;;;;;;15357:317:22;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;15357:317:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1360:39;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1360:39:22;-1:-1:-1;;;;;1360:39:22;;:::i;:::-;;;;;;;-1:-1:-1;;;;;;1360:39:22;;;;;;;;;;;;;;;;19699:509;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;19699:509:22;;;;;;;;;;:::i;1432:27::-;;;:::i;9533:1601::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;9533:1601:22;;;;;;;;;;;;;;;;;:::i;6976:1111::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;6976:1111:22;;;;;;;;;;-1:-1:-1;;;;;;6976:1111:22;;;;;;;;;;;:::i;1867:47::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1867:47:22;;:::i;5303:318::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5303:318:22;;;-1:-1:-1;;;;;5303:318:22;;;;;;;;;;;;:::i;20646:340::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;20646:340:22;;;;;;;;;;:::i;17245:384::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;17245:384:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;8236:638::-;3703:10;8424:4;3695:19;;;;;;;;;;:31;;;-1:-1:-1;;;3695:31:22;3749:18;3695:50;;;:72;3687:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;8403:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;8488:28;8508:7;8488:19;:28::i;:::-;:37;;8484:80;;8548:5;8541:12;;;;8484:80;8702:10;8738:1;8694:19;;;;;;;;;;;:31;;;;;-1:-1:-1;;;;;8663:16:22;;;;;;;;:28;;;;-1:-1:-1;;;8694:31:22;;;8693:32;8663:28;;:63;8643:18;:84;:97;8635:106;;;;;;8776:37;;-1:-1:-1;;;;;8776:37:22;;;8793:10;;8776:37;;;;;-1:-1:-1;;;;;8830:16:22;;:7;:16;;;;;;;;;;8823:23;;;;;;;;;-1:-1:-1;;8823:23:22;;;;-1:-1:-1;5066:1:22;4708;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;;3778:1;;8236:638;;;;:::o;2027:78::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;19310:188::-;5048:6;;19434:7;;19404;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;-1:-1:-1;;;;;19464:16:22;;:7;:16;;;;;;;;;;:27;;-1:-1:-1;5066:1:22;19310:188;;;;;:::o;1598:28::-;;;-1:-1:-1;;;;;1598:28:22;;:::o;14008:918::-;4003:10;14160:4;3995:19;;;;;;;;;;:31;;;-1:-1:-1;;;3995:31:22;4049:18;3995:50;;;:72;3987:81;;;;;;5048:6;;14138:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;14188:13;;-1:-1:-1;;;;;14188:13:22;:27;14180:36;;;;;;-1:-1:-1;;;;;14289:28:22;;;;14281:37;;;;;;14328:13;:30;;-1:-1:-1;;14328:30:22;-1:-1:-1;;;;;14328:30:22;;;;;;;;-1:-1:-1;14368:6:22;:40;;;;;;;;;;;;;;;:6;;;:24;;:40;;;;;-1:-1:-1;;14368:40:22;;;;;;;-1:-1:-1;14368:6:22;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;14368:40:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14368:40:22;;;;14444:14;-1:-1:-1;;;;;14426:32:22;:6;;;;;;;;;-1:-1:-1;;;;;14426:6:22;-1:-1:-1;;;;;14426:12:22;;:14;;;;;-1:-1:-1;;;14426:14:22;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14426:14:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14426:14:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14426:14:22;-1:-1:-1;;;;;14426:32:22;;14418:41;;;;;;14473:11;;:19;;;;;;;;14504:4;;-1:-1:-1;;;;;14473:11:22;;:17;;:19;;;;;;;;;;;;;;:11;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;14473:19:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14473:19:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14473:19:22;-1:-1:-1;;;;;14473:36:22;;14469:172;;;14525:11;;:45;;;;;;-1:-1:-1;;;;;14525:45:22;;;;;;;;;:11;;;;;:29;;:45;;;;;:11;;:45;;;;;;;:11;;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;14525:45:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14525:45:22;;;;14615:14;-1:-1:-1;;;;;14592:37:22;:11;;;;;;;;;-1:-1:-1;;;;;14592:11:22;-1:-1:-1;;;;;14592:17:22;;:19;;;;;-1:-1:-1;;;14592:19:22;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14592:19:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14592:19:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14592:19:22;-1:-1:-1;;;;;14592:37:22;;14584:46;;;;;;14654:16;;:24;;;;;;;;14690:4;;-1:-1:-1;;;;;14654:16:22;;:22;;:24;;;;;;;;;;;;;;:16;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;14654:24:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14654:24:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14654:24:22;-1:-1:-1;;;;;14654:41:22;;14650:187;;;14711:16;;:50;;;;;;-1:-1:-1;;;;;14711:50:22;;;;;;;;;:16;;;;;:34;;:50;;;;;:16;;:50;;;;;;;:16;;:50;;;5:2:-1;;;;30:1;27;20:12;5:2;14711:50:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14711:50:22;;;;14811:14;-1:-1:-1;;;;;14783:42:22;:16;;;;;;;;;-1:-1:-1;;;;;14783:16:22;-1:-1:-1;;;;;14783:22:22;;:24;;;;;-1:-1:-1;;;14783:24:22;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14783:24:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14783:24:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14783:24:22;-1:-1:-1;;;;;14783:42:22;;14775:51;;;;;;14884:13;;14851:47;;;-1:-1:-1;;;;;14884:13:22;;;;14851:47;;;14877:4;;14851:47;;;;;;;;;;-1:-1:-1;14915:4:22;;14008:918;-1:-1:-1;;;14008:918:22:o;1723:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1723:46:22;;;;-1:-1:-1;1723:46:22;:::o;11373:2405::-;3857:10;11534:4;3849:19;;;;;;;;;;:31;;;-1:-1:-1;;;3849:31:22;3903:18;3849:50;;;:72;3841:81;;;;;;5048:6;;11513:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;11554:56;;:::i;:::-;11620:40;;:::i;:::-;11670;11739:17;-1:-1:-1;;;;;11713:49:22;;:51;;;;;-1:-1:-1;;;11713:51:22;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11713:51:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11713:51:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11713:51:22;;-1:-1:-1;11774:11:22;;11809:4;:47;;;;;;;;;11808:120;;;-1:-1:-1;11881:46:22;11873:4;:54;;;;;;;;;11808:120;11804:852;;;-1:-1:-1;;;;;11971:47:22;;;;;;:28;:47;;;;;;;;;11944:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12032:614:22;;12158:1;12130:20;:27;;;;:29;12097:24;:30;;;:62;12093:389;;;12202:20;12223:27;;-1:-1:-1;;12223:29:22;;;12202:51;;;;;;;;;;;;;;;12183:70;;;;;;;;;12202:51;;;;;12183:70;;-1:-1:-1;;;;;12183:70:22;;;;;;;;;;12296:30;;;;12275:20;:52;;12183:70;;-1:-1:-1;12183:70:22;;12275:20;;12296:30;12275:52;;;;;;;;;;;;;;:71;;:52;;;;;;:71;;-1:-1:-1;;12275:71:22;-1:-1:-1;;;;;12275:71:22;;;;;;;;;;-1:-1:-1;12275:71:22;;;;12433:30;;;;12397:26;;12368:56;;;;;:28;:56;;;;;;:62;;;:95;12093:389;12499:20;:29;;;;;-1:-1:-1;;12499:29:22;;;:::i;:::-;-1:-1:-1;;;;;;;12553:47:22;;;;;;:28;:47;;;;;12546:54;;-1:-1:-1;;12546:54:22;;;;;;;;;;;12032:614;12678:40;12670:4;:48;;;;;;;;;12669:121;;;-1:-1:-1;12743:46:22;12735:4;:54;;;;;;;;;12669:121;12665:861;;;-1:-1:-1;;;;;12833:48:22;;;;;;:29;:48;;;;;;;;;12806:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12895:621:22;;13022:1;12993:21;:28;;;;:30;12960:24;:30;;;:63;12956:394;;;13066:21;13088:28;;-1:-1:-1;;13088:30:22;;;13066:53;;;;;;;;;;;;;;;13047:72;;;;;;;;;13066:53;;;;;13047:72;;-1:-1:-1;;;;;13047:72:22;;;;;;;;;;13163:30;;;;13141:21;:53;;13047:72;;-1:-1:-1;13047:72:22;;13141:21;;13163:30;13141:53;;;;;;;;;;;;;;:72;;:53;;;;;;:72;;-1:-1:-1;;13141:72:22;-1:-1:-1;;;;;13141:72:22;;;;;;;;;;-1:-1:-1;13141:72:22;;;;13301:30;;;;13265:26;;13235:57;;;;;:29;:57;;;;;;:63;;;:96;12956:394;13367:21;:30;;;;;-1:-1:-1;;13367:30:22;;;:::i;:::-;-1:-1:-1;;;;;;;13422:48:22;;;;;;:29;:48;;;;;13415:55;;-1:-1:-1;;13415:55:22;;;;;;;;;;;12895:621;13539:6;13535:214;;;13633:30;;;;-1:-1:-1;;;;;13566:172:22;;;;;13685:39;13677:4;:47;;;;;;;;13566:172;;;;;;13677:47;;13566:172;;;;;;;;;;;;;13535:214;13765:6;11373:2405;-1:-1:-1;;;;;;;11373:2405:22:o;18008:347::-;3554:10;18259:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;18237:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;18286:6;;:62;;;;;;-1:-1:-1;;;;;18286:62:22;;;;;;;;;;;;;;;;;;;;;;:6;;;;;:28;;:62;;;;;;;;;;;;;;:6;;:62;;;5:2:-1;;;;30:1;27;20:12;5:2;18286:62:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18286:62:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18286:62:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;;3629:1;;18008:347;;;;;;:::o;1406:20::-;;;-1:-1:-1;;;;;1406:20:22;;:::o;15868:274::-;3554:10;16073:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;16051:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;16100:6;;:35;;;;;;;;;;;;-1:-1:-1;;;;;16100:35:22;;;;;;;;;:6;;;;;:16;;:35;;;;;;;;;;;;;;:6;;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;16100:35:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16100:35:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16100:35:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;;3629:1;;15868:274;;;;;:::o;6371:328::-;3554:10;6566:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;6545:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;6591:45;;;;;;;;-1:-1:-1;;;;;6591:45:22;;;6602:10;;6591:45;;;;;;;;;6653:11;;:39;;;;;;-1:-1:-1;;;;;6653:39:22;;;;;;;;;;;;;;;:11;;;;;:16;;:39;;;;;;;;;;;;;;:11;;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;6653:39:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6653:39:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6653:39:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;8986:298;5048:6;;9067:4;;9050:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;9087:31;9107:10;9087:19;:31::i;:::-;:40;;9083:83;;9150:5;9143:12;;;;9083:83;9190:10;9182:7;:19;;;;;;;;;;;9175:26;;;;;;;-1:-1:-1;;9175:26:22;;;9216:40;9190:10;;9216:40;;;9273:4;9266:11;;5066:1;8986:298;;;;:::o;5858:324::-;3554:10;6054:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;6033:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;6079:42;;;;;;;;-1:-1:-1;;;;;6079:42:22;;;6094:10;;6079:42;;;;;;;;;6138:16;;:37;;;;;;-1:-1:-1;;;;;6138:37:22;;;;;;;;;;;;;;;:16;;;;;:21;;:37;;;;;;;;;;;;;;:16;;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;6138:37:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6138:37:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6138:37:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;2220:79;;;;;;;;;;;;;;;;;;;;;;;;:::o;20411:229::-;5048:6;;20537:4;;;;20499:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;20575:20;:27;20604:21;:28;20575:27;;-1:-1:-1;20604:28:22;-1:-1:-1;20411:229:22;;;;:::o;1465:34::-;;;-1:-1:-1;;;;;1465:34:22;;:::o;18984:149::-;5048:6;;19075:7;;19053;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;-1:-1:-1;;19109:16:22;;-1:-1:-1;;;;;19109:16:22;;18984:149;-1:-1:-1;18984:149:22:o;19504:189::-;5048:6;;19629;;19599:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;-1:-1:-1;;;;;;;;19658:16:22;:7;:16;;;;;;;;;;:28;;;-1:-1:-1;;;19658:28:22;;19504:189::o;19139:165::-;5048:6;;19246:4;;19224:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;19269:28;19289:7;19269:19;:28::i;:::-;19262:35;19139:165;-1:-1:-1;;;;19139:165:22:o;16426:329::-;3554:10;16664:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;16642:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;16691:6;;:57;;;;;;-1:-1:-1;;;;;16691:57:22;;;;;;;;;;;;;;;;;;;;;;:6;;;;;:28;;:57;;;;;;;;;;;;;;:6;;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;16691:57:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16691:57:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16691:57:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;18612:225;4296:10;18773:4;4288:19;;;;;;;;;;:31;;;-1:-1:-1;;;4288:31:22;4342:18;4288:50;;;:72;4280:81;;;;;;5048:6;;18747:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;18804:6;;:26;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18804:6:22;;;;:15;;18820:9;;;;18804:26;;;;18820:9;;;;18804:26;1:33:-1;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;18804::22;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18804:26:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18804:26:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18804:26:22;;18612:225;-1:-1:-1;;;;;18612:225:22:o;15357:317::-;4151:10;15582:4;4143:19;;;;;;;;;;:31;;;15588:12;;-1:-1:-1;;;4143:31:22;4197:18;4143:50;;;:72;4135:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;15559:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;15623:6;;:44;;;;;-1:-1:-1;;;;;15623:44:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;:6;;;;;:18;;15642:9;;15653:5;;;;15660:6;;15623:44;;;15653:5;;;;15623:44;1:33:-1;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;15623:44:22;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15623:44:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15623:44:22;;;;;;39:16:-1;36:1;17:17;2:54;101:4;15623:44:22;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;;;5:11;;2:2;;;29:1;26;19:12;2:2;15623:44:22;;;;;;;;;;;;;;19:11:-1;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;15616:51:22;;-1:-1:-1;15623:44:22;-1:-1:-1;;;;;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;;4226:1;;15357:317;;;;;;;;:::o;1360:39::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1360:39:22;;:::o;19699:509::-;19796:7;19816:40;;:::i;:::-;-1:-1:-1;;;;;;19859:47:22;;;;;;:28;:47;;;;;;;;;19816:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19917:102;;19965:20;19986:8;:14;;;19965:36;;;;;;;;;;;;;;;;;;;;:43;;;19958:50;;;;;19917:102;-1:-1:-1;;;;;;20040:48:22;;;;;;:29;:48;;;;;;;;;20029:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20099:103;;20147:21;20169:8;:14;;;20147:37;;;;;;;;;19699:509;;;;;:::o;1432:27::-;;;-1:-1:-1;;;;;1432:27:22;;:::o;9533:1601::-;3857:10;9707:4;3849:19;;;;;;;;;;:31;;;-1:-1:-1;;;3849:31:22;3903:18;3849:50;;;:72;3841:81;;;;;;5048:6;;9686:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;9727:40;9796:17;-1:-1:-1;;;;;9770:49:22;;:51;;;;;-1:-1:-1;;;9770:51:22;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9770:51:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9770:51:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9770:51:22;;-1:-1:-1;9844:39:22;9836:4;:47;;;;;;;;;9835:120;;;-1:-1:-1;9908:46:22;9900:4;:54;;;;;;;;;9835:120;9831:596;;;-1:-1:-1;;;;;9976:47:22;;;;;;:28;:47;;;;;:60;;;9975:61;9971:446;;;10082:44;;;;;;;;-1:-1:-1;;;;;10082:44:22;;;;;;;;;;;;;10056:20;27:10:-1;;39:1;23:18;;;45:23;;-1:-1;10056:71:22;;;;;;;;;;;;;;;-1:-1:-1;;10056:71:22;;;;;;;;;;;;;;;;;;;10211:61;;;;;;;;;;10242:27;;-1:-1:-1;;10242:29:22;10211:61;;;;;;10145:47;;;:28;:47;;;;;;;:127;;;;-1:-1:-1;;10145:127:22;;;;;;;;;;;;9971:446;;;-1:-1:-1;;;;;10331:47:22;;;;;;:28;:47;;;;;:53;;;10310:20;:75;;10395:7;;10331:53;10310:75;;;;;;;;;;;;;;;;:82;;:92;;;;9971:446;10449:40;10441:4;:48;;;;;;;;;10440:121;;;-1:-1:-1;10514:46:22;10506:4;:54;;;;;;;;;10440:121;10436:603;;;-1:-1:-1;;;;;10582:48:22;;;;;;:29;:48;;;;;:61;;;10581:62;10577:452;;;10690:44;;;;;;;;-1:-1:-1;;;;;10690:44:22;;;;;;;;;;;;;10663:21;27:10:-1;;39:1;23:18;;;45:23;;-1:-1;10663:72:22;;;;;;;;;;;;;;;-1:-1:-1;;10663:72:22;;;;;;;;;;;;;;;;;;;10820:62;;;;;;;;;;10851:28;;-1:-1:-1;;10851:30:22;10820:62;;;;;;10753:48;;;:29;:48;;;;;;;:129;;;;-1:-1:-1;;10753:129:22;;;;;;;;;;;;10577:452;;;-1:-1:-1;;;;;10942:48:22;;;;;;:29;:48;;;;;:54;;;10920:21;:77;;11007:7;;10942:54;10920:77;;;;;;;;;;;;;;;;:84;;:94;;;;10577:452;11073:17;-1:-1:-1;;;;;11053:53:22;;11092:7;11101:4;11053:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11123:4:22;;9533:1601;-1:-1:-1;;;;;9533:1601:22:o;6976:1111::-;3703:10;7201:4;3695:19;;;;;;;;;;:31;;;-1:-1:-1;;;3695:31:22;3749:18;3695:50;;;:72;3687:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;7180:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;7222:20;;:::i;:::-;-1:-1:-1;;;;;;7245:16:22;;:7;:16;;;;;;;;;;;7222:39;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;7222:39:22;;;;;;;;;;7623:10;7615:19;;;;;;;;;;:31;;7593:18;;7580:31;;7615;;7614:32;7560:87;:18;:87;:100;7552:109;;;;;;7813:10;7849:1;7805:19;;;;;;;;;;;:31;;;7784:18;;;;-1:-1:-1;;;7805:31:22;;;7804:32;7784:53;7764:18;:74;:87;7756:96;;;;;;-1:-1:-1;;;;;7896:16:22;;:7;:16;;;;;;;;;;;:41;;;7998:10;7947:28;:62;;-1:-1:-1;;7947:62:22;-1:-1:-1;;;7978:31:22;;;7947:62;;;;8024:35;8039:10;;8024:35;;;8076:4;8069:11;;;4708:1;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;1867:47;;;;;;;;;;;5303:318;3554:10;5497:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;5476:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;5522:40;;;;;;;;-1:-1:-1;;;;;5522:40:22;;;5537:10;;5522:40;;;;;;;;;5579:16;;:35;;;;;;-1:-1:-1;;;;;5579:35:22;;;;;;;;;;;;;;;:16;;;;;:21;;:35;;;;;;;;;;;;;;:16;;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;5579:35:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5579:35:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5579:35:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;20646:340;5048:6;;20805:4;;20767:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;-1:-1:-1;;;;;20837:47:22;;;;;;:28;:47;;;;;:60;;;;:141;;-1:-1:-1;;;;;;;;;20917:48:22;;;;;:29;:48;;;;;:61;;;;20646:340::o;17245:384::-;3554:10;17527:4;3546:19;;;;;;;;;;3607:10;3546:31;;-1:-1:-1;;;3546:31:22;;;:50;;:72;3538:81;;;;;;4385:580;4442:11;4463:236;4483:20;:27;4477:33;;4463:236;;;4581:20;:25;;4602:3;;4581:25;;;;;;;;;;;;;;;;;;;:35;4648:20;:25;;-1:-1:-1;;;;;4581:35:22;;;;4554:81;;4636:10;;4669:3;;4648:25;;;;;;;;;;;;;;;;:32;;;4682:4;4554:133;;;;;-1:-1:-1;;;4554:133:22;;;;;;;-1:-1:-1;;;;;4554:133:22;-1:-1:-1;;;;;4554:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4554:133:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4554:133:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4554:133:22;4533:155;;;;;;;;4512:5;;4463:236;;;5048:6;;17505:7;;-1:-1:-1;;;;;5029:26:22;;;5048:6;;5029:26;5021:35;;;;;;17554:6;;:68;;;;;;-1:-1:-1;;;;;17554:68:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:6;;;;;:32;;:68;;;;;;;;;;;;;;:6;;:68;;;5:2:-1;;;;30:1;27;20:12;5:2;17554:68:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;17554:68:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17554:68:22;;-1:-1:-1;4708:1:22;4730;4724:7;;4719:240;4739:21;:28;4733:34;;4719:240;;;4838:21;:26;;4860:3;;4838:26;;;;;;;;;;;;;;;;;;;:36;4907:21;:26;;-1:-1:-1;;;;;4838:36:22;;;;4811:83;;4895:10;;4929:3;;4907:26;;;;;;;;;;;;;;;;:33;;;4942:4;4811:136;;;;;-1:-1:-1;;;4811:136:22;;;;;;;-1:-1:-1;;;;;4811:136:22;-1:-1:-1;;;;;4811:136:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4811:136:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4811:136:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4811:136:22;4790:158;;;;;;;;4769:5;;4719:240;;;3629:1;;17245:384;;;;;;;:::o;20992:159::-;-1:-1:-1;;;;;21083:16:22;21059:4;21083:16;;;;;;;;;;21119:10;21083:28;;-1:-1:-1;;;21083:28:22;;;:47;:60;;;20992:159::o;410:20743::-;;;;;;;;;;-1:-1:-1;410:20743:22;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;410:20743:22;;;;;;;;;;;;;;;;;;:::o",
  "source": "pragma solidity ^0.5.4;\n\nimport \"./Avatar.sol\";\nimport \"../globalConstraints/GlobalConstraintInterface.sol\";\nimport \"./ControllerInterface.sol\";\n\n\n/**\n * @title Controller contract\n * @dev A controller controls the organizations tokens, reputation and avatar.\n * It is subject to a set of schemes and constraints that determine its behavior.\n * Each scheme has it own parameters and operation permissions.\n */\ncontract Controller is ControllerInterface {\n\n    struct Scheme {\n        bytes32 paramsHash;  // a hash \"configuration\" of the scheme\n        bytes4  permissions; // A bitwise flags of permissions,\n                             // All 0: Not registered,\n                             // 1st bit: Flag if the scheme is registered,\n                             // 2nd bit: Scheme can register other schemes\n                             // 3rd bit: Scheme can add/remove global constraints\n                             // 4th bit: Scheme can upgrade the controller\n                             // 5th bit: Scheme can call genericCall on behalf of\n                             //          the organization avatar\n    }\n\n    struct GlobalConstraint {\n        address gcAddress;\n        bytes32 params;\n    }\n\n    struct GlobalConstraintRegister {\n        bool isRegistered; //is registered\n        uint256 index;    //index at globalConstraints\n    }\n\n    mapping(address=>Scheme) public schemes;\n\n    Avatar public avatar;\n    DAOToken public nativeToken;\n    Reputation public nativeReputation;\n  // newController will point to the new controller after the present controller is upgraded\n    address public newController;\n  // globalConstraintsPre that determine pre conditions for all actions on the controller\n\n    GlobalConstraint[] public globalConstraintsPre;\n  // globalConstraintsPost that determine post conditions for all actions on the controller\n    GlobalConstraint[] public globalConstraintsPost;\n  // globalConstraintsRegisterPre indicate if a globalConstraints is registered as a pre global constraint\n    mapping(address=>GlobalConstraintRegister) public globalConstraintsRegisterPre;\n  // globalConstraintsRegisterPost indicate if a globalConstraints is registered as a post global constraint\n    mapping(address=>GlobalConstraintRegister) public globalConstraintsRegisterPost;\n\n    event MintReputation (address indexed _sender, address indexed _to, uint256 _amount);\n    event BurnReputation (address indexed _sender, address indexed _from, uint256 _amount);\n    event MintTokens (address indexed _sender, address indexed _beneficiary, uint256 _amount);\n    event RegisterScheme (address indexed _sender, address indexed _scheme);\n    event UnregisterScheme (address indexed _sender, address indexed _scheme);\n    event UpgradeController(address indexed _oldController, address _newController);\n\n    event AddGlobalConstraint(\n        address indexed _globalConstraint,\n        bytes32 _params,\n        GlobalConstraintInterface.CallPhase _when);\n\n    event RemoveGlobalConstraint(address indexed _globalConstraint, uint256 _index, bool _isPre);\n\n    constructor( Avatar _avatar) public {\n        avatar = _avatar;\n        nativeToken = avatar.nativeToken();\n        nativeReputation = avatar.nativeReputation();\n        schemes[msg.sender] = Scheme({paramsHash: bytes32(0), permissions: bytes4(0x0000001F)});\n    }\n\n  // Do not allow mistaken calls:\n   // solhint-disable-next-line payable-fallback\n    function() external {\n        revert();\n    }\n\n  // Modifiers:\n    modifier onlyRegisteredScheme() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000001) == bytes4(0x00000001));\n        _;\n    }\n\n    modifier onlyRegisteringSchemes() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000002) == bytes4(0x00000002));\n        _;\n    }\n\n    modifier onlyGlobalConstraintsScheme() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000004) == bytes4(0x00000004));\n        _;\n    }\n\n    modifier onlyUpgradingScheme() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000008) == bytes4(0x00000008));\n        _;\n    }\n\n    modifier onlyGenericCallScheme() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000010) == bytes4(0x00000010));\n        _;\n    }\n\n    modifier onlyMetaDataScheme() {\n        require(schemes[msg.sender].permissions&bytes4(0x00000010) == bytes4(0x00000010));\n        _;\n    }\n\n    modifier onlySubjectToConstraint(bytes32 func) {\n        uint256 idx;\n        for (idx = 0; idx < globalConstraintsPre.length; idx++) {\n            require(\n            (GlobalConstraintInterface(globalConstraintsPre[idx].gcAddress))\n            .pre(msg.sender, globalConstraintsPre[idx].params, func));\n        }\n        _;\n        for (idx = 0; idx < globalConstraintsPost.length; idx++) {\n            require(\n            (GlobalConstraintInterface(globalConstraintsPost[idx].gcAddress))\n            .post(msg.sender, globalConstraintsPost[idx].params, func));\n        }\n    }\n\n    modifier isAvatarValid(address _avatar) {\n        require(_avatar == address(avatar));\n        _;\n    }\n\n    /**\n     * @dev Mint `_amount` of reputation that are assigned to `_to` .\n     * @param  _amount amount of reputation to mint\n     * @param _to beneficiary address\n     * @return bool which represents a success\n     */\n    function mintReputation(uint256 _amount, address _to, address _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"mintReputation\")\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n        emit MintReputation(msg.sender, _to, _amount);\n        return nativeReputation.mint(_to, _amount);\n    }\n\n    /**\n     * @dev Burns `_amount` of reputation from `_from`\n     * @param _amount amount of reputation to burn\n     * @param _from The address that will lose the reputation\n     * @return bool which represents a success\n     */\n    function burnReputation(uint256 _amount, address _from, address _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"burnReputation\")\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n        emit BurnReputation(msg.sender, _from, _amount);\n        return nativeReputation.burn(_from, _amount);\n    }\n\n    /**\n     * @dev mint tokens .\n     * @param  _amount amount of token to mint\n     * @param _beneficiary beneficiary address\n     * @return bool which represents a success\n     */\n    function mintTokens(uint256 _amount, address _beneficiary, address _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"mintTokens\")\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n        emit MintTokens(msg.sender, _beneficiary, _amount);\n        return nativeToken.mint(_beneficiary, _amount);\n    }\n\n  /**\n   * @dev register a scheme\n   * @param _scheme the address of the scheme\n   * @param _paramsHash a hashed configuration of the usage of the scheme\n   * @param _permissions the permissions the new scheme will have\n   * @return bool which represents a success\n   */\n    function registerScheme(address _scheme, bytes32 _paramsHash, bytes4 _permissions, address _avatar)\n    external\n    onlyRegisteringSchemes\n    onlySubjectToConstraint(\"registerScheme\")\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n\n        Scheme memory scheme = schemes[_scheme];\n\n    // Check scheme has at least the permissions it is changing, and at least the current permissions:\n    // Implementation is a bit messy. One must recall logic-circuits ^^\n\n    // produces non-zero if sender does not have all of the perms that are changing between old and new\n        require(bytes4(0x0000001f)&(_permissions^scheme.permissions)&(~schemes[msg.sender].permissions) == bytes4(0));\n\n    // produces non-zero if sender does not have all of the perms in the old scheme\n        require(bytes4(0x0000001f)&(scheme.permissions&(~schemes[msg.sender].permissions)) == bytes4(0));\n\n    // Add or change the scheme:\n        schemes[_scheme].paramsHash = _paramsHash;\n        schemes[_scheme].permissions = _permissions|bytes4(0x00000001);\n        emit RegisterScheme(msg.sender, _scheme);\n        return true;\n    }\n\n    /**\n     * @dev unregister a scheme\n     * @param _scheme the address of the scheme\n     * @return bool which represents a success\n     */\n    function unregisterScheme( address _scheme, address _avatar)\n    external\n    onlyRegisteringSchemes\n    onlySubjectToConstraint(\"unregisterScheme\")\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n    //check if the scheme is registered\n        if (_isSchemeRegistered(_scheme) == false) {\n            return false;\n        }\n    // Check the unregistering scheme has enough permissions:\n        require(bytes4(0x0000001f)&(schemes[_scheme].permissions&(~schemes[msg.sender].permissions)) == bytes4(0));\n\n    // Unregister:\n        emit UnregisterScheme(msg.sender, _scheme);\n        delete schemes[_scheme];\n        return true;\n    }\n\n    /**\n     * @dev unregister the caller's scheme\n     * @return bool which represents a success\n     */\n    function unregisterSelf(address _avatar) external isAvatarValid(_avatar) returns(bool) {\n        if (_isSchemeRegistered(msg.sender) == false) {\n            return false;\n        }\n        delete schemes[msg.sender];\n        emit UnregisterScheme(msg.sender, msg.sender);\n        return true;\n    }\n\n    /**\n     * @dev add or update Global Constraint\n     * @param _globalConstraint the address of the global constraint to be added.\n     * @param _params the constraint parameters hash.\n     * @return bool which represents a success\n     */\n    function addGlobalConstraint(address _globalConstraint, bytes32 _params, address _avatar)\n    external\n    onlyGlobalConstraintsScheme\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n        GlobalConstraintInterface.CallPhase when = GlobalConstraintInterface(_globalConstraint).when();\n        if ((when == GlobalConstraintInterface.CallPhase.Pre)||\n            (when == GlobalConstraintInterface.CallPhase.PreAndPost)) {\n            if (!globalConstraintsRegisterPre[_globalConstraint].isRegistered) {\n                globalConstraintsPre.push(GlobalConstraint(_globalConstraint, _params));\n                globalConstraintsRegisterPre[_globalConstraint] =\n                GlobalConstraintRegister(true, globalConstraintsPre.length-1);\n            }else {\n                globalConstraintsPre[globalConstraintsRegisterPre[_globalConstraint].index].params = _params;\n            }\n        }\n        if ((when == GlobalConstraintInterface.CallPhase.Post)||\n            (when == GlobalConstraintInterface.CallPhase.PreAndPost)) {\n            if (!globalConstraintsRegisterPost[_globalConstraint].isRegistered) {\n                globalConstraintsPost.push(GlobalConstraint(_globalConstraint, _params));\n                globalConstraintsRegisterPost[_globalConstraint] =\n                GlobalConstraintRegister(true, globalConstraintsPost.length-1);\n            }else {\n                globalConstraintsPost[globalConstraintsRegisterPost[_globalConstraint].index].params = _params;\n            }\n        }\n        emit AddGlobalConstraint(_globalConstraint, _params, when);\n        return true;\n    }\n\n    /**\n     * @dev remove Global Constraint\n     * @param _globalConstraint the address of the global constraint to be remove.\n     * @return bool which represents a success\n     */\n     // solhint-disable-next-line code-complexity\n    function removeGlobalConstraint (address _globalConstraint, address _avatar)\n    external\n    onlyGlobalConstraintsScheme\n    isAvatarValid(_avatar)\n    returns(bool)\n    {\n        GlobalConstraintRegister memory globalConstraintRegister;\n        GlobalConstraint memory globalConstraint;\n        GlobalConstraintInterface.CallPhase when = GlobalConstraintInterface(_globalConstraint).when();\n        bool retVal = false;\n\n        if ((when == GlobalConstraintInterface.CallPhase.Pre)||\n            (when == GlobalConstraintInterface.CallPhase.PreAndPost)) {\n            globalConstraintRegister = globalConstraintsRegisterPre[_globalConstraint];\n            if (globalConstraintRegister.isRegistered) {\n                if (globalConstraintRegister.index < globalConstraintsPre.length-1) {\n                    globalConstraint = globalConstraintsPre[globalConstraintsPre.length-1];\n                    globalConstraintsPre[globalConstraintRegister.index] = globalConstraint;\n                    globalConstraintsRegisterPre[globalConstraint.gcAddress].index = globalConstraintRegister.index;\n                }\n                globalConstraintsPre.length--;\n                delete globalConstraintsRegisterPre[_globalConstraint];\n                retVal = true;\n            }\n        }\n        if ((when == GlobalConstraintInterface.CallPhase.Post)||\n            (when == GlobalConstraintInterface.CallPhase.PreAndPost)) {\n            globalConstraintRegister = globalConstraintsRegisterPost[_globalConstraint];\n            if (globalConstraintRegister.isRegistered) {\n                if (globalConstraintRegister.index < globalConstraintsPost.length-1) {\n                    globalConstraint = globalConstraintsPost[globalConstraintsPost.length-1];\n                    globalConstraintsPost[globalConstraintRegister.index] = globalConstraint;\n                    globalConstraintsRegisterPost[globalConstraint.gcAddress].index = globalConstraintRegister.index;\n                }\n                globalConstraintsPost.length--;\n                delete globalConstraintsRegisterPost[_globalConstraint];\n                retVal = true;\n            }\n        }\n        if (retVal) {\n            emit RemoveGlobalConstraint(\n            _globalConstraint,\n            globalConstraintRegister.index,\n            when == GlobalConstraintInterface.CallPhase.Pre\n            );\n        }\n        return retVal;\n    }\n\n  /**\n    * @dev upgrade the Controller\n    *      The function will trigger an event 'UpgradeController'.\n    * @param  _newController the address of the new controller.\n    * @return bool which represents a success\n    */\n    function upgradeController(address _newController, Avatar _avatar)\n    external\n    onlyUpgradingScheme\n    isAvatarValid(address(_avatar))\n    returns(bool)\n    {\n        require(newController == address(0));   // so the upgrade could be done once for a contract.\n        require(_newController != address(0));\n        newController = _newController;\n        avatar.transferOwnership(_newController);\n        require(avatar.owner() == _newController);\n        if (nativeToken.owner() == address(this)) {\n            nativeToken.transferOwnership(_newController);\n            require(nativeToken.owner() == _newController);\n        }\n        if (nativeReputation.owner() == address(this)) {\n            nativeReputation.transferOwnership(_newController);\n            require(nativeReputation.owner() == _newController);\n        }\n        emit UpgradeController(address(this), newController);\n        return true;\n    }\n\n    /**\n    * @dev perform a generic call to an arbitrary contract\n    * @param _contract  the contract's address to call\n    * @param _data ABI-encoded contract call to call `_contract` address.\n    * @param _avatar the controller's avatar address\n    * @param _value value (ETH) to transfer with the transaction\n    * @return bool -success\n    *         bytes  - the return value of the called _contract's function.\n    */\n    function genericCall(address _contract, bytes calldata _data, Avatar _avatar, uint256 _value)\n    external\n    onlyGenericCallScheme\n    onlySubjectToConstraint(\"genericCall\")\n    isAvatarValid(address(_avatar))\n    returns (bool, bytes memory)\n    {\n        return avatar.genericCall(_contract, _data, _value);\n    }\n\n  /**\n   * @dev send some ether\n   * @param _amountInWei the amount of ether (in Wei) to send\n   * @param _to address of the beneficiary\n   * @return bool which represents a success\n   */\n    function sendEther(uint256 _amountInWei, address payable _to, Avatar _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"sendEther\")\n    isAvatarValid(address(_avatar))\n    returns(bool)\n    {\n        return avatar.sendEther(_amountInWei, _to);\n    }\n\n    /**\n    * @dev send some amount of arbitrary ERC20 Tokens\n    * @param _externalToken the address of the Token Contract\n    * @param _to address of the beneficiary\n    * @param _value the amount of ether (in Wei) to send\n    * @return bool which represents a success\n    */\n    function externalTokenTransfer(IERC20 _externalToken, address _to, uint256 _value, Avatar _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"externalTokenTransfer\")\n    isAvatarValid(address(_avatar))\n    returns(bool)\n    {\n        return avatar.externalTokenTransfer(_externalToken, _to, _value);\n    }\n\n    /**\n    * @dev transfer token \"from\" address \"to\" address\n    *      One must to approve the amount of tokens which can be spend from the\n    *      \"from\" account.This can be done using externalTokenApprove.\n    * @param _externalToken the address of the Token Contract\n    * @param _from address of the account to send from\n    * @param _to address of the beneficiary\n    * @param _value the amount of ether (in Wei) to send\n    * @return bool which represents a success\n    */\n    function externalTokenTransferFrom(\n    IERC20 _externalToken,\n    address _from,\n    address _to,\n    uint256 _value,\n    Avatar _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"externalTokenTransferFrom\")\n    isAvatarValid(address(_avatar))\n    returns(bool)\n    {\n        return avatar.externalTokenTransferFrom(_externalToken, _from, _to, _value);\n    }\n\n    /**\n    * @dev externalTokenApproval approve the spender address to spend a specified amount of tokens\n    *      on behalf of msg.sender.\n    * @param _externalToken the address of the Token Contract\n    * @param _spender address\n    * @param _value the amount of ether (in Wei) which the approval is referring to.\n    * @return bool which represents a success\n    */\n    function externalTokenApproval(IERC20 _externalToken, address _spender, uint256 _value, Avatar _avatar)\n    external\n    onlyRegisteredScheme\n    onlySubjectToConstraint(\"externalTokenIncreaseApproval\")\n    isAvatarValid(address(_avatar))\n    returns(bool)\n    {\n        return avatar.externalTokenApproval(_externalToken, _spender, _value);\n    }\n\n    /**\n    * @dev metaData emits an event with a string, should contain the hash of some meta data.\n    * @param _metaData a string representing a hash of the meta data\n    * @param _avatar Avatar\n    * @return bool which represents a success\n    */\n    function metaData(string calldata _metaData, Avatar _avatar)\n        external\n        onlyMetaDataScheme\n        isAvatarValid(address(_avatar))\n        returns(bool)\n        {\n        return avatar.metaData(_metaData);\n    }\n\n    /**\n     * @dev getNativeReputation\n     * @param _avatar the organization avatar.\n     * @return organization native reputation\n     */\n    function getNativeReputation(address _avatar) external isAvatarValid(_avatar) view returns(address) {\n        return address(nativeReputation);\n    }\n\n    function isSchemeRegistered(address _scheme, address _avatar) external isAvatarValid(_avatar) view returns(bool) {\n        return _isSchemeRegistered(_scheme);\n    }\n\n    function getSchemeParameters(address _scheme, address _avatar)\n    external\n    isAvatarValid(_avatar)\n    view\n    returns(bytes32)\n    {\n        return schemes[_scheme].paramsHash;\n    }\n\n    function getSchemePermissions(address _scheme, address _avatar)\n    external\n    isAvatarValid(_avatar)\n    view\n    returns(bytes4)\n    {\n        return schemes[_scheme].permissions;\n    }\n\n    function getGlobalConstraintParameters(address _globalConstraint, address) external view returns(bytes32) {\n\n        GlobalConstraintRegister memory register = globalConstraintsRegisterPre[_globalConstraint];\n\n        if (register.isRegistered) {\n            return globalConstraintsPre[register.index].params;\n        }\n\n        register = globalConstraintsRegisterPost[_globalConstraint];\n\n        if (register.isRegistered) {\n            return globalConstraintsPost[register.index].params;\n        }\n    }\n\n   /**\n    * @dev globalConstraintsCount return the global constraint pre and post count\n    * @return uint256 globalConstraintsPre count.\n    * @return uint256 globalConstraintsPost count.\n    */\n    function globalConstraintsCount(address _avatar)\n        external\n        isAvatarValid(_avatar)\n        view\n        returns(uint, uint)\n        {\n        return (globalConstraintsPre.length, globalConstraintsPost.length);\n    }\n\n    function isGlobalConstraintRegistered(address _globalConstraint, address _avatar)\n        external\n        isAvatarValid(_avatar)\n        view\n        returns(bool)\n        {\n        return (globalConstraintsRegisterPre[_globalConstraint].isRegistered ||\n                globalConstraintsRegisterPost[_globalConstraint].isRegistered);\n    }\n\n    function _isSchemeRegistered(address _scheme) private view returns(bool) {\n        return (schemes[_scheme].permissions&bytes4(0x00000001) != bytes4(0));\n    }\n}\n",
  "sourcePath": "@daostack/arc/contracts/controller/Controller.sol",
  "ast": {
    "absolutePath": "@daostack/arc/contracts/controller/Controller.sol",
    "exportedSymbols": {
      "Controller": [
        3466
      ]
    },
    "id": 3467,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2012,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:22"
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
        "file": "./Avatar.sol",
        "id": 2013,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 2011,
        "src": "25:22:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol",
        "file": "../globalConstraints/GlobalConstraintInterface.sol",
        "id": 2014,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 3810,
        "src": "48:60:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "file": "./ControllerInterface.sol",
        "id": 2015,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 3700,
        "src": "109:35:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 2016,
              "name": "ControllerInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3699,
              "src": "433:19:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ControllerInterface_$3699",
                "typeString": "contract ControllerInterface"
              }
            },
            "id": 2017,
            "nodeType": "InheritanceSpecifier",
            "src": "433:19:22"
          }
        ],
        "contractDependencies": [
          3699
        ],
        "contractKind": "contract",
        "documentation": "@title Controller contract\n@dev A controller controls the organizations tokens, reputation and avatar.\nIt is subject to a set of schemes and constraints that determine its behavior.\nEach scheme has it own parameters and operation permissions.",
        "fullyImplemented": true,
        "id": 3466,
        "linearizedBaseContracts": [
          3466,
          3699
        ],
        "name": "Controller",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "Controller.Scheme",
            "id": 2022,
            "members": [
              {
                "constant": false,
                "id": 2019,
                "name": "paramsHash",
                "nodeType": "VariableDeclaration",
                "scope": 2022,
                "src": "484:18:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 2018,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "484:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2021,
                "name": "permissions",
                "nodeType": "VariableDeclaration",
                "scope": 2022,
                "src": "553:19:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes4",
                  "typeString": "bytes4"
                },
                "typeName": {
                  "id": 2020,
                  "name": "bytes4",
                  "nodeType": "ElementaryTypeName",
                  "src": "553:6:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "Scheme",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "460:663:22",
            "visibility": "public"
          },
          {
            "canonicalName": "Controller.GlobalConstraint",
            "id": 2027,
            "members": [
              {
                "constant": false,
                "id": 2024,
                "name": "gcAddress",
                "nodeType": "VariableDeclaration",
                "scope": 2027,
                "src": "1163:17:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                },
                "typeName": {
                  "id": 2023,
                  "name": "address",
                  "nodeType": "ElementaryTypeName",
                  "src": "1163:7:22",
                  "stateMutability": "nonpayable",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2026,
                "name": "params",
                "nodeType": "VariableDeclaration",
                "scope": 2027,
                "src": "1190:14:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 2025,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1190:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "GlobalConstraint",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "1129:82:22",
            "visibility": "public"
          },
          {
            "canonicalName": "Controller.GlobalConstraintRegister",
            "id": 2032,
            "members": [
              {
                "constant": false,
                "id": 2029,
                "name": "isRegistered",
                "nodeType": "VariableDeclaration",
                "scope": 2032,
                "src": "1259:17:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                },
                "typeName": {
                  "id": 2028,
                  "name": "bool",
                  "nodeType": "ElementaryTypeName",
                  "src": "1259:4:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2031,
                "name": "index",
                "nodeType": "VariableDeclaration",
                "scope": 2032,
                "src": "1302:13:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                },
                "typeName": {
                  "id": 2030,
                  "name": "uint256",
                  "nodeType": "ElementaryTypeName",
                  "src": "1302:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "GlobalConstraintRegister",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "1217:137:22",
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2036,
            "name": "schemes",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1360:39:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
              "typeString": "mapping(address => struct Controller.Scheme)"
            },
            "typeName": {
              "id": 2035,
              "keyType": {
                "id": 2033,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "1368:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "1360:24:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                "typeString": "mapping(address => struct Controller.Scheme)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2034,
                "name": "Scheme",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2022,
                "src": "1377:6:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_Scheme_$2022_storage_ptr",
                  "typeString": "struct Controller.Scheme"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2038,
            "name": "avatar",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1406:20:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Avatar_$2010",
              "typeString": "contract Avatar"
            },
            "typeName": {
              "contractScope": null,
              "id": 2037,
              "name": "Avatar",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 2010,
              "src": "1406:6:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Avatar_$2010",
                "typeString": "contract Avatar"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2040,
            "name": "nativeToken",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1432:27:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_DAOToken_$3775",
              "typeString": "contract DAOToken"
            },
            "typeName": {
              "contractScope": null,
              "id": 2039,
              "name": "DAOToken",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3775,
              "src": "1432:8:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_DAOToken_$3775",
                "typeString": "contract DAOToken"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2042,
            "name": "nativeReputation",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1465:34:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Reputation_$9557",
              "typeString": "contract Reputation"
            },
            "typeName": {
              "contractScope": null,
              "id": 2041,
              "name": "Reputation",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 9557,
              "src": "1465:10:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Reputation_$9557",
                "typeString": "contract Reputation"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2044,
            "name": "newController",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1598:28:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 2043,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "1598:7:22",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2047,
            "name": "globalConstraintsPre",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1723:46:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
              "typeString": "struct Controller.GlobalConstraint[]"
            },
            "typeName": {
              "baseType": {
                "contractScope": null,
                "id": 2045,
                "name": "GlobalConstraint",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2027,
                "src": "1723:16:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraint"
                }
              },
              "id": 2046,
              "length": null,
              "nodeType": "ArrayTypeName",
              "src": "1723:18:22",
              "typeDescriptions": {
                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage_ptr",
                "typeString": "struct Controller.GlobalConstraint[]"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2050,
            "name": "globalConstraintsPost",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1867:47:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
              "typeString": "struct Controller.GlobalConstraint[]"
            },
            "typeName": {
              "baseType": {
                "contractScope": null,
                "id": 2048,
                "name": "GlobalConstraint",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2027,
                "src": "1867:16:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraint"
                }
              },
              "id": 2049,
              "length": null,
              "nodeType": "ArrayTypeName",
              "src": "1867:18:22",
              "typeDescriptions": {
                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage_ptr",
                "typeString": "struct Controller.GlobalConstraint[]"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2054,
            "name": "globalConstraintsRegisterPre",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "2027:78:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
            },
            "typeName": {
              "id": 2053,
              "keyType": {
                "id": 2051,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "2035:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "2027:42:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2052,
                "name": "GlobalConstraintRegister",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2032,
                "src": "2044:24:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraintRegister"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2058,
            "name": "globalConstraintsRegisterPost",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "2220:79:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
            },
            "typeName": {
              "id": 2057,
              "keyType": {
                "id": 2055,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "2228:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "2220:42:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2056,
                "name": "GlobalConstraintRegister",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2032,
                "src": "2237:24:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraintRegister"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2066,
            "name": "MintReputation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2065,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2060,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2328:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2059,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2328:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2062,
                  "indexed": true,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2353:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2061,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2353:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2064,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2374:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2063,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2374:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2327:63:22"
            },
            "src": "2306:85:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2074,
            "name": "BurnReputation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2073,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2068,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2418:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2067,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2418:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2070,
                  "indexed": true,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2443:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2069,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2443:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2072,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2466:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2071,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2466:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2417:65:22"
            },
            "src": "2396:87:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2082,
            "name": "MintTokens",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2081,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2076,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2506:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2075,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2506:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2078,
                  "indexed": true,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2531:28:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2077,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2531:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2080,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2561:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2079,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2561:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2505:72:22"
            },
            "src": "2488:90:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2088,
            "name": "RegisterScheme",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2087,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2084,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2088,
                  "src": "2605:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2083,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2605:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2086,
                  "indexed": true,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2088,
                  "src": "2630:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2085,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2630:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2604:50:22"
            },
            "src": "2583:72:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2094,
            "name": "UnregisterScheme",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2093,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2090,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2094,
                  "src": "2684:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2089,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2684:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2092,
                  "indexed": true,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2094,
                  "src": "2709:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2091,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2709:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2683:50:22"
            },
            "src": "2660:74:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2100,
            "name": "UpgradeController",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2099,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2096,
                  "indexed": true,
                  "name": "_oldController",
                  "nodeType": "VariableDeclaration",
                  "scope": 2100,
                  "src": "2763:30:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2095,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2763:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2098,
                  "indexed": false,
                  "name": "_newController",
                  "nodeType": "VariableDeclaration",
                  "scope": 2100,
                  "src": "2795:22:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2097,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2795:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2762:56:22"
            },
            "src": "2739:80:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2108,
            "name": "AddGlobalConstraint",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2107,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2102,
                  "indexed": true,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2860:33:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2101,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2860:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2104,
                  "indexed": false,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2903:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2103,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2903:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2106,
                  "indexed": false,
                  "name": "_when",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2928:41:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_CallPhase_$3781",
                    "typeString": "enum GlobalConstraintInterface.CallPhase"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2105,
                    "name": "GlobalConstraintInterface.CallPhase",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3781,
                    "src": "2928:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2850:120:22"
            },
            "src": "2825:146:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2116,
            "name": "RemoveGlobalConstraint",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2115,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2110,
                  "indexed": true,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3006:33:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2109,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "3006:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2112,
                  "indexed": false,
                  "name": "_index",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3041:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2111,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3041:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2114,
                  "indexed": false,
                  "name": "_isPre",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3057:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2113,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3057:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3005:64:22"
            },
            "src": "2977:93:22"
          },
          {
            "body": {
              "id": 2151,
              "nodeType": "Block",
              "src": "3112:228:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2123,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2121,
                      "name": "avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2038,
                      "src": "3122:6:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$2010",
                        "typeString": "contract Avatar"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2122,
                      "name": "_avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2118,
                      "src": "3131:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$2010",
                        "typeString": "contract Avatar"
                      }
                    },
                    "src": "3122:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "id": 2124,
                  "nodeType": "ExpressionStatement",
                  "src": "3122:16:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2129,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2125,
                      "name": "nativeToken",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2040,
                      "src": "3148:11:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_DAOToken_$3775",
                        "typeString": "contract DAOToken"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 2126,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2038,
                          "src": "3162:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "id": 2127,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "nativeToken",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1746,
                        "src": "3162:18:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_DAOToken_$3775_$",
                          "typeString": "function () view external returns (contract DAOToken)"
                        }
                      },
                      "id": 2128,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3162:20:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_DAOToken_$3775",
                        "typeString": "contract DAOToken"
                      }
                    },
                    "src": "3148:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DAOToken_$3775",
                      "typeString": "contract DAOToken"
                    }
                  },
                  "id": 2130,
                  "nodeType": "ExpressionStatement",
                  "src": "3148:34:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2135,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2131,
                      "name": "nativeReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2042,
                      "src": "3192:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Reputation_$9557",
                        "typeString": "contract Reputation"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 2132,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2038,
                          "src": "3211:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "id": 2133,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "nativeReputation",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1748,
                        "src": "3211:23:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Reputation_$9557_$",
                          "typeString": "function () view external returns (contract Reputation)"
                        }
                      },
                      "id": 2134,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3211:25:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Reputation_$9557",
                        "typeString": "contract Reputation"
                      }
                    },
                    "src": "3192:44:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Reputation_$9557",
                      "typeString": "contract Reputation"
                    }
                  },
                  "id": 2136,
                  "nodeType": "ExpressionStatement",
                  "src": "3192:44:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2149,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2137,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "3246:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2140,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2138,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3254:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2139,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3254:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3246:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2143,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3296:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2142,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3288:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes32_$",
                              "typeString": "type(bytes32)"
                            },
                            "typeName": "bytes32"
                          },
                          "id": 2144,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3288:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303146",
                              "id": 2146,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3320:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_31_by_1",
                                "typeString": "int_const 31"
                              },
                              "value": "0x0000001F"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_31_by_1",
                                "typeString": "int_const 31"
                              }
                            ],
                            "id": 2145,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3313:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2147,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3313:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2141,
                        "name": "Scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2022,
                        "src": "3268:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_struct$_Scheme_$2022_storage_ptr_$",
                          "typeString": "type(struct Controller.Scheme storage pointer)"
                        }
                      },
                      "id": 2148,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "structConstructorCall",
                      "lValueRequested": false,
                      "names": [
                        "paramsHash",
                        "permissions"
                      ],
                      "nodeType": "FunctionCall",
                      "src": "3268:65:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_memory",
                        "typeString": "struct Controller.Scheme memory"
                      }
                    },
                    "src": "3246:87:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                      "typeString": "struct Controller.Scheme storage ref"
                    }
                  },
                  "id": 2150,
                  "nodeType": "ExpressionStatement",
                  "src": "3246:87:22"
                }
              ]
            },
            "documentation": null,
            "id": 2152,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2119,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2118,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2152,
                  "src": "3089:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2117,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "3089:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3087:17:22"
            },
            "returnParameters": {
              "id": 2120,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3112:0:22"
            },
            "scope": 3466,
            "src": "3076:264:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2158,
              "nodeType": "Block",
              "src": "3449:25:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2155,
                      "name": "revert",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23695,
                        23696
                      ],
                      "referencedDeclaration": 23695,
                      "src": "3459:6:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_revert_pure$__$returns$__$",
                        "typeString": "function () pure"
                      }
                    },
                    "id": 2156,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3459:8:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2157,
                  "nodeType": "ExpressionStatement",
                  "src": "3459:8:22"
                }
              ]
            },
            "documentation": null,
            "id": 2159,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2153,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3437:2:22"
            },
            "returnParameters": {
              "id": 2154,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3449:0:22"
            },
            "scope": 3466,
            "src": "3429:45:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2178,
              "nodeType": "Block",
              "src": "3528:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2174,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2170,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2162,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3546:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2165,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2163,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3554:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2164,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3554:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3546:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2166,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3546:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303031",
                                "id": 2168,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3585:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                "value": "0x00000001"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                }
                              ],
                              "id": 2167,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3578:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2169,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3578:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3546:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303031",
                              "id": 2172,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3607:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_1_by_1",
                                "typeString": "int_const 1"
                              },
                              "value": "0x00000001"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_1_by_1",
                                "typeString": "int_const 1"
                              }
                            ],
                            "id": 2171,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3600:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2173,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3600:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3546:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2161,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3538:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2175,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3538:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2176,
                  "nodeType": "ExpressionStatement",
                  "src": "3538:81:22"
                },
                {
                  "id": 2177,
                  "nodeType": "PlaceholderStatement",
                  "src": "3629:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2179,
            "name": "onlyRegisteredScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2160,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3525:2:22"
            },
            "src": "3496:141:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2198,
              "nodeType": "Block",
              "src": "3677:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2194,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2190,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2182,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3695:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2185,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2183,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3703:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2184,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3703:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3695:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2186,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3695:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303032",
                                "id": 2188,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3734:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                },
                                "value": "0x00000002"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                }
                              ],
                              "id": 2187,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3727:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2189,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3727:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3695:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303032",
                              "id": 2192,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3756:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_2_by_1",
                                "typeString": "int_const 2"
                              },
                              "value": "0x00000002"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_2_by_1",
                                "typeString": "int_const 2"
                              }
                            ],
                            "id": 2191,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3749:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2193,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3749:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3695:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2181,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3687:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2195,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3687:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2196,
                  "nodeType": "ExpressionStatement",
                  "src": "3687:81:22"
                },
                {
                  "id": 2197,
                  "nodeType": "PlaceholderStatement",
                  "src": "3778:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2199,
            "name": "onlyRegisteringSchemes",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2180,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3674:2:22"
            },
            "src": "3643:143:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2218,
              "nodeType": "Block",
              "src": "3831:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2214,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2210,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2202,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3849:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2205,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2203,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3857:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2204,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3857:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3849:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2206,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3849:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303034",
                                "id": 2208,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3888:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_4_by_1",
                                  "typeString": "int_const 4"
                                },
                                "value": "0x00000004"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_4_by_1",
                                  "typeString": "int_const 4"
                                }
                              ],
                              "id": 2207,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3881:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2209,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3881:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3849:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303034",
                              "id": 2212,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3910:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_4_by_1",
                                "typeString": "int_const 4"
                              },
                              "value": "0x00000004"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_4_by_1",
                                "typeString": "int_const 4"
                              }
                            ],
                            "id": 2211,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3903:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2213,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3903:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3849:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2201,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3841:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2215,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3841:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2216,
                  "nodeType": "ExpressionStatement",
                  "src": "3841:81:22"
                },
                {
                  "id": 2217,
                  "nodeType": "PlaceholderStatement",
                  "src": "3932:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2219,
            "name": "onlyGlobalConstraintsScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2200,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3828:2:22"
            },
            "src": "3792:148:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2238,
              "nodeType": "Block",
              "src": "3977:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2234,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2230,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2222,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3995:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2225,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2223,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4003:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2224,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4003:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3995:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2226,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3995:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303038",
                                "id": 2228,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4034:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_8_by_1",
                                  "typeString": "int_const 8"
                                },
                                "value": "0x00000008"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_8_by_1",
                                  "typeString": "int_const 8"
                                }
                              ],
                              "id": 2227,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4027:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2229,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4027:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3995:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303038",
                              "id": 2232,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4056:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_8_by_1",
                                "typeString": "int_const 8"
                              },
                              "value": "0x00000008"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_8_by_1",
                                "typeString": "int_const 8"
                              }
                            ],
                            "id": 2231,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4049:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2233,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4049:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3995:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2221,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3987:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2235,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3987:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2236,
                  "nodeType": "ExpressionStatement",
                  "src": "3987:81:22"
                },
                {
                  "id": 2237,
                  "nodeType": "PlaceholderStatement",
                  "src": "4078:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2239,
            "name": "onlyUpgradingScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2220,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3974:2:22"
            },
            "src": "3946:140:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2258,
              "nodeType": "Block",
              "src": "4125:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2254,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2250,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2242,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "4143:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2245,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2243,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4151:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2244,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4151:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "4143:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2246,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "4143:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303130",
                                "id": 2248,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4182:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                },
                                "value": "0x00000010"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                }
                              ],
                              "id": 2247,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4175:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2249,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4175:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "4143:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303130",
                              "id": 2252,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4204:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              },
                              "value": "0x00000010"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              }
                            ],
                            "id": 2251,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4197:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2253,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4197:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "4143:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2241,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "4135:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2255,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4135:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2256,
                  "nodeType": "ExpressionStatement",
                  "src": "4135:81:22"
                },
                {
                  "id": 2257,
                  "nodeType": "PlaceholderStatement",
                  "src": "4226:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2259,
            "name": "onlyGenericCallScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2240,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4122:2:22"
            },
            "src": "4092:142:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2278,
              "nodeType": "Block",
              "src": "4270:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2274,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2270,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2262,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "4288:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2265,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2263,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4296:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2264,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4296:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "4288:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2266,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "4288:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303130",
                                "id": 2268,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4327:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                },
                                "value": "0x00000010"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                }
                              ],
                              "id": 2267,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4320:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2269,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4320:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "4288:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303130",
                              "id": 2272,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4349:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              },
                              "value": "0x00000010"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              }
                            ],
                            "id": 2271,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4342:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2273,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4342:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "4288:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2261,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "4280:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2275,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4280:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2276,
                  "nodeType": "ExpressionStatement",
                  "src": "4280:81:22"
                },
                {
                  "id": 2277,
                  "nodeType": "PlaceholderStatement",
                  "src": "4371:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2279,
            "name": "onlyMetaDataScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2260,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4267:2:22"
            },
            "src": "4240:139:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2351,
              "nodeType": "Block",
              "src": "4432:533:22",
              "statements": [
                {
                  "assignments": [
                    2284
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2284,
                      "name": "idx",
                      "nodeType": "VariableDeclaration",
                      "scope": 2351,
                      "src": "4442:11:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 2283,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "4442:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2285,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4442:11:22"
                },
                {
                  "body": {
                    "id": 2316,
                    "nodeType": "Block",
                    "src": "4519:180:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2306,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23690,
                                    "src": "4636:3:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 2307,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "4636:10:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2308,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "4648:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2310,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2309,
                                      "name": "idx",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2284,
                                      "src": "4669:3:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "4648:25:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2311,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "4648:32:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2312,
                                  "name": "func",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2281,
                                  "src": "4682:4:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "arguments": [
                                        {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "baseExpression": {
                                              "argumentTypes": null,
                                              "id": 2299,
                                              "name": "globalConstraintsPre",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2047,
                                              "src": "4581:20:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2301,
                                            "indexExpression": {
                                              "argumentTypes": null,
                                              "id": 2300,
                                              "name": "idx",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2284,
                                              "src": "4602:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                              }
                                            },
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "nodeType": "IndexAccess",
                                            "src": "4581:25:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                              "typeString": "struct Controller.GlobalConstraint storage ref"
                                            }
                                          },
                                          "id": 2302,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "gcAddress",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2024,
                                          "src": "4581:35:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        ],
                                        "id": 2298,
                                        "name": "GlobalConstraintInterface",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 3809,
                                        "src": "4555:25:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                          "typeString": "type(contract GlobalConstraintInterface)"
                                        }
                                      },
                                      "id": 2303,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "4555:62:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                        "typeString": "contract GlobalConstraintInterface"
                                      }
                                    }
                                  ],
                                  "id": 2304,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "4554:64:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                    "typeString": "contract GlobalConstraintInterface"
                                  }
                                },
                                "id": 2305,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "pre",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 3792,
                                "src": "4554:81:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes32_$_t_bytes32_$returns$_t_bool_$",
                                  "typeString": "function (address,bytes32,bytes32) external returns (bool)"
                                }
                              },
                              "id": 2313,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "4554:133:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2297,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4533:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 2314,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4533:155:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2315,
                        "nodeType": "ExpressionStatement",
                        "src": "4533:155:22"
                      }
                    ]
                  },
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 2293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 2290,
                      "name": "idx",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2284,
                      "src": "4477:3:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 2291,
                        "name": "globalConstraintsPre",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2047,
                        "src": "4483:20:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                          "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                        }
                      },
                      "id": 2292,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "4483:27:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4477:33:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2317,
                  "initializationExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2288,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 2286,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4468:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 2287,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "4474:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "4468:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2289,
                    "nodeType": "ExpressionStatement",
                    "src": "4468:7:22"
                  },
                  "loopExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2295,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "4512:5:22",
                      "subExpression": {
                        "argumentTypes": null,
                        "id": 2294,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4512:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2296,
                    "nodeType": "ExpressionStatement",
                    "src": "4512:5:22"
                  },
                  "nodeType": "ForStatement",
                  "src": "4463:236:22"
                },
                {
                  "id": 2318,
                  "nodeType": "PlaceholderStatement",
                  "src": "4708:1:22"
                },
                {
                  "body": {
                    "id": 2349,
                    "nodeType": "Block",
                    "src": "4776:183:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2339,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23690,
                                    "src": "4895:3:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 2340,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "4895:10:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2341,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "4907:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2343,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2342,
                                      "name": "idx",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2284,
                                      "src": "4929:3:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "4907:26:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2344,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "4907:33:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2345,
                                  "name": "func",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2281,
                                  "src": "4942:4:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "arguments": [
                                        {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "baseExpression": {
                                              "argumentTypes": null,
                                              "id": 2332,
                                              "name": "globalConstraintsPost",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2050,
                                              "src": "4838:21:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2334,
                                            "indexExpression": {
                                              "argumentTypes": null,
                                              "id": 2333,
                                              "name": "idx",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2284,
                                              "src": "4860:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                              }
                                            },
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "nodeType": "IndexAccess",
                                            "src": "4838:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                              "typeString": "struct Controller.GlobalConstraint storage ref"
                                            }
                                          },
                                          "id": 2335,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "gcAddress",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2024,
                                          "src": "4838:36:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        ],
                                        "id": 2331,
                                        "name": "GlobalConstraintInterface",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 3809,
                                        "src": "4812:25:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                          "typeString": "type(contract GlobalConstraintInterface)"
                                        }
                                      },
                                      "id": 2336,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "4812:63:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                        "typeString": "contract GlobalConstraintInterface"
                                      }
                                    }
                                  ],
                                  "id": 2337,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "4811:65:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                    "typeString": "contract GlobalConstraintInterface"
                                  }
                                },
                                "id": 2338,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "post",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 3803,
                                "src": "4811:83:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes32_$_t_bytes32_$returns$_t_bool_$",
                                  "typeString": "function (address,bytes32,bytes32) external returns (bool)"
                                }
                              },
                              "id": 2346,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "4811:136:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2330,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4790:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 2347,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4790:158:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2348,
                        "nodeType": "ExpressionStatement",
                        "src": "4790:158:22"
                      }
                    ]
                  },
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 2326,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 2323,
                      "name": "idx",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2284,
                      "src": "4733:3:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 2324,
                        "name": "globalConstraintsPost",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2050,
                        "src": "4739:21:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                          "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                        }
                      },
                      "id": 2325,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "4739:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4733:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2350,
                  "initializationExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2321,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 2319,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4724:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 2320,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "4730:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "4724:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2322,
                    "nodeType": "ExpressionStatement",
                    "src": "4724:7:22"
                  },
                  "loopExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2328,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "4769:5:22",
                      "subExpression": {
                        "argumentTypes": null,
                        "id": 2327,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4769:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2329,
                    "nodeType": "ExpressionStatement",
                    "src": "4769:5:22"
                  },
                  "nodeType": "ForStatement",
                  "src": "4719:240:22"
                }
              ]
            },
            "documentation": null,
            "id": 2352,
            "name": "onlySubjectToConstraint",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2282,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2281,
                  "name": "func",
                  "nodeType": "VariableDeclaration",
                  "scope": 2352,
                  "src": "4418:12:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2280,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4418:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4417:14:22"
            },
            "src": "4385:580:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2365,
              "nodeType": "Block",
              "src": "5011:63:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 2361,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 2357,
                          "name": "_avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2354,
                          "src": "5029:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 2359,
                              "name": "avatar",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2038,
                              "src": "5048:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            ],
                            "id": 2358,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "5040:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 2360,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "5040:15:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "5029:26:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2356,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "5021:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2362,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5021:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2363,
                  "nodeType": "ExpressionStatement",
                  "src": "5021:35:22"
                },
                {
                  "id": 2364,
                  "nodeType": "PlaceholderStatement",
                  "src": "5066:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2366,
            "name": "isAvatarValid",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2355,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2354,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2366,
                  "src": "4994:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2353,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "4994:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4993:17:22"
            },
            "src": "4971:103:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2398,
              "nodeType": "Block",
              "src": "5507:114:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2386,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "5537:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2387,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "5537:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2388,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2370,
                        "src": "5549:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2389,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2368,
                        "src": "5554:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2385,
                      "name": "MintReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2066,
                      "src": "5522:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2390,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5522:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2391,
                  "nodeType": "EmitStatement",
                  "src": "5517:45:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2394,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2370,
                        "src": "5601:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2395,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2368,
                        "src": "5606:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2392,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "5579:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      },
                      "id": 2393,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "mint",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 9319,
                      "src": "5579:21:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2396,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5579:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2384,
                  "id": 2397,
                  "nodeType": "Return",
                  "src": "5572:42:22"
                }
              ]
            },
            "documentation": "@dev Mint `_amount` of reputation that are assigned to `_to` .\n@param  _amount amount of reputation to mint\n@param _to beneficiary address\n@return bool which represents a success",
            "id": 2399,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2375,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2374,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "5391:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5391:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6d696e7452657075746174696f6e",
                    "id": 2377,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "5440:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_1a219662897983599a6b9002ff87ae94af2205e820352b0884d9af0be457f05d",
                      "typeString": "literal_string \"mintReputation\""
                    },
                    "value": "mintReputation"
                  }
                ],
                "id": 2378,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2376,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "5416:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5416:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2380,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2372,
                    "src": "5476:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2381,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2379,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "5462:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5462:22:22"
              }
            ],
            "name": "mintReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2373,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2368,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5327:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2367,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5327:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2370,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5344:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2369,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5344:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2372,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5357:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2371,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5357:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5326:47:22"
            },
            "returnParameters": {
              "id": 2384,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2383,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5497:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2382,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "5497:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5496:6:22"
            },
            "scope": 3466,
            "src": "5303:318:22",
            "stateMutability": "nonpayable",
            "superFunction": 3481,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2431,
              "nodeType": "Block",
              "src": "6064:118:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2419,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "6094:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2420,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "6094:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2421,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2403,
                        "src": "6106:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2422,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2401,
                        "src": "6113:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2418,
                      "name": "BurnReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2074,
                      "src": "6079:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2423,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6079:42:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2424,
                  "nodeType": "EmitStatement",
                  "src": "6074:47:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2427,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2403,
                        "src": "6160:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2428,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2401,
                        "src": "6167:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2425,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "6138:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      },
                      "id": 2426,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "burn",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 9378,
                      "src": "6138:21:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2429,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6138:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2417,
                  "id": 2430,
                  "nodeType": "Return",
                  "src": "6131:44:22"
                }
              ]
            },
            "documentation": "@dev Burns `_amount` of reputation from `_from`\n@param _amount amount of reputation to burn\n@param _from The address that will lose the reputation\n@return bool which represents a success",
            "id": 2432,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2408,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2407,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "5948:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5948:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6275726e52657075746174696f6e",
                    "id": 2410,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "5997:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_701c6a9b3c30976c567c709256889545b87c2151a8fd377ac6f0366a5ce4dd74",
                      "typeString": "literal_string \"burnReputation\""
                    },
                    "value": "burnReputation"
                  }
                ],
                "id": 2411,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2409,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "5973:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5973:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2413,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2405,
                    "src": "6033:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2414,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2412,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "6019:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6019:22:22"
              }
            ],
            "name": "burnReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2406,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2401,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5882:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2400,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5882:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2403,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5899:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2402,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5899:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2405,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5914:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2404,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5914:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5881:49:22"
            },
            "returnParameters": {
              "id": 2417,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2416,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "6054:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2415,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6054:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6053:6:22"
            },
            "scope": 3466,
            "src": "5858:324:22",
            "stateMutability": "nonpayable",
            "superFunction": 3492,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2464,
              "nodeType": "Block",
              "src": "6576:123:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2452,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "6602:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2453,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "6602:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2454,
                        "name": "_beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2436,
                        "src": "6614:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2455,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2434,
                        "src": "6628:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2451,
                      "name": "MintTokens",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2082,
                      "src": "6591:10:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2456,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6591:45:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2457,
                  "nodeType": "EmitStatement",
                  "src": "6586:50:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2460,
                        "name": "_beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2436,
                        "src": "6670:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2461,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2434,
                        "src": "6684:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2458,
                        "name": "nativeToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2040,
                        "src": "6653:11:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_DAOToken_$3775",
                          "typeString": "contract DAOToken"
                        }
                      },
                      "id": 2459,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "mint",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3774,
                      "src": "6653:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2462,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6653:39:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2450,
                  "id": 2463,
                  "nodeType": "Return",
                  "src": "6646:46:22"
                }
              ]
            },
            "documentation": "@dev mint tokens .\n@param  _amount amount of token to mint\n@param _beneficiary beneficiary address\n@return bool which represents a success",
            "id": 2465,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2441,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2440,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "6464:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6464:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6d696e74546f6b656e73",
                    "id": 2443,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "6513:12:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_21b23862db72e99373f312e35ae4594cf48c0e3462d6964e450d863eb9283120",
                      "typeString": "literal_string \"mintTokens\""
                    },
                    "value": "mintTokens"
                  }
                ],
                "id": 2444,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2442,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "6489:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6489:37:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2446,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2438,
                    "src": "6545:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2447,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2445,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "6531:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6531:22:22"
              }
            ],
            "name": "mintTokens",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2439,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2434,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6391:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2433,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6391:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2436,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6408:20:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2435,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6408:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2438,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6430:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2437,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6430:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6390:56:22"
            },
            "returnParameters": {
              "id": 2450,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2449,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6566:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2448,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6566:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6565:6:22"
            },
            "scope": 3466,
            "src": "6371:328:22",
            "stateMutability": "nonpayable",
            "superFunction": 3503,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2564,
              "nodeType": "Block",
              "src": "7211:876:22",
              "statements": [
                {
                  "assignments": [
                    2487
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2487,
                      "name": "scheme",
                      "nodeType": "VariableDeclaration",
                      "scope": 2564,
                      "src": "7222:20:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                        "typeString": "struct Controller.Scheme"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2486,
                        "name": "Scheme",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2022,
                        "src": "7222:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage_ptr",
                          "typeString": "struct Controller.Scheme"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2491,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 2488,
                      "name": "schemes",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2036,
                      "src": "7245:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                      }
                    },
                    "id": 2490,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 2489,
                      "name": "_scheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2467,
                      "src": "7253:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "7245:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                      "typeString": "struct Controller.Scheme storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "7222:39:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2513,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2509,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "commonType": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            },
                            "id": 2501,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "hexValue": "30783030303030303166",
                                  "id": 2494,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "7567:10:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_31_by_1",
                                    "typeString": "int_const 31"
                                  },
                                  "value": "0x0000001f"
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_rational_31_by_1",
                                    "typeString": "int_const 31"
                                  }
                                ],
                                "id": 2493,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "7560:6:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_bytes4_$",
                                  "typeString": "type(bytes4)"
                                },
                                "typeName": "bytes4"
                              },
                              "id": 2495,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "7560:18:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes4",
                                "typeString": "bytes4"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "&",
                            "rightExpression": {
                              "argumentTypes": null,
                              "components": [
                                {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  },
                                  "id": 2499,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "id": 2496,
                                    "name": "_permissions",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2471,
                                    "src": "7580:12:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes4",
                                      "typeString": "bytes4"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "^",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2497,
                                      "name": "scheme",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2487,
                                      "src": "7593:6:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                                        "typeString": "struct Controller.Scheme memory"
                                      }
                                    },
                                    "id": 2498,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "permissions",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": 2021,
                                    "src": "7593:18:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes4",
                                      "typeString": "bytes4"
                                    }
                                  },
                                  "src": "7580:31:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                }
                              ],
                              "id": 2500,
                              "isConstant": false,
                              "isInlineArray": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "TupleExpression",
                              "src": "7579:33:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes4",
                                "typeString": "bytes4"
                              }
                            },
                            "src": "7560:52:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "id": 2507,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "~",
                                "prefix": true,
                                "src": "7614:32:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2502,
                                      "name": "schemes",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2036,
                                      "src": "7615:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                      }
                                    },
                                    "id": 2505,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "id": 2503,
                                        "name": "msg",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 23690,
                                        "src": "7623:3:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_magic_message",
                                          "typeString": "msg"
                                        }
                                      },
                                      "id": 2504,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "sender",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": null,
                                      "src": "7623:10:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_address_payable",
                                        "typeString": "address payable"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "7615:19:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                      "typeString": "struct Controller.Scheme storage ref"
                                    }
                                  },
                                  "id": 2506,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "7615:31:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2508,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "7613:34:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "7560:87:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2511,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "7658:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2510,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "7651:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2512,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "7651:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "7560:100:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2492,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "7552:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2514,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7552:109:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2515,
                  "nodeType": "ExpressionStatement",
                  "src": "7552:109:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2535,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2531,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303166",
                                "id": 2518,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "7771:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                },
                                "value": "0x0000001f"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                }
                              ],
                              "id": 2517,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "7764:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2519,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "7764:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                },
                                "id": 2529,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2520,
                                    "name": "scheme",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2487,
                                    "src": "7784:6:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                                      "typeString": "struct Controller.Scheme memory"
                                    }
                                  },
                                  "id": 2521,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "7784:18:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "&",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2527,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "nodeType": "UnaryOperation",
                                      "operator": "~",
                                      "prefix": true,
                                      "src": "7804:32:22",
                                      "subExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2522,
                                            "name": "schemes",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2036,
                                            "src": "7805:7:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                              "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                            }
                                          },
                                          "id": 2525,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2523,
                                              "name": "msg",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 23690,
                                              "src": "7813:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_magic_message",
                                                "typeString": "msg"
                                              }
                                            },
                                            "id": 2524,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "7813:10:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address_payable",
                                              "typeString": "address payable"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "7805:19:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                            "typeString": "struct Controller.Scheme storage ref"
                                          }
                                        },
                                        "id": 2526,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "permissions",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2021,
                                        "src": "7805:31:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes4",
                                          "typeString": "bytes4"
                                        }
                                      },
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bytes4",
                                        "typeString": "bytes4"
                                      }
                                    }
                                  ],
                                  "id": 2528,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "7803:34:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "src": "7784:53:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2530,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "7783:55:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "7764:74:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2533,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "7849:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2532,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "7842:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2534,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "7842:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "7764:87:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2516,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "7756:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2536,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7756:96:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2537,
                  "nodeType": "ExpressionStatement",
                  "src": "7756:96:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2543,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 2538,
                          "name": "schemes",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2036,
                          "src": "7896:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                            "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                          }
                        },
                        "id": 2540,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 2539,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2467,
                          "src": "7904:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7896:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                          "typeString": "struct Controller.Scheme storage ref"
                        }
                      },
                      "id": 2541,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "memberName": "paramsHash",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2019,
                      "src": "7896:27:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2542,
                      "name": "_paramsHash",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2469,
                      "src": "7926:11:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "7896:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 2544,
                  "nodeType": "ExpressionStatement",
                  "src": "7896:41:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2554,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 2545,
                          "name": "schemes",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2036,
                          "src": "7947:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                            "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                          }
                        },
                        "id": 2547,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 2546,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2467,
                          "src": "7955:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7947:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                          "typeString": "struct Controller.Scheme storage ref"
                        }
                      },
                      "id": 2548,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "memberName": "permissions",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2021,
                      "src": "7947:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "commonType": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      },
                      "id": 2553,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "argumentTypes": null,
                        "id": 2549,
                        "name": "_permissions",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2471,
                        "src": "7978:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "|",
                      "rightExpression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30783030303030303031",
                            "id": 2551,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "7998:10:22",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_1_by_1",
                              "typeString": "int_const 1"
                            },
                            "value": "0x00000001"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_1_by_1",
                              "typeString": "int_const 1"
                            }
                          ],
                          "id": 2550,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "7991:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_bytes4_$",
                            "typeString": "type(bytes4)"
                          },
                          "typeName": "bytes4"
                        },
                        "id": 2552,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "7991:18:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        }
                      },
                      "src": "7978:31:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      }
                    },
                    "src": "7947:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "id": 2555,
                  "nodeType": "ExpressionStatement",
                  "src": "7947:62:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2557,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "8039:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2558,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "8039:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2559,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2467,
                        "src": "8051:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2556,
                      "name": "RegisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2088,
                      "src": "8024:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2560,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8024:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2561,
                  "nodeType": "EmitStatement",
                  "src": "8019:40:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2562,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8076:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2485,
                  "id": 2563,
                  "nodeType": "Return",
                  "src": "8069:11:22"
                }
              ]
            },
            "documentation": "@dev register a scheme\n@param _scheme the address of the scheme\n@param _paramsHash a hashed configuration of the usage of the scheme\n@param _permissions the permissions the new scheme will have\n@return bool which represents a success",
            "id": 2565,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2476,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2475,
                  "name": "onlyRegisteringSchemes",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2199,
                  "src": "7093:22:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7093:22:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "7265676973746572536368656d65",
                    "id": 2478,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7144:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c6de131411a6b4c4ab26bd5c5ac65f44cdd792220de1a6733d66d35c3433e601",
                      "typeString": "literal_string \"registerScheme\""
                    },
                    "value": "registerScheme"
                  }
                ],
                "id": 2479,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2477,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "7120:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7120:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2481,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2473,
                    "src": "7180:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2482,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2480,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "7166:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7166:22:22"
              }
            ],
            "name": "registerScheme",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2474,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2467,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7000:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2466,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "7000:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2469,
                  "name": "_paramsHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7017:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2468,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7017:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2471,
                  "name": "_permissions",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7038:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 2470,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "7038:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2473,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7059:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2472,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "7059:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6999:76:22"
            },
            "returnParameters": {
              "id": 2485,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2484,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7201:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2483,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "7201:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7200:6:22"
            },
            "scope": 3466,
            "src": "6976:1111:22",
            "stateMutability": "nonpayable",
            "superFunction": 3516,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2628,
              "nodeType": "Block",
              "src": "8434:440:22",
              "statements": [
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2586,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 2583,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2567,
                          "src": "8508:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 2582,
                        "name": "_isSchemeRegistered",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3465,
                        "src": "8488:19:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                          "typeString": "function (address) view returns (bool)"
                        }
                      },
                      "id": 2584,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "8488:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "66616c7365",
                      "id": 2585,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "8520:5:22",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "false"
                    },
                    "src": "8488:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2590,
                  "nodeType": "IfStatement",
                  "src": "8484:80:22",
                  "trueBody": {
                    "id": 2589,
                    "nodeType": "Block",
                    "src": "8527:37:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 2587,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "8548:5:22",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "functionReturnParameters": 2581,
                        "id": 2588,
                        "nodeType": "Return",
                        "src": "8541:12:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2612,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2608,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303166",
                                "id": 2593,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "8650:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                },
                                "value": "0x0000001f"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                }
                              ],
                              "id": 2592,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "8643:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2594,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8643:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                },
                                "id": 2606,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2595,
                                      "name": "schemes",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2036,
                                      "src": "8663:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                      }
                                    },
                                    "id": 2597,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2596,
                                      "name": "_scheme",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2567,
                                      "src": "8671:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "8663:16:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                      "typeString": "struct Controller.Scheme storage ref"
                                    }
                                  },
                                  "id": 2598,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "8663:28:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "&",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2604,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "nodeType": "UnaryOperation",
                                      "operator": "~",
                                      "prefix": true,
                                      "src": "8693:32:22",
                                      "subExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2599,
                                            "name": "schemes",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2036,
                                            "src": "8694:7:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                              "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                            }
                                          },
                                          "id": 2602,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2600,
                                              "name": "msg",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 23690,
                                              "src": "8702:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_magic_message",
                                                "typeString": "msg"
                                              }
                                            },
                                            "id": 2601,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "8702:10:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address_payable",
                                              "typeString": "address payable"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "8694:19:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                            "typeString": "struct Controller.Scheme storage ref"
                                          }
                                        },
                                        "id": 2603,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "permissions",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2021,
                                        "src": "8694:31:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes4",
                                          "typeString": "bytes4"
                                        }
                                      },
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bytes4",
                                        "typeString": "bytes4"
                                      }
                                    }
                                  ],
                                  "id": 2605,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "8692:34:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "src": "8663:63:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2607,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "8662:65:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "8643:84:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2610,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "8738:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2609,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "8731:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2611,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "8731:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "8643:97:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2591,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "8635:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2613,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8635:106:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2614,
                  "nodeType": "ExpressionStatement",
                  "src": "8635:106:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2616,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "8793:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2617,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "8793:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2618,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2567,
                        "src": "8805:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2615,
                      "name": "UnregisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2094,
                      "src": "8776:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2619,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8776:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2620,
                  "nodeType": "EmitStatement",
                  "src": "8771:42:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2624,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "UnaryOperation",
                    "operator": "delete",
                    "prefix": true,
                    "src": "8823:23:22",
                    "subExpression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2621,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "8830:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2623,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 2622,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2567,
                        "src": "8838:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "8830:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2625,
                  "nodeType": "ExpressionStatement",
                  "src": "8823:23:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2626,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8863:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2581,
                  "id": 2627,
                  "nodeType": "Return",
                  "src": "8856:11:22"
                }
              ]
            },
            "documentation": "@dev unregister a scheme\n@param _scheme the address of the scheme\n@return bool which represents a success",
            "id": 2629,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2572,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2571,
                  "name": "onlyRegisteringSchemes",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2199,
                  "src": "8314:22:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8314:22:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "756e7265676973746572536368656d65",
                    "id": 2574,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8365:18:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_b691bb484251ef01d241995950a354987a3e0c00fe2381f87b564ec41aab942c",
                      "typeString": "literal_string \"unregisterScheme\""
                    },
                    "value": "unregisterScheme"
                  }
                ],
                "id": 2575,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2573,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "8341:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8341:43:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2577,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2569,
                    "src": "8403:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2578,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2576,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "8389:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8389:22:22"
              }
            ],
            "name": "unregisterScheme",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2570,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2567,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8263:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2566,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8263:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2569,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8280:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2568,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8280:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8261:35:22"
            },
            "returnParameters": {
              "id": 2581,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2580,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8424:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2579,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "8424:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8423:6:22"
            },
            "scope": 3466,
            "src": "8236:638:22",
            "stateMutability": "nonpayable",
            "superFunction": 3525,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2664,
              "nodeType": "Block",
              "src": "9073:211:22",
              "statements": [
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2644,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2640,
                            "name": "msg",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23690,
                            "src": "9107:3:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_message",
                              "typeString": "msg"
                            }
                          },
                          "id": 2641,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "sender",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "9107:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 2639,
                        "name": "_isSchemeRegistered",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3465,
                        "src": "9087:19:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                          "typeString": "function (address) view returns (bool)"
                        }
                      },
                      "id": 2642,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "9087:31:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "66616c7365",
                      "id": 2643,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "9122:5:22",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "false"
                    },
                    "src": "9087:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2648,
                  "nodeType": "IfStatement",
                  "src": "9083:83:22",
                  "trueBody": {
                    "id": 2647,
                    "nodeType": "Block",
                    "src": "9129:37:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 2645,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "9150:5:22",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "functionReturnParameters": 2638,
                        "id": 2646,
                        "nodeType": "Return",
                        "src": "9143:12:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2653,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "UnaryOperation",
                    "operator": "delete",
                    "prefix": true,
                    "src": "9175:26:22",
                    "subExpression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2649,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "9182:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2652,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2650,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9190:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2651,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9190:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "9182:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2654,
                  "nodeType": "ExpressionStatement",
                  "src": "9175:26:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2656,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9233:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2657,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9233:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2658,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9245:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2659,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9245:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 2655,
                      "name": "UnregisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2094,
                      "src": "9216:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2660,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9216:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2661,
                  "nodeType": "EmitStatement",
                  "src": "9211:45:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2662,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "9273:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2638,
                  "id": 2663,
                  "nodeType": "Return",
                  "src": "9266:11:22"
                }
              ]
            },
            "documentation": "@dev unregister the caller's scheme\n@return bool which represents a success",
            "id": 2665,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2634,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2631,
                    "src": "9050:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2635,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2633,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "9036:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9036:22:22"
              }
            ],
            "name": "unregisterSelf",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2632,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2631,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2665,
                  "src": "9010:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2630,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9010:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9009:17:22"
            },
            "returnParameters": {
              "id": 2638,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2637,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2665,
                  "src": "9067:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2636,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9067:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9066:6:22"
            },
            "scope": 3466,
            "src": "8986:298:22",
            "stateMutability": "nonpayable",
            "superFunction": 3532,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2807,
              "nodeType": "Block",
              "src": "9717:1417:22",
              "statements": [
                {
                  "assignments": [
                    2684
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2684,
                      "name": "when",
                      "nodeType": "VariableDeclaration",
                      "scope": 2807,
                      "src": "9727:40:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_enum$_CallPhase_$3781",
                        "typeString": "enum GlobalConstraintInterface.CallPhase"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2683,
                        "name": "GlobalConstraintInterface.CallPhase",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 3781,
                        "src": "9727:35:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2690,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 2686,
                            "name": "_globalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2667,
                            "src": "9796:17:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 2685,
                          "name": "GlobalConstraintInterface",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3809,
                          "src": "9770:25:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                            "typeString": "type(contract GlobalConstraintInterface)"
                          }
                        },
                        "id": 2687,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "9770:44:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                          "typeString": "contract GlobalConstraintInterface"
                        }
                      },
                      "id": 2688,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "when",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3808,
                      "src": "9770:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$__$returns$_t_enum$_CallPhase_$3781_$",
                        "typeString": "function () external returns (enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2689,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9770:51:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "9727:94:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2703,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2695,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2691,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "9836:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2692,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "9844:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2693,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "9844:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2694,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Pre",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "9844:39:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "9836:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2696,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "9835:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2701,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2697,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "9900:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2698,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "9908:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2699,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "9908:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2700,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "9908:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "9900:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2702,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "9899:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "9835:120:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2744,
                  "nodeType": "IfStatement",
                  "src": "9831:596:22",
                  "trueBody": {
                    "id": 2743,
                    "nodeType": "Block",
                    "src": "9957:470:22",
                    "statements": [
                      {
                        "condition": {
                          "argumentTypes": null,
                          "id": 2708,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "!",
                          "prefix": true,
                          "src": "9975:61:22",
                          "subExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2704,
                                "name": "globalConstraintsRegisterPre",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2054,
                                "src": "9976:28:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                  "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                }
                              },
                              "id": 2706,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 2705,
                                "name": "_globalConstraint",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2667,
                                "src": "10005:17:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "9976:47:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                              }
                            },
                            "id": 2707,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "isRegistered",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2029,
                            "src": "9976:60:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "id": 2741,
                          "nodeType": "Block",
                          "src": "10292:125:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2739,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2731,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "10310:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2736,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2732,
                                          "name": "globalConstraintsRegisterPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2054,
                                          "src": "10331:28:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                            "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                          }
                                        },
                                        "id": 2734,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "id": 2733,
                                          "name": "_globalConstraint",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2667,
                                          "src": "10360:17:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "10331:47:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                          "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                        }
                                      },
                                      "id": 2735,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "index",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": 2031,
                                      "src": "10331:53:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "10310:75:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2737,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "10310:82:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "id": 2738,
                                  "name": "_params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2669,
                                  "src": "10395:7:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "src": "10310:92:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 2740,
                              "nodeType": "ExpressionStatement",
                              "src": "10310:92:22"
                            }
                          ]
                        },
                        "id": 2742,
                        "nodeType": "IfStatement",
                        "src": "9971:446:22",
                        "trueBody": {
                          "id": 2730,
                          "nodeType": "Block",
                          "src": "10038:249:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "id": 2713,
                                        "name": "_globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2667,
                                        "src": "10099:17:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 2714,
                                        "name": "_params",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2669,
                                        "src": "10118:7:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      ],
                                      "id": 2712,
                                      "name": "GlobalConstraint",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2027,
                                      "src": "10082:16:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_type$_t_struct$_GlobalConstraint_$2027_storage_ptr_$",
                                        "typeString": "type(struct Controller.GlobalConstraint storage pointer)"
                                      }
                                    },
                                    "id": 2715,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "structConstructorCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "10082:44:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2709,
                                    "name": "globalConstraintsPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2047,
                                    "src": "10056:20:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2711,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "push",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "10056:25:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_arraypush_nonpayable$_t_struct$_GlobalConstraint_$2027_storage_$returns$_t_uint256_$",
                                    "typeString": "function (struct Controller.GlobalConstraint storage ref) returns (uint256)"
                                  }
                                },
                                "id": 2716,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "10056:71:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2717,
                              "nodeType": "ExpressionStatement",
                              "src": "10056:71:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2728,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2718,
                                    "name": "globalConstraintsRegisterPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2054,
                                    "src": "10145:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2720,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2719,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2667,
                                    "src": "10174:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "10145:47:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "hexValue": "74727565",
                                      "id": 2722,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "kind": "bool",
                                      "lValueRequested": false,
                                      "nodeType": "Literal",
                                      "src": "10236:4:22",
                                      "subdenomination": null,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      "value": "true"
                                    },
                                    {
                                      "argumentTypes": null,
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "id": 2726,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2723,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "10242:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2724,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "length",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": null,
                                        "src": "10242:27:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "-",
                                      "rightExpression": {
                                        "argumentTypes": null,
                                        "hexValue": "31",
                                        "id": 2725,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "10270:1:22",
                                        "subdenomination": null,
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "10242:29:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    ],
                                    "id": 2721,
                                    "name": "GlobalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2032,
                                    "src": "10211:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_struct$_GlobalConstraintRegister_$2032_storage_ptr_$",
                                      "typeString": "type(struct Controller.GlobalConstraintRegister storage pointer)"
                                    }
                                  },
                                  "id": 2727,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "structConstructorCall",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "10211:61:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory",
                                    "typeString": "struct Controller.GlobalConstraintRegister memory"
                                  }
                                },
                                "src": "10145:127:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                  "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                }
                              },
                              "id": 2729,
                              "nodeType": "ExpressionStatement",
                              "src": "10145:127:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2757,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2749,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2745,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "10441:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2746,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "10449:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2747,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "10449:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2748,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Post",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "10449:40:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "10441:48:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2750,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "10440:50:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2755,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2751,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "10506:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2752,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "10514:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2753,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "10514:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2754,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "10514:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "10506:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2756,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "10505:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "10440:121:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2798,
                  "nodeType": "IfStatement",
                  "src": "10436:603:22",
                  "trueBody": {
                    "id": 2797,
                    "nodeType": "Block",
                    "src": "10563:476:22",
                    "statements": [
                      {
                        "condition": {
                          "argumentTypes": null,
                          "id": 2762,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "!",
                          "prefix": true,
                          "src": "10581:62:22",
                          "subExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2758,
                                "name": "globalConstraintsRegisterPost",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2058,
                                "src": "10582:29:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                  "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                }
                              },
                              "id": 2760,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 2759,
                                "name": "_globalConstraint",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2667,
                                "src": "10612:17:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "10582:48:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                              }
                            },
                            "id": 2761,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "isRegistered",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2029,
                            "src": "10582:61:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "id": 2795,
                          "nodeType": "Block",
                          "src": "10902:127:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2793,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2785,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "10920:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2790,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2786,
                                          "name": "globalConstraintsRegisterPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2058,
                                          "src": "10942:29:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                            "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                          }
                                        },
                                        "id": 2788,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "id": 2787,
                                          "name": "_globalConstraint",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2667,
                                          "src": "10972:17:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "10942:48:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                          "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                        }
                                      },
                                      "id": 2789,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "index",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": 2031,
                                      "src": "10942:54:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "10920:77:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2791,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "10920:84:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "id": 2792,
                                  "name": "_params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2669,
                                  "src": "11007:7:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "src": "10920:94:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 2794,
                              "nodeType": "ExpressionStatement",
                              "src": "10920:94:22"
                            }
                          ]
                        },
                        "id": 2796,
                        "nodeType": "IfStatement",
                        "src": "10577:452:22",
                        "trueBody": {
                          "id": 2784,
                          "nodeType": "Block",
                          "src": "10645:252:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "id": 2767,
                                        "name": "_globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2667,
                                        "src": "10707:17:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 2768,
                                        "name": "_params",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2669,
                                        "src": "10726:7:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      ],
                                      "id": 2766,
                                      "name": "GlobalConstraint",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2027,
                                      "src": "10690:16:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_type$_t_struct$_GlobalConstraint_$2027_storage_ptr_$",
                                        "typeString": "type(struct Controller.GlobalConstraint storage pointer)"
                                      }
                                    },
                                    "id": 2769,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "structConstructorCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "10690:44:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2763,
                                    "name": "globalConstraintsPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2050,
                                    "src": "10663:21:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2765,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "push",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "10663:26:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_arraypush_nonpayable$_t_struct$_GlobalConstraint_$2027_storage_$returns$_t_uint256_$",
                                    "typeString": "function (struct Controller.GlobalConstraint storage ref) returns (uint256)"
                                  }
                                },
                                "id": 2770,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "10663:72:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2771,
                              "nodeType": "ExpressionStatement",
                              "src": "10663:72:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2782,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2772,
                                    "name": "globalConstraintsRegisterPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2058,
                                    "src": "10753:29:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2774,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2773,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2667,
                                    "src": "10783:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "10753:48:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "hexValue": "74727565",
                                      "id": 2776,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "kind": "bool",
                                      "lValueRequested": false,
                                      "nodeType": "Literal",
                                      "src": "10845:4:22",
                                      "subdenomination": null,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      "value": "true"
                                    },
                                    {
                                      "argumentTypes": null,
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "id": 2780,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2777,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "10851:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2778,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "length",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": null,
                                        "src": "10851:28:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "-",
                                      "rightExpression": {
                                        "argumentTypes": null,
                                        "hexValue": "31",
                                        "id": 2779,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "10880:1:22",
                                        "subdenomination": null,
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "10851:30:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    ],
                                    "id": 2775,
                                    "name": "GlobalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2032,
                                    "src": "10820:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_struct$_GlobalConstraintRegister_$2032_storage_ptr_$",
                                      "typeString": "type(struct Controller.GlobalConstraintRegister storage pointer)"
                                    }
                                  },
                                  "id": 2781,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "structConstructorCall",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "10820:62:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory",
                                    "typeString": "struct Controller.GlobalConstraintRegister memory"
                                  }
                                },
                                "src": "10753:129:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                  "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                }
                              },
                              "id": 2783,
                              "nodeType": "ExpressionStatement",
                              "src": "10753:129:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2800,
                        "name": "_globalConstraint",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2667,
                        "src": "11073:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2801,
                        "name": "_params",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2669,
                        "src": "11092:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2802,
                        "name": "when",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2684,
                        "src": "11101:4:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      ],
                      "id": 2799,
                      "name": "AddGlobalConstraint",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2108,
                      "src": "11053:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bytes32_$_t_enum$_CallPhase_$3781_$returns$__$",
                        "typeString": "function (address,bytes32,enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2803,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11053:53:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2804,
                  "nodeType": "EmitStatement",
                  "src": "11048:58:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2805,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "11123:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2680,
                  "id": 2806,
                  "nodeType": "Return",
                  "src": "11116:11:22"
                }
              ]
            },
            "documentation": "@dev add or update Global Constraint\n@param _globalConstraint the address of the global constraint to be added.\n@param _params the constraint parameters hash.\n@return bool which represents a success",
            "id": 2808,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2674,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2673,
                  "name": "onlyGlobalConstraintsScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2219,
                  "src": "9640:27:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9640:27:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2676,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2671,
                    "src": "9686:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2677,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2675,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "9672:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9672:22:22"
              }
            ],
            "name": "addGlobalConstraint",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2672,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2667,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9562:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2666,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9562:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2669,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9589:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2668,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "9589:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2671,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9606:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2670,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9606:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9561:61:22"
            },
            "returnParameters": {
              "id": 2680,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2679,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9707:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2678,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9707:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9706:6:22"
            },
            "scope": 3466,
            "src": "9533:1601:22",
            "stateMutability": "nonpayable",
            "superFunction": 3543,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3004,
              "nodeType": "Block",
              "src": "11544:2234:22",
              "statements": [
                {
                  "assignments": [
                    2823
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2823,
                      "name": "globalConstraintRegister",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11554:56:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2822,
                        "name": "GlobalConstraintRegister",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2032,
                        "src": "11554:24:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraintRegister"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2824,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11554:56:22"
                },
                {
                  "assignments": [
                    2826
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2826,
                      "name": "globalConstraint",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11620:40:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraint"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2825,
                        "name": "GlobalConstraint",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2027,
                        "src": "11620:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraint"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2827,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11620:40:22"
                },
                {
                  "assignments": [
                    2831
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2831,
                      "name": "when",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11670:40:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_enum$_CallPhase_$3781",
                        "typeString": "enum GlobalConstraintInterface.CallPhase"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2830,
                        "name": "GlobalConstraintInterface.CallPhase",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 3781,
                        "src": "11670:35:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2837,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 2833,
                            "name": "_globalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2810,
                            "src": "11739:17:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 2832,
                          "name": "GlobalConstraintInterface",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3809,
                          "src": "11713:25:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                            "typeString": "type(contract GlobalConstraintInterface)"
                          }
                        },
                        "id": 2834,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "11713:44:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                          "typeString": "contract GlobalConstraintInterface"
                        }
                      },
                      "id": 2835,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "when",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3808,
                      "src": "11713:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$__$returns$_t_enum$_CallPhase_$3781_$",
                        "typeString": "function () external returns (enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2836,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11713:51:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11670:94:22"
                },
                {
                  "assignments": [
                    2839
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2839,
                      "name": "retVal",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11774:11:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 2838,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "11774:4:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2841,
                  "initialValue": {
                    "argumentTypes": null,
                    "hexValue": "66616c7365",
                    "id": 2840,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "11788:5:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "false"
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11774:19:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2854,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2846,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2842,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "11809:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2843,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "11817:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2844,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "11817:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2845,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Pre",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "11817:39:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "11809:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2847,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "11808:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2852,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2848,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "11873:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2849,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "11881:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2850,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "11881:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2851,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "11881:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "11873:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2853,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "11872:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "11808:120:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2914,
                  "nodeType": "IfStatement",
                  "src": "11804:852:22",
                  "trueBody": {
                    "id": 2913,
                    "nodeType": "Block",
                    "src": "11930:726:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 2859,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 2855,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "11944:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 2856,
                              "name": "globalConstraintsRegisterPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2054,
                              "src": "11971:28:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 2858,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 2857,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "12000:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "11971:47:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "src": "11944:74:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                          }
                        },
                        "id": 2860,
                        "nodeType": "ExpressionStatement",
                        "src": "11944:74:22"
                      },
                      {
                        "condition": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2861,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12036:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "id": 2862,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "12036:37:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": null,
                        "id": 2912,
                        "nodeType": "IfStatement",
                        "src": "12032:614:22",
                        "trueBody": {
                          "id": 2911,
                          "nodeType": "Block",
                          "src": "12075:571:22",
                          "statements": [
                            {
                              "condition": {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 2869,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2863,
                                    "name": "globalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2823,
                                    "src": "12097:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                                    }
                                  },
                                  "id": 2864,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "index",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2031,
                                  "src": "12097:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "<",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "id": 2868,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2865,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "12130:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2866,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "length",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": null,
                                    "src": "12130:27:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint256",
                                      "typeString": "uint256"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "-",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "hexValue": "31",
                                    "id": 2867,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "kind": "number",
                                    "lValueRequested": false,
                                    "nodeType": "Literal",
                                    "src": "12158:1:22",
                                    "subdenomination": null,
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_rational_1_by_1",
                                      "typeString": "int_const 1"
                                    },
                                    "value": "1"
                                  },
                                  "src": "12130:29:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "12097:62:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "falseBody": null,
                              "id": 2896,
                              "nodeType": "IfStatement",
                              "src": "12093:389:22",
                              "trueBody": {
                                "id": 2895,
                                "nodeType": "Block",
                                "src": "12161:321:22",
                                "statements": [
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2877,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "id": 2870,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "12183:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2871,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "12202:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2876,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "id": 2875,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2872,
                                              "name": "globalConstraintsPre",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2047,
                                              "src": "12223:20:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2873,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "length",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "12223:27:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "argumentTypes": null,
                                            "hexValue": "31",
                                            "id": 2874,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": true,
                                            "kind": "number",
                                            "lValueRequested": false,
                                            "nodeType": "Literal",
                                            "src": "12251:1:22",
                                            "subdenomination": null,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_rational_1_by_1",
                                              "typeString": "int_const 1"
                                            },
                                            "value": "1"
                                          },
                                          "src": "12223:29:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "12202:51:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "src": "12183:70:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                        "typeString": "struct Controller.GlobalConstraint memory"
                                      }
                                    },
                                    "id": 2878,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12183:70:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2884,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2879,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "12275:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2882,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 2880,
                                            "name": "globalConstraintRegister",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2823,
                                            "src": "12296:24:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                                            }
                                          },
                                          "id": 2881,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "index",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2031,
                                          "src": "12296:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "nodeType": "IndexAccess",
                                        "src": "12275:52:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "id": 2883,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "12330:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "src": "12275:71:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref"
                                      }
                                    },
                                    "id": 2885,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12275:71:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2893,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2886,
                                            "name": "globalConstraintsRegisterPre",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2054,
                                            "src": "12368:28:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                            }
                                          },
                                          "id": 2889,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2887,
                                              "name": "globalConstraint",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2826,
                                              "src": "12397:16:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                                "typeString": "struct Controller.GlobalConstraint memory"
                                              }
                                            },
                                            "id": 2888,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "gcAddress",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 2024,
                                            "src": "12397:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "12368:56:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                            "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                          }
                                        },
                                        "id": 2890,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "12368:62:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2891,
                                          "name": "globalConstraintRegister",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2823,
                                          "src": "12433:24:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                                          }
                                        },
                                        "id": 2892,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "12433:30:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "src": "12368:95:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "id": 2894,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12368:95:22"
                                  }
                                ]
                              }
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2900,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "--",
                                "prefix": false,
                                "src": "12499:29:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2897,
                                    "name": "globalConstraintsPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2047,
                                    "src": "12499:20:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2899,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "length",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "12499:27:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2901,
                              "nodeType": "ExpressionStatement",
                              "src": "12499:29:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2905,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "delete",
                                "prefix": true,
                                "src": "12546:54:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2902,
                                    "name": "globalConstraintsRegisterPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2054,
                                    "src": "12553:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2904,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2903,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2810,
                                    "src": "12582:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "12553:47:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_tuple$__$",
                                  "typeString": "tuple()"
                                }
                              },
                              "id": 2906,
                              "nodeType": "ExpressionStatement",
                              "src": "12546:54:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2909,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "id": 2907,
                                  "name": "retVal",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2839,
                                  "src": "12618:6:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "hexValue": "74727565",
                                  "id": 2908,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "12627:4:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  },
                                  "value": "true"
                                },
                                "src": "12618:13:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "id": 2910,
                              "nodeType": "ExpressionStatement",
                              "src": "12618:13:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2927,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2919,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2915,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "12670:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2916,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "12678:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2917,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "12678:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2918,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Post",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "12678:40:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "12670:48:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2920,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "12669:50:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2925,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2921,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "12735:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2922,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "12743:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2923,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "12743:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2924,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "12743:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "12735:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2926,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "12734:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "12669:121:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2987,
                  "nodeType": "IfStatement",
                  "src": "12665:861:22",
                  "trueBody": {
                    "id": 2986,
                    "nodeType": "Block",
                    "src": "12792:734:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 2932,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 2928,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12806:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 2929,
                              "name": "globalConstraintsRegisterPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2058,
                              "src": "12833:29:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 2931,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 2930,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "12863:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "12833:48:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "src": "12806:75:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                          }
                        },
                        "id": 2933,
                        "nodeType": "ExpressionStatement",
                        "src": "12806:75:22"
                      },
                      {
                        "condition": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2934,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12899:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "id": 2935,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "12899:37:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": null,
                        "id": 2985,
                        "nodeType": "IfStatement",
                        "src": "12895:621:22",
                        "trueBody": {
                          "id": 2984,
                          "nodeType": "Block",
                          "src": "12938:578:22",
                          "statements": [
                            {
                              "condition": {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 2942,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2936,
                                    "name": "globalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2823,
                                    "src": "12960:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                                    }
                                  },
                                  "id": 2937,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "index",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2031,
                                  "src": "12960:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "<",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "id": 2941,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2938,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "12993:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2939,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "length",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": null,
                                    "src": "12993:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint256",
                                      "typeString": "uint256"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "-",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "hexValue": "31",
                                    "id": 2940,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "kind": "number",
                                    "lValueRequested": false,
                                    "nodeType": "Literal",
                                    "src": "13022:1:22",
                                    "subdenomination": null,
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_rational_1_by_1",
                                      "typeString": "int_const 1"
                                    },
                                    "value": "1"
                                  },
                                  "src": "12993:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "12960:63:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "falseBody": null,
                              "id": 2969,
                              "nodeType": "IfStatement",
                              "src": "12956:394:22",
                              "trueBody": {
                                "id": 2968,
                                "nodeType": "Block",
                                "src": "13025:325:22",
                                "statements": [
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2950,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "id": 2943,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "13047:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2944,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "13066:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2949,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "id": 2948,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2945,
                                              "name": "globalConstraintsPost",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2050,
                                              "src": "13088:21:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2946,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "length",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "13088:28:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "argumentTypes": null,
                                            "hexValue": "31",
                                            "id": 2947,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": true,
                                            "kind": "number",
                                            "lValueRequested": false,
                                            "nodeType": "Literal",
                                            "src": "13117:1:22",
                                            "subdenomination": null,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_rational_1_by_1",
                                              "typeString": "int_const 1"
                                            },
                                            "value": "1"
                                          },
                                          "src": "13088:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "13066:53:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "src": "13047:72:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                        "typeString": "struct Controller.GlobalConstraint memory"
                                      }
                                    },
                                    "id": 2951,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13047:72:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2957,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2952,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "13141:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2955,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 2953,
                                            "name": "globalConstraintRegister",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2823,
                                            "src": "13163:24:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                                            }
                                          },
                                          "id": 2954,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "index",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2031,
                                          "src": "13163:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "nodeType": "IndexAccess",
                                        "src": "13141:53:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "id": 2956,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "13197:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "src": "13141:72:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref"
                                      }
                                    },
                                    "id": 2958,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13141:72:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2966,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2959,
                                            "name": "globalConstraintsRegisterPost",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2058,
                                            "src": "13235:29:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                            }
                                          },
                                          "id": 2962,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2960,
                                              "name": "globalConstraint",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2826,
                                              "src": "13265:16:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                                "typeString": "struct Controller.GlobalConstraint memory"
                                              }
                                            },
                                            "id": 2961,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "gcAddress",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 2024,
                                            "src": "13265:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "13235:57:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                            "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                          }
                                        },
                                        "id": 2963,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "13235:63:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2964,
                                          "name": "globalConstraintRegister",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2823,
                                          "src": "13301:24:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                                          }
                                        },
                                        "id": 2965,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "13301:30:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "src": "13235:96:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "id": 2967,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13235:96:22"
                                  }
                                ]
                              }
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2973,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "--",
                                "prefix": false,
                                "src": "13367:30:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2970,
                                    "name": "globalConstraintsPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2050,
                                    "src": "13367:21:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2972,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "length",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "13367:28:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2974,
                              "nodeType": "ExpressionStatement",
                              "src": "13367:30:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2978,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "delete",
                                "prefix": true,
                                "src": "13415:55:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2975,
                                    "name": "globalConstraintsRegisterPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2058,
                                    "src": "13422:29:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2977,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2976,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2810,
                                    "src": "13452:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "13422:48:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_tuple$__$",
                                  "typeString": "tuple()"
                                }
                              },
                              "id": 2979,
                              "nodeType": "ExpressionStatement",
                              "src": "13415:55:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2982,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "id": 2980,
                                  "name": "retVal",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2839,
                                  "src": "13488:6:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "hexValue": "74727565",
                                  "id": 2981,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "13497:4:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  },
                                  "value": "true"
                                },
                                "src": "13488:13:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "id": 2983,
                              "nodeType": "ExpressionStatement",
                              "src": "13488:13:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "id": 2988,
                    "name": "retVal",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2839,
                    "src": "13539:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3001,
                  "nodeType": "IfStatement",
                  "src": "13535:214:22",
                  "trueBody": {
                    "id": 3000,
                    "nodeType": "Block",
                    "src": "13547:202:22",
                    "statements": [
                      {
                        "eventCall": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 2990,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "13602:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2991,
                                "name": "globalConstraintRegister",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2823,
                                "src": "13633:24:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 2992,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "13633:30:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_enum$_CallPhase_$3781",
                                "typeString": "enum GlobalConstraintInterface.CallPhase"
                              },
                              "id": 2997,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "id": 2993,
                                "name": "when",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2831,
                                "src": "13677:4:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_enum$_CallPhase_$3781",
                                  "typeString": "enum GlobalConstraintInterface.CallPhase"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2994,
                                    "name": "GlobalConstraintInterface",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 3809,
                                    "src": "13685:25:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                      "typeString": "type(contract GlobalConstraintInterface)"
                                    }
                                  },
                                  "id": 2995,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "CallPhase",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3781,
                                  "src": "13685:35:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                    "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                                  }
                                },
                                "id": 2996,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "memberName": "Pre",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "13685:39:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_enum$_CallPhase_$3781",
                                  "typeString": "enum GlobalConstraintInterface.CallPhase"
                                }
                              },
                              "src": "13677:47:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              },
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2989,
                            "name": "RemoveGlobalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2116,
                            "src": "13566:22:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_bool_$returns$__$",
                              "typeString": "function (address,uint256,bool)"
                            }
                          },
                          "id": 2998,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "13566:172:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2999,
                        "nodeType": "EmitStatement",
                        "src": "13561:177:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3002,
                    "name": "retVal",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2839,
                    "src": "13765:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2821,
                  "id": 3003,
                  "nodeType": "Return",
                  "src": "13758:13:22"
                }
              ]
            },
            "documentation": "@dev remove Global Constraint\n@param _globalConstraint the address of the global constraint to be remove.\n@return bool which represents a success",
            "id": 3005,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2815,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2814,
                  "name": "onlyGlobalConstraintsScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2219,
                  "src": "11467:27:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "11467:27:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2817,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2812,
                    "src": "11513:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2818,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2816,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "11499:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "11499:22:22"
              }
            ],
            "name": "removeGlobalConstraint",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2813,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2810,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11406:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2809,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "11406:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2812,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11433:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2811,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "11433:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "11405:44:22"
            },
            "returnParameters": {
              "id": 2821,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2820,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11534:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2819,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "11534:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "11533:6:22"
            },
            "scope": 3466,
            "src": "11373:2405:22",
            "stateMutability": "nonpayable",
            "superFunction": 3552,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3110,
              "nodeType": "Block",
              "src": "14170:756:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3026,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 3022,
                          "name": "newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2044,
                          "src": "14188:13:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3024,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "14213:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3023,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "14205:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3025,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14205:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "14188:27:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3021,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14180:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3027,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14180:36:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3028,
                  "nodeType": "ExpressionStatement",
                  "src": "14180:36:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3034,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 3030,
                          "name": "_newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3007,
                          "src": "14289:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3032,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "14315:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3031,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "14307:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3033,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14307:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "14289:28:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3029,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14281:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3035,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14281:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3036,
                  "nodeType": "ExpressionStatement",
                  "src": "14281:37:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3039,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3037,
                      "name": "newController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2044,
                      "src": "14328:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 3038,
                      "name": "_newController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3007,
                      "src": "14344:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14328:30:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 3040,
                  "nodeType": "ExpressionStatement",
                  "src": "14328:30:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3044,
                        "name": "_newController",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3007,
                        "src": "14393:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3041,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "14368:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3043,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "transferOwnership",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23072,
                      "src": "14368:24:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address) external"
                      }
                    },
                    "id": 3045,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14368:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3046,
                  "nodeType": "ExpressionStatement",
                  "src": "14368:40:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3052,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3048,
                              "name": "avatar",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2038,
                              "src": "14426:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            },
                            "id": 3049,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "owner",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23021,
                            "src": "14426:12:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                              "typeString": "function () view external returns (address)"
                            }
                          },
                          "id": 3050,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14426:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 3051,
                          "name": "_newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3007,
                          "src": "14444:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "14426:32:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3047,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14418:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3053,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14418:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3054,
                  "nodeType": "ExpressionStatement",
                  "src": "14418:41:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 3061,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 3055,
                          "name": "nativeToken",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2040,
                          "src": "14473:11:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_DAOToken_$3775",
                            "typeString": "contract DAOToken"
                          }
                        },
                        "id": 3056,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "owner",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23021,
                        "src": "14473:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                          "typeString": "function () view external returns (address)"
                        }
                      },
                      "id": 3057,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14473:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 3059,
                          "name": "this",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23730,
                          "src": "14504:4:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        ],
                        "id": 3058,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "14496:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 3060,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14496:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14473:36:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3077,
                  "nodeType": "IfStatement",
                  "src": "14469:172:22",
                  "trueBody": {
                    "id": 3076,
                    "nodeType": "Block",
                    "src": "14511:130:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 3065,
                              "name": "_newController",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3007,
                              "src": "14555:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3062,
                              "name": "nativeToken",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2040,
                              "src": "14525:11:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_DAOToken_$3775",
                                "typeString": "contract DAOToken"
                              }
                            },
                            "id": 3064,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transferOwnership",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23072,
                            "src": "14525:29:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                              "typeString": "function (address) external"
                            }
                          },
                          "id": 3066,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14525:45:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3067,
                        "nodeType": "ExpressionStatement",
                        "src": "14525:45:22"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 3073,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "arguments": [],
                                "expression": {
                                  "argumentTypes": [],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3069,
                                    "name": "nativeToken",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2040,
                                    "src": "14592:11:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_contract$_DAOToken_$3775",
                                      "typeString": "contract DAOToken"
                                    }
                                  },
                                  "id": 3070,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "owner",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 23021,
                                  "src": "14592:17:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                                    "typeString": "function () view external returns (address)"
                                  }
                                },
                                "id": 3071,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "14592:19:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "id": 3072,
                                "name": "_newController",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3007,
                                "src": "14615:14:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "14592:37:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 3068,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "14584:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 3074,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14584:46:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3075,
                        "nodeType": "ExpressionStatement",
                        "src": "14584:46:22"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 3084,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 3078,
                          "name": "nativeReputation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2042,
                          "src": "14654:16:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Reputation_$9557",
                            "typeString": "contract Reputation"
                          }
                        },
                        "id": 3079,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "owner",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23021,
                        "src": "14654:22:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                          "typeString": "function () view external returns (address)"
                        }
                      },
                      "id": 3080,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14654:24:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 3082,
                          "name": "this",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23730,
                          "src": "14690:4:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        ],
                        "id": 3081,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "14682:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 3083,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14682:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14654:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3100,
                  "nodeType": "IfStatement",
                  "src": "14650:187:22",
                  "trueBody": {
                    "id": 3099,
                    "nodeType": "Block",
                    "src": "14697:140:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 3088,
                              "name": "_newController",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3007,
                              "src": "14746:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3085,
                              "name": "nativeReputation",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2042,
                              "src": "14711:16:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Reputation_$9557",
                                "typeString": "contract Reputation"
                              }
                            },
                            "id": 3087,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transferOwnership",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23072,
                            "src": "14711:34:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                              "typeString": "function (address) external"
                            }
                          },
                          "id": 3089,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14711:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3090,
                        "nodeType": "ExpressionStatement",
                        "src": "14711:50:22"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 3096,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "arguments": [],
                                "expression": {
                                  "argumentTypes": [],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3092,
                                    "name": "nativeReputation",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2042,
                                    "src": "14783:16:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_contract$_Reputation_$9557",
                                      "typeString": "contract Reputation"
                                    }
                                  },
                                  "id": 3093,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "owner",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 23021,
                                  "src": "14783:22:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                                    "typeString": "function () view external returns (address)"
                                  }
                                },
                                "id": 3094,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "14783:24:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "id": 3095,
                                "name": "_newController",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3007,
                                "src": "14811:14:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "14783:42:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 3091,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "14775:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 3097,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14775:51:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3098,
                        "nodeType": "ExpressionStatement",
                        "src": "14775:51:22"
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 3103,
                            "name": "this",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23730,
                            "src": "14877:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Controller_$3466",
                              "typeString": "contract Controller"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Controller_$3466",
                              "typeString": "contract Controller"
                            }
                          ],
                          "id": 3102,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "14869:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 3104,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "14869:13:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3105,
                        "name": "newController",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2044,
                        "src": "14884:13:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 3101,
                      "name": "UpgradeController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2100,
                      "src": "14851:17:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 3106,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14851:47:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3107,
                  "nodeType": "EmitStatement",
                  "src": "14846:52:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 3108,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "14915:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 3020,
                  "id": 3109,
                  "nodeType": "Return",
                  "src": "14908:11:22"
                }
              ]
            },
            "documentation": "@dev upgrade the Controller\n     The function will trigger an event 'UpgradeController'.\n@param  _newController the address of the new controller.\n@return bool which represents a success",
            "id": 3111,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3012,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3011,
                  "name": "onlyUpgradingScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2239,
                  "src": "14092:19:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "14092:19:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3015,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3009,
                        "src": "14138:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3014,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "14130:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3016,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14130:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3017,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3013,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "14116:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "14116:31:22"
              }
            ],
            "name": "upgradeController",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3010,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3007,
                  "name": "_newController",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14035:22:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3006,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "14035:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3009,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14059:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3008,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "14059:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "14034:40:22"
            },
            "returnParameters": {
              "id": 3020,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3019,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14160:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3018,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "14160:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "14159:6:22"
            },
            "scope": 3466,
            "src": "14008:918:22",
            "stateMutability": "nonpayable",
            "superFunction": 3561,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3143,
              "nodeType": "Block",
              "src": "15606:68:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3138,
                        "name": "_contract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3113,
                        "src": "15642:9:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3139,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3115,
                        "src": "15653:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3140,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3119,
                        "src": "15660:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3136,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "15623:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3137,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "genericCall",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1868,
                      "src": "15623:18:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (address,bytes memory,uint256) external returns (bool,bytes memory)"
                      }
                    },
                    "id": 3141,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15623:44:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "functionReturnParameters": 3135,
                  "id": 3142,
                  "nodeType": "Return",
                  "src": "15616:51:22"
                }
              ]
            },
            "documentation": "@dev perform a generic call to an arbitrary contract\n@param _contract  the contract's address to call\n@param _data ABI-encoded contract call to call `_contract` address.\n@param _avatar the controller's avatar address\n@param _value value (ETH) to transfer with the transaction\n@return bool -success\n        bytes  - the return value of the called _contract's function.",
            "id": 3144,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3122,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3121,
                  "name": "onlyGenericCallScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2259,
                  "src": "15468:21:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15468:21:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "67656e6572696343616c6c",
                    "id": 3124,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "15518:13:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_f50c9c0d8078680ea2ffd7664f6b8e067777195c71561a9aa7bb8b53f908fb39",
                      "typeString": "literal_string \"genericCall\""
                    },
                    "value": "genericCall"
                  }
                ],
                "id": 3125,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3123,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "15494:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15494:38:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3128,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3117,
                        "src": "15559:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3127,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "15551:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3129,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15551:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3130,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3126,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "15537:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15537:31:22"
              }
            ],
            "name": "genericCall",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3120,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3113,
                  "name": "_contract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15378:17:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3112,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "15378:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3115,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15397:20:22",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3114,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "15397:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3117,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15419:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3116,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "15419:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3119,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15435:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3118,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15435:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15377:73:22"
            },
            "returnParameters": {
              "id": 3135,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3132,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15582:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3131,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "15582:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3134,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15588:12:22",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3133,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "15588:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15581:20:22"
            },
            "scope": 3466,
            "src": "15357:317:22",
            "stateMutability": "nonpayable",
            "superFunction": 3576,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3171,
              "nodeType": "Block",
              "src": "16083:59:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3167,
                        "name": "_amountInWei",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3146,
                        "src": "16117:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3168,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3148,
                        "src": "16131:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3165,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "16100:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3166,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "sendEther",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1893,
                      "src": "16100:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_address_payable_$returns$_t_bool_$",
                        "typeString": "function (uint256,address payable) external returns (bool)"
                      }
                    },
                    "id": 3169,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16100:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3164,
                  "id": 3170,
                  "nodeType": "Return",
                  "src": "16093:42:22"
                }
              ]
            },
            "documentation": "@dev send some ether\n@param _amountInWei the amount of ether (in Wei) to send\n@param _to address of the beneficiary\n@return bool which represents a success",
            "id": 3172,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3153,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3152,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "15963:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15963:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "73656e644574686572",
                    "id": 3155,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "16012:11:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c700fcf825bb96908bcfa40b8d91237381cd207a842fc67195330064c6f87772",
                      "typeString": "literal_string \"sendEther\""
                    },
                    "value": "sendEther"
                  }
                ],
                "id": 3156,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3154,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "15988:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15988:36:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3159,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3150,
                        "src": "16051:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3158,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16043:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3160,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16043:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3161,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3157,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "16029:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16029:31:22"
              }
            ],
            "name": "sendEther",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3151,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3146,
                  "name": "_amountInWei",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15887:20:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3145,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15887:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3148,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15909:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address_payable",
                    "typeString": "address payable"
                  },
                  "typeName": {
                    "id": 3147,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "15909:15:22",
                    "stateMutability": "payable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3150,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15930:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3149,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "15930:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15886:59:22"
            },
            "returnParameters": {
              "id": 3164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3163,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "16073:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3162,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "16073:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16072:6:22"
            },
            "scope": 3466,
            "src": "15868:274:22",
            "stateMutability": "nonpayable",
            "superFunction": 3587,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3202,
              "nodeType": "Block",
              "src": "16674:81:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3197,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3174,
                        "src": "16720:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3198,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3176,
                        "src": "16736:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3199,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3178,
                        "src": "16741:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3195,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "16691:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3196,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenTransfer",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1925,
                      "src": "16691:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3200,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16691:57:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3194,
                  "id": 3201,
                  "nodeType": "Return",
                  "src": "16684:64:22"
                }
              ]
            },
            "documentation": "@dev send some amount of arbitrary ERC20 Tokens\n@param _externalToken the address of the Token Contract\n@param _to address of the beneficiary\n@param _value the amount of ether (in Wei) to send\n@return bool which represents a success",
            "id": 3203,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3183,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3182,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "16542:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16542:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e5472616e73666572",
                    "id": 3185,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "16591:23:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_7813035546e060c03dbe66bdee1941f9a0ad6551df13f617f14419ad20f4154f",
                      "typeString": "literal_string \"externalTokenTransfer\""
                    },
                    "value": "externalTokenTransfer"
                  }
                ],
                "id": 3186,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3184,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "16567:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16567:48:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3189,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3180,
                        "src": "16642:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3188,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16634:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3190,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16634:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3191,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3187,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "16620:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16620:31:22"
              }
            ],
            "name": "externalTokenTransfer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3181,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3174,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16457:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3173,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "16457:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3176,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16480:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3175,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "16480:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3178,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16493:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3177,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "16493:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3180,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16509:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3179,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "16509:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16456:68:22"
            },
            "returnParameters": {
              "id": 3194,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3193,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16664:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3192,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "16664:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16663:6:22"
            },
            "scope": 3466,
            "src": "16426:329:22",
            "stateMutability": "nonpayable",
            "superFunction": 3600,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3236,
              "nodeType": "Block",
              "src": "17537:92:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3230,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3205,
                        "src": "17587:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3231,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3207,
                        "src": "17603:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3232,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3209,
                        "src": "17610:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3233,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3211,
                        "src": "17615:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3228,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "17554:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3229,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenTransferFrom",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1961,
                      "src": "17554:32:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3234,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17554:68:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3227,
                  "id": 3235,
                  "nodeType": "Return",
                  "src": "17547:75:22"
                }
              ]
            },
            "documentation": "@dev transfer token \"from\" address \"to\" address\n     One must to approve the amount of tokens which can be spend from the\n     \"from\" account.This can be done using externalTokenApprove.\n@param _externalToken the address of the Token Contract\n@param _from address of the account to send from\n@param _to address of the beneficiary\n@param _value the amount of ether (in Wei) to send\n@return bool which represents a success",
            "id": 3237,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3216,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3215,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "17401:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17401:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e5472616e7366657246726f6d",
                    "id": 3218,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "17450:27:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_ac07667e4f3fe9c6116bdfeed71f93079924e4156b3ee8a0c3180f10145562f3",
                      "typeString": "literal_string \"externalTokenTransferFrom\""
                    },
                    "value": "externalTokenTransferFrom"
                  }
                ],
                "id": 3219,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3217,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "17426:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17426:52:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3222,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3213,
                        "src": "17505:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3221,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "17497:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3223,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17497:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3224,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3220,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "17483:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17483:31:22"
              }
            ],
            "name": "externalTokenTransferFrom",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3214,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3205,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17285:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3204,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "17285:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3207,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17312:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3206,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "17312:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3209,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17331:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3208,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "17331:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3211,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17348:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3210,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "17348:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3213,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17368:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3212,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "17368:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "17279:104:22"
            },
            "returnParameters": {
              "id": 3227,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3226,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17527:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3225,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "17527:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "17526:6:22"
            },
            "scope": 3466,
            "src": "17245:384:22",
            "stateMutability": "nonpayable",
            "superFunction": 3615,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3267,
              "nodeType": "Block",
              "src": "18269:86:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3262,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3239,
                        "src": "18315:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3263,
                        "name": "_spender",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3241,
                        "src": "18331:8:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3264,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3243,
                        "src": "18341:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3260,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "18286:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3261,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenApproval",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1993,
                      "src": "18286:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3265,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18286:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3259,
                  "id": 3266,
                  "nodeType": "Return",
                  "src": "18279:69:22"
                }
              ]
            },
            "documentation": "@dev externalTokenApproval approve the spender address to spend a specified amount of tokens\n     on behalf of msg.sender.\n@param _externalToken the address of the Token Contract\n@param _spender address\n@param _value the amount of ether (in Wei) which the approval is referring to.\n@return bool which represents a success",
            "id": 3268,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3248,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3247,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "18129:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18129:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e496e637265617365417070726f76616c",
                    "id": 3250,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "18178:31:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_a6b5493ce06b69199b7c164b2fe8141dd5ecf7d2d491b28efc85f9c00fdfd15c",
                      "typeString": "literal_string \"externalTokenIncreaseApproval\""
                    },
                    "value": "externalTokenIncreaseApproval"
                  }
                ],
                "id": 3251,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3249,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "18154:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18154:56:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3254,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3245,
                        "src": "18237:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3253,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "18229:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3255,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18229:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3256,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3252,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "18215:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18215:31:22"
              }
            ],
            "name": "externalTokenApproval",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3246,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3239,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18039:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3238,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "18039:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3241,
                  "name": "_spender",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18062:16:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3240,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "18062:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3243,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18080:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3242,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "18080:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3245,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18096:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3244,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "18096:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18038:73:22"
            },
            "returnParameters": {
              "id": 3259,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3258,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18259:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3257,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "18259:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18258:6:22"
            },
            "scope": 3466,
            "src": "18008:347:22",
            "stateMutability": "nonpayable",
            "superFunction": 3628,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3289,
              "nodeType": "Block",
              "src": "18787:50:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3286,
                        "name": "_metaData",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3270,
                        "src": "18820:9:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_calldata_ptr",
                          "typeString": "string calldata"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_string_calldata_ptr",
                          "typeString": "string calldata"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3284,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "18804:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3285,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "metaData",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2009,
                      "src": "18804:15:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$returns$_t_bool_$",
                        "typeString": "function (string memory) external returns (bool)"
                      }
                    },
                    "id": 3287,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18804:26:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3283,
                  "id": 3288,
                  "nodeType": "Return",
                  "src": "18797:33:22"
                }
              ]
            },
            "documentation": "@dev metaData emits an event with a string, should contain the hash of some meta data.\n@param _metaData a string representing a hash of the meta data\n@param _avatar Avatar\n@return bool which represents a success",
            "id": 3290,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3275,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3274,
                  "name": "onlyMetaDataScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2279,
                  "src": "18698:18:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18698:18:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3278,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3272,
                        "src": "18747:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3277,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "18739:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3279,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18739:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3280,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3276,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "18725:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18725:31:22"
              }
            ],
            "name": "metaData",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3273,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3270,
                  "name": "_metaData",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18630:25:22",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_calldata_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 3269,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "18630:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3272,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18657:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3271,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "18657:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18629:43:22"
            },
            "returnParameters": {
              "id": 3283,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3282,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18773:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3281,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "18773:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18772:6:22"
            },
            "scope": 3466,
            "src": "18612:225:22",
            "stateMutability": "nonpayable",
            "superFunction": 3637,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3304,
              "nodeType": "Block",
              "src": "19084:49:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3301,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "19109:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      ],
                      "id": 3300,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "19101:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3302,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "19101:25:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 3299,
                  "id": 3303,
                  "nodeType": "Return",
                  "src": "19094:32:22"
                }
              ]
            },
            "documentation": "@dev getNativeReputation\n@param _avatar the organization avatar.\n@return organization native reputation",
            "id": 3305,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3295,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3292,
                    "src": "19053:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3296,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3294,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19039:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19039:22:22"
              }
            ],
            "name": "getNativeReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3293,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3292,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3305,
                  "src": "19013:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3291,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19013:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19012:17:22"
            },
            "returnParameters": {
              "id": 3299,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3298,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3305,
                  "src": "19075:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3297,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19075:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19074:9:22"
            },
            "scope": 3466,
            "src": "18984:149:22",
            "stateMutability": "view",
            "superFunction": 3644,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3321,
              "nodeType": "Block",
              "src": "19252:52:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3318,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3307,
                        "src": "19289:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 3317,
                      "name": "_isSchemeRegistered",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3465,
                      "src": "19269:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                        "typeString": "function (address) view returns (bool)"
                      }
                    },
                    "id": 3319,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "19269:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3316,
                  "id": 3320,
                  "nodeType": "Return",
                  "src": "19262:35:22"
                }
              ]
            },
            "documentation": null,
            "id": 3322,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3312,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3309,
                    "src": "19224:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3313,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3311,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19210:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19210:22:22"
              }
            ],
            "name": "isSchemeRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3310,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3307,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19167:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3306,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19167:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3309,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19184:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3308,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19184:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19166:34:22"
            },
            "returnParameters": {
              "id": 3316,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3315,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19246:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3314,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "19246:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19245:6:22"
            },
            "scope": 3466,
            "src": "19139:165:22",
            "stateMutability": "view",
            "superFunction": 3653,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3339,
              "nodeType": "Block",
              "src": "19447:51:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3334,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "19464:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 3336,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3335,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3324,
                        "src": "19472:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "19464:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "id": 3337,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "paramsHash",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2019,
                    "src": "19464:27:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 3333,
                  "id": 3338,
                  "nodeType": "Return",
                  "src": "19457:34:22"
                }
              ]
            },
            "documentation": null,
            "id": 3340,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3329,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3326,
                    "src": "19404:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3330,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3328,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19390:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19390:22:22"
              }
            ],
            "name": "getSchemeParameters",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3327,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3324,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19339:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3323,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19339:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3326,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19356:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3325,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19356:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19338:34:22"
            },
            "returnParameters": {
              "id": 3333,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3332,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19434:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3331,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "19434:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19433:9:22"
            },
            "scope": 3466,
            "src": "19310:188:22",
            "stateMutability": "view",
            "superFunction": 3662,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3357,
              "nodeType": "Block",
              "src": "19641:52:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3352,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "19658:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 3354,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3353,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3342,
                        "src": "19666:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "19658:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "id": 3355,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "permissions",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2021,
                    "src": "19658:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "functionReturnParameters": 3351,
                  "id": 3356,
                  "nodeType": "Return",
                  "src": "19651:35:22"
                }
              ]
            },
            "documentation": null,
            "id": 3358,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3347,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3344,
                    "src": "19599:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3348,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3346,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19585:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19585:22:22"
              }
            ],
            "name": "getSchemePermissions",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3345,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3342,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19534:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3341,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19534:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3344,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19551:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3343,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19551:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19533:34:22"
            },
            "returnParameters": {
              "id": 3351,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3350,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19629:6:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 3349,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "19629:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19628:8:22"
            },
            "scope": 3466,
            "src": "19504:189:22",
            "stateMutability": "view",
            "superFunction": 3680,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3399,
              "nodeType": "Block",
              "src": "19805:403:22",
              "statements": [
                {
                  "assignments": [
                    3368
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 3368,
                      "name": "register",
                      "nodeType": "VariableDeclaration",
                      "scope": 3399,
                      "src": "19816:40:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 3367,
                        "name": "GlobalConstraintRegister",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2032,
                        "src": "19816:24:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraintRegister"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 3372,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 3369,
                      "name": "globalConstraintsRegisterPre",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2054,
                      "src": "19859:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                        "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                      }
                    },
                    "id": 3371,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 3370,
                      "name": "_globalConstraint",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3360,
                      "src": "19888:17:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "19859:47:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                      "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "19816:90:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "id": 3373,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "19921:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "id": 3374,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "isRegistered",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2029,
                    "src": "19921:21:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3382,
                  "nodeType": "IfStatement",
                  "src": "19917:102:22",
                  "trueBody": {
                    "id": 3381,
                    "nodeType": "Block",
                    "src": "19944:75:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3375,
                              "name": "globalConstraintsPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2047,
                              "src": "19965:20:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                              }
                            },
                            "id": 3378,
                            "indexExpression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 3376,
                                "name": "register",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3368,
                                "src": "19986:8:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 3377,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "19986:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "19965:36:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                              "typeString": "struct Controller.GlobalConstraint storage ref"
                            }
                          },
                          "id": 3379,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "params",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2026,
                          "src": "19965:43:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "functionReturnParameters": 3366,
                        "id": 3380,
                        "nodeType": "Return",
                        "src": "19958:50:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3387,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3383,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "20029:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3384,
                        "name": "globalConstraintsRegisterPost",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2058,
                        "src": "20040:29:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                          "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                        }
                      },
                      "id": 3386,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3385,
                        "name": "_globalConstraint",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3360,
                        "src": "20070:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "20040:48:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                        "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                      }
                    },
                    "src": "20029:59:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                    }
                  },
                  "id": 3388,
                  "nodeType": "ExpressionStatement",
                  "src": "20029:59:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "id": 3389,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "20103:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "id": 3390,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "isRegistered",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2029,
                    "src": "20103:21:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3398,
                  "nodeType": "IfStatement",
                  "src": "20099:103:22",
                  "trueBody": {
                    "id": 3397,
                    "nodeType": "Block",
                    "src": "20126:76:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3391,
                              "name": "globalConstraintsPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2050,
                              "src": "20147:21:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                              }
                            },
                            "id": 3394,
                            "indexExpression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 3392,
                                "name": "register",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3368,
                                "src": "20169:8:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 3393,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "20169:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20147:37:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                              "typeString": "struct Controller.GlobalConstraint storage ref"
                            }
                          },
                          "id": 3395,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "params",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2026,
                          "src": "20147:44:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "functionReturnParameters": 3366,
                        "id": 3396,
                        "nodeType": "Return",
                        "src": "20140:51:22"
                      }
                    ]
                  }
                }
              ]
            },
            "documentation": null,
            "id": 3400,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getGlobalConstraintParameters",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3363,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3360,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19738:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3359,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19738:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3362,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19765:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3361,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19765:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19737:36:22"
            },
            "returnParameters": {
              "id": 3366,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3365,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19796:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3364,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "19796:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19795:9:22"
            },
            "scope": 3466,
            "src": "19699:509:22",
            "stateMutability": "view",
            "superFunction": 3671,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3418,
              "nodeType": "Block",
              "src": "20557:83:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3412,
                          "name": "globalConstraintsPre",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2047,
                          "src": "20575:20:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                          }
                        },
                        "id": 3413,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "20575:27:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3414,
                          "name": "globalConstraintsPost",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2050,
                          "src": "20604:21:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                          }
                        },
                        "id": 3415,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "20604:28:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 3416,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "20574:59:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 3411,
                  "id": 3417,
                  "nodeType": "Return",
                  "src": "20567:66:22"
                }
              ]
            },
            "documentation": "@dev globalConstraintsCount return the global constraint pre and post count\n@return uint256 globalConstraintsPre count.\n@return uint256 globalConstraintsPost count.",
            "id": 3419,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3405,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3402,
                    "src": "20499:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3406,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3404,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "20485:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "20485:22:22"
              }
            ],
            "name": "globalConstraintsCount",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3403,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3402,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20443:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3401,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20443:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20442:17:22"
            },
            "returnParameters": {
              "id": 3411,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3408,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20537:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3407,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "20537:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3410,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20543:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3409,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "20543:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20536:12:22"
            },
            "scope": 3466,
            "src": "20411:229:22",
            "stateMutability": "view",
            "superFunction": 3689,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3442,
              "nodeType": "Block",
              "src": "20819:167:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 3439,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3431,
                              "name": "globalConstraintsRegisterPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2054,
                              "src": "20837:28:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 3433,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 3432,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3421,
                              "src": "20866:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20837:47:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "id": 3434,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "20837:60:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3435,
                              "name": "globalConstraintsRegisterPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2058,
                              "src": "20917:29:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 3437,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 3436,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3421,
                              "src": "20947:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20917:48:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "id": 3438,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "20917:61:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "20837:141:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "id": 3440,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "20836:143:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3430,
                  "id": 3441,
                  "nodeType": "Return",
                  "src": "20829:150:22"
                }
              ]
            },
            "documentation": null,
            "id": 3443,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3426,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3423,
                    "src": "20767:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3427,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3425,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "20753:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "20753:22:22"
              }
            ],
            "name": "isGlobalConstraintRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3424,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3421,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20684:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3420,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20684:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3423,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20711:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3422,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20711:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20683:44:22"
            },
            "returnParameters": {
              "id": 3430,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3429,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20805:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3428,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "20805:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20804:6:22"
            },
            "scope": 3466,
            "src": "20646:340:22",
            "stateMutability": "view",
            "superFunction": 3698,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3464,
              "nodeType": "Block",
              "src": "21065:86:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 3461,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 3457,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 3450,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "21083:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 3452,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 3451,
                                "name": "_scheme",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3445,
                                "src": "21091:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "21083:16:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 3453,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "21083:28:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303031",
                                "id": 3455,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "21119:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                "value": "0x00000001"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                }
                              ],
                              "id": 3454,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "21112:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 3456,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "21112:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "21083:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3459,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "21141:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3458,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "21134:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 3460,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "21134:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "21083:60:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "id": 3462,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "21082:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3449,
                  "id": 3463,
                  "nodeType": "Return",
                  "src": "21075:69:22"
                }
              ]
            },
            "documentation": null,
            "id": 3465,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_isSchemeRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3446,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3445,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3465,
                  "src": "21021:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3444,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "21021:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "21020:17:22"
            },
            "returnParameters": {
              "id": 3449,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3448,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3465,
                  "src": "21059:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3447,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "21059:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "21058:6:22"
            },
            "scope": 3466,
            "src": "20992:159:22",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "private"
          }
        ],
        "scope": 3467,
        "src": "410:20743:22"
      }
    ],
    "src": "0:21154:22"
  },
  "legacyAST": {
    "absolutePath": "@daostack/arc/contracts/controller/Controller.sol",
    "exportedSymbols": {
      "Controller": [
        3466
      ]
    },
    "id": 3467,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2012,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:22"
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
        "file": "./Avatar.sol",
        "id": 2013,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 2011,
        "src": "25:22:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol",
        "file": "../globalConstraints/GlobalConstraintInterface.sol",
        "id": 2014,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 3810,
        "src": "48:60:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "file": "./ControllerInterface.sol",
        "id": 2015,
        "nodeType": "ImportDirective",
        "scope": 3467,
        "sourceUnit": 3700,
        "src": "109:35:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 2016,
              "name": "ControllerInterface",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3699,
              "src": "433:19:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_ControllerInterface_$3699",
                "typeString": "contract ControllerInterface"
              }
            },
            "id": 2017,
            "nodeType": "InheritanceSpecifier",
            "src": "433:19:22"
          }
        ],
        "contractDependencies": [
          3699
        ],
        "contractKind": "contract",
        "documentation": "@title Controller contract\n@dev A controller controls the organizations tokens, reputation and avatar.\nIt is subject to a set of schemes and constraints that determine its behavior.\nEach scheme has it own parameters and operation permissions.",
        "fullyImplemented": true,
        "id": 3466,
        "linearizedBaseContracts": [
          3466,
          3699
        ],
        "name": "Controller",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "Controller.Scheme",
            "id": 2022,
            "members": [
              {
                "constant": false,
                "id": 2019,
                "name": "paramsHash",
                "nodeType": "VariableDeclaration",
                "scope": 2022,
                "src": "484:18:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 2018,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "484:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2021,
                "name": "permissions",
                "nodeType": "VariableDeclaration",
                "scope": 2022,
                "src": "553:19:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes4",
                  "typeString": "bytes4"
                },
                "typeName": {
                  "id": 2020,
                  "name": "bytes4",
                  "nodeType": "ElementaryTypeName",
                  "src": "553:6:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "Scheme",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "460:663:22",
            "visibility": "public"
          },
          {
            "canonicalName": "Controller.GlobalConstraint",
            "id": 2027,
            "members": [
              {
                "constant": false,
                "id": 2024,
                "name": "gcAddress",
                "nodeType": "VariableDeclaration",
                "scope": 2027,
                "src": "1163:17:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                },
                "typeName": {
                  "id": 2023,
                  "name": "address",
                  "nodeType": "ElementaryTypeName",
                  "src": "1163:7:22",
                  "stateMutability": "nonpayable",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2026,
                "name": "params",
                "nodeType": "VariableDeclaration",
                "scope": 2027,
                "src": "1190:14:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 2025,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1190:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "GlobalConstraint",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "1129:82:22",
            "visibility": "public"
          },
          {
            "canonicalName": "Controller.GlobalConstraintRegister",
            "id": 2032,
            "members": [
              {
                "constant": false,
                "id": 2029,
                "name": "isRegistered",
                "nodeType": "VariableDeclaration",
                "scope": 2032,
                "src": "1259:17:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                },
                "typeName": {
                  "id": 2028,
                  "name": "bool",
                  "nodeType": "ElementaryTypeName",
                  "src": "1259:4:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 2031,
                "name": "index",
                "nodeType": "VariableDeclaration",
                "scope": 2032,
                "src": "1302:13:22",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                },
                "typeName": {
                  "id": 2030,
                  "name": "uint256",
                  "nodeType": "ElementaryTypeName",
                  "src": "1302:7:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "GlobalConstraintRegister",
            "nodeType": "StructDefinition",
            "scope": 3466,
            "src": "1217:137:22",
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2036,
            "name": "schemes",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1360:39:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
              "typeString": "mapping(address => struct Controller.Scheme)"
            },
            "typeName": {
              "id": 2035,
              "keyType": {
                "id": 2033,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "1368:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "1360:24:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                "typeString": "mapping(address => struct Controller.Scheme)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2034,
                "name": "Scheme",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2022,
                "src": "1377:6:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_Scheme_$2022_storage_ptr",
                  "typeString": "struct Controller.Scheme"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2038,
            "name": "avatar",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1406:20:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Avatar_$2010",
              "typeString": "contract Avatar"
            },
            "typeName": {
              "contractScope": null,
              "id": 2037,
              "name": "Avatar",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 2010,
              "src": "1406:6:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Avatar_$2010",
                "typeString": "contract Avatar"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2040,
            "name": "nativeToken",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1432:27:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_DAOToken_$3775",
              "typeString": "contract DAOToken"
            },
            "typeName": {
              "contractScope": null,
              "id": 2039,
              "name": "DAOToken",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3775,
              "src": "1432:8:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_DAOToken_$3775",
                "typeString": "contract DAOToken"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2042,
            "name": "nativeReputation",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1465:34:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Reputation_$9557",
              "typeString": "contract Reputation"
            },
            "typeName": {
              "contractScope": null,
              "id": 2041,
              "name": "Reputation",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 9557,
              "src": "1465:10:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Reputation_$9557",
                "typeString": "contract Reputation"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2044,
            "name": "newController",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1598:28:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 2043,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "1598:7:22",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2047,
            "name": "globalConstraintsPre",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1723:46:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
              "typeString": "struct Controller.GlobalConstraint[]"
            },
            "typeName": {
              "baseType": {
                "contractScope": null,
                "id": 2045,
                "name": "GlobalConstraint",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2027,
                "src": "1723:16:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraint"
                }
              },
              "id": 2046,
              "length": null,
              "nodeType": "ArrayTypeName",
              "src": "1723:18:22",
              "typeDescriptions": {
                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage_ptr",
                "typeString": "struct Controller.GlobalConstraint[]"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2050,
            "name": "globalConstraintsPost",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "1867:47:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
              "typeString": "struct Controller.GlobalConstraint[]"
            },
            "typeName": {
              "baseType": {
                "contractScope": null,
                "id": 2048,
                "name": "GlobalConstraint",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2027,
                "src": "1867:16:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraint"
                }
              },
              "id": 2049,
              "length": null,
              "nodeType": "ArrayTypeName",
              "src": "1867:18:22",
              "typeDescriptions": {
                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage_ptr",
                "typeString": "struct Controller.GlobalConstraint[]"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2054,
            "name": "globalConstraintsRegisterPre",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "2027:78:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
            },
            "typeName": {
              "id": 2053,
              "keyType": {
                "id": 2051,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "2035:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "2027:42:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2052,
                "name": "GlobalConstraintRegister",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2032,
                "src": "2044:24:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraintRegister"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 2058,
            "name": "globalConstraintsRegisterPost",
            "nodeType": "VariableDeclaration",
            "scope": 3466,
            "src": "2220:79:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
            },
            "typeName": {
              "id": 2057,
              "keyType": {
                "id": 2055,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "2228:7:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "2220:42:22",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister)"
              },
              "valueType": {
                "contractScope": null,
                "id": 2056,
                "name": "GlobalConstraintRegister",
                "nodeType": "UserDefinedTypeName",
                "referencedDeclaration": 2032,
                "src": "2237:24:22",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                  "typeString": "struct Controller.GlobalConstraintRegister"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2066,
            "name": "MintReputation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2065,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2060,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2328:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2059,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2328:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2062,
                  "indexed": true,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2353:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2061,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2353:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2064,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2066,
                  "src": "2374:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2063,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2374:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2327:63:22"
            },
            "src": "2306:85:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2074,
            "name": "BurnReputation",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2073,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2068,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2418:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2067,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2418:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2070,
                  "indexed": true,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2443:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2069,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2443:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2072,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2074,
                  "src": "2466:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2071,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2466:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2417:65:22"
            },
            "src": "2396:87:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2082,
            "name": "MintTokens",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2081,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2076,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2506:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2075,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2506:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2078,
                  "indexed": true,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2531:28:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2077,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2531:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2080,
                  "indexed": false,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2082,
                  "src": "2561:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2079,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2561:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2505:72:22"
            },
            "src": "2488:90:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2088,
            "name": "RegisterScheme",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2087,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2084,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2088,
                  "src": "2605:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2083,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2605:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2086,
                  "indexed": true,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2088,
                  "src": "2630:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2085,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2630:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2604:50:22"
            },
            "src": "2583:72:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2094,
            "name": "UnregisterScheme",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2093,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2090,
                  "indexed": true,
                  "name": "_sender",
                  "nodeType": "VariableDeclaration",
                  "scope": 2094,
                  "src": "2684:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2089,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2684:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2092,
                  "indexed": true,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2094,
                  "src": "2709:23:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2091,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2709:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2683:50:22"
            },
            "src": "2660:74:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2100,
            "name": "UpgradeController",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2099,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2096,
                  "indexed": true,
                  "name": "_oldController",
                  "nodeType": "VariableDeclaration",
                  "scope": 2100,
                  "src": "2763:30:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2095,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2763:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2098,
                  "indexed": false,
                  "name": "_newController",
                  "nodeType": "VariableDeclaration",
                  "scope": 2100,
                  "src": "2795:22:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2097,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2795:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2762:56:22"
            },
            "src": "2739:80:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2108,
            "name": "AddGlobalConstraint",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2107,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2102,
                  "indexed": true,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2860:33:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2101,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2860:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2104,
                  "indexed": false,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2903:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2103,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2903:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2106,
                  "indexed": false,
                  "name": "_when",
                  "nodeType": "VariableDeclaration",
                  "scope": 2108,
                  "src": "2928:41:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_CallPhase_$3781",
                    "typeString": "enum GlobalConstraintInterface.CallPhase"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2105,
                    "name": "GlobalConstraintInterface.CallPhase",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 3781,
                    "src": "2928:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2850:120:22"
            },
            "src": "2825:146:22"
          },
          {
            "anonymous": false,
            "documentation": null,
            "id": 2116,
            "name": "RemoveGlobalConstraint",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 2115,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2110,
                  "indexed": true,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3006:33:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2109,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "3006:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2112,
                  "indexed": false,
                  "name": "_index",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3041:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2111,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3041:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2114,
                  "indexed": false,
                  "name": "_isPre",
                  "nodeType": "VariableDeclaration",
                  "scope": 2116,
                  "src": "3057:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2113,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3057:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3005:64:22"
            },
            "src": "2977:93:22"
          },
          {
            "body": {
              "id": 2151,
              "nodeType": "Block",
              "src": "3112:228:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2123,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2121,
                      "name": "avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2038,
                      "src": "3122:6:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$2010",
                        "typeString": "contract Avatar"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2122,
                      "name": "_avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2118,
                      "src": "3131:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$2010",
                        "typeString": "contract Avatar"
                      }
                    },
                    "src": "3122:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "id": 2124,
                  "nodeType": "ExpressionStatement",
                  "src": "3122:16:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2129,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2125,
                      "name": "nativeToken",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2040,
                      "src": "3148:11:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_DAOToken_$3775",
                        "typeString": "contract DAOToken"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 2126,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2038,
                          "src": "3162:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "id": 2127,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "nativeToken",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1746,
                        "src": "3162:18:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_DAOToken_$3775_$",
                          "typeString": "function () view external returns (contract DAOToken)"
                        }
                      },
                      "id": 2128,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3162:20:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_DAOToken_$3775",
                        "typeString": "contract DAOToken"
                      }
                    },
                    "src": "3148:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_DAOToken_$3775",
                      "typeString": "contract DAOToken"
                    }
                  },
                  "id": 2130,
                  "nodeType": "ExpressionStatement",
                  "src": "3148:34:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2135,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 2131,
                      "name": "nativeReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2042,
                      "src": "3192:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Reputation_$9557",
                        "typeString": "contract Reputation"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 2132,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2038,
                          "src": "3211:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "id": 2133,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "nativeReputation",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1748,
                        "src": "3211:23:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_Reputation_$9557_$",
                          "typeString": "function () view external returns (contract Reputation)"
                        }
                      },
                      "id": 2134,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3211:25:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Reputation_$9557",
                        "typeString": "contract Reputation"
                      }
                    },
                    "src": "3192:44:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Reputation_$9557",
                      "typeString": "contract Reputation"
                    }
                  },
                  "id": 2136,
                  "nodeType": "ExpressionStatement",
                  "src": "3192:44:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2149,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2137,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "3246:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2140,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2138,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3254:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2139,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3254:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3246:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2143,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3296:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2142,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3288:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes32_$",
                              "typeString": "type(bytes32)"
                            },
                            "typeName": "bytes32"
                          },
                          "id": 2144,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3288:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303146",
                              "id": 2146,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3320:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_31_by_1",
                                "typeString": "int_const 31"
                              },
                              "value": "0x0000001F"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_31_by_1",
                                "typeString": "int_const 31"
                              }
                            ],
                            "id": 2145,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3313:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2147,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3313:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2141,
                        "name": "Scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2022,
                        "src": "3268:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_struct$_Scheme_$2022_storage_ptr_$",
                          "typeString": "type(struct Controller.Scheme storage pointer)"
                        }
                      },
                      "id": 2148,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "structConstructorCall",
                      "lValueRequested": false,
                      "names": [
                        "paramsHash",
                        "permissions"
                      ],
                      "nodeType": "FunctionCall",
                      "src": "3268:65:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_memory",
                        "typeString": "struct Controller.Scheme memory"
                      }
                    },
                    "src": "3246:87:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                      "typeString": "struct Controller.Scheme storage ref"
                    }
                  },
                  "id": 2150,
                  "nodeType": "ExpressionStatement",
                  "src": "3246:87:22"
                }
              ]
            },
            "documentation": null,
            "id": 2152,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2119,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2118,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2152,
                  "src": "3089:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 2117,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "3089:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3087:17:22"
            },
            "returnParameters": {
              "id": 2120,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3112:0:22"
            },
            "scope": 3466,
            "src": "3076:264:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 2158,
              "nodeType": "Block",
              "src": "3449:25:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2155,
                      "name": "revert",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23695,
                        23696
                      ],
                      "referencedDeclaration": 23695,
                      "src": "3459:6:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_revert_pure$__$returns$__$",
                        "typeString": "function () pure"
                      }
                    },
                    "id": 2156,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3459:8:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2157,
                  "nodeType": "ExpressionStatement",
                  "src": "3459:8:22"
                }
              ]
            },
            "documentation": null,
            "id": 2159,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2153,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3437:2:22"
            },
            "returnParameters": {
              "id": 2154,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3449:0:22"
            },
            "scope": 3466,
            "src": "3429:45:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2178,
              "nodeType": "Block",
              "src": "3528:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2174,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2170,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2162,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3546:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2165,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2163,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3554:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2164,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3554:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3546:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2166,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3546:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303031",
                                "id": 2168,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3585:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                "value": "0x00000001"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                }
                              ],
                              "id": 2167,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3578:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2169,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3578:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3546:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303031",
                              "id": 2172,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3607:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_1_by_1",
                                "typeString": "int_const 1"
                              },
                              "value": "0x00000001"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_1_by_1",
                                "typeString": "int_const 1"
                              }
                            ],
                            "id": 2171,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3600:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2173,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3600:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3546:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2161,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3538:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2175,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3538:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2176,
                  "nodeType": "ExpressionStatement",
                  "src": "3538:81:22"
                },
                {
                  "id": 2177,
                  "nodeType": "PlaceholderStatement",
                  "src": "3629:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2179,
            "name": "onlyRegisteredScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2160,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3525:2:22"
            },
            "src": "3496:141:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2198,
              "nodeType": "Block",
              "src": "3677:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2194,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2190,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2182,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3695:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2185,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2183,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3703:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2184,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3703:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3695:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2186,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3695:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303032",
                                "id": 2188,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3734:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                },
                                "value": "0x00000002"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                }
                              ],
                              "id": 2187,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3727:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2189,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3727:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3695:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303032",
                              "id": 2192,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3756:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_2_by_1",
                                "typeString": "int_const 2"
                              },
                              "value": "0x00000002"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_2_by_1",
                                "typeString": "int_const 2"
                              }
                            ],
                            "id": 2191,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3749:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2193,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3749:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3695:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2181,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3687:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2195,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3687:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2196,
                  "nodeType": "ExpressionStatement",
                  "src": "3687:81:22"
                },
                {
                  "id": 2197,
                  "nodeType": "PlaceholderStatement",
                  "src": "3778:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2199,
            "name": "onlyRegisteringSchemes",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2180,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3674:2:22"
            },
            "src": "3643:143:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2218,
              "nodeType": "Block",
              "src": "3831:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2214,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2210,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2202,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3849:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2205,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2203,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "3857:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2204,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "3857:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3849:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2206,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3849:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303034",
                                "id": 2208,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3888:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_4_by_1",
                                  "typeString": "int_const 4"
                                },
                                "value": "0x00000004"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_4_by_1",
                                  "typeString": "int_const 4"
                                }
                              ],
                              "id": 2207,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "3881:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2209,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3881:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3849:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303034",
                              "id": 2212,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3910:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_4_by_1",
                                "typeString": "int_const 4"
                              },
                              "value": "0x00000004"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_4_by_1",
                                "typeString": "int_const 4"
                              }
                            ],
                            "id": 2211,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "3903:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2213,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3903:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3849:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2201,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3841:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2215,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3841:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2216,
                  "nodeType": "ExpressionStatement",
                  "src": "3841:81:22"
                },
                {
                  "id": 2217,
                  "nodeType": "PlaceholderStatement",
                  "src": "3932:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2219,
            "name": "onlyGlobalConstraintsScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2200,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3828:2:22"
            },
            "src": "3792:148:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2238,
              "nodeType": "Block",
              "src": "3977:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2234,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2230,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2222,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "3995:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2225,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2223,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4003:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2224,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4003:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "3995:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2226,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "3995:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303038",
                                "id": 2228,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4034:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_8_by_1",
                                  "typeString": "int_const 8"
                                },
                                "value": "0x00000008"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_8_by_1",
                                  "typeString": "int_const 8"
                                }
                              ],
                              "id": 2227,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4027:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2229,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4027:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "3995:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303038",
                              "id": 2232,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4056:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_8_by_1",
                                "typeString": "int_const 8"
                              },
                              "value": "0x00000008"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_8_by_1",
                                "typeString": "int_const 8"
                              }
                            ],
                            "id": 2231,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4049:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2233,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4049:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "3995:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2221,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "3987:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2235,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3987:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2236,
                  "nodeType": "ExpressionStatement",
                  "src": "3987:81:22"
                },
                {
                  "id": 2237,
                  "nodeType": "PlaceholderStatement",
                  "src": "4078:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2239,
            "name": "onlyUpgradingScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2220,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3974:2:22"
            },
            "src": "3946:140:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2258,
              "nodeType": "Block",
              "src": "4125:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2254,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2250,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2242,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "4143:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2245,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2243,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4151:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2244,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4151:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "4143:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2246,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "4143:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303130",
                                "id": 2248,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4182:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                },
                                "value": "0x00000010"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                }
                              ],
                              "id": 2247,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4175:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2249,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4175:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "4143:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303130",
                              "id": 2252,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4204:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              },
                              "value": "0x00000010"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              }
                            ],
                            "id": 2251,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4197:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2253,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4197:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "4143:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2241,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "4135:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2255,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4135:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2256,
                  "nodeType": "ExpressionStatement",
                  "src": "4135:81:22"
                },
                {
                  "id": 2257,
                  "nodeType": "PlaceholderStatement",
                  "src": "4226:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2259,
            "name": "onlyGenericCallScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2240,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4122:2:22"
            },
            "src": "4092:142:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2278,
              "nodeType": "Block",
              "src": "4270:109:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2274,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2270,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2262,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "4288:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 2265,
                              "indexExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "id": 2263,
                                  "name": "msg",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 23690,
                                  "src": "4296:3:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_magic_message",
                                    "typeString": "msg"
                                  }
                                },
                                "id": 2264,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "sender",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "4296:10:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address_payable",
                                  "typeString": "address payable"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "4288:19:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 2266,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "4288:31:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303130",
                                "id": 2268,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4327:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                },
                                "value": "0x00000010"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_16_by_1",
                                  "typeString": "int_const 16"
                                }
                              ],
                              "id": 2267,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4320:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2269,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4320:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "4288:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30783030303030303130",
                              "id": 2272,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "4349:10:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              },
                              "value": "0x00000010"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_16_by_1",
                                "typeString": "int_const 16"
                              }
                            ],
                            "id": 2271,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "4342:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2273,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4342:18:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "4288:72:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2261,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "4280:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2275,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4280:81:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2276,
                  "nodeType": "ExpressionStatement",
                  "src": "4280:81:22"
                },
                {
                  "id": 2277,
                  "nodeType": "PlaceholderStatement",
                  "src": "4371:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2279,
            "name": "onlyMetaDataScheme",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2260,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4267:2:22"
            },
            "src": "4240:139:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2351,
              "nodeType": "Block",
              "src": "4432:533:22",
              "statements": [
                {
                  "assignments": [
                    2284
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2284,
                      "name": "idx",
                      "nodeType": "VariableDeclaration",
                      "scope": 2351,
                      "src": "4442:11:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 2283,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "4442:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2285,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "4442:11:22"
                },
                {
                  "body": {
                    "id": 2316,
                    "nodeType": "Block",
                    "src": "4519:180:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2306,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23690,
                                    "src": "4636:3:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 2307,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "4636:10:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2308,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "4648:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2310,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2309,
                                      "name": "idx",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2284,
                                      "src": "4669:3:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "4648:25:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2311,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "4648:32:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2312,
                                  "name": "func",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2281,
                                  "src": "4682:4:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "arguments": [
                                        {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "baseExpression": {
                                              "argumentTypes": null,
                                              "id": 2299,
                                              "name": "globalConstraintsPre",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2047,
                                              "src": "4581:20:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2301,
                                            "indexExpression": {
                                              "argumentTypes": null,
                                              "id": 2300,
                                              "name": "idx",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2284,
                                              "src": "4602:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                              }
                                            },
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "nodeType": "IndexAccess",
                                            "src": "4581:25:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                              "typeString": "struct Controller.GlobalConstraint storage ref"
                                            }
                                          },
                                          "id": 2302,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "gcAddress",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2024,
                                          "src": "4581:35:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        ],
                                        "id": 2298,
                                        "name": "GlobalConstraintInterface",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 3809,
                                        "src": "4555:25:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                          "typeString": "type(contract GlobalConstraintInterface)"
                                        }
                                      },
                                      "id": 2303,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "4555:62:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                        "typeString": "contract GlobalConstraintInterface"
                                      }
                                    }
                                  ],
                                  "id": 2304,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "4554:64:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                    "typeString": "contract GlobalConstraintInterface"
                                  }
                                },
                                "id": 2305,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "pre",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 3792,
                                "src": "4554:81:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes32_$_t_bytes32_$returns$_t_bool_$",
                                  "typeString": "function (address,bytes32,bytes32) external returns (bool)"
                                }
                              },
                              "id": 2313,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "4554:133:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2297,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4533:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 2314,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4533:155:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2315,
                        "nodeType": "ExpressionStatement",
                        "src": "4533:155:22"
                      }
                    ]
                  },
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 2293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 2290,
                      "name": "idx",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2284,
                      "src": "4477:3:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 2291,
                        "name": "globalConstraintsPre",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2047,
                        "src": "4483:20:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                          "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                        }
                      },
                      "id": 2292,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "4483:27:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4477:33:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2317,
                  "initializationExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2288,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 2286,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4468:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 2287,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "4474:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "4468:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2289,
                    "nodeType": "ExpressionStatement",
                    "src": "4468:7:22"
                  },
                  "loopExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2295,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "4512:5:22",
                      "subExpression": {
                        "argumentTypes": null,
                        "id": 2294,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4512:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2296,
                    "nodeType": "ExpressionStatement",
                    "src": "4512:5:22"
                  },
                  "nodeType": "ForStatement",
                  "src": "4463:236:22"
                },
                {
                  "id": 2318,
                  "nodeType": "PlaceholderStatement",
                  "src": "4708:1:22"
                },
                {
                  "body": {
                    "id": 2349,
                    "nodeType": "Block",
                    "src": "4776:183:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2339,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 23690,
                                    "src": "4895:3:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 2340,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "4895:10:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2341,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "4907:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2343,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2342,
                                      "name": "idx",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2284,
                                      "src": "4929:3:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "4907:26:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2344,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "4907:33:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                {
                                  "argumentTypes": null,
                                  "id": 2345,
                                  "name": "func",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2281,
                                  "src": "4942:4:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_address_payable",
                                    "typeString": "address payable"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  },
                                  {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "arguments": [
                                        {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "baseExpression": {
                                              "argumentTypes": null,
                                              "id": 2332,
                                              "name": "globalConstraintsPost",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2050,
                                              "src": "4838:21:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2334,
                                            "indexExpression": {
                                              "argumentTypes": null,
                                              "id": 2333,
                                              "name": "idx",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2284,
                                              "src": "4860:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                              }
                                            },
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "nodeType": "IndexAccess",
                                            "src": "4838:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                              "typeString": "struct Controller.GlobalConstraint storage ref"
                                            }
                                          },
                                          "id": 2335,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "gcAddress",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2024,
                                          "src": "4838:36:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        ],
                                        "id": 2331,
                                        "name": "GlobalConstraintInterface",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 3809,
                                        "src": "4812:25:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                          "typeString": "type(contract GlobalConstraintInterface)"
                                        }
                                      },
                                      "id": 2336,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "4812:63:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                        "typeString": "contract GlobalConstraintInterface"
                                      }
                                    }
                                  ],
                                  "id": 2337,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "4811:65:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                                    "typeString": "contract GlobalConstraintInterface"
                                  }
                                },
                                "id": 2338,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "post",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 3803,
                                "src": "4811:83:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes32_$_t_bytes32_$returns$_t_bool_$",
                                  "typeString": "function (address,bytes32,bytes32) external returns (bool)"
                                }
                              },
                              "id": 2346,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "4811:136:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2330,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "4790:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 2347,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "4790:158:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2348,
                        "nodeType": "ExpressionStatement",
                        "src": "4790:158:22"
                      }
                    ]
                  },
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 2326,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 2323,
                      "name": "idx",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2284,
                      "src": "4733:3:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 2324,
                        "name": "globalConstraintsPost",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2050,
                        "src": "4739:21:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                          "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                        }
                      },
                      "id": 2325,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "4739:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4733:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2350,
                  "initializationExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2321,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 2319,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4724:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 2320,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "4730:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "4724:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2322,
                    "nodeType": "ExpressionStatement",
                    "src": "4724:7:22"
                  },
                  "loopExpression": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 2328,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "4769:5:22",
                      "subExpression": {
                        "argumentTypes": null,
                        "id": 2327,
                        "name": "idx",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2284,
                        "src": "4769:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 2329,
                    "nodeType": "ExpressionStatement",
                    "src": "4769:5:22"
                  },
                  "nodeType": "ForStatement",
                  "src": "4719:240:22"
                }
              ]
            },
            "documentation": null,
            "id": 2352,
            "name": "onlySubjectToConstraint",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2282,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2281,
                  "name": "func",
                  "nodeType": "VariableDeclaration",
                  "scope": 2352,
                  "src": "4418:12:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2280,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4418:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4417:14:22"
            },
            "src": "4385:580:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2365,
              "nodeType": "Block",
              "src": "5011:63:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 2361,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 2357,
                          "name": "_avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2354,
                          "src": "5029:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 2359,
                              "name": "avatar",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2038,
                              "src": "5048:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            ],
                            "id": 2358,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "5040:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 2360,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "5040:15:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "5029:26:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2356,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "5021:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2362,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5021:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2363,
                  "nodeType": "ExpressionStatement",
                  "src": "5021:35:22"
                },
                {
                  "id": 2364,
                  "nodeType": "PlaceholderStatement",
                  "src": "5066:1:22"
                }
              ]
            },
            "documentation": null,
            "id": 2366,
            "name": "isAvatarValid",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2355,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2354,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2366,
                  "src": "4994:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2353,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "4994:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "4993:17:22"
            },
            "src": "4971:103:22",
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2398,
              "nodeType": "Block",
              "src": "5507:114:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2386,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "5537:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2387,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "5537:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2388,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2370,
                        "src": "5549:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2389,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2368,
                        "src": "5554:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2385,
                      "name": "MintReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2066,
                      "src": "5522:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2390,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5522:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2391,
                  "nodeType": "EmitStatement",
                  "src": "5517:45:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2394,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2370,
                        "src": "5601:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2395,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2368,
                        "src": "5606:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2392,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "5579:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      },
                      "id": 2393,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "mint",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 9319,
                      "src": "5579:21:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2396,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5579:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2384,
                  "id": 2397,
                  "nodeType": "Return",
                  "src": "5572:42:22"
                }
              ]
            },
            "documentation": "@dev Mint `_amount` of reputation that are assigned to `_to` .\n@param  _amount amount of reputation to mint\n@param _to beneficiary address\n@return bool which represents a success",
            "id": 2399,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2375,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2374,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "5391:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5391:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6d696e7452657075746174696f6e",
                    "id": 2377,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "5440:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_1a219662897983599a6b9002ff87ae94af2205e820352b0884d9af0be457f05d",
                      "typeString": "literal_string \"mintReputation\""
                    },
                    "value": "mintReputation"
                  }
                ],
                "id": 2378,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2376,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "5416:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5416:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2380,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2372,
                    "src": "5476:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2381,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2379,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "5462:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5462:22:22"
              }
            ],
            "name": "mintReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2373,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2368,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5327:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2367,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5327:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2370,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5344:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2369,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5344:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2372,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5357:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2371,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5357:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5326:47:22"
            },
            "returnParameters": {
              "id": 2384,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2383,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2399,
                  "src": "5497:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2382,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "5497:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5496:6:22"
            },
            "scope": 3466,
            "src": "5303:318:22",
            "stateMutability": "nonpayable",
            "superFunction": 3481,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2431,
              "nodeType": "Block",
              "src": "6064:118:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2419,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "6094:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2420,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "6094:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2421,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2403,
                        "src": "6106:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2422,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2401,
                        "src": "6113:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2418,
                      "name": "BurnReputation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2074,
                      "src": "6079:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2423,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6079:42:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2424,
                  "nodeType": "EmitStatement",
                  "src": "6074:47:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2427,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2403,
                        "src": "6160:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2428,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2401,
                        "src": "6167:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2425,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "6138:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      },
                      "id": 2426,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "burn",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 9378,
                      "src": "6138:21:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2429,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6138:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2417,
                  "id": 2430,
                  "nodeType": "Return",
                  "src": "6131:44:22"
                }
              ]
            },
            "documentation": "@dev Burns `_amount` of reputation from `_from`\n@param _amount amount of reputation to burn\n@param _from The address that will lose the reputation\n@return bool which represents a success",
            "id": 2432,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2408,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2407,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "5948:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5948:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6275726e52657075746174696f6e",
                    "id": 2410,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "5997:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_701c6a9b3c30976c567c709256889545b87c2151a8fd377ac6f0366a5ce4dd74",
                      "typeString": "literal_string \"burnReputation\""
                    },
                    "value": "burnReputation"
                  }
                ],
                "id": 2411,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2409,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "5973:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "5973:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2413,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2405,
                    "src": "6033:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2414,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2412,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "6019:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6019:22:22"
              }
            ],
            "name": "burnReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2406,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2401,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5882:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2400,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5882:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2403,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5899:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2402,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5899:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2405,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "5914:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2404,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "5914:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "5881:49:22"
            },
            "returnParameters": {
              "id": 2417,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2416,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2432,
                  "src": "6054:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2415,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6054:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6053:6:22"
            },
            "scope": 3466,
            "src": "5858:324:22",
            "stateMutability": "nonpayable",
            "superFunction": 3492,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2464,
              "nodeType": "Block",
              "src": "6576:123:22",
              "statements": [
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2452,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "6602:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2453,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "6602:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2454,
                        "name": "_beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2436,
                        "src": "6614:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2455,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2434,
                        "src": "6628:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2451,
                      "name": "MintTokens",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2082,
                      "src": "6591:10:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
                        "typeString": "function (address,address,uint256)"
                      }
                    },
                    "id": 2456,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6591:45:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2457,
                  "nodeType": "EmitStatement",
                  "src": "6586:50:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2460,
                        "name": "_beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2436,
                        "src": "6670:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2461,
                        "name": "_amount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2434,
                        "src": "6684:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 2458,
                        "name": "nativeToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2040,
                        "src": "6653:11:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_DAOToken_$3775",
                          "typeString": "contract DAOToken"
                        }
                      },
                      "id": 2459,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "mint",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3774,
                      "src": "6653:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (address,uint256) external returns (bool)"
                      }
                    },
                    "id": 2462,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6653:39:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2450,
                  "id": 2463,
                  "nodeType": "Return",
                  "src": "6646:46:22"
                }
              ]
            },
            "documentation": "@dev mint tokens .\n@param  _amount amount of token to mint\n@param _beneficiary beneficiary address\n@return bool which represents a success",
            "id": 2465,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2441,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2440,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "6464:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6464:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "6d696e74546f6b656e73",
                    "id": 2443,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "6513:12:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_21b23862db72e99373f312e35ae4594cf48c0e3462d6964e450d863eb9283120",
                      "typeString": "literal_string \"mintTokens\""
                    },
                    "value": "mintTokens"
                  }
                ],
                "id": 2444,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2442,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "6489:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6489:37:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2446,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2438,
                    "src": "6545:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2447,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2445,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "6531:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "6531:22:22"
              }
            ],
            "name": "mintTokens",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2439,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2434,
                  "name": "_amount",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6391:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2433,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6391:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2436,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6408:20:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2435,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6408:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2438,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6430:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2437,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6430:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6390:56:22"
            },
            "returnParameters": {
              "id": 2450,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2449,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2465,
                  "src": "6566:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2448,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6566:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6565:6:22"
            },
            "scope": 3466,
            "src": "6371:328:22",
            "stateMutability": "nonpayable",
            "superFunction": 3503,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2564,
              "nodeType": "Block",
              "src": "7211:876:22",
              "statements": [
                {
                  "assignments": [
                    2487
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2487,
                      "name": "scheme",
                      "nodeType": "VariableDeclaration",
                      "scope": 2564,
                      "src": "7222:20:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                        "typeString": "struct Controller.Scheme"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2486,
                        "name": "Scheme",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2022,
                        "src": "7222:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage_ptr",
                          "typeString": "struct Controller.Scheme"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2491,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 2488,
                      "name": "schemes",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2036,
                      "src": "7245:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                      }
                    },
                    "id": 2490,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 2489,
                      "name": "_scheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2467,
                      "src": "7253:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "7245:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                      "typeString": "struct Controller.Scheme storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "7222:39:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2513,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2509,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "commonType": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            },
                            "id": 2501,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "argumentTypes": null,
                              "arguments": [
                                {
                                  "argumentTypes": null,
                                  "hexValue": "30783030303030303166",
                                  "id": 2494,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "7567:10:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_31_by_1",
                                    "typeString": "int_const 31"
                                  },
                                  "value": "0x0000001f"
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_rational_31_by_1",
                                    "typeString": "int_const 31"
                                  }
                                ],
                                "id": 2493,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "7560:6:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_bytes4_$",
                                  "typeString": "type(bytes4)"
                                },
                                "typeName": "bytes4"
                              },
                              "id": 2495,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "7560:18:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes4",
                                "typeString": "bytes4"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "&",
                            "rightExpression": {
                              "argumentTypes": null,
                              "components": [
                                {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  },
                                  "id": 2499,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "id": 2496,
                                    "name": "_permissions",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2471,
                                    "src": "7580:12:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes4",
                                      "typeString": "bytes4"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "^",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2497,
                                      "name": "scheme",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2487,
                                      "src": "7593:6:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                                        "typeString": "struct Controller.Scheme memory"
                                      }
                                    },
                                    "id": 2498,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "permissions",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": 2021,
                                    "src": "7593:18:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_bytes4",
                                      "typeString": "bytes4"
                                    }
                                  },
                                  "src": "7580:31:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                }
                              ],
                              "id": 2500,
                              "isConstant": false,
                              "isInlineArray": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "TupleExpression",
                              "src": "7579:33:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes4",
                                "typeString": "bytes4"
                              }
                            },
                            "src": "7560:52:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "id": 2507,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "~",
                                "prefix": true,
                                "src": "7614:32:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2502,
                                      "name": "schemes",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2036,
                                      "src": "7615:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                      }
                                    },
                                    "id": 2505,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "id": 2503,
                                        "name": "msg",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 23690,
                                        "src": "7623:3:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_magic_message",
                                          "typeString": "msg"
                                        }
                                      },
                                      "id": 2504,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "sender",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": null,
                                      "src": "7623:10:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_address_payable",
                                        "typeString": "address payable"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "7615:19:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                      "typeString": "struct Controller.Scheme storage ref"
                                    }
                                  },
                                  "id": 2506,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "7615:31:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2508,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "7613:34:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "7560:87:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2511,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "7658:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2510,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "7651:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2512,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "7651:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "7560:100:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2492,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "7552:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2514,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7552:109:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2515,
                  "nodeType": "ExpressionStatement",
                  "src": "7552:109:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2535,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2531,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303166",
                                "id": 2518,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "7771:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                },
                                "value": "0x0000001f"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                }
                              ],
                              "id": 2517,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "7764:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2519,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "7764:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                },
                                "id": 2529,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2520,
                                    "name": "scheme",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2487,
                                    "src": "7784:6:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_memory_ptr",
                                      "typeString": "struct Controller.Scheme memory"
                                    }
                                  },
                                  "id": 2521,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "7784:18:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "&",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2527,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "nodeType": "UnaryOperation",
                                      "operator": "~",
                                      "prefix": true,
                                      "src": "7804:32:22",
                                      "subExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2522,
                                            "name": "schemes",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2036,
                                            "src": "7805:7:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                              "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                            }
                                          },
                                          "id": 2525,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2523,
                                              "name": "msg",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 23690,
                                              "src": "7813:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_magic_message",
                                                "typeString": "msg"
                                              }
                                            },
                                            "id": 2524,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "7813:10:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address_payable",
                                              "typeString": "address payable"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "7805:19:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                            "typeString": "struct Controller.Scheme storage ref"
                                          }
                                        },
                                        "id": 2526,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "permissions",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2021,
                                        "src": "7805:31:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes4",
                                          "typeString": "bytes4"
                                        }
                                      },
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bytes4",
                                        "typeString": "bytes4"
                                      }
                                    }
                                  ],
                                  "id": 2528,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "7803:34:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "src": "7784:53:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2530,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "7783:55:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "7764:74:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2533,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "7849:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2532,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "7842:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2534,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "7842:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "7764:87:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2516,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "7756:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2536,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7756:96:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2537,
                  "nodeType": "ExpressionStatement",
                  "src": "7756:96:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2543,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 2538,
                          "name": "schemes",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2036,
                          "src": "7896:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                            "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                          }
                        },
                        "id": 2540,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 2539,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2467,
                          "src": "7904:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7896:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                          "typeString": "struct Controller.Scheme storage ref"
                        }
                      },
                      "id": 2541,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "memberName": "paramsHash",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2019,
                      "src": "7896:27:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 2542,
                      "name": "_paramsHash",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2469,
                      "src": "7926:11:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "7896:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 2544,
                  "nodeType": "ExpressionStatement",
                  "src": "7896:41:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2554,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "baseExpression": {
                          "argumentTypes": null,
                          "id": 2545,
                          "name": "schemes",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2036,
                          "src": "7947:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                            "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                          }
                        },
                        "id": 2547,
                        "indexExpression": {
                          "argumentTypes": null,
                          "id": 2546,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2467,
                          "src": "7955:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "7947:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                          "typeString": "struct Controller.Scheme storage ref"
                        }
                      },
                      "id": 2548,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "memberName": "permissions",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2021,
                      "src": "7947:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "commonType": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      },
                      "id": 2553,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "argumentTypes": null,
                        "id": 2549,
                        "name": "_permissions",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2471,
                        "src": "7978:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "|",
                      "rightExpression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "30783030303030303031",
                            "id": 2551,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "7998:10:22",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_1_by_1",
                              "typeString": "int_const 1"
                            },
                            "value": "0x00000001"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_1_by_1",
                              "typeString": "int_const 1"
                            }
                          ],
                          "id": 2550,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "7991:6:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_bytes4_$",
                            "typeString": "type(bytes4)"
                          },
                          "typeName": "bytes4"
                        },
                        "id": 2552,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "7991:18:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        }
                      },
                      "src": "7978:31:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes4",
                        "typeString": "bytes4"
                      }
                    },
                    "src": "7947:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "id": 2555,
                  "nodeType": "ExpressionStatement",
                  "src": "7947:62:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2557,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "8039:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2558,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "8039:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2559,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2467,
                        "src": "8051:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2556,
                      "name": "RegisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2088,
                      "src": "8024:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2560,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8024:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2561,
                  "nodeType": "EmitStatement",
                  "src": "8019:40:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2562,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8076:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2485,
                  "id": 2563,
                  "nodeType": "Return",
                  "src": "8069:11:22"
                }
              ]
            },
            "documentation": "@dev register a scheme\n@param _scheme the address of the scheme\n@param _paramsHash a hashed configuration of the usage of the scheme\n@param _permissions the permissions the new scheme will have\n@return bool which represents a success",
            "id": 2565,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2476,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2475,
                  "name": "onlyRegisteringSchemes",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2199,
                  "src": "7093:22:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7093:22:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "7265676973746572536368656d65",
                    "id": 2478,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7144:16:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c6de131411a6b4c4ab26bd5c5ac65f44cdd792220de1a6733d66d35c3433e601",
                      "typeString": "literal_string \"registerScheme\""
                    },
                    "value": "registerScheme"
                  }
                ],
                "id": 2479,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2477,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "7120:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7120:41:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2481,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2473,
                    "src": "7180:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2482,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2480,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "7166:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "7166:22:22"
              }
            ],
            "name": "registerScheme",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2474,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2467,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7000:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2466,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "7000:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2469,
                  "name": "_paramsHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7017:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2468,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7017:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2471,
                  "name": "_permissions",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7038:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 2470,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "7038:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2473,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7059:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2472,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "7059:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "6999:76:22"
            },
            "returnParameters": {
              "id": 2485,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2484,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2565,
                  "src": "7201:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2483,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "7201:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "7200:6:22"
            },
            "scope": 3466,
            "src": "6976:1111:22",
            "stateMutability": "nonpayable",
            "superFunction": 3516,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2628,
              "nodeType": "Block",
              "src": "8434:440:22",
              "statements": [
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2586,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 2583,
                          "name": "_scheme",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2567,
                          "src": "8508:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 2582,
                        "name": "_isSchemeRegistered",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3465,
                        "src": "8488:19:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                          "typeString": "function (address) view returns (bool)"
                        }
                      },
                      "id": 2584,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "8488:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "66616c7365",
                      "id": 2585,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "8520:5:22",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "false"
                    },
                    "src": "8488:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2590,
                  "nodeType": "IfStatement",
                  "src": "8484:80:22",
                  "trueBody": {
                    "id": 2589,
                    "nodeType": "Block",
                    "src": "8527:37:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 2587,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "8548:5:22",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "functionReturnParameters": 2581,
                        "id": 2588,
                        "nodeType": "Return",
                        "src": "8541:12:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 2612,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 2608,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303166",
                                "id": 2593,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "8650:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                },
                                "value": "0x0000001f"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_31_by_1",
                                  "typeString": "int_const 31"
                                }
                              ],
                              "id": 2592,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "8643:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 2594,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8643:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "components": [
                              {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                },
                                "id": 2606,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2595,
                                      "name": "schemes",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2036,
                                      "src": "8663:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                        "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                      }
                                    },
                                    "id": 2597,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "id": 2596,
                                      "name": "_scheme",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2567,
                                      "src": "8671:7:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "8663:16:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                      "typeString": "struct Controller.Scheme storage ref"
                                    }
                                  },
                                  "id": 2598,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "permissions",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2021,
                                  "src": "8663:28:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "&",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "components": [
                                    {
                                      "argumentTypes": null,
                                      "id": 2604,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "nodeType": "UnaryOperation",
                                      "operator": "~",
                                      "prefix": true,
                                      "src": "8693:32:22",
                                      "subExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2599,
                                            "name": "schemes",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2036,
                                            "src": "8694:7:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                              "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                            }
                                          },
                                          "id": 2602,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2600,
                                              "name": "msg",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 23690,
                                              "src": "8702:3:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_magic_message",
                                                "typeString": "msg"
                                              }
                                            },
                                            "id": 2601,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "8702:10:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address_payable",
                                              "typeString": "address payable"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "8694:19:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                            "typeString": "struct Controller.Scheme storage ref"
                                          }
                                        },
                                        "id": 2603,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "permissions",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2021,
                                        "src": "8694:31:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes4",
                                          "typeString": "bytes4"
                                        }
                                      },
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bytes4",
                                        "typeString": "bytes4"
                                      }
                                    }
                                  ],
                                  "id": 2605,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "8692:34:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes4",
                                    "typeString": "bytes4"
                                  }
                                },
                                "src": "8663:63:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes4",
                                  "typeString": "bytes4"
                                }
                              }
                            ],
                            "id": 2607,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "8662:65:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "8643:84:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 2610,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "8738:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 2609,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "8731:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 2611,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "8731:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "8643:97:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 2591,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "8635:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 2613,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8635:106:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2614,
                  "nodeType": "ExpressionStatement",
                  "src": "8635:106:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2616,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "8793:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2617,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "8793:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2618,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2567,
                        "src": "8805:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2615,
                      "name": "UnregisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2094,
                      "src": "8776:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2619,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8776:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2620,
                  "nodeType": "EmitStatement",
                  "src": "8771:42:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2624,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "UnaryOperation",
                    "operator": "delete",
                    "prefix": true,
                    "src": "8823:23:22",
                    "subExpression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2621,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "8830:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2623,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 2622,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2567,
                        "src": "8838:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "8830:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2625,
                  "nodeType": "ExpressionStatement",
                  "src": "8823:23:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2626,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8863:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2581,
                  "id": 2627,
                  "nodeType": "Return",
                  "src": "8856:11:22"
                }
              ]
            },
            "documentation": "@dev unregister a scheme\n@param _scheme the address of the scheme\n@return bool which represents a success",
            "id": 2629,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2572,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2571,
                  "name": "onlyRegisteringSchemes",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2199,
                  "src": "8314:22:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8314:22:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "756e7265676973746572536368656d65",
                    "id": 2574,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "8365:18:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_b691bb484251ef01d241995950a354987a3e0c00fe2381f87b564ec41aab942c",
                      "typeString": "literal_string \"unregisterScheme\""
                    },
                    "value": "unregisterScheme"
                  }
                ],
                "id": 2575,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2573,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "8341:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8341:43:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2577,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2569,
                    "src": "8403:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2578,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2576,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "8389:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "8389:22:22"
              }
            ],
            "name": "unregisterScheme",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2570,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2567,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8263:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2566,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8263:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2569,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8280:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2568,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "8280:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8261:35:22"
            },
            "returnParameters": {
              "id": 2581,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2580,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2629,
                  "src": "8424:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2579,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "8424:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "8423:6:22"
            },
            "scope": 3466,
            "src": "8236:638:22",
            "stateMutability": "nonpayable",
            "superFunction": 3525,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2664,
              "nodeType": "Block",
              "src": "9073:211:22",
              "statements": [
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2644,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2640,
                            "name": "msg",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23690,
                            "src": "9107:3:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_message",
                              "typeString": "msg"
                            }
                          },
                          "id": 2641,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "sender",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "9107:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        ],
                        "id": 2639,
                        "name": "_isSchemeRegistered",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3465,
                        "src": "9087:19:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                          "typeString": "function (address) view returns (bool)"
                        }
                      },
                      "id": 2642,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "9087:31:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "66616c7365",
                      "id": 2643,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "9122:5:22",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "false"
                    },
                    "src": "9087:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2648,
                  "nodeType": "IfStatement",
                  "src": "9083:83:22",
                  "trueBody": {
                    "id": 2647,
                    "nodeType": "Block",
                    "src": "9129:37:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 2645,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "9150:5:22",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "functionReturnParameters": 2638,
                        "id": 2646,
                        "nodeType": "Return",
                        "src": "9143:12:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 2653,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "UnaryOperation",
                    "operator": "delete",
                    "prefix": true,
                    "src": "9175:26:22",
                    "subExpression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 2649,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "9182:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 2652,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2650,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9190:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2651,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9190:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "9182:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2654,
                  "nodeType": "ExpressionStatement",
                  "src": "9175:26:22"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2656,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9233:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2657,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9233:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 2658,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "9245:3:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 2659,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "9245:10:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 2655,
                      "name": "UnregisterScheme",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2094,
                      "src": "9216:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 2660,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9216:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2661,
                  "nodeType": "EmitStatement",
                  "src": "9211:45:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2662,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "9273:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2638,
                  "id": 2663,
                  "nodeType": "Return",
                  "src": "9266:11:22"
                }
              ]
            },
            "documentation": "@dev unregister the caller's scheme\n@return bool which represents a success",
            "id": 2665,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2634,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2631,
                    "src": "9050:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2635,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2633,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "9036:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9036:22:22"
              }
            ],
            "name": "unregisterSelf",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2632,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2631,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2665,
                  "src": "9010:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2630,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9010:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9009:17:22"
            },
            "returnParameters": {
              "id": 2638,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2637,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2665,
                  "src": "9067:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2636,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9067:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9066:6:22"
            },
            "scope": 3466,
            "src": "8986:298:22",
            "stateMutability": "nonpayable",
            "superFunction": 3532,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2807,
              "nodeType": "Block",
              "src": "9717:1417:22",
              "statements": [
                {
                  "assignments": [
                    2684
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2684,
                      "name": "when",
                      "nodeType": "VariableDeclaration",
                      "scope": 2807,
                      "src": "9727:40:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_enum$_CallPhase_$3781",
                        "typeString": "enum GlobalConstraintInterface.CallPhase"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2683,
                        "name": "GlobalConstraintInterface.CallPhase",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 3781,
                        "src": "9727:35:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2690,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 2686,
                            "name": "_globalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2667,
                            "src": "9796:17:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 2685,
                          "name": "GlobalConstraintInterface",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3809,
                          "src": "9770:25:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                            "typeString": "type(contract GlobalConstraintInterface)"
                          }
                        },
                        "id": 2687,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "9770:44:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                          "typeString": "contract GlobalConstraintInterface"
                        }
                      },
                      "id": 2688,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "when",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3808,
                      "src": "9770:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$__$returns$_t_enum$_CallPhase_$3781_$",
                        "typeString": "function () external returns (enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2689,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9770:51:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "9727:94:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2703,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2695,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2691,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "9836:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2692,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "9844:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2693,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "9844:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2694,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Pre",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "9844:39:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "9836:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2696,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "9835:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2701,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2697,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "9900:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2698,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "9908:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2699,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "9908:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2700,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "9908:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "9900:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2702,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "9899:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "9835:120:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2744,
                  "nodeType": "IfStatement",
                  "src": "9831:596:22",
                  "trueBody": {
                    "id": 2743,
                    "nodeType": "Block",
                    "src": "9957:470:22",
                    "statements": [
                      {
                        "condition": {
                          "argumentTypes": null,
                          "id": 2708,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "!",
                          "prefix": true,
                          "src": "9975:61:22",
                          "subExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2704,
                                "name": "globalConstraintsRegisterPre",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2054,
                                "src": "9976:28:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                  "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                }
                              },
                              "id": 2706,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 2705,
                                "name": "_globalConstraint",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2667,
                                "src": "10005:17:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "9976:47:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                              }
                            },
                            "id": 2707,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "isRegistered",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2029,
                            "src": "9976:60:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "id": 2741,
                          "nodeType": "Block",
                          "src": "10292:125:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2739,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2731,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "10310:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2736,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2732,
                                          "name": "globalConstraintsRegisterPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2054,
                                          "src": "10331:28:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                            "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                          }
                                        },
                                        "id": 2734,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "id": 2733,
                                          "name": "_globalConstraint",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2667,
                                          "src": "10360:17:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "10331:47:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                          "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                        }
                                      },
                                      "id": 2735,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "index",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": 2031,
                                      "src": "10331:53:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "10310:75:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2737,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "10310:82:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "id": 2738,
                                  "name": "_params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2669,
                                  "src": "10395:7:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "src": "10310:92:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 2740,
                              "nodeType": "ExpressionStatement",
                              "src": "10310:92:22"
                            }
                          ]
                        },
                        "id": 2742,
                        "nodeType": "IfStatement",
                        "src": "9971:446:22",
                        "trueBody": {
                          "id": 2730,
                          "nodeType": "Block",
                          "src": "10038:249:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "id": 2713,
                                        "name": "_globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2667,
                                        "src": "10099:17:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 2714,
                                        "name": "_params",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2669,
                                        "src": "10118:7:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      ],
                                      "id": 2712,
                                      "name": "GlobalConstraint",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2027,
                                      "src": "10082:16:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_type$_t_struct$_GlobalConstraint_$2027_storage_ptr_$",
                                        "typeString": "type(struct Controller.GlobalConstraint storage pointer)"
                                      }
                                    },
                                    "id": 2715,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "structConstructorCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "10082:44:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2709,
                                    "name": "globalConstraintsPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2047,
                                    "src": "10056:20:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2711,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "push",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "10056:25:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_arraypush_nonpayable$_t_struct$_GlobalConstraint_$2027_storage_$returns$_t_uint256_$",
                                    "typeString": "function (struct Controller.GlobalConstraint storage ref) returns (uint256)"
                                  }
                                },
                                "id": 2716,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "10056:71:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2717,
                              "nodeType": "ExpressionStatement",
                              "src": "10056:71:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2728,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2718,
                                    "name": "globalConstraintsRegisterPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2054,
                                    "src": "10145:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2720,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2719,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2667,
                                    "src": "10174:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "10145:47:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "hexValue": "74727565",
                                      "id": 2722,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "kind": "bool",
                                      "lValueRequested": false,
                                      "nodeType": "Literal",
                                      "src": "10236:4:22",
                                      "subdenomination": null,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      "value": "true"
                                    },
                                    {
                                      "argumentTypes": null,
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "id": 2726,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2723,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "10242:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2724,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "length",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": null,
                                        "src": "10242:27:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "-",
                                      "rightExpression": {
                                        "argumentTypes": null,
                                        "hexValue": "31",
                                        "id": 2725,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "10270:1:22",
                                        "subdenomination": null,
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "10242:29:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    ],
                                    "id": 2721,
                                    "name": "GlobalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2032,
                                    "src": "10211:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_struct$_GlobalConstraintRegister_$2032_storage_ptr_$",
                                      "typeString": "type(struct Controller.GlobalConstraintRegister storage pointer)"
                                    }
                                  },
                                  "id": 2727,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "structConstructorCall",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "10211:61:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory",
                                    "typeString": "struct Controller.GlobalConstraintRegister memory"
                                  }
                                },
                                "src": "10145:127:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                  "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                }
                              },
                              "id": 2729,
                              "nodeType": "ExpressionStatement",
                              "src": "10145:127:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2757,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2749,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2745,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "10441:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2746,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "10449:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2747,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "10449:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2748,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Post",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "10449:40:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "10441:48:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2750,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "10440:50:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2755,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2751,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2684,
                            "src": "10506:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2752,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "10514:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2753,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "10514:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2754,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "10514:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "10506:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2756,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "10505:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "10440:121:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2798,
                  "nodeType": "IfStatement",
                  "src": "10436:603:22",
                  "trueBody": {
                    "id": 2797,
                    "nodeType": "Block",
                    "src": "10563:476:22",
                    "statements": [
                      {
                        "condition": {
                          "argumentTypes": null,
                          "id": 2762,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "!",
                          "prefix": true,
                          "src": "10581:62:22",
                          "subExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 2758,
                                "name": "globalConstraintsRegisterPost",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2058,
                                "src": "10582:29:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                  "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                }
                              },
                              "id": 2760,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 2759,
                                "name": "_globalConstraint",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2667,
                                "src": "10612:17:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "10582:48:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                              }
                            },
                            "id": 2761,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "isRegistered",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2029,
                            "src": "10582:61:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "id": 2795,
                          "nodeType": "Block",
                          "src": "10902:127:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2793,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "baseExpression": {
                                      "argumentTypes": null,
                                      "id": 2785,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "10920:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2790,
                                    "indexExpression": {
                                      "argumentTypes": null,
                                      "expression": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2786,
                                          "name": "globalConstraintsRegisterPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2058,
                                          "src": "10942:29:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                            "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                          }
                                        },
                                        "id": 2788,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "id": 2787,
                                          "name": "_globalConstraint",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2667,
                                          "src": "10972:17:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "10942:48:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                          "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                        }
                                      },
                                      "id": 2789,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "memberName": "index",
                                      "nodeType": "MemberAccess",
                                      "referencedDeclaration": 2031,
                                      "src": "10942:54:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "nodeType": "IndexAccess",
                                    "src": "10920:77:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref"
                                    }
                                  },
                                  "id": 2791,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "params",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2026,
                                  "src": "10920:84:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "id": 2792,
                                  "name": "_params",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2669,
                                  "src": "11007:7:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bytes32",
                                    "typeString": "bytes32"
                                  }
                                },
                                "src": "10920:94:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              "id": 2794,
                              "nodeType": "ExpressionStatement",
                              "src": "10920:94:22"
                            }
                          ]
                        },
                        "id": 2796,
                        "nodeType": "IfStatement",
                        "src": "10577:452:22",
                        "trueBody": {
                          "id": 2784,
                          "nodeType": "Block",
                          "src": "10645:252:22",
                          "statements": [
                            {
                              "expression": {
                                "argumentTypes": null,
                                "arguments": [
                                  {
                                    "argumentTypes": null,
                                    "arguments": [
                                      {
                                        "argumentTypes": null,
                                        "id": 2767,
                                        "name": "_globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2667,
                                        "src": "10707:17:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      },
                                      {
                                        "argumentTypes": null,
                                        "id": 2768,
                                        "name": "_params",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2669,
                                        "src": "10726:7:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      }
                                    ],
                                    "expression": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        },
                                        {
                                          "typeIdentifier": "t_bytes32",
                                          "typeString": "bytes32"
                                        }
                                      ],
                                      "id": 2766,
                                      "name": "GlobalConstraint",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2027,
                                      "src": "10690:16:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_type$_t_struct$_GlobalConstraint_$2027_storage_ptr_$",
                                        "typeString": "type(struct Controller.GlobalConstraint storage pointer)"
                                      }
                                    },
                                    "id": 2769,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "kind": "structConstructorCall",
                                    "lValueRequested": false,
                                    "names": [],
                                    "nodeType": "FunctionCall",
                                    "src": "10690:44:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory",
                                      "typeString": "struct Controller.GlobalConstraint memory"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2763,
                                    "name": "globalConstraintsPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2050,
                                    "src": "10663:21:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2765,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "push",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "10663:26:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_arraypush_nonpayable$_t_struct$_GlobalConstraint_$2027_storage_$returns$_t_uint256_$",
                                    "typeString": "function (struct Controller.GlobalConstraint storage ref) returns (uint256)"
                                  }
                                },
                                "id": 2770,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "10663:72:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2771,
                              "nodeType": "ExpressionStatement",
                              "src": "10663:72:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2782,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2772,
                                    "name": "globalConstraintsRegisterPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2058,
                                    "src": "10753:29:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2774,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2773,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2667,
                                    "src": "10783:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "10753:48:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "arguments": [
                                    {
                                      "argumentTypes": null,
                                      "hexValue": "74727565",
                                      "id": 2776,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "kind": "bool",
                                      "lValueRequested": false,
                                      "nodeType": "Literal",
                                      "src": "10845:4:22",
                                      "subdenomination": null,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      "value": "true"
                                    },
                                    {
                                      "argumentTypes": null,
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "id": 2780,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2777,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "10851:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2778,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "length",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": null,
                                        "src": "10851:28:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "-",
                                      "rightExpression": {
                                        "argumentTypes": null,
                                        "hexValue": "31",
                                        "id": 2779,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "10880:1:22",
                                        "subdenomination": null,
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "10851:30:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_bool",
                                        "typeString": "bool"
                                      },
                                      {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    ],
                                    "id": 2775,
                                    "name": "GlobalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2032,
                                    "src": "10820:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_struct$_GlobalConstraintRegister_$2032_storage_ptr_$",
                                      "typeString": "type(struct Controller.GlobalConstraintRegister storage pointer)"
                                    }
                                  },
                                  "id": 2781,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "structConstructorCall",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "10820:62:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory",
                                    "typeString": "struct Controller.GlobalConstraintRegister memory"
                                  }
                                },
                                "src": "10753:129:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                  "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                }
                              },
                              "id": 2783,
                              "nodeType": "ExpressionStatement",
                              "src": "10753:129:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 2800,
                        "name": "_globalConstraint",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2667,
                        "src": "11073:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2801,
                        "name": "_params",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2669,
                        "src": "11092:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 2802,
                        "name": "when",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2684,
                        "src": "11101:4:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      ],
                      "id": 2799,
                      "name": "AddGlobalConstraint",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2108,
                      "src": "11053:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bytes32_$_t_enum$_CallPhase_$3781_$returns$__$",
                        "typeString": "function (address,bytes32,enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2803,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11053:53:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2804,
                  "nodeType": "EmitStatement",
                  "src": "11048:58:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 2805,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "11123:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 2680,
                  "id": 2806,
                  "nodeType": "Return",
                  "src": "11116:11:22"
                }
              ]
            },
            "documentation": "@dev add or update Global Constraint\n@param _globalConstraint the address of the global constraint to be added.\n@param _params the constraint parameters hash.\n@return bool which represents a success",
            "id": 2808,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2674,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2673,
                  "name": "onlyGlobalConstraintsScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2219,
                  "src": "9640:27:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9640:27:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2676,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2671,
                    "src": "9686:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2677,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2675,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "9672:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "9672:22:22"
              }
            ],
            "name": "addGlobalConstraint",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2672,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2667,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9562:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2666,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9562:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2669,
                  "name": "_params",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9589:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2668,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "9589:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2671,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9606:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2670,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "9606:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9561:61:22"
            },
            "returnParameters": {
              "id": 2680,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2679,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 2808,
                  "src": "9707:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2678,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "9707:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "9706:6:22"
            },
            "scope": 3466,
            "src": "9533:1601:22",
            "stateMutability": "nonpayable",
            "superFunction": 3543,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3004,
              "nodeType": "Block",
              "src": "11544:2234:22",
              "statements": [
                {
                  "assignments": [
                    2823
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2823,
                      "name": "globalConstraintRegister",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11554:56:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2822,
                        "name": "GlobalConstraintRegister",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2032,
                        "src": "11554:24:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraintRegister"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2824,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11554:56:22"
                },
                {
                  "assignments": [
                    2826
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2826,
                      "name": "globalConstraint",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11620:40:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraint"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2825,
                        "name": "GlobalConstraint",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2027,
                        "src": "11620:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraint"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2827,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11620:40:22"
                },
                {
                  "assignments": [
                    2831
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2831,
                      "name": "when",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11670:40:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_enum$_CallPhase_$3781",
                        "typeString": "enum GlobalConstraintInterface.CallPhase"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 2830,
                        "name": "GlobalConstraintInterface.CallPhase",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 3781,
                        "src": "11670:35:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_enum$_CallPhase_$3781",
                          "typeString": "enum GlobalConstraintInterface.CallPhase"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2837,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "expression": {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 2833,
                            "name": "_globalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2810,
                            "src": "11739:17:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 2832,
                          "name": "GlobalConstraintInterface",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3809,
                          "src": "11713:25:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                            "typeString": "type(contract GlobalConstraintInterface)"
                          }
                        },
                        "id": 2834,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "11713:44:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_GlobalConstraintInterface_$3809",
                          "typeString": "contract GlobalConstraintInterface"
                        }
                      },
                      "id": 2835,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "when",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3808,
                      "src": "11713:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$__$returns$_t_enum$_CallPhase_$3781_$",
                        "typeString": "function () external returns (enum GlobalConstraintInterface.CallPhase)"
                      }
                    },
                    "id": 2836,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11713:51:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_CallPhase_$3781",
                      "typeString": "enum GlobalConstraintInterface.CallPhase"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11670:94:22"
                },
                {
                  "assignments": [
                    2839
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2839,
                      "name": "retVal",
                      "nodeType": "VariableDeclaration",
                      "scope": 3004,
                      "src": "11774:11:22",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 2838,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "11774:4:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 2841,
                  "initialValue": {
                    "argumentTypes": null,
                    "hexValue": "66616c7365",
                    "id": 2840,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "11788:5:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "false"
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "11774:19:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2854,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2846,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2842,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "11809:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2843,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "11817:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2844,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "11817:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2845,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Pre",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "11817:39:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "11809:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2847,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "11808:49:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2852,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2848,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "11873:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2849,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "11881:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2850,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "11881:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2851,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "11881:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "11873:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2853,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "11872:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "11808:120:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2914,
                  "nodeType": "IfStatement",
                  "src": "11804:852:22",
                  "trueBody": {
                    "id": 2913,
                    "nodeType": "Block",
                    "src": "11930:726:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 2859,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 2855,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "11944:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 2856,
                              "name": "globalConstraintsRegisterPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2054,
                              "src": "11971:28:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 2858,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 2857,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "12000:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "11971:47:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "src": "11944:74:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                          }
                        },
                        "id": 2860,
                        "nodeType": "ExpressionStatement",
                        "src": "11944:74:22"
                      },
                      {
                        "condition": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2861,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12036:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "id": 2862,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "12036:37:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": null,
                        "id": 2912,
                        "nodeType": "IfStatement",
                        "src": "12032:614:22",
                        "trueBody": {
                          "id": 2911,
                          "nodeType": "Block",
                          "src": "12075:571:22",
                          "statements": [
                            {
                              "condition": {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 2869,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2863,
                                    "name": "globalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2823,
                                    "src": "12097:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                                    }
                                  },
                                  "id": 2864,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "index",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2031,
                                  "src": "12097:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "<",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "id": 2868,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2865,
                                      "name": "globalConstraintsPre",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2047,
                                      "src": "12130:20:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2866,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "length",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": null,
                                    "src": "12130:27:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint256",
                                      "typeString": "uint256"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "-",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "hexValue": "31",
                                    "id": 2867,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "kind": "number",
                                    "lValueRequested": false,
                                    "nodeType": "Literal",
                                    "src": "12158:1:22",
                                    "subdenomination": null,
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_rational_1_by_1",
                                      "typeString": "int_const 1"
                                    },
                                    "value": "1"
                                  },
                                  "src": "12130:29:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "12097:62:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "falseBody": null,
                              "id": 2896,
                              "nodeType": "IfStatement",
                              "src": "12093:389:22",
                              "trueBody": {
                                "id": 2895,
                                "nodeType": "Block",
                                "src": "12161:321:22",
                                "statements": [
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2877,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "id": 2870,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "12183:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2871,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "12202:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2876,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "id": 2875,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2872,
                                              "name": "globalConstraintsPre",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2047,
                                              "src": "12223:20:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2873,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "length",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "12223:27:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "argumentTypes": null,
                                            "hexValue": "31",
                                            "id": 2874,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": true,
                                            "kind": "number",
                                            "lValueRequested": false,
                                            "nodeType": "Literal",
                                            "src": "12251:1:22",
                                            "subdenomination": null,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_rational_1_by_1",
                                              "typeString": "int_const 1"
                                            },
                                            "value": "1"
                                          },
                                          "src": "12223:29:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "12202:51:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "src": "12183:70:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                        "typeString": "struct Controller.GlobalConstraint memory"
                                      }
                                    },
                                    "id": 2878,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12183:70:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2884,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2879,
                                          "name": "globalConstraintsPre",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2047,
                                          "src": "12275:20:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2882,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 2880,
                                            "name": "globalConstraintRegister",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2823,
                                            "src": "12296:24:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                                            }
                                          },
                                          "id": 2881,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "index",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2031,
                                          "src": "12296:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "nodeType": "IndexAccess",
                                        "src": "12275:52:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "id": 2883,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "12330:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "src": "12275:71:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref"
                                      }
                                    },
                                    "id": 2885,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12275:71:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2893,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2886,
                                            "name": "globalConstraintsRegisterPre",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2054,
                                            "src": "12368:28:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                            }
                                          },
                                          "id": 2889,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2887,
                                              "name": "globalConstraint",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2826,
                                              "src": "12397:16:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                                "typeString": "struct Controller.GlobalConstraint memory"
                                              }
                                            },
                                            "id": 2888,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "gcAddress",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 2024,
                                            "src": "12397:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "12368:56:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                            "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                          }
                                        },
                                        "id": 2890,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "12368:62:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2891,
                                          "name": "globalConstraintRegister",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2823,
                                          "src": "12433:24:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                                          }
                                        },
                                        "id": 2892,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "12433:30:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "src": "12368:95:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "id": 2894,
                                    "nodeType": "ExpressionStatement",
                                    "src": "12368:95:22"
                                  }
                                ]
                              }
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2900,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "--",
                                "prefix": false,
                                "src": "12499:29:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2897,
                                    "name": "globalConstraintsPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2047,
                                    "src": "12499:20:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2899,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "length",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "12499:27:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2901,
                              "nodeType": "ExpressionStatement",
                              "src": "12499:29:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2905,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "delete",
                                "prefix": true,
                                "src": "12546:54:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2902,
                                    "name": "globalConstraintsRegisterPre",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2054,
                                    "src": "12553:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2904,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2903,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2810,
                                    "src": "12582:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "12553:47:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_tuple$__$",
                                  "typeString": "tuple()"
                                }
                              },
                              "id": 2906,
                              "nodeType": "ExpressionStatement",
                              "src": "12546:54:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2909,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "id": 2907,
                                  "name": "retVal",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2839,
                                  "src": "12618:6:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "hexValue": "74727565",
                                  "id": 2908,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "12627:4:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  },
                                  "value": "true"
                                },
                                "src": "12618:13:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "id": 2910,
                              "nodeType": "ExpressionStatement",
                              "src": "12618:13:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 2927,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2919,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2915,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "12670:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2916,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "12678:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2917,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "12678:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2918,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "Post",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "12678:40:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "12670:48:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2920,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "12669:50:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "||",
                    "rightExpression": {
                      "argumentTypes": null,
                      "components": [
                        {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_enum$_CallPhase_$3781",
                            "typeString": "enum GlobalConstraintInterface.CallPhase"
                          },
                          "id": 2925,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 2921,
                            "name": "when",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2831,
                            "src": "12735:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2922,
                                "name": "GlobalConstraintInterface",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3809,
                                "src": "12743:25:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                  "typeString": "type(contract GlobalConstraintInterface)"
                                }
                              },
                              "id": 2923,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "CallPhase",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3781,
                              "src": "12743:35:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                              }
                            },
                            "id": 2924,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "memberName": "PreAndPost",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "12743:46:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_enum$_CallPhase_$3781",
                              "typeString": "enum GlobalConstraintInterface.CallPhase"
                            }
                          },
                          "src": "12735:54:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        }
                      ],
                      "id": 2926,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "TupleExpression",
                      "src": "12734:56:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "12669:121:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 2987,
                  "nodeType": "IfStatement",
                  "src": "12665:861:22",
                  "trueBody": {
                    "id": 2986,
                    "nodeType": "Block",
                    "src": "12792:734:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 2932,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 2928,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12806:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 2929,
                              "name": "globalConstraintsRegisterPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2058,
                              "src": "12833:29:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 2931,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 2930,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "12863:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "12833:48:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "src": "12806:75:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                          }
                        },
                        "id": 2933,
                        "nodeType": "ExpressionStatement",
                        "src": "12806:75:22"
                      },
                      {
                        "condition": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 2934,
                            "name": "globalConstraintRegister",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2823,
                            "src": "12899:24:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                            }
                          },
                          "id": 2935,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "12899:37:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": null,
                        "id": 2985,
                        "nodeType": "IfStatement",
                        "src": "12895:621:22",
                        "trueBody": {
                          "id": 2984,
                          "nodeType": "Block",
                          "src": "12938:578:22",
                          "statements": [
                            {
                              "condition": {
                                "argumentTypes": null,
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 2942,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2936,
                                    "name": "globalConstraintRegister",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2823,
                                    "src": "12960:24:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                                    }
                                  },
                                  "id": 2937,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "index",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 2031,
                                  "src": "12960:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "<",
                                "rightExpression": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "id": 2941,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "argumentTypes": null,
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2938,
                                      "name": "globalConstraintsPost",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 2050,
                                      "src": "12993:21:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                      }
                                    },
                                    "id": 2939,
                                    "isConstant": false,
                                    "isLValue": true,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "memberName": "length",
                                    "nodeType": "MemberAccess",
                                    "referencedDeclaration": null,
                                    "src": "12993:28:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint256",
                                      "typeString": "uint256"
                                    }
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "-",
                                  "rightExpression": {
                                    "argumentTypes": null,
                                    "hexValue": "31",
                                    "id": 2940,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "kind": "number",
                                    "lValueRequested": false,
                                    "nodeType": "Literal",
                                    "src": "13022:1:22",
                                    "subdenomination": null,
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_rational_1_by_1",
                                      "typeString": "int_const 1"
                                    },
                                    "value": "1"
                                  },
                                  "src": "12993:30:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "12960:63:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "falseBody": null,
                              "id": 2969,
                              "nodeType": "IfStatement",
                              "src": "12956:394:22",
                              "trueBody": {
                                "id": 2968,
                                "nodeType": "Block",
                                "src": "13025:325:22",
                                "statements": [
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2950,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "id": 2943,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "13047:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2944,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "13066:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2949,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "id": 2948,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2945,
                                              "name": "globalConstraintsPost",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2050,
                                              "src": "13088:21:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                              }
                                            },
                                            "id": 2946,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "length",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": null,
                                            "src": "13088:28:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "argumentTypes": null,
                                            "hexValue": "31",
                                            "id": 2947,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": true,
                                            "kind": "number",
                                            "lValueRequested": false,
                                            "nodeType": "Literal",
                                            "src": "13117:1:22",
                                            "subdenomination": null,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_rational_1_by_1",
                                              "typeString": "int_const 1"
                                            },
                                            "value": "1"
                                          },
                                          "src": "13088:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "nodeType": "IndexAccess",
                                        "src": "13066:53:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "src": "13047:72:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                        "typeString": "struct Controller.GlobalConstraint memory"
                                      }
                                    },
                                    "id": 2951,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13047:72:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2957,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "baseExpression": {
                                          "argumentTypes": null,
                                          "id": 2952,
                                          "name": "globalConstraintsPost",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2050,
                                          "src": "13141:21:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                          }
                                        },
                                        "id": 2955,
                                        "indexExpression": {
                                          "argumentTypes": null,
                                          "expression": {
                                            "argumentTypes": null,
                                            "id": 2953,
                                            "name": "globalConstraintRegister",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2823,
                                            "src": "13163:24:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                              "typeString": "struct Controller.GlobalConstraintRegister memory"
                                            }
                                          },
                                          "id": 2954,
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "memberName": "index",
                                          "nodeType": "MemberAccess",
                                          "referencedDeclaration": 2031,
                                          "src": "13163:30:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          }
                                        },
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "nodeType": "IndexAccess",
                                        "src": "13141:53:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                          "typeString": "struct Controller.GlobalConstraint storage ref"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "id": 2956,
                                        "name": "globalConstraint",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 2826,
                                        "src": "13197:16:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                          "typeString": "struct Controller.GlobalConstraint memory"
                                        }
                                      },
                                      "src": "13141:72:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                                        "typeString": "struct Controller.GlobalConstraint storage ref"
                                      }
                                    },
                                    "id": 2958,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13141:72:22"
                                  },
                                  {
                                    "expression": {
                                      "argumentTypes": null,
                                      "id": 2966,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "baseExpression": {
                                            "argumentTypes": null,
                                            "id": 2959,
                                            "name": "globalConstraintsRegisterPost",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 2058,
                                            "src": "13235:29:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                              "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                            }
                                          },
                                          "id": 2962,
                                          "indexExpression": {
                                            "argumentTypes": null,
                                            "expression": {
                                              "argumentTypes": null,
                                              "id": 2960,
                                              "name": "globalConstraint",
                                              "nodeType": "Identifier",
                                              "overloadedDeclarations": [],
                                              "referencedDeclaration": 2826,
                                              "src": "13265:16:22",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_struct$_GlobalConstraint_$2027_memory_ptr",
                                                "typeString": "struct Controller.GlobalConstraint memory"
                                              }
                                            },
                                            "id": 2961,
                                            "isConstant": false,
                                            "isLValue": true,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "gcAddress",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 2024,
                                            "src": "13265:26:22",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_address",
                                              "typeString": "address"
                                            }
                                          },
                                          "isConstant": false,
                                          "isLValue": true,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "nodeType": "IndexAccess",
                                          "src": "13235:57:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                            "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                          }
                                        },
                                        "id": 2963,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": true,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "13235:63:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "nodeType": "Assignment",
                                      "operator": "=",
                                      "rightHandSide": {
                                        "argumentTypes": null,
                                        "expression": {
                                          "argumentTypes": null,
                                          "id": 2964,
                                          "name": "globalConstraintRegister",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 2823,
                                          "src": "13301:24:22",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                            "typeString": "struct Controller.GlobalConstraintRegister memory"
                                          }
                                        },
                                        "id": 2965,
                                        "isConstant": false,
                                        "isLValue": true,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "memberName": "index",
                                        "nodeType": "MemberAccess",
                                        "referencedDeclaration": 2031,
                                        "src": "13301:30:22",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        }
                                      },
                                      "src": "13235:96:22",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    },
                                    "id": 2967,
                                    "nodeType": "ExpressionStatement",
                                    "src": "13235:96:22"
                                  }
                                ]
                              }
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2973,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "--",
                                "prefix": false,
                                "src": "13367:30:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2970,
                                    "name": "globalConstraintsPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2050,
                                    "src": "13367:21:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                      "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                                    }
                                  },
                                  "id": 2972,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "memberName": "length",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": null,
                                  "src": "13367:28:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "id": 2974,
                              "nodeType": "ExpressionStatement",
                              "src": "13367:30:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2978,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "delete",
                                "prefix": true,
                                "src": "13415:55:22",
                                "subExpression": {
                                  "argumentTypes": null,
                                  "baseExpression": {
                                    "argumentTypes": null,
                                    "id": 2975,
                                    "name": "globalConstraintsRegisterPost",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2058,
                                    "src": "13422:29:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                      "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                                    }
                                  },
                                  "id": 2977,
                                  "indexExpression": {
                                    "argumentTypes": null,
                                    "id": 2976,
                                    "name": "_globalConstraint",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2810,
                                    "src": "13452:17:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_address",
                                      "typeString": "address"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": true,
                                  "nodeType": "IndexAccess",
                                  "src": "13422:48:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                                    "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_tuple$__$",
                                  "typeString": "tuple()"
                                }
                              },
                              "id": 2979,
                              "nodeType": "ExpressionStatement",
                              "src": "13415:55:22"
                            },
                            {
                              "expression": {
                                "argumentTypes": null,
                                "id": 2982,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftHandSide": {
                                  "argumentTypes": null,
                                  "id": 2980,
                                  "name": "retVal",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 2839,
                                  "src": "13488:6:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "nodeType": "Assignment",
                                "operator": "=",
                                "rightHandSide": {
                                  "argumentTypes": null,
                                  "hexValue": "74727565",
                                  "id": 2981,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "13497:4:22",
                                  "subdenomination": null,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  },
                                  "value": "true"
                                },
                                "src": "13488:13:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "id": 2983,
                              "nodeType": "ExpressionStatement",
                              "src": "13488:13:22"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "id": 2988,
                    "name": "retVal",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2839,
                    "src": "13539:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3001,
                  "nodeType": "IfStatement",
                  "src": "13535:214:22",
                  "trueBody": {
                    "id": 3000,
                    "nodeType": "Block",
                    "src": "13547:202:22",
                    "statements": [
                      {
                        "eventCall": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 2990,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2810,
                              "src": "13602:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 2991,
                                "name": "globalConstraintRegister",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2823,
                                "src": "13633:24:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 2992,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "13633:30:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_enum$_CallPhase_$3781",
                                "typeString": "enum GlobalConstraintInterface.CallPhase"
                              },
                              "id": 2997,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "id": 2993,
                                "name": "when",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2831,
                                "src": "13677:4:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_enum$_CallPhase_$3781",
                                  "typeString": "enum GlobalConstraintInterface.CallPhase"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "expression": {
                                  "argumentTypes": null,
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 2994,
                                    "name": "GlobalConstraintInterface",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 3809,
                                    "src": "13685:25:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_contract$_GlobalConstraintInterface_$3809_$",
                                      "typeString": "type(contract GlobalConstraintInterface)"
                                    }
                                  },
                                  "id": 2995,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "CallPhase",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3781,
                                  "src": "13685:35:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_enum$_CallPhase_$3781_$",
                                    "typeString": "type(enum GlobalConstraintInterface.CallPhase)"
                                  }
                                },
                                "id": 2996,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "memberName": "Pre",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": null,
                                "src": "13685:39:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_enum$_CallPhase_$3781",
                                  "typeString": "enum GlobalConstraintInterface.CallPhase"
                                }
                              },
                              "src": "13677:47:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              },
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 2989,
                            "name": "RemoveGlobalConstraint",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2116,
                            "src": "13566:22:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_bool_$returns$__$",
                              "typeString": "function (address,uint256,bool)"
                            }
                          },
                          "id": 2998,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "13566:172:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2999,
                        "nodeType": "EmitStatement",
                        "src": "13561:177:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3002,
                    "name": "retVal",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2839,
                    "src": "13765:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 2821,
                  "id": 3003,
                  "nodeType": "Return",
                  "src": "13758:13:22"
                }
              ]
            },
            "documentation": "@dev remove Global Constraint\n@param _globalConstraint the address of the global constraint to be remove.\n@return bool which represents a success",
            "id": 3005,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 2815,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2814,
                  "name": "onlyGlobalConstraintsScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2219,
                  "src": "11467:27:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "11467:27:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 2817,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2812,
                    "src": "11513:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2818,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 2816,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "11499:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "11499:22:22"
              }
            ],
            "name": "removeGlobalConstraint",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2813,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2810,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11406:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2809,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "11406:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2812,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11433:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2811,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "11433:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "11405:44:22"
            },
            "returnParameters": {
              "id": 2821,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2820,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3005,
                  "src": "11534:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2819,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "11534:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "11533:6:22"
            },
            "scope": 3466,
            "src": "11373:2405:22",
            "stateMutability": "nonpayable",
            "superFunction": 3552,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3110,
              "nodeType": "Block",
              "src": "14170:756:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3026,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 3022,
                          "name": "newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2044,
                          "src": "14188:13:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3024,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "14213:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3023,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "14205:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3025,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14205:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "14188:27:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3021,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14180:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3027,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14180:36:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3028,
                  "nodeType": "ExpressionStatement",
                  "src": "14180:36:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3034,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 3030,
                          "name": "_newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3007,
                          "src": "14289:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3032,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "14315:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3031,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "14307:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": "address"
                          },
                          "id": 3033,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14307:10:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address_payable",
                            "typeString": "address payable"
                          }
                        },
                        "src": "14289:28:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3029,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14281:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3035,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14281:37:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3036,
                  "nodeType": "ExpressionStatement",
                  "src": "14281:37:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3039,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3037,
                      "name": "newController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2044,
                      "src": "14328:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 3038,
                      "name": "_newController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3007,
                      "src": "14344:14:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14328:30:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 3040,
                  "nodeType": "ExpressionStatement",
                  "src": "14328:30:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3044,
                        "name": "_newController",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3007,
                        "src": "14393:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3041,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "14368:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3043,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "transferOwnership",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23072,
                      "src": "14368:24:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address) external"
                      }
                    },
                    "id": 3045,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14368:40:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3046,
                  "nodeType": "ExpressionStatement",
                  "src": "14368:40:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 3052,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3048,
                              "name": "avatar",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2038,
                              "src": "14426:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Avatar_$2010",
                                "typeString": "contract Avatar"
                              }
                            },
                            "id": 3049,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "owner",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23021,
                            "src": "14426:12:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                              "typeString": "function () view external returns (address)"
                            }
                          },
                          "id": 3050,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14426:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 3051,
                          "name": "_newController",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 3007,
                          "src": "14444:14:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "14426:32:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 3047,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23693,
                      "src": "14418:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 3053,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14418:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3054,
                  "nodeType": "ExpressionStatement",
                  "src": "14418:41:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 3061,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 3055,
                          "name": "nativeToken",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2040,
                          "src": "14473:11:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_DAOToken_$3775",
                            "typeString": "contract DAOToken"
                          }
                        },
                        "id": 3056,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "owner",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23021,
                        "src": "14473:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                          "typeString": "function () view external returns (address)"
                        }
                      },
                      "id": 3057,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14473:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 3059,
                          "name": "this",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23730,
                          "src": "14504:4:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        ],
                        "id": 3058,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "14496:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 3060,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14496:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14473:36:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3077,
                  "nodeType": "IfStatement",
                  "src": "14469:172:22",
                  "trueBody": {
                    "id": 3076,
                    "nodeType": "Block",
                    "src": "14511:130:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 3065,
                              "name": "_newController",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3007,
                              "src": "14555:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3062,
                              "name": "nativeToken",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2040,
                              "src": "14525:11:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_DAOToken_$3775",
                                "typeString": "contract DAOToken"
                              }
                            },
                            "id": 3064,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transferOwnership",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23072,
                            "src": "14525:29:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                              "typeString": "function (address) external"
                            }
                          },
                          "id": 3066,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14525:45:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3067,
                        "nodeType": "ExpressionStatement",
                        "src": "14525:45:22"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 3073,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "arguments": [],
                                "expression": {
                                  "argumentTypes": [],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3069,
                                    "name": "nativeToken",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2040,
                                    "src": "14592:11:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_contract$_DAOToken_$3775",
                                      "typeString": "contract DAOToken"
                                    }
                                  },
                                  "id": 3070,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "owner",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 23021,
                                  "src": "14592:17:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                                    "typeString": "function () view external returns (address)"
                                  }
                                },
                                "id": 3071,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "14592:19:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "id": 3072,
                                "name": "_newController",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3007,
                                "src": "14615:14:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "14592:37:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 3068,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "14584:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 3074,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14584:46:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3075,
                        "nodeType": "ExpressionStatement",
                        "src": "14584:46:22"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 3084,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "argumentTypes": null,
                          "id": 3078,
                          "name": "nativeReputation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2042,
                          "src": "14654:16:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Reputation_$9557",
                            "typeString": "contract Reputation"
                          }
                        },
                        "id": 3079,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "owner",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23021,
                        "src": "14654:22:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                          "typeString": "function () view external returns (address)"
                        }
                      },
                      "id": 3080,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14654:24:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "id": 3082,
                          "name": "this",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23730,
                          "src": "14690:4:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_contract$_Controller_$3466",
                            "typeString": "contract Controller"
                          }
                        ],
                        "id": 3081,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "14682:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 3083,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "14682:13:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "14654:41:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3100,
                  "nodeType": "IfStatement",
                  "src": "14650:187:22",
                  "trueBody": {
                    "id": 3099,
                    "nodeType": "Block",
                    "src": "14697:140:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "id": 3088,
                              "name": "_newController",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3007,
                              "src": "14746:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "expression": {
                              "argumentTypes": null,
                              "id": 3085,
                              "name": "nativeReputation",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2042,
                              "src": "14711:16:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Reputation_$9557",
                                "typeString": "contract Reputation"
                              }
                            },
                            "id": 3087,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "transferOwnership",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 23072,
                            "src": "14711:34:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$",
                              "typeString": "function (address) external"
                            }
                          },
                          "id": 3089,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14711:50:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3090,
                        "nodeType": "ExpressionStatement",
                        "src": "14711:50:22"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "id": 3096,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "argumentTypes": null,
                                "arguments": [],
                                "expression": {
                                  "argumentTypes": [],
                                  "expression": {
                                    "argumentTypes": null,
                                    "id": 3092,
                                    "name": "nativeReputation",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2042,
                                    "src": "14783:16:22",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_contract$_Reputation_$9557",
                                      "typeString": "contract Reputation"
                                    }
                                  },
                                  "id": 3093,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "owner",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 23021,
                                  "src": "14783:22:22",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                                    "typeString": "function () view external returns (address)"
                                  }
                                },
                                "id": 3094,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "14783:24:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "==",
                              "rightExpression": {
                                "argumentTypes": null,
                                "id": 3095,
                                "name": "_newController",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3007,
                                "src": "14811:14:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "src": "14783:42:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            ],
                            "id": 3091,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23693,
                            "src": "14775:7:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                              "typeString": "function (bool) pure"
                            }
                          },
                          "id": 3097,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "14775:51:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 3098,
                        "nodeType": "ExpressionStatement",
                        "src": "14775:51:22"
                      }
                    ]
                  }
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 3103,
                            "name": "this",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23730,
                            "src": "14877:4:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Controller_$3466",
                              "typeString": "contract Controller"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Controller_$3466",
                              "typeString": "contract Controller"
                            }
                          ],
                          "id": 3102,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "14869:7:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 3104,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "14869:13:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3105,
                        "name": "newController",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2044,
                        "src": "14884:13:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 3101,
                      "name": "UpgradeController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2100,
                      "src": "14851:17:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (address,address)"
                      }
                    },
                    "id": 3106,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14851:47:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3107,
                  "nodeType": "EmitStatement",
                  "src": "14846:52:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "hexValue": "74727565",
                    "id": 3108,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "14915:4:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "true"
                  },
                  "functionReturnParameters": 3020,
                  "id": 3109,
                  "nodeType": "Return",
                  "src": "14908:11:22"
                }
              ]
            },
            "documentation": "@dev upgrade the Controller\n     The function will trigger an event 'UpgradeController'.\n@param  _newController the address of the new controller.\n@return bool which represents a success",
            "id": 3111,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3012,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3011,
                  "name": "onlyUpgradingScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2239,
                  "src": "14092:19:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "14092:19:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3015,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3009,
                        "src": "14138:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3014,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "14130:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3016,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14130:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3017,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3013,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "14116:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "14116:31:22"
              }
            ],
            "name": "upgradeController",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3010,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3007,
                  "name": "_newController",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14035:22:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3006,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "14035:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3009,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14059:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3008,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "14059:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "14034:40:22"
            },
            "returnParameters": {
              "id": 3020,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3019,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3111,
                  "src": "14160:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3018,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "14160:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "14159:6:22"
            },
            "scope": 3466,
            "src": "14008:918:22",
            "stateMutability": "nonpayable",
            "superFunction": 3561,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3143,
              "nodeType": "Block",
              "src": "15606:68:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3138,
                        "name": "_contract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3113,
                        "src": "15642:9:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3139,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3115,
                        "src": "15653:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3140,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3119,
                        "src": "15660:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes_calldata_ptr",
                          "typeString": "bytes calldata"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3136,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "15623:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3137,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "genericCall",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1868,
                      "src": "15623:18:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (address,bytes memory,uint256) external returns (bool,bytes memory)"
                      }
                    },
                    "id": 3141,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15623:44:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "functionReturnParameters": 3135,
                  "id": 3142,
                  "nodeType": "Return",
                  "src": "15616:51:22"
                }
              ]
            },
            "documentation": "@dev perform a generic call to an arbitrary contract\n@param _contract  the contract's address to call\n@param _data ABI-encoded contract call to call `_contract` address.\n@param _avatar the controller's avatar address\n@param _value value (ETH) to transfer with the transaction\n@return bool -success\n        bytes  - the return value of the called _contract's function.",
            "id": 3144,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3122,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3121,
                  "name": "onlyGenericCallScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2259,
                  "src": "15468:21:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15468:21:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "67656e6572696343616c6c",
                    "id": 3124,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "15518:13:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_f50c9c0d8078680ea2ffd7664f6b8e067777195c71561a9aa7bb8b53f908fb39",
                      "typeString": "literal_string \"genericCall\""
                    },
                    "value": "genericCall"
                  }
                ],
                "id": 3125,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3123,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "15494:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15494:38:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3128,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3117,
                        "src": "15559:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3127,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "15551:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3129,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15551:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3130,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3126,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "15537:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15537:31:22"
              }
            ],
            "name": "genericCall",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3120,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3113,
                  "name": "_contract",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15378:17:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3112,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "15378:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3115,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15397:20:22",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3114,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "15397:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3117,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15419:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3116,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "15419:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3119,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15435:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3118,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15435:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15377:73:22"
            },
            "returnParameters": {
              "id": 3135,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3132,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15582:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3131,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "15582:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3134,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3144,
                  "src": "15588:12:22",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3133,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "15588:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15581:20:22"
            },
            "scope": 3466,
            "src": "15357:317:22",
            "stateMutability": "nonpayable",
            "superFunction": 3576,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3171,
              "nodeType": "Block",
              "src": "16083:59:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3167,
                        "name": "_amountInWei",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3146,
                        "src": "16117:12:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3168,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3148,
                        "src": "16131:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3165,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "16100:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3166,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "sendEther",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1893,
                      "src": "16100:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_address_payable_$returns$_t_bool_$",
                        "typeString": "function (uint256,address payable) external returns (bool)"
                      }
                    },
                    "id": 3169,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16100:35:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3164,
                  "id": 3170,
                  "nodeType": "Return",
                  "src": "16093:42:22"
                }
              ]
            },
            "documentation": "@dev send some ether\n@param _amountInWei the amount of ether (in Wei) to send\n@param _to address of the beneficiary\n@return bool which represents a success",
            "id": 3172,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3153,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3152,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "15963:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15963:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "73656e644574686572",
                    "id": 3155,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "16012:11:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c700fcf825bb96908bcfa40b8d91237381cd207a842fc67195330064c6f87772",
                      "typeString": "literal_string \"sendEther\""
                    },
                    "value": "sendEther"
                  }
                ],
                "id": 3156,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3154,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "15988:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "15988:36:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3159,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3150,
                        "src": "16051:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3158,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16043:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3160,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16043:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3161,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3157,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "16029:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16029:31:22"
              }
            ],
            "name": "sendEther",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3151,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3146,
                  "name": "_amountInWei",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15887:20:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3145,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15887:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3148,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15909:19:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address_payable",
                    "typeString": "address payable"
                  },
                  "typeName": {
                    "id": 3147,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "15909:15:22",
                    "stateMutability": "payable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3150,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "15930:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3149,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "15930:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "15886:59:22"
            },
            "returnParameters": {
              "id": 3164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3163,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3172,
                  "src": "16073:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3162,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "16073:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16072:6:22"
            },
            "scope": 3466,
            "src": "15868:274:22",
            "stateMutability": "nonpayable",
            "superFunction": 3587,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3202,
              "nodeType": "Block",
              "src": "16674:81:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3197,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3174,
                        "src": "16720:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3198,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3176,
                        "src": "16736:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3199,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3178,
                        "src": "16741:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3195,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "16691:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3196,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenTransfer",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1925,
                      "src": "16691:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3200,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16691:57:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3194,
                  "id": 3201,
                  "nodeType": "Return",
                  "src": "16684:64:22"
                }
              ]
            },
            "documentation": "@dev send some amount of arbitrary ERC20 Tokens\n@param _externalToken the address of the Token Contract\n@param _to address of the beneficiary\n@param _value the amount of ether (in Wei) to send\n@return bool which represents a success",
            "id": 3203,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3183,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3182,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "16542:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16542:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e5472616e73666572",
                    "id": 3185,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "16591:23:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_7813035546e060c03dbe66bdee1941f9a0ad6551df13f617f14419ad20f4154f",
                      "typeString": "literal_string \"externalTokenTransfer\""
                    },
                    "value": "externalTokenTransfer"
                  }
                ],
                "id": 3186,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3184,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "16567:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16567:48:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3189,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3180,
                        "src": "16642:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3188,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16634:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3190,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16634:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3191,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3187,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "16620:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "16620:31:22"
              }
            ],
            "name": "externalTokenTransfer",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3181,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3174,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16457:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3173,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "16457:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3176,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16480:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3175,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "16480:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3178,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16493:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3177,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "16493:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3180,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16509:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3179,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "16509:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16456:68:22"
            },
            "returnParameters": {
              "id": 3194,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3193,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3203,
                  "src": "16664:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3192,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "16664:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "16663:6:22"
            },
            "scope": 3466,
            "src": "16426:329:22",
            "stateMutability": "nonpayable",
            "superFunction": 3600,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3236,
              "nodeType": "Block",
              "src": "17537:92:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3230,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3205,
                        "src": "17587:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3231,
                        "name": "_from",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3207,
                        "src": "17603:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3232,
                        "name": "_to",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3209,
                        "src": "17610:3:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3233,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3211,
                        "src": "17615:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3228,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "17554:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3229,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenTransferFrom",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1961,
                      "src": "17554:32:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3234,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17554:68:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3227,
                  "id": 3235,
                  "nodeType": "Return",
                  "src": "17547:75:22"
                }
              ]
            },
            "documentation": "@dev transfer token \"from\" address \"to\" address\n     One must to approve the amount of tokens which can be spend from the\n     \"from\" account.This can be done using externalTokenApprove.\n@param _externalToken the address of the Token Contract\n@param _from address of the account to send from\n@param _to address of the beneficiary\n@param _value the amount of ether (in Wei) to send\n@return bool which represents a success",
            "id": 3237,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3216,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3215,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "17401:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17401:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e5472616e7366657246726f6d",
                    "id": 3218,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "17450:27:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_ac07667e4f3fe9c6116bdfeed71f93079924e4156b3ee8a0c3180f10145562f3",
                      "typeString": "literal_string \"externalTokenTransferFrom\""
                    },
                    "value": "externalTokenTransferFrom"
                  }
                ],
                "id": 3219,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3217,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "17426:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17426:52:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3222,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3213,
                        "src": "17505:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3221,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "17497:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3223,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17497:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3224,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3220,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "17483:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "17483:31:22"
              }
            ],
            "name": "externalTokenTransferFrom",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3214,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3205,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17285:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3204,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "17285:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3207,
                  "name": "_from",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17312:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3206,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "17312:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3209,
                  "name": "_to",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17331:11:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3208,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "17331:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3211,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17348:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3210,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "17348:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3213,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17368:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3212,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "17368:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "17279:104:22"
            },
            "returnParameters": {
              "id": 3227,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3226,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3237,
                  "src": "17527:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3225,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "17527:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "17526:6:22"
            },
            "scope": 3466,
            "src": "17245:384:22",
            "stateMutability": "nonpayable",
            "superFunction": 3615,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3267,
              "nodeType": "Block",
              "src": "18269:86:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3262,
                        "name": "_externalToken",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3239,
                        "src": "18315:14:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3263,
                        "name": "_spender",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3241,
                        "src": "18331:8:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 3264,
                        "name": "_value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3243,
                        "src": "18341:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IERC20_$23656",
                          "typeString": "contract IERC20"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3260,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "18286:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3261,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "externalTokenApproval",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1993,
                      "src": "18286:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$23656_$_t_address_$_t_uint256_$returns$_t_bool_$",
                        "typeString": "function (contract IERC20,address,uint256) external returns (bool)"
                      }
                    },
                    "id": 3265,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18286:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3259,
                  "id": 3266,
                  "nodeType": "Return",
                  "src": "18279:69:22"
                }
              ]
            },
            "documentation": "@dev externalTokenApproval approve the spender address to spend a specified amount of tokens\n     on behalf of msg.sender.\n@param _externalToken the address of the Token Contract\n@param _spender address\n@param _value the amount of ether (in Wei) which the approval is referring to.\n@return bool which represents a success",
            "id": 3268,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3248,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3247,
                  "name": "onlyRegisteredScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2179,
                  "src": "18129:20:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18129:20:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "hexValue": "65787465726e616c546f6b656e496e637265617365417070726f76616c",
                    "id": 3250,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "18178:31:22",
                    "subdenomination": null,
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_a6b5493ce06b69199b7c164b2fe8141dd5ecf7d2d491b28efc85f9c00fdfd15c",
                      "typeString": "literal_string \"externalTokenIncreaseApproval\""
                    },
                    "value": "externalTokenIncreaseApproval"
                  }
                ],
                "id": 3251,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3249,
                  "name": "onlySubjectToConstraint",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2352,
                  "src": "18154:23:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18154:56:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3254,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3245,
                        "src": "18237:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3253,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "18229:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3255,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18229:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3256,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3252,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "18215:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18215:31:22"
              }
            ],
            "name": "externalTokenApproval",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3246,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3239,
                  "name": "_externalToken",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18039:21:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IERC20_$23656",
                    "typeString": "contract IERC20"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3238,
                    "name": "IERC20",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 23656,
                    "src": "18039:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IERC20_$23656",
                      "typeString": "contract IERC20"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3241,
                  "name": "_spender",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18062:16:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3240,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "18062:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3243,
                  "name": "_value",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18080:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3242,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "18080:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3245,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18096:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3244,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "18096:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18038:73:22"
            },
            "returnParameters": {
              "id": 3259,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3258,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3268,
                  "src": "18259:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3257,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "18259:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18258:6:22"
            },
            "scope": 3466,
            "src": "18008:347:22",
            "stateMutability": "nonpayable",
            "superFunction": 3628,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3289,
              "nodeType": "Block",
              "src": "18787:50:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3286,
                        "name": "_metaData",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3270,
                        "src": "18820:9:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_calldata_ptr",
                          "typeString": "string calldata"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_string_calldata_ptr",
                          "typeString": "string calldata"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 3284,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2038,
                        "src": "18804:6:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      "id": 3285,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "metaData",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 2009,
                      "src": "18804:15:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_string_memory_ptr_$returns$_t_bool_$",
                        "typeString": "function (string memory) external returns (bool)"
                      }
                    },
                    "id": 3287,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18804:26:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3283,
                  "id": 3288,
                  "nodeType": "Return",
                  "src": "18797:33:22"
                }
              ]
            },
            "documentation": "@dev metaData emits an event with a string, should contain the hash of some meta data.\n@param _metaData a string representing a hash of the meta data\n@param _avatar Avatar\n@return bool which represents a success",
            "id": 3290,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": null,
                "id": 3275,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3274,
                  "name": "onlyMetaDataScheme",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2279,
                  "src": "18698:18:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18698:18:22"
              },
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3278,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3272,
                        "src": "18747:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      ],
                      "id": 3277,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "18739:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3279,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18739:16:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  }
                ],
                "id": 3280,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3276,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "18725:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "18725:31:22"
              }
            ],
            "name": "metaData",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3273,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3270,
                  "name": "_metaData",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18630:25:22",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_calldata_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 3269,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "18630:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3272,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18657:14:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 3271,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "18657:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18629:43:22"
            },
            "returnParameters": {
              "id": 3283,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3282,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3290,
                  "src": "18773:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3281,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "18773:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "18772:6:22"
            },
            "scope": 3466,
            "src": "18612:225:22",
            "stateMutability": "nonpayable",
            "superFunction": 3637,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3304,
              "nodeType": "Block",
              "src": "19084:49:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3301,
                        "name": "nativeReputation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2042,
                        "src": "19109:16:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Reputation_$9557",
                          "typeString": "contract Reputation"
                        }
                      ],
                      "id": 3300,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "19101:7:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": "address"
                    },
                    "id": 3302,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "19101:25:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 3299,
                  "id": 3303,
                  "nodeType": "Return",
                  "src": "19094:32:22"
                }
              ]
            },
            "documentation": "@dev getNativeReputation\n@param _avatar the organization avatar.\n@return organization native reputation",
            "id": 3305,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3295,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3292,
                    "src": "19053:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3296,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3294,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19039:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19039:22:22"
              }
            ],
            "name": "getNativeReputation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3293,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3292,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3305,
                  "src": "19013:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3291,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19013:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19012:17:22"
            },
            "returnParameters": {
              "id": 3299,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3298,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3305,
                  "src": "19075:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3297,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19075:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19074:9:22"
            },
            "scope": 3466,
            "src": "18984:149:22",
            "stateMutability": "view",
            "superFunction": 3644,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3321,
              "nodeType": "Block",
              "src": "19252:52:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 3318,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3307,
                        "src": "19289:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 3317,
                      "name": "_isSchemeRegistered",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3465,
                      "src": "19269:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                        "typeString": "function (address) view returns (bool)"
                      }
                    },
                    "id": 3319,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "19269:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3316,
                  "id": 3320,
                  "nodeType": "Return",
                  "src": "19262:35:22"
                }
              ]
            },
            "documentation": null,
            "id": 3322,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3312,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3309,
                    "src": "19224:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3313,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3311,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19210:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19210:22:22"
              }
            ],
            "name": "isSchemeRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3310,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3307,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19167:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3306,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19167:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3309,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19184:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3308,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19184:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19166:34:22"
            },
            "returnParameters": {
              "id": 3316,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3315,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3322,
                  "src": "19246:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3314,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "19246:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19245:6:22"
            },
            "scope": 3466,
            "src": "19139:165:22",
            "stateMutability": "view",
            "superFunction": 3653,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3339,
              "nodeType": "Block",
              "src": "19447:51:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3334,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "19464:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 3336,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3335,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3324,
                        "src": "19472:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "19464:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "id": 3337,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "paramsHash",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2019,
                    "src": "19464:27:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 3333,
                  "id": 3338,
                  "nodeType": "Return",
                  "src": "19457:34:22"
                }
              ]
            },
            "documentation": null,
            "id": 3340,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3329,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3326,
                    "src": "19404:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3330,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3328,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19390:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19390:22:22"
              }
            ],
            "name": "getSchemeParameters",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3327,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3324,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19339:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3323,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19339:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3326,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19356:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3325,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19356:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19338:34:22"
            },
            "returnParameters": {
              "id": 3333,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3332,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3340,
                  "src": "19434:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3331,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "19434:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19433:9:22"
            },
            "scope": 3466,
            "src": "19310:188:22",
            "stateMutability": "view",
            "superFunction": 3662,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3357,
              "nodeType": "Block",
              "src": "19641:52:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3352,
                        "name": "schemes",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2036,
                        "src": "19658:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                          "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                        }
                      },
                      "id": 3354,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3353,
                        "name": "_scheme",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3342,
                        "src": "19666:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "19658:16:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                        "typeString": "struct Controller.Scheme storage ref"
                      }
                    },
                    "id": 3355,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "permissions",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2021,
                    "src": "19658:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "functionReturnParameters": 3351,
                  "id": 3356,
                  "nodeType": "Return",
                  "src": "19651:35:22"
                }
              ]
            },
            "documentation": null,
            "id": 3358,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3347,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3344,
                    "src": "19599:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3348,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3346,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "19585:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "19585:22:22"
              }
            ],
            "name": "getSchemePermissions",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3345,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3342,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19534:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3341,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19534:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3344,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19551:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3343,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19551:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19533:34:22"
            },
            "returnParameters": {
              "id": 3351,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3350,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3358,
                  "src": "19629:6:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 3349,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "19629:6:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19628:8:22"
            },
            "scope": 3466,
            "src": "19504:189:22",
            "stateMutability": "view",
            "superFunction": 3680,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3399,
              "nodeType": "Block",
              "src": "19805:403:22",
              "statements": [
                {
                  "assignments": [
                    3368
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 3368,
                      "name": "register",
                      "nodeType": "VariableDeclaration",
                      "scope": 3399,
                      "src": "19816:40:22",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 3367,
                        "name": "GlobalConstraintRegister",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 2032,
                        "src": "19816:24:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage_ptr",
                          "typeString": "struct Controller.GlobalConstraintRegister"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 3372,
                  "initialValue": {
                    "argumentTypes": null,
                    "baseExpression": {
                      "argumentTypes": null,
                      "id": 3369,
                      "name": "globalConstraintsRegisterPre",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2054,
                      "src": "19859:28:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                        "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                      }
                    },
                    "id": 3371,
                    "indexExpression": {
                      "argumentTypes": null,
                      "id": 3370,
                      "name": "_globalConstraint",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3360,
                      "src": "19888:17:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "19859:47:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                      "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "19816:90:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "id": 3373,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "19921:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "id": 3374,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "isRegistered",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2029,
                    "src": "19921:21:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3382,
                  "nodeType": "IfStatement",
                  "src": "19917:102:22",
                  "trueBody": {
                    "id": 3381,
                    "nodeType": "Block",
                    "src": "19944:75:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3375,
                              "name": "globalConstraintsPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2047,
                              "src": "19965:20:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                              }
                            },
                            "id": 3378,
                            "indexExpression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 3376,
                                "name": "register",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3368,
                                "src": "19986:8:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 3377,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "19986:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "19965:36:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                              "typeString": "struct Controller.GlobalConstraint storage ref"
                            }
                          },
                          "id": 3379,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "params",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2026,
                          "src": "19965:43:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "functionReturnParameters": 3366,
                        "id": 3380,
                        "nodeType": "Return",
                        "src": "19958:50:22"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 3387,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 3383,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "20029:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 3384,
                        "name": "globalConstraintsRegisterPost",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2058,
                        "src": "20040:29:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                          "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                        }
                      },
                      "id": 3386,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 3385,
                        "name": "_globalConstraint",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3360,
                        "src": "20070:17:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "20040:48:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                        "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                      }
                    },
                    "src": "20029:59:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                      "typeString": "struct Controller.GlobalConstraintRegister memory"
                    }
                  },
                  "id": 3388,
                  "nodeType": "ExpressionStatement",
                  "src": "20029:59:22"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "expression": {
                      "argumentTypes": null,
                      "id": 3389,
                      "name": "register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3368,
                      "src": "20103:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                        "typeString": "struct Controller.GlobalConstraintRegister memory"
                      }
                    },
                    "id": 3390,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "isRegistered",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 2029,
                    "src": "20103:21:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 3398,
                  "nodeType": "IfStatement",
                  "src": "20099:103:22",
                  "trueBody": {
                    "id": 3397,
                    "nodeType": "Block",
                    "src": "20126:76:22",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3391,
                              "name": "globalConstraintsPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2050,
                              "src": "20147:21:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                                "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                              }
                            },
                            "id": 3394,
                            "indexExpression": {
                              "argumentTypes": null,
                              "expression": {
                                "argumentTypes": null,
                                "id": 3392,
                                "name": "register",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3368,
                                "src": "20169:8:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_memory_ptr",
                                  "typeString": "struct Controller.GlobalConstraintRegister memory"
                                }
                              },
                              "id": 3393,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "index",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 2031,
                              "src": "20169:14:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20147:37:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraint_$2027_storage",
                              "typeString": "struct Controller.GlobalConstraint storage ref"
                            }
                          },
                          "id": 3395,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "params",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2026,
                          "src": "20147:44:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "functionReturnParameters": 3366,
                        "id": 3396,
                        "nodeType": "Return",
                        "src": "20140:51:22"
                      }
                    ]
                  }
                }
              ]
            },
            "documentation": null,
            "id": 3400,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getGlobalConstraintParameters",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3363,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3360,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19738:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3359,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19738:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3362,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19765:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3361,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "19765:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19737:36:22"
            },
            "returnParameters": {
              "id": 3366,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3365,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3400,
                  "src": "19796:7:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3364,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "19796:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "19795:9:22"
            },
            "scope": 3466,
            "src": "19699:509:22",
            "stateMutability": "view",
            "superFunction": 3671,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3418,
              "nodeType": "Block",
              "src": "20557:83:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3412,
                          "name": "globalConstraintsPre",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2047,
                          "src": "20575:20:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                          }
                        },
                        "id": 3413,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "20575:27:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 3414,
                          "name": "globalConstraintsPost",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2050,
                          "src": "20604:21:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_struct$_GlobalConstraint_$2027_storage_$dyn_storage",
                            "typeString": "struct Controller.GlobalConstraint storage ref[] storage ref"
                          }
                        },
                        "id": 3415,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "20604:28:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "id": 3416,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "20574:59:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                      "typeString": "tuple(uint256,uint256)"
                    }
                  },
                  "functionReturnParameters": 3411,
                  "id": 3417,
                  "nodeType": "Return",
                  "src": "20567:66:22"
                }
              ]
            },
            "documentation": "@dev globalConstraintsCount return the global constraint pre and post count\n@return uint256 globalConstraintsPre count.\n@return uint256 globalConstraintsPost count.",
            "id": 3419,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3405,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3402,
                    "src": "20499:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3406,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3404,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "20485:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "20485:22:22"
              }
            ],
            "name": "globalConstraintsCount",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3403,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3402,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20443:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3401,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20443:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20442:17:22"
            },
            "returnParameters": {
              "id": 3411,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3408,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20537:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3407,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "20537:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3410,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3419,
                  "src": "20543:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3409,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "20543:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20536:12:22"
            },
            "scope": 3466,
            "src": "20411:229:22",
            "stateMutability": "view",
            "superFunction": 3689,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3442,
              "nodeType": "Block",
              "src": "20819:167:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 3439,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3431,
                              "name": "globalConstraintsRegisterPre",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2054,
                              "src": "20837:28:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 3433,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 3432,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3421,
                              "src": "20866:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20837:47:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "id": 3434,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "20837:60:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "baseExpression": {
                              "argumentTypes": null,
                              "id": 3435,
                              "name": "globalConstraintsRegisterPost",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 2058,
                              "src": "20917:29:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_address_$_t_struct$_GlobalConstraintRegister_$2032_storage_$",
                                "typeString": "mapping(address => struct Controller.GlobalConstraintRegister storage ref)"
                              }
                            },
                            "id": 3437,
                            "indexExpression": {
                              "argumentTypes": null,
                              "id": 3436,
                              "name": "_globalConstraint",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3421,
                              "src": "20947:17:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "20917:48:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_struct$_GlobalConstraintRegister_$2032_storage",
                              "typeString": "struct Controller.GlobalConstraintRegister storage ref"
                            }
                          },
                          "id": 3438,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isRegistered",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 2029,
                          "src": "20917:61:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "20837:141:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "id": 3440,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "20836:143:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3430,
                  "id": 3441,
                  "nodeType": "Return",
                  "src": "20829:150:22"
                }
              ]
            },
            "documentation": null,
            "id": 3443,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 3426,
                    "name": "_avatar",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 3423,
                    "src": "20767:7:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 3427,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 3425,
                  "name": "isAvatarValid",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 2366,
                  "src": "20753:13:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_address_$",
                    "typeString": "modifier (address)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "20753:22:22"
              }
            ],
            "name": "isGlobalConstraintRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3424,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3421,
                  "name": "_globalConstraint",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20684:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3420,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20684:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3423,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20711:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3422,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "20711:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20683:44:22"
            },
            "returnParameters": {
              "id": 3430,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3429,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3443,
                  "src": "20805:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3428,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "20805:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "20804:6:22"
            },
            "scope": 3466,
            "src": "20646:340:22",
            "stateMutability": "view",
            "superFunction": 3698,
            "visibility": "external"
          },
          {
            "body": {
              "id": 3464,
              "nodeType": "Block",
              "src": "21065:86:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "components": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bytes4",
                          "typeString": "bytes4"
                        },
                        "id": 3461,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          },
                          "id": 3457,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 3450,
                                "name": "schemes",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2036,
                                "src": "21083:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Scheme_$2022_storage_$",
                                  "typeString": "mapping(address => struct Controller.Scheme storage ref)"
                                }
                              },
                              "id": 3452,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 3451,
                                "name": "_scheme",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3445,
                                "src": "21091:7:22",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "21083:16:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_Scheme_$2022_storage",
                                "typeString": "struct Controller.Scheme storage ref"
                              }
                            },
                            "id": 3453,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "permissions",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 2021,
                            "src": "21083:28:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "30783030303030303031",
                                "id": 3455,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "21119:10:22",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                "value": "0x00000001"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                }
                              ],
                              "id": 3454,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "21112:6:22",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_bytes4_$",
                                "typeString": "type(bytes4)"
                              },
                              "typeName": "bytes4"
                            },
                            "id": 3456,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "21112:18:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes4",
                              "typeString": "bytes4"
                            }
                          },
                          "src": "21083:47:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 3459,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "21141:1:22",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 3458,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "21134:6:22",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_bytes4_$",
                              "typeString": "type(bytes4)"
                            },
                            "typeName": "bytes4"
                          },
                          "id": 3460,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "21134:9:22",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes4",
                            "typeString": "bytes4"
                          }
                        },
                        "src": "21083:60:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "id": 3462,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "21082:62:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 3449,
                  "id": 3463,
                  "nodeType": "Return",
                  "src": "21075:69:22"
                }
              ]
            },
            "documentation": null,
            "id": 3465,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_isSchemeRegistered",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3446,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3445,
                  "name": "_scheme",
                  "nodeType": "VariableDeclaration",
                  "scope": 3465,
                  "src": "21021:15:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 3444,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "21021:7:22",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "21020:17:22"
            },
            "returnParameters": {
              "id": 3449,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3448,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3465,
                  "src": "21059:4:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3447,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "21059:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "21058:6:22"
            },
            "scope": 3466,
            "src": "20992:159:22",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "private"
          }
        ],
        "scope": 3467,
        "src": "410:20743:22"
      }
    ],
    "src": "0:21154:22"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.4+commit.9549d8ff.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.9",
  "updatedAt": "2019-05-28T21:12:52.278Z",
  "devdoc": {
    "details": "A controller controls the organizations tokens, reputation and avatar. It is subject to a set of schemes and constraints that determine its behavior. Each scheme has it own parameters and operation permissions.",
    "methods": {
      "addGlobalConstraint(address,bytes32,address)": {
        "details": "add or update Global Constraint",
        "params": {
          "_globalConstraint": "the address of the global constraint to be added.",
          "_params": "the constraint parameters hash."
        },
        "return": "bool which represents a success"
      },
      "burnReputation(uint256,address,address)": {
        "details": "Burns `_amount` of reputation from `_from`",
        "params": {
          "_amount": "amount of reputation to burn",
          "_from": "The address that will lose the reputation"
        },
        "return": "bool which represents a success"
      },
      "externalTokenApproval(address,address,uint256,address)": {
        "details": "externalTokenApproval approve the spender address to spend a specified amount of tokens     on behalf of msg.sender.",
        "params": {
          "_externalToken": "the address of the Token Contract",
          "_spender": "address",
          "_value": "the amount of ether (in Wei) which the approval is referring to."
        },
        "return": "bool which represents a success"
      },
      "externalTokenTransfer(address,address,uint256,address)": {
        "details": "send some amount of arbitrary ERC20 Tokens",
        "params": {
          "_externalToken": "the address of the Token Contract",
          "_to": "address of the beneficiary",
          "_value": "the amount of ether (in Wei) to send"
        },
        "return": "bool which represents a success"
      },
      "externalTokenTransferFrom(address,address,address,uint256,address)": {
        "details": "transfer token \"from\" address \"to\" address     One must to approve the amount of tokens which can be spend from the     \"from\" account.This can be done using externalTokenApprove.",
        "params": {
          "_externalToken": "the address of the Token Contract",
          "_from": "address of the account to send from",
          "_to": "address of the beneficiary",
          "_value": "the amount of ether (in Wei) to send"
        },
        "return": "bool which represents a success"
      },
      "genericCall(address,bytes,address,uint256)": {
        "details": "perform a generic call to an arbitrary contract",
        "params": {
          "_avatar": "the controller's avatar address",
          "_contract": "the contract's address to call",
          "_data": "ABI-encoded contract call to call `_contract` address.",
          "_value": "value (ETH) to transfer with the transaction"
        },
        "return": "bool -success        bytes  - the return value of the called _contract's function."
      },
      "getNativeReputation(address)": {
        "details": "getNativeReputation",
        "params": {
          "_avatar": "the organization avatar."
        },
        "return": "organization native reputation"
      },
      "globalConstraintsCount(address)": {
        "details": "globalConstraintsCount return the global constraint pre and post count",
        "return": "uint256 globalConstraintsPre count.uint256 globalConstraintsPost count."
      },
      "metaData(string,address)": {
        "details": "metaData emits an event with a string, should contain the hash of some meta data.",
        "params": {
          "_avatar": "Avatar",
          "_metaData": "a string representing a hash of the meta data"
        },
        "return": "bool which represents a success"
      },
      "mintReputation(uint256,address,address)": {
        "details": "Mint `_amount` of reputation that are assigned to `_to` .",
        "params": {
          "_amount": "amount of reputation to mint",
          "_to": "beneficiary address"
        },
        "return": "bool which represents a success"
      },
      "mintTokens(uint256,address,address)": {
        "details": "mint tokens .",
        "params": {
          "_amount": "amount of token to mint",
          "_beneficiary": "beneficiary address"
        },
        "return": "bool which represents a success"
      },
      "registerScheme(address,bytes32,bytes4,address)": {
        "details": "register a scheme",
        "params": {
          "_paramsHash": "a hashed configuration of the usage of the scheme",
          "_permissions": "the permissions the new scheme will have",
          "_scheme": "the address of the scheme"
        },
        "return": "bool which represents a success"
      },
      "removeGlobalConstraint(address,address)": {
        "details": "remove Global Constraint",
        "params": {
          "_globalConstraint": "the address of the global constraint to be remove."
        },
        "return": "bool which represents a success"
      },
      "sendEther(uint256,address,address)": {
        "details": "send some ether",
        "params": {
          "_amountInWei": "the amount of ether (in Wei) to send",
          "_to": "address of the beneficiary"
        },
        "return": "bool which represents a success"
      },
      "unregisterScheme(address,address)": {
        "details": "unregister a scheme",
        "params": {
          "_scheme": "the address of the scheme"
        },
        "return": "bool which represents a success"
      },
      "unregisterSelf(address)": {
        "details": "unregister the caller's scheme",
        "return": "bool which represents a success"
      },
      "upgradeController(address,address)": {
        "details": "upgrade the Controller     The function will trigger an event 'UpgradeController'.",
        "params": {
          "_newController": "the address of the new controller."
        },
        "return": "bool which represents a success"
      }
    },
    "title": "Controller contract"
  },
  "userdoc": {
    "methods": {}
  }
}