{
  "contractName": "Proxy",
  "abi": [
    {
      "stateMutability": "payable",
      "type": "fallback"
    },
    {
      "stateMutability": "payable",
      "type": "receive"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"details\":\"Implements delegation of calls to other contracts, with proper forwarding of return values and bubbling of failures. It defines a fallback function that delegates all calls to the address returned by the abstract _implementation() internal function.\",\"methods\":{},\"title\":\"Proxy\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@iexec/solidity/contracts/Upgradeability/Proxy.sol\":\"Proxy\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@iexec/solidity/contracts/Upgradeability/Proxy.sol\":{\"keccak256\":\"0xd89f285d80cfeff0efc87f11dbc024a587da3bba142a06695cbac7e4050e9302\",\"urls\":[\"bzz-raw://9c8323ec7efc9fde6c1529f1070c3f3406adb5f8836b17221530d8f0110fe3f4\",\"dweb:/ipfs/QmURRsX9L2gZ83aMULtY1EuRMJExHhFYErCbkxE5CNkAzE\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "immutableReferences": {},
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.6.0;\n\n/**\n * @title Proxy\n * @dev Implements delegation of calls to other contracts, with proper\n * forwarding of return values and bubbling of failures.\n * It defines a fallback function that delegates all calls to the address\n * returned by the abstract _implementation() internal function.\n */\nabstract contract Proxy {\n  /**\n   * @dev Receive function.\n   * Implemented entirely in `_fallback`.\n   */\n  receive() external payable {\n    _fallback();\n  }\n\n  /**\n   * @dev Fallback function.\n   * Implemented entirely in `_fallback`.\n   */\n  fallback() external payable {\n    _fallback();\n  }\n\n  /**\n   * @return impl The Address of the implementation.\n   */\n  function _implementation() internal virtual view returns (address impl);\n\n  /**\n   * @dev Delegates execution to an implementation contract.\n   * This is a low level function that doesn't return to its internal call site.\n   * It will return to the external caller whatever the implementation returns.\n   * @param implementation Address to delegate.\n   */\n  function _delegate(address implementation) internal {\n    assembly {\n      // Copy msg.data. We take full control of memory in this inline assembly\n      // block because it will not return to Solidity code. We overwrite the\n      // Solidity scratch pad at memory position 0.\n      calldatacopy(0, 0, calldatasize())\n\n      // Call the implementation.\n      // out and outsize are 0 because we don't know the size yet.\n      let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n      // Copy the returned data.\n      returndatacopy(0, 0, returndatasize())\n\n      switch result\n      // delegatecall returns 0 on error.\n      case 0 { revert(0, returndatasize()) }\n      default { return(0, returndatasize()) }\n    }\n  }\n\n  /**\n   * @dev Function that is run as the first thing in the fallback function.\n   * Can be redefined in derived contracts to add functionality.\n   * Redefinitions must call super._willFallback().\n   */\n  function _willFallback() internal virtual {\n  }\n\n  /**\n   * @dev fallback implementation.\n   * Extracted to enable manual triggering.\n   */\n  function _fallback() internal {\n    _willFallback();\n    _delegate(_implementation());\n  }\n}\n",
  "sourcePath": "@iexec/solidity/contracts/Upgradeability/Proxy.sol",
  "ast": {
    "absolutePath": "@iexec/solidity/contracts/Upgradeability/Proxy.sol",
    "exportedSymbols": {
      "Proxy": [
        10725
      ]
    },
    "id": 10726,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 10675,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:64"
      },
      {
        "abstract": true,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": {
          "id": 10676,
          "nodeType": "StructuredDocumentation",
          "src": "25:290:64",
          "text": "@title Proxy\n@dev Implements delegation of calls to other contracts, with proper\nforwarding of return values and bubbling of failures.\nIt defines a fallback function that delegates all calls to the address\nreturned by the abstract _implementation() internal function."
        },
        "fullyImplemented": false,
        "id": 10725,
        "linearizedBaseContracts": [
          10725
        ],
        "name": "Proxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 10683,
              "nodeType": "Block",
              "src": "453:22:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10680,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10724,
                      "src": "459:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10681,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "459:11:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10682,
                  "nodeType": "ExpressionStatement",
                  "src": "459:11:64"
                }
              ]
            },
            "documentation": {
              "id": 10677,
              "nodeType": "StructuredDocumentation",
              "src": "344:79:64",
              "text": "@dev Receive function.\nImplemented entirely in `_fallback`."
            },
            "id": 10684,
            "implemented": true,
            "kind": "receive",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10678,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "433:2:64"
            },
            "returnParameters": {
              "id": 10679,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "453:0:64"
            },
            "scope": 10725,
            "src": "426:49:64",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10691,
              "nodeType": "Block",
              "src": "590:22:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10688,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10724,
                      "src": "596:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10689,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "596:11:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10690,
                  "nodeType": "ExpressionStatement",
                  "src": "596:11:64"
                }
              ]
            },
            "documentation": {
              "id": 10685,
              "nodeType": "StructuredDocumentation",
              "src": "479:80:64",
              "text": "@dev Fallback function.\nImplemented entirely in `_fallback`."
            },
            "id": 10692,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10686,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "570:2:64"
            },
            "returnParameters": {
              "id": 10687,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "590:0:64"
            },
            "scope": 10725,
            "src": "562:50:64",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": {
              "id": 10693,
              "nodeType": "StructuredDocumentation",
              "src": "616:62:64",
              "text": "@return impl The Address of the implementation."
            },
            "id": 10698,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10694,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "705:2:64"
            },
            "returnParameters": {
              "id": 10697,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10696,
                  "mutability": "mutable",
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 10698,
                  "src": "739:12:64",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10695,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "739:7:64",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "738:14:64"
            },
            "scope": 10725,
            "src": "681:72:64",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10705,
              "nodeType": "Block",
              "src": "1091:691:64",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "1106:672:64",
                    "statements": [
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1335:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1338:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1341:12:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1341:14:64"
                            }
                          ],
                          "functionName": {
                            "name": "calldatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "1322:12:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1322:34:64"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "1322:34:64"
                      },
                      {
                        "nodeType": "YulVariableDeclaration",
                        "src": "1465:74:64",
                        "value": {
                          "arguments": [
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "gas",
                                "nodeType": "YulIdentifier",
                                "src": "1492:3:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1492:5:64"
                            },
                            {
                              "name": "implementation",
                              "nodeType": "YulIdentifier",
                              "src": "1499:14:64"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1515:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1518:12:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1518:14:64"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1534:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1537:1:64",
                              "type": "",
                              "value": "0"
                            }
                          ],
                          "functionName": {
                            "name": "delegatecall",
                            "nodeType": "YulIdentifier",
                            "src": "1479:12:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1479:60:64"
                        },
                        "variables": [
                          {
                            "name": "result",
                            "nodeType": "YulTypedName",
                            "src": "1469:6:64",
                            "type": ""
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1595:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1598:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "returndatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1601:14:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1601:16:64"
                            }
                          ],
                          "functionName": {
                            "name": "returndatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "1580:14:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1580:38:64"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "1580:38:64"
                      },
                      {
                        "cases": [
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "1695:31:64",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1704:1:64",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "1707:14:64"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1707:16:64"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "revert",
                                      "nodeType": "YulIdentifier",
                                      "src": "1697:6:64"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1697:27:64"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "1697:27:64"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "1688:38:64",
                            "value": {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1693:1:64",
                              "type": "",
                              "value": "0"
                            }
                          },
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "1741:31:64",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1750:1:64",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "1753:14:64"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1753:16:64"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "return",
                                      "nodeType": "YulIdentifier",
                                      "src": "1743:6:64"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1743:27:64"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "1743:27:64"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "1733:39:64",
                            "value": "default"
                          }
                        ],
                        "expression": {
                          "name": "result",
                          "nodeType": "YulIdentifier",
                          "src": "1633:6:64"
                        },
                        "nodeType": "YulSwitch",
                        "src": "1626:146:64"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 10701,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "1499:14:64",
                      "valueSize": 1
                    }
                  ],
                  "id": 10704,
                  "nodeType": "InlineAssembly",
                  "src": "1097:681:64"
                }
              ]
            },
            "documentation": {
              "id": 10699,
              "nodeType": "StructuredDocumentation",
              "src": "757:279:64",
              "text": "@dev Delegates execution to an implementation contract.\nThis is a low level function that doesn't return to its internal call site.\nIt will return to the external caller whatever the implementation returns.\n@param implementation Address to delegate."
            },
            "id": 10706,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_delegate",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10702,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10701,
                  "mutability": "mutable",
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 10706,
                  "src": "1058:22:64",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10700,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1058:7:64",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1057:24:64"
            },
            "returnParameters": {
              "id": 10703,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1091:0:64"
            },
            "scope": 10725,
            "src": "1039:743:64",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10710,
              "nodeType": "Block",
              "src": "2033:5:64",
              "statements": []
            },
            "documentation": {
              "id": 10707,
              "nodeType": "StructuredDocumentation",
              "src": "1786:202:64",
              "text": "@dev Function that is run as the first thing in the fallback function.\nCan be redefined in derived contracts to add functionality.\nRedefinitions must call super._willFallback()."
            },
            "id": 10711,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_willFallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10708,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2013:2:64"
            },
            "returnParameters": {
              "id": 10709,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2033:0:64"
            },
            "scope": 10725,
            "src": "1991:47:64",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10723,
              "nodeType": "Block",
              "src": "2163:60:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10715,
                      "name": "_willFallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10711,
                      "src": "2169:13:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10716,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2169:15:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10717,
                  "nodeType": "ExpressionStatement",
                  "src": "2169:15:64"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 10719,
                          "name": "_implementation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10698,
                          "src": "2200:15:64",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                            "typeString": "function () view returns (address)"
                          }
                        },
                        "id": 10720,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2200:17:64",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 10718,
                      "name": "_delegate",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10706,
                      "src": "2190:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 10721,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2190:28:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10722,
                  "nodeType": "ExpressionStatement",
                  "src": "2190:28:64"
                }
              ]
            },
            "documentation": {
              "id": 10712,
              "nodeType": "StructuredDocumentation",
              "src": "2042:88:64",
              "text": "@dev fallback implementation.\nExtracted to enable manual triggering."
            },
            "id": 10724,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_fallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10713,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2151:2:64"
            },
            "returnParameters": {
              "id": 10714,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2163:0:64"
            },
            "scope": 10725,
            "src": "2133:90:64",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 10726,
        "src": "316:1909:64"
      }
    ],
    "src": "0:2226:64"
  },
  "legacyAST": {
    "absolutePath": "@iexec/solidity/contracts/Upgradeability/Proxy.sol",
    "exportedSymbols": {
      "Proxy": [
        10725
      ]
    },
    "id": 10726,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 10675,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:64"
      },
      {
        "abstract": true,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": {
          "id": 10676,
          "nodeType": "StructuredDocumentation",
          "src": "25:290:64",
          "text": "@title Proxy\n@dev Implements delegation of calls to other contracts, with proper\nforwarding of return values and bubbling of failures.\nIt defines a fallback function that delegates all calls to the address\nreturned by the abstract _implementation() internal function."
        },
        "fullyImplemented": false,
        "id": 10725,
        "linearizedBaseContracts": [
          10725
        ],
        "name": "Proxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 10683,
              "nodeType": "Block",
              "src": "453:22:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10680,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10724,
                      "src": "459:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10681,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "459:11:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10682,
                  "nodeType": "ExpressionStatement",
                  "src": "459:11:64"
                }
              ]
            },
            "documentation": {
              "id": 10677,
              "nodeType": "StructuredDocumentation",
              "src": "344:79:64",
              "text": "@dev Receive function.\nImplemented entirely in `_fallback`."
            },
            "id": 10684,
            "implemented": true,
            "kind": "receive",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10678,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "433:2:64"
            },
            "returnParameters": {
              "id": 10679,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "453:0:64"
            },
            "scope": 10725,
            "src": "426:49:64",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": {
              "id": 10691,
              "nodeType": "Block",
              "src": "590:22:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10688,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10724,
                      "src": "596:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10689,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "596:11:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10690,
                  "nodeType": "ExpressionStatement",
                  "src": "596:11:64"
                }
              ]
            },
            "documentation": {
              "id": 10685,
              "nodeType": "StructuredDocumentation",
              "src": "479:80:64",
              "text": "@dev Fallback function.\nImplemented entirely in `_fallback`."
            },
            "id": 10692,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10686,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "570:2:64"
            },
            "returnParameters": {
              "id": 10687,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "590:0:64"
            },
            "scope": 10725,
            "src": "562:50:64",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": {
              "id": 10693,
              "nodeType": "StructuredDocumentation",
              "src": "616:62:64",
              "text": "@return impl The Address of the implementation."
            },
            "id": 10698,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10694,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "705:2:64"
            },
            "returnParameters": {
              "id": 10697,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10696,
                  "mutability": "mutable",
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 10698,
                  "src": "739:12:64",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10695,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "739:7:64",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "738:14:64"
            },
            "scope": 10725,
            "src": "681:72:64",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10705,
              "nodeType": "Block",
              "src": "1091:691:64",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "1106:672:64",
                    "statements": [
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1335:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1338:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1341:12:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1341:14:64"
                            }
                          ],
                          "functionName": {
                            "name": "calldatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "1322:12:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1322:34:64"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "1322:34:64"
                      },
                      {
                        "nodeType": "YulVariableDeclaration",
                        "src": "1465:74:64",
                        "value": {
                          "arguments": [
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "gas",
                                "nodeType": "YulIdentifier",
                                "src": "1492:3:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1492:5:64"
                            },
                            {
                              "name": "implementation",
                              "nodeType": "YulIdentifier",
                              "src": "1499:14:64"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1515:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1518:12:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1518:14:64"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1534:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1537:1:64",
                              "type": "",
                              "value": "0"
                            }
                          ],
                          "functionName": {
                            "name": "delegatecall",
                            "nodeType": "YulIdentifier",
                            "src": "1479:12:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1479:60:64"
                        },
                        "variables": [
                          {
                            "name": "result",
                            "nodeType": "YulTypedName",
                            "src": "1469:6:64",
                            "type": ""
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1595:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1598:1:64",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "returndatasize",
                                "nodeType": "YulIdentifier",
                                "src": "1601:14:64"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "1601:16:64"
                            }
                          ],
                          "functionName": {
                            "name": "returndatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "1580:14:64"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "1580:38:64"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "1580:38:64"
                      },
                      {
                        "cases": [
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "1695:31:64",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1704:1:64",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "1707:14:64"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1707:16:64"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "revert",
                                      "nodeType": "YulIdentifier",
                                      "src": "1697:6:64"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1697:27:64"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "1697:27:64"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "1688:38:64",
                            "value": {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "1693:1:64",
                              "type": "",
                              "value": "0"
                            }
                          },
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "1741:31:64",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1750:1:64",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "1753:14:64"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1753:16:64"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "return",
                                      "nodeType": "YulIdentifier",
                                      "src": "1743:6:64"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1743:27:64"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "1743:27:64"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "1733:39:64",
                            "value": "default"
                          }
                        ],
                        "expression": {
                          "name": "result",
                          "nodeType": "YulIdentifier",
                          "src": "1633:6:64"
                        },
                        "nodeType": "YulSwitch",
                        "src": "1626:146:64"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 10701,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "1499:14:64",
                      "valueSize": 1
                    }
                  ],
                  "id": 10704,
                  "nodeType": "InlineAssembly",
                  "src": "1097:681:64"
                }
              ]
            },
            "documentation": {
              "id": 10699,
              "nodeType": "StructuredDocumentation",
              "src": "757:279:64",
              "text": "@dev Delegates execution to an implementation contract.\nThis is a low level function that doesn't return to its internal call site.\nIt will return to the external caller whatever the implementation returns.\n@param implementation Address to delegate."
            },
            "id": 10706,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_delegate",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10702,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 10701,
                  "mutability": "mutable",
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 10706,
                  "src": "1058:22:64",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 10700,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1058:7:64",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1057:24:64"
            },
            "returnParameters": {
              "id": 10703,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1091:0:64"
            },
            "scope": 10725,
            "src": "1039:743:64",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10710,
              "nodeType": "Block",
              "src": "2033:5:64",
              "statements": []
            },
            "documentation": {
              "id": 10707,
              "nodeType": "StructuredDocumentation",
              "src": "1786:202:64",
              "text": "@dev Function that is run as the first thing in the fallback function.\nCan be redefined in derived contracts to add functionality.\nRedefinitions must call super._willFallback()."
            },
            "id": 10711,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_willFallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10708,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2013:2:64"
            },
            "returnParameters": {
              "id": 10709,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2033:0:64"
            },
            "scope": 10725,
            "src": "1991:47:64",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 10723,
              "nodeType": "Block",
              "src": "2163:60:64",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 10715,
                      "name": "_willFallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10711,
                      "src": "2169:13:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 10716,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2169:15:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10717,
                  "nodeType": "ExpressionStatement",
                  "src": "2169:15:64"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 10719,
                          "name": "_implementation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 10698,
                          "src": "2200:15:64",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                            "typeString": "function () view returns (address)"
                          }
                        },
                        "id": 10720,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2200:17:64",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 10718,
                      "name": "_delegate",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 10706,
                      "src": "2190:9:64",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 10721,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2190:28:64",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 10722,
                  "nodeType": "ExpressionStatement",
                  "src": "2190:28:64"
                }
              ]
            },
            "documentation": {
              "id": 10712,
              "nodeType": "StructuredDocumentation",
              "src": "2042:88:64",
              "text": "@dev fallback implementation.\nExtracted to enable manual triggering."
            },
            "id": 10724,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_fallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 10713,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2151:2:64"
            },
            "returnParameters": {
              "id": 10714,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2163:0:64"
            },
            "scope": 10725,
            "src": "2133:90:64",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 10726,
        "src": "316:1909:64"
      }
    ],
    "src": "0:2226:64"
  },
  "compiler": {
    "name": "solc",
    "version": "0.6.6+commit.6c089d02.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.1.0",
  "updatedAt": "2020-04-21T18:10:34.962Z",
  "devdoc": {
    "details": "Implements delegation of calls to other contracts, with proper forwarding of return values and bubbling of failures. It defines a fallback function that delegates all calls to the address returned by the abstract _implementation() internal function.",
    "methods": {},
    "title": "Proxy"
  },
  "userdoc": {
    "methods": {}
  }
}