{
  "contractName": "BaseUpgradeabilityProxy",
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "implementation",
          "type": "address"
        }
      ],
      "name": "Upgraded",
      "type": "event"
    },
    {
      "payable": true,
      "stateMutability": "payable",
      "type": "fallback"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"}],\"devdoc\":{\"details\":\"This contract implements a proxy that allows to change the implementation address to which it will delegate. Such a change is called an implementation upgrade.\",\"methods\":{},\"title\":\"BaseUpgradeabilityProxy\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/upgrades/contracts/upgradeability/BaseUpgradeabilityProxy.sol\":\"BaseUpgradeabilityProxy\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/upgrades/contracts/upgradeability/BaseUpgradeabilityProxy.sol\":{\"keccak256\":\"0x1b37f808dc0a45976ad23aa53908c485a74a4d9fbd03066a5ab399c46436e570\",\"urls\":[\"bzz-raw://de04959e1261bbc2ee53a88b98469a888a2f2fa49c07ea87a5d646a8fe438558\",\"dweb:/ipfs/QmUmYQaNnAMfvbfKLniFLHyBzsH77bCMf9NpNSfndfuqWh\"]},\"@openzeppelin/upgrades/contracts/upgradeability/Proxy.sol\":{\"keccak256\":\"0xd8074ae5fa7ee6384ca8196a896612fb044bbf4ff4b7336d03cd97845000ac21\",\"urls\":[\"bzz-raw://3a111e1dc777d80e6c2ad41c6ff2bfb3ae8f61658fd6580ddf9ba9ab0d25a354\",\"dweb:/ipfs/QmSfwvUqqiownzHeMmUiYkejWs6FXR2KLtHQnSzP6FivTj\"]},\"@openzeppelin/upgrades/contracts/utils/Address.sol\":{\"keccak256\":\"0x7be7f8e4c08bc70ff9815e3f11c569f42aa3c447b5bc61fd75fb5cec97f63a9f\",\"urls\":[\"bzz-raw://f301a9226d637e1593916ba2de7b0b28c35f2adc3ca8526289fe1eedafa83bc2\",\"dweb:/ipfs/QmPb991LE8nyvhB4BkX46P1Pan2ijH9tfqWwLAz65VUUKs\"]}},\"version\":1}",
  "bytecode": "0x6080604052348015600f57600080fd5b50609d8061001e6000396000f3fe6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea265627a7a723158206606fb18e07f3aea76be1cb4652632f315629ce93487993a44dde0efaf4e3c9064736f6c63430005110032",
  "deployedBytecode": "0x6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea265627a7a723158206606fb18e07f3aea76be1cb4652632f315629ce93487993a44dde0efaf4e3c9064736f6c63430005110032",
  "sourceMap": "295:1540:34:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;295:1540:34;;;;;;;",
  "deployedSourceMap": "295:1540:34:-;;;453:11:35;:9;:11::i;:::-;295:1540:34;1952:90:35;1988:15;:13;:15::i;:::-;2009:28;2019:17;:15;:17::i;:::-;2009:9;:28::i;:::-;1952:90::o;958:156:34:-;778:66;1093:11;;1077:33::o;878:731:35:-;1180:12;1177:1;1174;1161:32;1370:1;1367;1353:12;1350:1;1334:14;1329:3;1316:56;1434:14;1431:1;1428;1413:36;1464:6;1519:36;;;;1582:14;1579:1;1572:25;1519:36;1538:14;1535:1;1528:25",
  "source": "pragma solidity ^0.5.0;\n\nimport './Proxy.sol';\nimport '../utils/Address.sol';\n\n/**\n * @title BaseUpgradeabilityProxy\n * @dev This contract implements a proxy that allows to change the\n * implementation address to which it will delegate.\n * Such a change is called an implementation upgrade.\n */\ncontract BaseUpgradeabilityProxy is Proxy {\n  /**\n   * @dev Emitted when the implementation is upgraded.\n   * @param implementation Address of the new implementation.\n   */\n  event Upgraded(address indexed implementation);\n\n  /**\n   * @dev Storage slot with the address of the current implementation.\n   * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n   * validated in the constructor.\n   */\n  bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n  /**\n   * @dev Returns the current implementation.\n   * @return Address of the current implementation\n   */\n  function _implementation() internal view returns (address impl) {\n    bytes32 slot = IMPLEMENTATION_SLOT;\n    assembly {\n      impl := sload(slot)\n    }\n  }\n\n  /**\n   * @dev Upgrades the proxy to a new implementation.\n   * @param newImplementation Address of the new implementation.\n   */\n  function _upgradeTo(address newImplementation) internal {\n    _setImplementation(newImplementation);\n    emit Upgraded(newImplementation);\n  }\n\n  /**\n   * @dev Sets the implementation address of the proxy.\n   * @param newImplementation Address of the new implementation.\n   */\n  function _setImplementation(address newImplementation) internal {\n    require(OpenZeppelinUpgradesAddress.isContract(newImplementation), \"Cannot set a proxy implementation to a non-contract address\");\n\n    bytes32 slot = IMPLEMENTATION_SLOT;\n\n    assembly {\n      sstore(slot, newImplementation)\n    }\n  }\n}\n",
  "sourcePath": "@openzeppelin/upgrades/contracts/upgradeability/BaseUpgradeabilityProxy.sol",
  "ast": {
    "absolutePath": "@openzeppelin/upgrades/contracts/upgradeability/BaseUpgradeabilityProxy.sol",
    "exportedSymbols": {
      "BaseUpgradeabilityProxy": [
        8214
      ]
    },
    "id": 8215,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 8158,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:34"
      },
      {
        "absolutePath": "@openzeppelin/upgrades/contracts/upgradeability/Proxy.sol",
        "file": "./Proxy.sol",
        "id": 8159,
        "nodeType": "ImportDirective",
        "scope": 8215,
        "sourceUnit": 8253,
        "src": "25:21:34",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@openzeppelin/upgrades/contracts/utils/Address.sol",
        "file": "../utils/Address.sol",
        "id": 8160,
        "nodeType": "ImportDirective",
        "scope": 8215,
        "sourceUnit": 8444,
        "src": "47:30:34",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 8161,
              "name": "Proxy",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 8252,
              "src": "331:5:34",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Proxy_$8252",
                "typeString": "contract Proxy"
              }
            },
            "id": 8162,
            "nodeType": "InheritanceSpecifier",
            "src": "331:5:34"
          }
        ],
        "contractDependencies": [
          8252
        ],
        "contractKind": "contract",
        "documentation": "@title BaseUpgradeabilityProxy\n@dev This contract implements a proxy that allows to change the\nimplementation address to which it will delegate.\nSuch a change is called an implementation upgrade.",
        "fullyImplemented": true,
        "id": 8214,
        "linearizedBaseContracts": [
          8214,
          8252
        ],
        "name": "BaseUpgradeabilityProxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": "@dev Emitted when the implementation is upgraded.\n@param implementation Address of the new implementation.",
            "id": 8166,
            "name": "Upgraded",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 8165,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8164,
                  "indexed": true,
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8166,
                  "src": "485:30:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8163,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "485:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "484:32:34"
            },
            "src": "470:47:34"
          },
          {
            "constant": true,
            "id": 8169,
            "name": "IMPLEMENTATION_SLOT",
            "nodeType": "VariableDeclaration",
            "scope": 8214,
            "src": "730:114:34",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8167,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "730:7:34",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
              "id": 8168,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "778:66:34",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_24440054405305269366569402256811496959409073762505157381672968839269610695612_by_1",
                "typeString": "int_const 2444...(69 digits omitted)...5612"
              },
              "value": "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8179,
              "nodeType": "Block",
              "src": "1022:92:34",
              "statements": [
                {
                  "assignments": [
                    8175
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 8175,
                      "name": "slot",
                      "nodeType": "VariableDeclaration",
                      "scope": 8179,
                      "src": "1028:12:34",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 8174,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1028:7:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 8177,
                  "initialValue": {
                    "argumentTypes": null,
                    "id": 8176,
                    "name": "IMPLEMENTATION_SLOT",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 8169,
                    "src": "1043:19:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1028:34:34"
                },
                {
                  "externalReferences": [
                    {
                      "impl": {
                        "declaration": 8172,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1085:4:34",
                        "valueSize": 1
                      }
                    },
                    {
                      "slot": {
                        "declaration": 8175,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1099:4:34",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 8178,
                  "nodeType": "InlineAssembly",
                  "operations": "{ impl := sload(slot) }",
                  "src": "1068:42:34"
                }
              ]
            },
            "documentation": "@dev Returns the current implementation.\n@return Address of the current implementation",
            "id": 8180,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8170,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "982:2:34"
            },
            "returnParameters": {
              "id": 8173,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8172,
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "scope": 8180,
                  "src": "1008:12:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8171,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1008:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1007:14:34"
            },
            "scope": 8214,
            "src": "958:156:34",
            "stateMutability": "view",
            "superFunction": 8228,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8193,
              "nodeType": "Block",
              "src": "1305:86:34",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8186,
                        "name": "newImplementation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8182,
                        "src": "1330:17:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8185,
                      "name": "_setImplementation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 8213,
                      "src": "1311:18:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 8187,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1311:37:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8188,
                  "nodeType": "ExpressionStatement",
                  "src": "1311:37:34"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8190,
                        "name": "newImplementation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8182,
                        "src": "1368:17:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8189,
                      "name": "Upgraded",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 8166,
                      "src": "1359:8:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 8191,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1359:27:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8192,
                  "nodeType": "EmitStatement",
                  "src": "1354:32:34"
                }
              ]
            },
            "documentation": "@dev Upgrades the proxy to a new implementation.\n@param newImplementation Address of the new implementation.",
            "id": 8194,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_upgradeTo",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8183,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8182,
                  "name": "newImplementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8194,
                  "src": "1269:25:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8181,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1269:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1268:27:34"
            },
            "returnParameters": {
              "id": 8184,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1305:0:34"
            },
            "scope": 8214,
            "src": "1249:142:34",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8212,
              "nodeType": "Block",
              "src": "1592:241:34",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 8202,
                            "name": "newImplementation",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8196,
                            "src": "1645:17:34",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 8200,
                            "name": "OpenZeppelinUpgradesAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8443,
                            "src": "1606:27:34",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_OpenZeppelinUpgradesAddress_$8443_$",
                              "typeString": "type(library OpenZeppelinUpgradesAddress)"
                            }
                          },
                          "id": 8201,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isContract",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 8442,
                          "src": "1606:38:34",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 8203,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1606:57:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373",
                        "id": 8204,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1665:61:34",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_b5145a64ce8c406e5785204fe5b300f0ceda96d6636350b38fdccb9cd8c0c37c",
                          "typeString": "literal_string \"Cannot set a proxy implementation to a non-contract address\""
                        },
                        "value": "Cannot set a proxy implementation to a non-contract address"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_b5145a64ce8c406e5785204fe5b300f0ceda96d6636350b38fdccb9cd8c0c37c",
                          "typeString": "literal_string \"Cannot set a proxy implementation to a non-contract address\""
                        }
                      ],
                      "id": 8199,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        8537,
                        8538
                      ],
                      "referencedDeclaration": 8538,
                      "src": "1598:7:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 8205,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1598:129:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8206,
                  "nodeType": "ExpressionStatement",
                  "src": "1598:129:34"
                },
                {
                  "assignments": [
                    8208
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 8208,
                      "name": "slot",
                      "nodeType": "VariableDeclaration",
                      "scope": 8212,
                      "src": "1734:12:34",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 8207,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1734:7:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 8210,
                  "initialValue": {
                    "argumentTypes": null,
                    "id": 8209,
                    "name": "IMPLEMENTATION_SLOT",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 8169,
                    "src": "1749:19:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1734:34:34"
                },
                {
                  "externalReferences": [
                    {
                      "slot": {
                        "declaration": 8208,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1799:4:34",
                        "valueSize": 1
                      }
                    },
                    {
                      "newImplementation": {
                        "declaration": 8196,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1805:17:34",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 8211,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    sstore(slot, newImplementation)\n}",
                  "src": "1775:54:34"
                }
              ]
            },
            "documentation": "@dev Sets the implementation address of the proxy.\n@param newImplementation Address of the new implementation.",
            "id": 8213,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_setImplementation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8197,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8196,
                  "name": "newImplementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8213,
                  "src": "1556:25:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8195,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1556:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1555:27:34"
            },
            "returnParameters": {
              "id": 8198,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1592:0:34"
            },
            "scope": 8214,
            "src": "1528:305:34",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 8215,
        "src": "295:1540:34"
      }
    ],
    "src": "0:1836:34"
  },
  "legacyAST": {
    "absolutePath": "@openzeppelin/upgrades/contracts/upgradeability/BaseUpgradeabilityProxy.sol",
    "exportedSymbols": {
      "BaseUpgradeabilityProxy": [
        8214
      ]
    },
    "id": 8215,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 8158,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:34"
      },
      {
        "absolutePath": "@openzeppelin/upgrades/contracts/upgradeability/Proxy.sol",
        "file": "./Proxy.sol",
        "id": 8159,
        "nodeType": "ImportDirective",
        "scope": 8215,
        "sourceUnit": 8253,
        "src": "25:21:34",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "@openzeppelin/upgrades/contracts/utils/Address.sol",
        "file": "../utils/Address.sol",
        "id": 8160,
        "nodeType": "ImportDirective",
        "scope": 8215,
        "sourceUnit": 8444,
        "src": "47:30:34",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 8161,
              "name": "Proxy",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 8252,
              "src": "331:5:34",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Proxy_$8252",
                "typeString": "contract Proxy"
              }
            },
            "id": 8162,
            "nodeType": "InheritanceSpecifier",
            "src": "331:5:34"
          }
        ],
        "contractDependencies": [
          8252
        ],
        "contractKind": "contract",
        "documentation": "@title BaseUpgradeabilityProxy\n@dev This contract implements a proxy that allows to change the\nimplementation address to which it will delegate.\nSuch a change is called an implementation upgrade.",
        "fullyImplemented": true,
        "id": 8214,
        "linearizedBaseContracts": [
          8214,
          8252
        ],
        "name": "BaseUpgradeabilityProxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": "@dev Emitted when the implementation is upgraded.\n@param implementation Address of the new implementation.",
            "id": 8166,
            "name": "Upgraded",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 8165,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8164,
                  "indexed": true,
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8166,
                  "src": "485:30:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8163,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "485:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "484:32:34"
            },
            "src": "470:47:34"
          },
          {
            "constant": true,
            "id": 8169,
            "name": "IMPLEMENTATION_SLOT",
            "nodeType": "VariableDeclaration",
            "scope": 8214,
            "src": "730:114:34",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_bytes32",
              "typeString": "bytes32"
            },
            "typeName": {
              "id": 8167,
              "name": "bytes32",
              "nodeType": "ElementaryTypeName",
              "src": "730:7:34",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes32",
                "typeString": "bytes32"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
              "id": 8168,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "number",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "778:66:34",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_rational_24440054405305269366569402256811496959409073762505157381672968839269610695612_by_1",
                "typeString": "int_const 2444...(69 digits omitted)...5612"
              },
              "value": "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8179,
              "nodeType": "Block",
              "src": "1022:92:34",
              "statements": [
                {
                  "assignments": [
                    8175
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 8175,
                      "name": "slot",
                      "nodeType": "VariableDeclaration",
                      "scope": 8179,
                      "src": "1028:12:34",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 8174,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1028:7:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 8177,
                  "initialValue": {
                    "argumentTypes": null,
                    "id": 8176,
                    "name": "IMPLEMENTATION_SLOT",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 8169,
                    "src": "1043:19:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1028:34:34"
                },
                {
                  "externalReferences": [
                    {
                      "impl": {
                        "declaration": 8172,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1085:4:34",
                        "valueSize": 1
                      }
                    },
                    {
                      "slot": {
                        "declaration": 8175,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1099:4:34",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 8178,
                  "nodeType": "InlineAssembly",
                  "operations": "{ impl := sload(slot) }",
                  "src": "1068:42:34"
                }
              ]
            },
            "documentation": "@dev Returns the current implementation.\n@return Address of the current implementation",
            "id": 8180,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8170,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "982:2:34"
            },
            "returnParameters": {
              "id": 8173,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8172,
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "scope": 8180,
                  "src": "1008:12:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8171,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1008:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1007:14:34"
            },
            "scope": 8214,
            "src": "958:156:34",
            "stateMutability": "view",
            "superFunction": 8228,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8193,
              "nodeType": "Block",
              "src": "1305:86:34",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8186,
                        "name": "newImplementation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8182,
                        "src": "1330:17:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8185,
                      "name": "_setImplementation",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 8213,
                      "src": "1311:18:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 8187,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1311:37:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8188,
                  "nodeType": "ExpressionStatement",
                  "src": "1311:37:34"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 8190,
                        "name": "newImplementation",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 8182,
                        "src": "1368:17:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 8189,
                      "name": "Upgraded",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 8166,
                      "src": "1359:8:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 8191,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1359:27:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8192,
                  "nodeType": "EmitStatement",
                  "src": "1354:32:34"
                }
              ]
            },
            "documentation": "@dev Upgrades the proxy to a new implementation.\n@param newImplementation Address of the new implementation.",
            "id": 8194,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_upgradeTo",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8183,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8182,
                  "name": "newImplementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8194,
                  "src": "1269:25:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8181,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1269:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1268:27:34"
            },
            "returnParameters": {
              "id": 8184,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1305:0:34"
            },
            "scope": 8214,
            "src": "1249:142:34",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 8212,
              "nodeType": "Block",
              "src": "1592:241:34",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 8202,
                            "name": "newImplementation",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8196,
                            "src": "1645:17:34",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 8200,
                            "name": "OpenZeppelinUpgradesAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 8443,
                            "src": "1606:27:34",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_OpenZeppelinUpgradesAddress_$8443_$",
                              "typeString": "type(library OpenZeppelinUpgradesAddress)"
                            }
                          },
                          "id": 8201,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "isContract",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 8442,
                          "src": "1606:38:34",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
                            "typeString": "function (address) view returns (bool)"
                          }
                        },
                        "id": 8203,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1606:57:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373",
                        "id": 8204,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1665:61:34",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_b5145a64ce8c406e5785204fe5b300f0ceda96d6636350b38fdccb9cd8c0c37c",
                          "typeString": "literal_string \"Cannot set a proxy implementation to a non-contract address\""
                        },
                        "value": "Cannot set a proxy implementation to a non-contract address"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_b5145a64ce8c406e5785204fe5b300f0ceda96d6636350b38fdccb9cd8c0c37c",
                          "typeString": "literal_string \"Cannot set a proxy implementation to a non-contract address\""
                        }
                      ],
                      "id": 8199,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        8537,
                        8538
                      ],
                      "referencedDeclaration": 8538,
                      "src": "1598:7:34",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 8205,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1598:129:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 8206,
                  "nodeType": "ExpressionStatement",
                  "src": "1598:129:34"
                },
                {
                  "assignments": [
                    8208
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 8208,
                      "name": "slot",
                      "nodeType": "VariableDeclaration",
                      "scope": 8212,
                      "src": "1734:12:34",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 8207,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1734:7:34",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 8210,
                  "initialValue": {
                    "argumentTypes": null,
                    "id": 8209,
                    "name": "IMPLEMENTATION_SLOT",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 8169,
                    "src": "1749:19:34",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1734:34:34"
                },
                {
                  "externalReferences": [
                    {
                      "slot": {
                        "declaration": 8208,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1799:4:34",
                        "valueSize": 1
                      }
                    },
                    {
                      "newImplementation": {
                        "declaration": 8196,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1805:17:34",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 8211,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    sstore(slot, newImplementation)\n}",
                  "src": "1775:54:34"
                }
              ]
            },
            "documentation": "@dev Sets the implementation address of the proxy.\n@param newImplementation Address of the new implementation.",
            "id": 8213,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_setImplementation",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 8197,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 8196,
                  "name": "newImplementation",
                  "nodeType": "VariableDeclaration",
                  "scope": 8213,
                  "src": "1556:25:34",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 8195,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1556:7:34",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1555:27:34"
            },
            "returnParameters": {
              "id": 8198,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1592:0:34"
            },
            "scope": 8214,
            "src": "1528:305:34",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 8215,
        "src": "295:1540:34"
      }
    ],
    "src": "0:1836:34"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.17+commit.d19bba13.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.3.0",
  "updatedAt": "2020-12-11T05:03:09.370Z",
  "devdoc": {
    "details": "This contract implements a proxy that allows to change the implementation address to which it will delegate. Such a change is called an implementation upgrade.",
    "methods": {},
    "title": "BaseUpgradeabilityProxy"
  },
  "userdoc": {
    "methods": {}
  }
}