{
  "contractName": "ChangeAuthPeriod",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "contract Avatar",
          "name": "_avatar",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_identity",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_authPeriodDays",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "newAuthPeriodDays",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [],
      "name": "setAuthPeriod",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract Avatar\",\"name\":\"_avatar\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_authPeriodDays\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"newAuthPeriodDays\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"setAuthPeriod\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/stakingModel/contracts/dao/schemes/proposals/ChangeAuthPeriod.sol\":\"ChangeAuthPeriod\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/stakingModel/contracts/dao/schemes/proposals/ChangeAuthPeriod.sol\":{\"keccak256\":\"0x75873680907dfb3edb1c593b1a79188e4d3dc252fc90968594650b308da45d6c\",\"urls\":[\"bzz-raw://7964f14cc9fb0cae65f6da57187f597fbc11ff1c6f49133c49e3c8b75a858c51\",\"dweb:/ipfs/QmfSNeMd4fQX6Hvz9jLi4gn14XPmKjMtsLYSj7K8rWKNYY\"]},\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzz-raw://9d3c1c7575cf6075ea1d89921f09b9b8e322b208dacaf0446cd4f64506c999f0\",\"dweb:/ipfs/QmVGDDHAR2ByuQpbgV7BBKXGEAcbaWvejpEZYzHgaagBFK\"]},\"@daostack/arc/contracts/controller/ControllerInterface.sol\":{\"keccak256\":\"0x933e92612c90f292c7b59908958b003f1a13d90b97bed0572b566353c20974dc\",\"urls\":[\"bzz-raw://ce1fcf85b744fcce2dbd4205e3943e9b4ec36a5f0330d4bbf61e65f1a3e0e470\",\"dweb:/ipfs/QmUWiLkBDdekhpy93nTzBtxDHL6yNh6sTUM9G8VbsHcBzy\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzz-raw://51d1d6e85fd90f45395a16b7a3c703c4636e836041f2a13f806e4222ef2e59c1\",\"dweb:/ipfs/QmQjeCeFf7TJzsYjT5scyZUDDixBA8Yy8YppgBuxcKPDnP\"]},\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzz-raw://19495cd88280e54d7ddcd043ffeff75e6d3777a0c42debcd61cae448e9497ea0\",\"dweb:/ipfs/QmYxWz7CgFmmddrcVXJKfob5Ktwykc2imNVUwLSR5WR8bJ\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzz-raw://5dba7734c4fed446c084a707761cbc66ba22b8b93ef53c8d4a22a76b6e271690\",\"dweb:/ipfs/QmP2VpPKUqLh4ZZs6LaxHVpCN1zCmiorygL9bMub4mbYCw\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzz-raw://8856852c8fe0ba1c9aab326f0a9a6e7f31a238de2778fa5188e6fc399f7eb352\",\"dweb:/ipfs/QmVH4ppR9Dk7v8yxaSgeArdMv9gBBVoQxEf4E3UsqQ4rY2\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzz-raw://1eb493553b27efd46c231a836a83ce50d215639feb97b4aac9f301d0fd034ff5\",\"dweb:/ipfs/QmbMdvSXcqGKxeeYvzF3VrWpoHQyVzMXBhzhAokF2Gdymv\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzz-raw://f07a2c393caa85f62f0aaa461e3edd50aa59371d4209778ba0558d7f8b4b856c\",\"dweb:/ipfs/QmeN3ZiYGSjCnQFeYaJNgoXjF9eDue1g3e9pqManRkeBtV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzz-raw://f40c91ca270bdc9b156f339081a0fc2bbcf73cf5f62b8c73ba555df753ff6619\",\"dweb:/ipfs/QmT8y2VVjGaFdGphpcXrgvdPi2EgF9LuCDgJiJ89LvpFRV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzz-raw://50b1ff986d3b2793850a66c8429d9886fdfb134b1509b3e98714e3e2a71e24f5\",\"dweb:/ipfs/QmSQBYPeY9tbR3ciGRNQqvcWKnNiuxtVMq2MsPWpLwuGGm\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzz-raw://ee762ff5b7746e41d27dcbcea00c7a3034b58adb1b45ddadddb5b721aff450df\",\"dweb:/ipfs/QmdxqtgEFZjHCoiYyz6pUAQ5iBm7As25jcyEbZoTaAgyDa\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzz-raw://a3c2d9f046beebab7fb41b1b124a6a124a36f510f7c67365861402ac831bdc71\",\"dweb:/ipfs/QmUtASRgitregbKH83anopLtF9vFQe3BKeAjhUa6F7t9YV\"]}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b506040516103fa3803806103fa8339818101604052606081101561003357600080fd5b5080516020820151604090920151600055600180546001600160a01b039283166001600160a01b0319918216179091556002805492909316911617905561037b8061007f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806308fb030a1461003b578063a060265814610045575b600080fd5b61004361005f565b005b61004d61031c565b60408051918252519081900360200190f35b60015460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b916004808301926020929190829003018186803b1580156100a457600080fd5b505afa1580156100b8573d6000803e3d6000fd5b505050506040513d60208110156100ce57600080fd5b50516002546000805460408051602480820193909352815180820384018152604491820183526020810180516001600160e01b031660016201b3cb60e21b031917815260015493516368db844d60e11b81526001600160a01b0397881660048201818152958916948201859052606482018890526080968201968752835160848301528351999a509698978a169763d1b7089a979693958a949093909260a40191808383885b8381101561018c578181015183820152602001610174565b50505050905090810190601f1680156101b95780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156101db57600080fd5b505af11580156101ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561021857600080fd5b81516020830180516040519294929383019291908464010000000082111561023f57600080fd5b90830190602082018581111561025457600080fd5b825164010000000081118282018810171561026e57600080fd5b82525081516020918201929091019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b506040525050505090508061030e5760405162461bcd60e51b81526004018080602001828103825260248152602001806103236024913960400191505060405180910390fd5b6001546001600160a01b0316ff5b6000548156fe73657474696e672061757468656e7469636174696f6e20706572696f64206661696c6564a265627a7a723158206253e38b7c91ca4ab2d06e17cc830d344f174d7246bf18c8d7e094e2694b118e64736f6c63430005100032",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806308fb030a1461003b578063a060265814610045575b600080fd5b61004361005f565b005b61004d61031c565b60408051918252519081900360200190f35b60015460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b916004808301926020929190829003018186803b1580156100a457600080fd5b505afa1580156100b8573d6000803e3d6000fd5b505050506040513d60208110156100ce57600080fd5b50516002546000805460408051602480820193909352815180820384018152604491820183526020810180516001600160e01b031660016201b3cb60e21b031917815260015493516368db844d60e11b81526001600160a01b0397881660048201818152958916948201859052606482018890526080968201968752835160848301528351999a509698978a169763d1b7089a979693958a949093909260a40191808383885b8381101561018c578181015183820152602001610174565b50505050905090810190601f1680156101b95780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156101db57600080fd5b505af11580156101ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561021857600080fd5b81516020830180516040519294929383019291908464010000000082111561023f57600080fd5b90830190602082018581111561025457600080fd5b825164010000000081118282018810171561026e57600080fd5b82525081516020918201929091019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b506040525050505090508061030e5760405162461bcd60e51b81526004018080602001828103825260248152602001806103236024913960400191505060405180910390fd5b6001546001600160a01b0316ff5b6000548156fe73657474696e672061757468656e7469636174696f6e20706572696f64206661696c6564a265627a7a723158206253e38b7c91ca4ab2d06e17cc830d344f174d7246bf18c8d7e094e2694b118e64736f6c63430005100032",
  "sourceMap": "200:1005:37:-;;;440:175;8:9:-1;5:2;;;30:1;27;20:12;5:2;440:175:37;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;440:175:37;;;;;;;;;;;532:17;:35;571:6;:16;;-1:-1:-1;;;;;571:16:37;;;-1:-1:-1;;;;;;571:16:37;;;;;;;591:8;:20;;;;;;;;;;;200:1005;;;;;;",
  "deployedSourceMap": "200:1005:37:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;200:1005:37;;;;;;;;;;;;;;;;;;;;;;;;835:368;;;:::i;:::-;;229:32;;;:::i;:::-;;;;;;;;;;;;;;;;835:368;924:6;;:14;;;-1:-1:-1;;;924:14:37;;;;871:30;;-1:-1:-1;;;;;924:6:37;;:12;;:14;;;;;;;;;;;;;;:6;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;924:14:37;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;924:14:37;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;924:14:37;984:8;;944:7;1066:17;;997:91;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;997:91:37;;;;;;924:14;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;179:29;160:49;;984:8:37;1093:6;957:152;;-1:-1:-1;;;957:152:37;;-1:-1:-1;;;;;984:8:37;;;957:152;;;;;;1093:6;;;957:152;;;;;;;;;;;;;;;;;;;;;;;;;;;924:14;;-1:-1:-1;944:7:37;;957:22;;;;;;984:8;997:91;;944:7;;957:152;;;;;;;;;25:18:-1;944:7:37;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;957:152:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;957:152:37;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;957:152:37;;;;;;39:16:-1;36:1;17:17;2:54;101:4;957:152:37;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;;;5:11;;2:2;;;29:1;26;19:12;2:2;957:152:37;;;;;;;;;;;;;;;;;;;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;372:25;;-1:-1;957:152:37;;420:4:-1;411:14;;;;957:152:37;;;;;411:14:-1;957:152:37;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;957:152:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;943:166;;;1122:2;1114:51;;;;-1:-1:-1;;;1114:51:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1191:6;;-1:-1:-1;;;;;1191:6:37;1170:29;229:32;;;;:::o",
  "source": "pragma solidity >0.5.4;\n\nimport \"@daostack/arc/contracts/controller/Avatar.sol\";\nimport \"@daostack/arc/contracts/controller/ControllerInterface.sol\";\n\n/* @title Scheme for switching to AMB bridge\n */\ncontract ChangeAuthPeriod {\n\tuint256 public newAuthPeriodDays;\n\tAvatar avatar;\n\taddress identity;\n\n\t/* @dev constructor. Sets the factory address. Reverts if given address is null\n\t * @param _factory The address of the bridge factory\n\t */\n\tconstructor(\n\t\tAvatar _avatar,\n\t\taddress _identity,\n\t\tuint256 _authPeriodDays\n\t) public {\n\t\tnewAuthPeriodDays = _authPeriodDays;\n\t\tavatar = _avatar;\n\t\tidentity = _identity;\n\t}\n\n\t/* @dev Adds the bridge address to minters, deploys the home bridge on\n\t * current network, and then self-destructs, transferring any ether on the\n\t * contract to the avatar. Reverts if scheme is not registered\n\t */\n\tfunction setAuthPeriod() public {\n\t\tControllerInterface controller = ControllerInterface(avatar.owner());\n\t\t(bool ok, ) = controller.genericCall(\n\t\t\tidentity,\n\t\t\tabi.encodeWithSignature(\n\t\t\t\t\"setAuthenticationPeriod(uint256)\",\n\t\t\t\tnewAuthPeriodDays\n\t\t\t),\n\t\t\tavatar,\n\t\t\t0\n\t\t);\n\n\t\trequire(ok, \"setting authentication period failed\");\n\n\t\tselfdestruct(address(avatar));\n\t}\n}\n",
  "sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/stakingModel/contracts/dao/schemes/proposals/ChangeAuthPeriod.sol",
  "ast": {
    "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/stakingModel/contracts/dao/schemes/proposals/ChangeAuthPeriod.sol",
    "exportedSymbols": {
      "ChangeAuthPeriod": [
        11322
      ]
    },
    "id": 11323,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11254,
        "literals": [
          "solidity",
          ">",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:37"
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
        "file": "@daostack/arc/contracts/controller/Avatar.sol",
        "id": 11255,
        "nodeType": "ImportDirective",
        "scope": 11323,
        "sourceUnit": 12706,
        "src": "25:55:37",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "file": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "id": 11256,
        "nodeType": "ImportDirective",
        "scope": 11323,
        "sourceUnit": 14395,
        "src": "81:68:37",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 11322,
        "linearizedBaseContracts": [
          11322
        ],
        "name": "ChangeAuthPeriod",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 11258,
            "name": "newAuthPeriodDays",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "229:32:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_uint256",
              "typeString": "uint256"
            },
            "typeName": {
              "id": 11257,
              "name": "uint256",
              "nodeType": "ElementaryTypeName",
              "src": "229:7:37",
              "typeDescriptions": {
                "typeIdentifier": "t_uint256",
                "typeString": "uint256"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 11260,
            "name": "avatar",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "264:13:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Avatar_$12705",
              "typeString": "contract Avatar"
            },
            "typeName": {
              "contractScope": null,
              "id": 11259,
              "name": "Avatar",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12705,
              "src": "264:6:37",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Avatar_$12705",
                "typeString": "contract Avatar"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 11262,
            "name": "identity",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "280:16:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 11261,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "280:7:37",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 11283,
              "nodeType": "Block",
              "src": "528:87:37",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11273,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11271,
                      "name": "newAuthPeriodDays",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11258,
                      "src": "532:17:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11272,
                      "name": "_authPeriodDays",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11268,
                      "src": "552:15:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "532:35:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 11274,
                  "nodeType": "ExpressionStatement",
                  "src": "532:35:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11277,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11275,
                      "name": "avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11260,
                      "src": "571:6:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$12705",
                        "typeString": "contract Avatar"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11276,
                      "name": "_avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11264,
                      "src": "580:7:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$12705",
                        "typeString": "contract Avatar"
                      }
                    },
                    "src": "571:16:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$12705",
                      "typeString": "contract Avatar"
                    }
                  },
                  "id": 11278,
                  "nodeType": "ExpressionStatement",
                  "src": "571:16:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11281,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11279,
                      "name": "identity",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11262,
                      "src": "591:8:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11280,
                      "name": "_identity",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11266,
                      "src": "602:9:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "591:20:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 11282,
                  "nodeType": "ExpressionStatement",
                  "src": "591:20:37"
                }
              ]
            },
            "documentation": null,
            "id": 11284,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11269,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11264,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "455:14:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$12705",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11263,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12705,
                    "src": "455:6:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$12705",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11266,
                  "name": "_identity",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "473:17:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 11265,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "473:7:37",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11268,
                  "name": "_authPeriodDays",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "494:23:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11267,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "494:7:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "451:69:37"
            },
            "returnParameters": {
              "id": 11270,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "528:0:37"
            },
            "scope": 11322,
            "src": "440:175:37",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 11320,
              "nodeType": "Block",
              "src": "867:336:37",
              "statements": [
                {
                  "assignments": [
                    11288
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 11288,
                      "name": "controller",
                      "nodeType": "VariableDeclaration",
                      "scope": 11320,
                      "src": "871:30:37",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                        "typeString": "contract ControllerInterface"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 11287,
                        "name": "ControllerInterface",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 14394,
                        "src": "871:19:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                          "typeString": "contract ControllerInterface"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 11294,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "argumentTypes": null,
                            "id": 11290,
                            "name": "avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11260,
                            "src": "924:6:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          },
                          "id": 11291,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "owner",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 21342,
                          "src": "924:12:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                            "typeString": "function () view external returns (address)"
                          }
                        },
                        "id": 11292,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "924:14:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 11289,
                      "name": "ControllerInterface",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14394,
                      "src": "904:19:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_ControllerInterface_$14394_$",
                        "typeString": "type(contract ControllerInterface)"
                      }
                    },
                    "id": 11293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "904:35:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                      "typeString": "contract ControllerInterface"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "871:68:37"
                },
                {
                  "assignments": [
                    11296,
                    null
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 11296,
                      "name": "ok",
                      "nodeType": "VariableDeclaration",
                      "scope": 11320,
                      "src": "944:7:37",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 11295,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "944:4:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    },
                    null
                  ],
                  "id": 11308,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 11299,
                        "name": "identity",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11262,
                        "src": "984:8:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "73657441757468656e7469636174696f6e506572696f642875696e7432353629",
                            "id": 11302,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1026:34:37",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_fff930d44a404f327f49bbee4da27965ca9859d27ef9c505af3bb5f798954f68",
                              "typeString": "literal_string \"setAuthenticationPeriod(uint256)\""
                            },
                            "value": "setAuthenticationPeriod(uint256)"
                          },
                          {
                            "argumentTypes": null,
                            "id": 11303,
                            "name": "newAuthPeriodDays",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11258,
                            "src": "1066:17:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_fff930d44a404f327f49bbee4da27965ca9859d27ef9c505af3bb5f798954f68",
                              "typeString": "literal_string \"setAuthenticationPeriod(uint256)\""
                            },
                            {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 11300,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 22158,
                            "src": "997:3:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 11301,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodeWithSignature",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "997:23:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function (string memory) pure returns (bytes memory)"
                          }
                        },
                        "id": 11304,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "997:91:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 11305,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11260,
                        "src": "1093:6:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$12705",
                          "typeString": "contract Avatar"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 11306,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1104:1:37",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_contract$_Avatar_$12705",
                          "typeString": "contract Avatar"
                        },
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 11297,
                        "name": "controller",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11288,
                        "src": "957:10:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                          "typeString": "contract ControllerInterface"
                        }
                      },
                      "id": 11298,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "genericCall",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 14271,
                      "src": "957:22:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_contract$_Avatar_$12705_$_t_uint256_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (address,bytes memory,contract Avatar,uint256) external returns (bool,bytes memory)"
                      }
                    },
                    "id": 11307,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "957:152:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "943:166:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 11310,
                        "name": "ok",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11296,
                        "src": "1122:2:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "73657474696e672061757468656e7469636174696f6e20706572696f64206661696c6564",
                        "id": 11311,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1126:38:37",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_cbecf5b8320844e4b4c1adb750d560ff7898a6f0fe59cdf3f391731195ca8311",
                          "typeString": "literal_string \"setting authentication period failed\""
                        },
                        "value": "setting authentication period failed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_cbecf5b8320844e4b4c1adb750d560ff7898a6f0fe59cdf3f391731195ca8311",
                          "typeString": "literal_string \"setting authentication period failed\""
                        }
                      ],
                      "id": 11309,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        22174,
                        22175
                      ],
                      "referencedDeclaration": 22175,
                      "src": "1114:7:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 11312,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1114:51:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 11313,
                  "nodeType": "ExpressionStatement",
                  "src": "1114:51:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 11316,
                            "name": "avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11260,
                            "src": "1191:6:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          ],
                          "id": 11315,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1183:7:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 11317,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1183:15:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 11314,
                      "name": "selfdestruct",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 22179,
                      "src": "1170:12:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_selfdestruct_nonpayable$_t_address_payable_$returns$__$",
                        "typeString": "function (address payable)"
                      }
                    },
                    "id": 11318,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1170:29:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 11319,
                  "nodeType": "ExpressionStatement",
                  "src": "1170:29:37"
                }
              ]
            },
            "documentation": null,
            "id": 11321,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "setAuthPeriod",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11285,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "857:2:37"
            },
            "returnParameters": {
              "id": 11286,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "867:0:37"
            },
            "scope": 11322,
            "src": "835:368:37",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 11323,
        "src": "200:1005:37"
      }
    ],
    "src": "0:1206:37"
  },
  "legacyAST": {
    "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/stakingModel/contracts/dao/schemes/proposals/ChangeAuthPeriod.sol",
    "exportedSymbols": {
      "ChangeAuthPeriod": [
        11322
      ]
    },
    "id": 11323,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 11254,
        "literals": [
          "solidity",
          ">",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:37"
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
        "file": "@daostack/arc/contracts/controller/Avatar.sol",
        "id": 11255,
        "nodeType": "ImportDirective",
        "scope": 11323,
        "sourceUnit": 12706,
        "src": "25:55:37",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "file": "@daostack/arc/contracts/controller/ControllerInterface.sol",
        "id": 11256,
        "nodeType": "ImportDirective",
        "scope": 11323,
        "sourceUnit": 14395,
        "src": "81:68:37",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": true,
        "id": 11322,
        "linearizedBaseContracts": [
          11322
        ],
        "name": "ChangeAuthPeriod",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 11258,
            "name": "newAuthPeriodDays",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "229:32:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_uint256",
              "typeString": "uint256"
            },
            "typeName": {
              "id": 11257,
              "name": "uint256",
              "nodeType": "ElementaryTypeName",
              "src": "229:7:37",
              "typeDescriptions": {
                "typeIdentifier": "t_uint256",
                "typeString": "uint256"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 11260,
            "name": "avatar",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "264:13:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_Avatar_$12705",
              "typeString": "contract Avatar"
            },
            "typeName": {
              "contractScope": null,
              "id": 11259,
              "name": "Avatar",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 12705,
              "src": "264:6:37",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Avatar_$12705",
                "typeString": "contract Avatar"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 11262,
            "name": "identity",
            "nodeType": "VariableDeclaration",
            "scope": 11322,
            "src": "280:16:37",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 11261,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "280:7:37",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 11283,
              "nodeType": "Block",
              "src": "528:87:37",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11273,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11271,
                      "name": "newAuthPeriodDays",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11258,
                      "src": "532:17:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11272,
                      "name": "_authPeriodDays",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11268,
                      "src": "552:15:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "532:35:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 11274,
                  "nodeType": "ExpressionStatement",
                  "src": "532:35:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11277,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11275,
                      "name": "avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11260,
                      "src": "571:6:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$12705",
                        "typeString": "contract Avatar"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11276,
                      "name": "_avatar",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11264,
                      "src": "580:7:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_Avatar_$12705",
                        "typeString": "contract Avatar"
                      }
                    },
                    "src": "571:16:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$12705",
                      "typeString": "contract Avatar"
                    }
                  },
                  "id": 11278,
                  "nodeType": "ExpressionStatement",
                  "src": "571:16:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 11281,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 11279,
                      "name": "identity",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11262,
                      "src": "591:8:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 11280,
                      "name": "_identity",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 11266,
                      "src": "602:9:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "591:20:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 11282,
                  "nodeType": "ExpressionStatement",
                  "src": "591:20:37"
                }
              ]
            },
            "documentation": null,
            "id": 11284,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11269,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 11264,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "455:14:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$12705",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 11263,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 12705,
                    "src": "455:6:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$12705",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11266,
                  "name": "_identity",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "473:17:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 11265,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "473:7:37",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 11268,
                  "name": "_authPeriodDays",
                  "nodeType": "VariableDeclaration",
                  "scope": 11284,
                  "src": "494:23:37",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 11267,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "494:7:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "451:69:37"
            },
            "returnParameters": {
              "id": 11270,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "528:0:37"
            },
            "scope": 11322,
            "src": "440:175:37",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 11320,
              "nodeType": "Block",
              "src": "867:336:37",
              "statements": [
                {
                  "assignments": [
                    11288
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 11288,
                      "name": "controller",
                      "nodeType": "VariableDeclaration",
                      "scope": 11320,
                      "src": "871:30:37",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                        "typeString": "contract ControllerInterface"
                      },
                      "typeName": {
                        "contractScope": null,
                        "id": 11287,
                        "name": "ControllerInterface",
                        "nodeType": "UserDefinedTypeName",
                        "referencedDeclaration": 14394,
                        "src": "871:19:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                          "typeString": "contract ControllerInterface"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 11294,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "argumentTypes": null,
                            "id": 11290,
                            "name": "avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11260,
                            "src": "924:6:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          },
                          "id": 11291,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "owner",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 21342,
                          "src": "924:12:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
                            "typeString": "function () view external returns (address)"
                          }
                        },
                        "id": 11292,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "924:14:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 11289,
                      "name": "ControllerInterface",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14394,
                      "src": "904:19:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_ControllerInterface_$14394_$",
                        "typeString": "type(contract ControllerInterface)"
                      }
                    },
                    "id": 11293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "904:35:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                      "typeString": "contract ControllerInterface"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "871:68:37"
                },
                {
                  "assignments": [
                    11296,
                    null
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 11296,
                      "name": "ok",
                      "nodeType": "VariableDeclaration",
                      "scope": 11320,
                      "src": "944:7:37",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 11295,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "944:4:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    },
                    null
                  ],
                  "id": 11308,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 11299,
                        "name": "identity",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11262,
                        "src": "984:8:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "73657441757468656e7469636174696f6e506572696f642875696e7432353629",
                            "id": 11302,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1026:34:37",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_fff930d44a404f327f49bbee4da27965ca9859d27ef9c505af3bb5f798954f68",
                              "typeString": "literal_string \"setAuthenticationPeriod(uint256)\""
                            },
                            "value": "setAuthenticationPeriod(uint256)"
                          },
                          {
                            "argumentTypes": null,
                            "id": 11303,
                            "name": "newAuthPeriodDays",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11258,
                            "src": "1066:17:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_fff930d44a404f327f49bbee4da27965ca9859d27ef9c505af3bb5f798954f68",
                              "typeString": "literal_string \"setAuthenticationPeriod(uint256)\""
                            },
                            {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 11300,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 22158,
                            "src": "997:3:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 11301,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodeWithSignature",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "997:23:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function (string memory) pure returns (bytes memory)"
                          }
                        },
                        "id": 11304,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "997:91:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 11305,
                        "name": "avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11260,
                        "src": "1093:6:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$12705",
                          "typeString": "contract Avatar"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 11306,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1104:1:37",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_contract$_Avatar_$12705",
                          "typeString": "contract Avatar"
                        },
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 11297,
                        "name": "controller",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11288,
                        "src": "957:10:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_ControllerInterface_$14394",
                          "typeString": "contract ControllerInterface"
                        }
                      },
                      "id": 11298,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "genericCall",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 14271,
                      "src": "957:22:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_contract$_Avatar_$12705_$_t_uint256_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (address,bytes memory,contract Avatar,uint256) external returns (bool,bytes memory)"
                      }
                    },
                    "id": 11307,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "957:152:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "943:166:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 11310,
                        "name": "ok",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 11296,
                        "src": "1122:2:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "73657474696e672061757468656e7469636174696f6e20706572696f64206661696c6564",
                        "id": 11311,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1126:38:37",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_cbecf5b8320844e4b4c1adb750d560ff7898a6f0fe59cdf3f391731195ca8311",
                          "typeString": "literal_string \"setting authentication period failed\""
                        },
                        "value": "setting authentication period failed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_cbecf5b8320844e4b4c1adb750d560ff7898a6f0fe59cdf3f391731195ca8311",
                          "typeString": "literal_string \"setting authentication period failed\""
                        }
                      ],
                      "id": 11309,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        22174,
                        22175
                      ],
                      "referencedDeclaration": 22175,
                      "src": "1114:7:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 11312,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1114:51:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 11313,
                  "nodeType": "ExpressionStatement",
                  "src": "1114:51:37"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 11316,
                            "name": "avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 11260,
                            "src": "1191:6:37",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Avatar_$12705",
                              "typeString": "contract Avatar"
                            }
                          ],
                          "id": 11315,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1183:7:37",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": "address"
                        },
                        "id": 11317,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1183:15:37",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 11314,
                      "name": "selfdestruct",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 22179,
                      "src": "1170:12:37",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_selfdestruct_nonpayable$_t_address_payable_$returns$__$",
                        "typeString": "function (address payable)"
                      }
                    },
                    "id": 11318,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1170:29:37",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 11319,
                  "nodeType": "ExpressionStatement",
                  "src": "1170:29:37"
                }
              ]
            },
            "documentation": null,
            "id": 11321,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "setAuthPeriod",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 11285,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "857:2:37"
            },
            "returnParameters": {
              "id": 11286,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "867:0:37"
            },
            "scope": 11322,
            "src": "835:368:37",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 11323,
        "src": "200:1005:37"
      }
    ],
    "src": "0:1206:37"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.2",
  "updatedAt": "2021-08-23T07:33:52.358Z",
  "devdoc": {
    "methods": {}
  },
  "userdoc": {
    "methods": {}
  }
}