{
  "contractName": "Proxy",
  "abi": [
    {
      "stateMutability": "payable",
      "type": "fallback"
    },
    {
      "stateMutability": "payable",
      "type": "receive"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"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.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Upgradeability/Proxy.sol\":\"Proxy\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Upgradeability/Proxy.sol\":{\"keccak256\":\"0xa546737acfbfa27d379d338a075c825ab0648e9d8d8b3ee5bf5191469db3bc19\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://1b6bb5cdd62d69a5f4d6c431819cbbcc5029bc40397065abb31a3217a683fa2b\",\"dweb:/ipfs/QmSkkpUDr4CGL74Zdmk47zNPtfddauGW8D3U3iGLKbkaCW\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "immutableReferences": {},
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "// SPDX-License-Identifier: Apache-2.0\n\n/******************************************************************************\n * Copyright 2020 IEXEC BLOCKCHAIN TECH                                       *\n *                                                                            *\n * Licensed under the Apache License, Version 2.0 (the \"License\");            *\n * you may not use this file except in compliance with the License.           *\n * You may obtain a copy of the License at                                    *\n *                                                                            *\n *     http://www.apache.org/licenses/LICENSE-2.0                             *\n *                                                                            *\n * Unless required by applicable law or agreed to in writing, software        *\n * distributed under the License is distributed on an \"AS IS\" BASIS,          *\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *\n * See the License for the specific language governing permissions and        *\n * limitations under the License.                                             *\n ******************************************************************************/\n\npragma 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 virtual {\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": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Upgradeability/Proxy.sol",
  "ast": {
    "absolutePath": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Upgradeability/Proxy.sol",
    "exportedSymbols": {
      "Proxy": [
        2452
      ]
    },
    "id": 2453,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2402,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "1242:23:27"
      },
      {
        "abstract": true,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": {
          "id": 2403,
          "nodeType": "StructuredDocumentation",
          "src": "1267:290:27",
          "text": " @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."
        },
        "fullyImplemented": false,
        "id": 2452,
        "linearizedBaseContracts": [
          2452
        ],
        "name": "Proxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 2410,
              "nodeType": "Block",
              "src": "1703:22:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2407,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2451,
                      "src": "1709:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2408,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1709:11:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2409,
                  "nodeType": "ExpressionStatement",
                  "src": "1709:11:27"
                }
              ]
            },
            "documentation": {
              "id": 2404,
              "nodeType": "StructuredDocumentation",
              "src": "1586:79:27",
              "text": " @dev Receive function.\n Implemented entirely in `_fallback`."
            },
            "id": 2411,
            "implemented": true,
            "kind": "receive",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2405,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1675:2:27"
            },
            "returnParameters": {
              "id": 2406,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1703:0:27"
            },
            "scope": 2452,
            "src": "1668:57:27",
            "stateMutability": "payable",
            "virtual": true,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2418,
              "nodeType": "Block",
              "src": "1840:22:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2415,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2451,
                      "src": "1846:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2416,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1846:11:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2417,
                  "nodeType": "ExpressionStatement",
                  "src": "1846:11:27"
                }
              ]
            },
            "documentation": {
              "id": 2412,
              "nodeType": "StructuredDocumentation",
              "src": "1729:80:27",
              "text": " @dev Fallback function.\n Implemented entirely in `_fallback`."
            },
            "id": 2419,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2413,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1820:2:27"
            },
            "returnParameters": {
              "id": 2414,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1840:0:27"
            },
            "scope": 2452,
            "src": "1812:50:27",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": {
              "id": 2420,
              "nodeType": "StructuredDocumentation",
              "src": "1866:62:27",
              "text": " @return impl The Address of the implementation."
            },
            "id": 2425,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2421,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1955:2:27"
            },
            "returnParameters": {
              "id": 2424,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2423,
                  "mutability": "mutable",
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 2425,
                  "src": "1989:12:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2422,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1989:7:27",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1988:14:27"
            },
            "scope": 2452,
            "src": "1931:72:27",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2432,
              "nodeType": "Block",
              "src": "2341:691:27",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "2356:672:27",
                    "statements": [
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2585:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2588:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2591:12:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2591:14:27"
                            }
                          ],
                          "functionName": {
                            "name": "calldatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "2572:12:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2572:34:27"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "2572:34:27"
                      },
                      {
                        "nodeType": "YulVariableDeclaration",
                        "src": "2715:74:27",
                        "value": {
                          "arguments": [
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "gas",
                                "nodeType": "YulIdentifier",
                                "src": "2742:3:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2742:5:27"
                            },
                            {
                              "name": "implementation",
                              "nodeType": "YulIdentifier",
                              "src": "2749:14:27"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2765:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2768:12:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2768:14:27"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2784:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2787:1:27",
                              "type": "",
                              "value": "0"
                            }
                          ],
                          "functionName": {
                            "name": "delegatecall",
                            "nodeType": "YulIdentifier",
                            "src": "2729:12:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2729:60:27"
                        },
                        "variables": [
                          {
                            "name": "result",
                            "nodeType": "YulTypedName",
                            "src": "2719:6:27",
                            "type": ""
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2845:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2848:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "returndatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2851:14:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2851:16:27"
                            }
                          ],
                          "functionName": {
                            "name": "returndatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "2830:14:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2830:38:27"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "2830:38:27"
                      },
                      {
                        "cases": [
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "2945:31:27",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "2954:1:27",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "2957:14:27"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "2957:16:27"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "revert",
                                      "nodeType": "YulIdentifier",
                                      "src": "2947:6:27"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "2947:27:27"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "2947:27:27"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "2938:38:27",
                            "value": {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2943:1:27",
                              "type": "",
                              "value": "0"
                            }
                          },
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "2991:31:27",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "3000:1:27",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "3003:14:27"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "3003:16:27"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "return",
                                      "nodeType": "YulIdentifier",
                                      "src": "2993:6:27"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "2993:27:27"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "2993:27:27"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "2983:39:27",
                            "value": "default"
                          }
                        ],
                        "expression": {
                          "name": "result",
                          "nodeType": "YulIdentifier",
                          "src": "2883:6:27"
                        },
                        "nodeType": "YulSwitch",
                        "src": "2876:146:27"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 2428,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "2749:14:27",
                      "valueSize": 1
                    }
                  ],
                  "id": 2431,
                  "nodeType": "InlineAssembly",
                  "src": "2347:681:27"
                }
              ]
            },
            "documentation": {
              "id": 2426,
              "nodeType": "StructuredDocumentation",
              "src": "2007:279:27",
              "text": " @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."
            },
            "id": 2433,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_delegate",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2429,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2428,
                  "mutability": "mutable",
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 2433,
                  "src": "2308:22:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2427,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2308:7:27",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2307:24:27"
            },
            "returnParameters": {
              "id": 2430,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2341:0:27"
            },
            "scope": 2452,
            "src": "2289:743:27",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2437,
              "nodeType": "Block",
              "src": "3283:5:27",
              "statements": []
            },
            "documentation": {
              "id": 2434,
              "nodeType": "StructuredDocumentation",
              "src": "3036:202:27",
              "text": " @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()."
            },
            "id": 2438,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_willFallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2435,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3263:2:27"
            },
            "returnParameters": {
              "id": 2436,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3283:0:27"
            },
            "scope": 2452,
            "src": "3241:47:27",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2450,
              "nodeType": "Block",
              "src": "3413:60:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2442,
                      "name": "_willFallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2438,
                      "src": "3419:13:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2443,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3419:15:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2444,
                  "nodeType": "ExpressionStatement",
                  "src": "3419:15:27"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 2446,
                          "name": "_implementation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2425,
                          "src": "3450:15:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                            "typeString": "function () view returns (address)"
                          }
                        },
                        "id": 2447,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "3450:17:27",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2445,
                      "name": "_delegate",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2433,
                      "src": "3440:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 2448,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3440:28:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2449,
                  "nodeType": "ExpressionStatement",
                  "src": "3440:28:27"
                }
              ]
            },
            "documentation": {
              "id": 2439,
              "nodeType": "StructuredDocumentation",
              "src": "3292:88:27",
              "text": " @dev fallback implementation.\n Extracted to enable manual triggering."
            },
            "id": 2451,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_fallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2440,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3401:2:27"
            },
            "returnParameters": {
              "id": 2441,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3413:0:27"
            },
            "scope": 2452,
            "src": "3383:90:27",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 2453,
        "src": "1558:1917:27"
      }
    ],
    "src": "1242:2234:27"
  },
  "legacyAST": {
    "absolutePath": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Upgradeability/Proxy.sol",
    "exportedSymbols": {
      "Proxy": [
        2452
      ]
    },
    "id": 2453,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2402,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "1242:23:27"
      },
      {
        "abstract": true,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": {
          "id": 2403,
          "nodeType": "StructuredDocumentation",
          "src": "1267:290:27",
          "text": " @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."
        },
        "fullyImplemented": false,
        "id": 2452,
        "linearizedBaseContracts": [
          2452
        ],
        "name": "Proxy",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 2410,
              "nodeType": "Block",
              "src": "1703:22:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2407,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2451,
                      "src": "1709:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2408,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1709:11:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2409,
                  "nodeType": "ExpressionStatement",
                  "src": "1709:11:27"
                }
              ]
            },
            "documentation": {
              "id": 2404,
              "nodeType": "StructuredDocumentation",
              "src": "1586:79:27",
              "text": " @dev Receive function.\n Implemented entirely in `_fallback`."
            },
            "id": 2411,
            "implemented": true,
            "kind": "receive",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2405,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1675:2:27"
            },
            "returnParameters": {
              "id": 2406,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1703:0:27"
            },
            "scope": 2452,
            "src": "1668:57:27",
            "stateMutability": "payable",
            "virtual": true,
            "visibility": "external"
          },
          {
            "body": {
              "id": 2418,
              "nodeType": "Block",
              "src": "1840:22:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2415,
                      "name": "_fallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2451,
                      "src": "1846:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2416,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1846:11:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2417,
                  "nodeType": "ExpressionStatement",
                  "src": "1846:11:27"
                }
              ]
            },
            "documentation": {
              "id": 2412,
              "nodeType": "StructuredDocumentation",
              "src": "1729:80:27",
              "text": " @dev Fallback function.\n Implemented entirely in `_fallback`."
            },
            "id": 2419,
            "implemented": true,
            "kind": "fallback",
            "modifiers": [],
            "name": "",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2413,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1820:2:27"
            },
            "returnParameters": {
              "id": 2414,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1840:0:27"
            },
            "scope": 2452,
            "src": "1812:50:27",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "body": null,
            "documentation": {
              "id": 2420,
              "nodeType": "StructuredDocumentation",
              "src": "1866:62:27",
              "text": " @return impl The Address of the implementation."
            },
            "id": 2425,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "_implementation",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2421,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1955:2:27"
            },
            "returnParameters": {
              "id": 2424,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2423,
                  "mutability": "mutable",
                  "name": "impl",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 2425,
                  "src": "1989:12:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2422,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1989:7:27",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1988:14:27"
            },
            "scope": 2452,
            "src": "1931:72:27",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2432,
              "nodeType": "Block",
              "src": "2341:691:27",
              "statements": [
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "2356:672:27",
                    "statements": [
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2585:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2588:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2591:12:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2591:14:27"
                            }
                          ],
                          "functionName": {
                            "name": "calldatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "2572:12:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2572:34:27"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "2572:34:27"
                      },
                      {
                        "nodeType": "YulVariableDeclaration",
                        "src": "2715:74:27",
                        "value": {
                          "arguments": [
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "gas",
                                "nodeType": "YulIdentifier",
                                "src": "2742:3:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2742:5:27"
                            },
                            {
                              "name": "implementation",
                              "nodeType": "YulIdentifier",
                              "src": "2749:14:27"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2765:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "calldatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2768:12:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2768:14:27"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2784:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2787:1:27",
                              "type": "",
                              "value": "0"
                            }
                          ],
                          "functionName": {
                            "name": "delegatecall",
                            "nodeType": "YulIdentifier",
                            "src": "2729:12:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2729:60:27"
                        },
                        "variables": [
                          {
                            "name": "result",
                            "nodeType": "YulTypedName",
                            "src": "2719:6:27",
                            "type": ""
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2845:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2848:1:27",
                              "type": "",
                              "value": "0"
                            },
                            {
                              "arguments": [],
                              "functionName": {
                                "name": "returndatasize",
                                "nodeType": "YulIdentifier",
                                "src": "2851:14:27"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "2851:16:27"
                            }
                          ],
                          "functionName": {
                            "name": "returndatacopy",
                            "nodeType": "YulIdentifier",
                            "src": "2830:14:27"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "2830:38:27"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "2830:38:27"
                      },
                      {
                        "cases": [
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "2945:31:27",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "2954:1:27",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "2957:14:27"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "2957:16:27"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "revert",
                                      "nodeType": "YulIdentifier",
                                      "src": "2947:6:27"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "2947:27:27"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "2947:27:27"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "2938:38:27",
                            "value": {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "2943:1:27",
                              "type": "",
                              "value": "0"
                            }
                          },
                          {
                            "body": {
                              "nodeType": "YulBlock",
                              "src": "2991:31:27",
                              "statements": [
                                {
                                  "expression": {
                                    "arguments": [
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "3000:1:27",
                                        "type": "",
                                        "value": "0"
                                      },
                                      {
                                        "arguments": [],
                                        "functionName": {
                                          "name": "returndatasize",
                                          "nodeType": "YulIdentifier",
                                          "src": "3003:14:27"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "3003:16:27"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "return",
                                      "nodeType": "YulIdentifier",
                                      "src": "2993:6:27"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "2993:27:27"
                                  },
                                  "nodeType": "YulExpressionStatement",
                                  "src": "2993:27:27"
                                }
                              ]
                            },
                            "nodeType": "YulCase",
                            "src": "2983:39:27",
                            "value": "default"
                          }
                        ],
                        "expression": {
                          "name": "result",
                          "nodeType": "YulIdentifier",
                          "src": "2883:6:27"
                        },
                        "nodeType": "YulSwitch",
                        "src": "2876:146:27"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 2428,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "2749:14:27",
                      "valueSize": 1
                    }
                  ],
                  "id": 2431,
                  "nodeType": "InlineAssembly",
                  "src": "2347:681:27"
                }
              ]
            },
            "documentation": {
              "id": 2426,
              "nodeType": "StructuredDocumentation",
              "src": "2007:279:27",
              "text": " @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."
            },
            "id": 2433,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_delegate",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2429,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2428,
                  "mutability": "mutable",
                  "name": "implementation",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 2433,
                  "src": "2308:22:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2427,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2308:7:27",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2307:24:27"
            },
            "returnParameters": {
              "id": 2430,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2341:0:27"
            },
            "scope": 2452,
            "src": "2289:743:27",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2437,
              "nodeType": "Block",
              "src": "3283:5:27",
              "statements": []
            },
            "documentation": {
              "id": 2434,
              "nodeType": "StructuredDocumentation",
              "src": "3036:202:27",
              "text": " @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()."
            },
            "id": 2438,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_willFallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2435,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3263:2:27"
            },
            "returnParameters": {
              "id": 2436,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3283:0:27"
            },
            "scope": 2452,
            "src": "3241:47:27",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2450,
              "nodeType": "Block",
              "src": "3413:60:27",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [],
                    "expression": {
                      "argumentTypes": [],
                      "id": 2442,
                      "name": "_willFallback",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2438,
                      "src": "3419:13:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
                        "typeString": "function ()"
                      }
                    },
                    "id": 2443,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3419:15:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2444,
                  "nodeType": "ExpressionStatement",
                  "src": "3419:15:27"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 2446,
                          "name": "_implementation",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2425,
                          "src": "3450:15:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                            "typeString": "function () view returns (address)"
                          }
                        },
                        "id": 2447,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "3450:17:27",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2445,
                      "name": "_delegate",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2433,
                      "src": "3440:9:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 2448,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3440:28:27",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2449,
                  "nodeType": "ExpressionStatement",
                  "src": "3440:28:27"
                }
              ]
            },
            "documentation": {
              "id": 2439,
              "nodeType": "StructuredDocumentation",
              "src": "3292:88:27",
              "text": " @dev fallback implementation.\n Extracted to enable manual triggering."
            },
            "id": 2451,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_fallback",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 2440,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3401:2:27"
            },
            "returnParameters": {
              "id": 2441,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3413:0:27"
            },
            "scope": 2452,
            "src": "3383:90:27",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 2453,
        "src": "1558:1917:27"
      }
    ],
    "src": "1242:2234:27"
  },
  "compiler": {
    "name": "solc",
    "version": "0.6.12+commit.27d51765.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.5",
  "updatedAt": "2023-05-04T08:29:47.213Z",
  "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.",
    "kind": "dev",
    "methods": {},
    "title": "Proxy",
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  }
}