{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/gmp-sdk/upgradable/FinalProxy.sol",
    "Parent Contracts": [
        "contracts/gmp-sdk/interfaces/IFinalProxy.sol",
        "contracts/gmp-sdk/upgradable/Proxy.sol",
        "contracts/gmp-sdk/upgradable/BaseProxy.sol",
        "contracts/gmp-sdk/interfaces/IProxy.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "keccak256(bytes)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "contract FinalProxy is Proxy, IFinalProxy {\n    bytes32 internal constant FINAL_IMPLEMENTATION_SALT = keccak256('final-implementation');\n\n    /**\n     * @dev Constructs a FinalProxy contract with a given implementation address, owner, and setup parameters.\n     * @param implementationAddress The address of the implementation contract\n     * @param owner The owner of the proxy contract\n     * @param setupParams Parameters to setup the implementation contract\n     */\n    constructor(\n        address implementationAddress,\n        address owner,\n        bytes memory setupParams\n    ) Proxy(implementationAddress, owner, setupParams) {}\n\n    /**\n     * @dev The final implementation address takes less gas to compute than reading an address from storage. That makes FinalProxy\n     * more efficient when making delegatecalls to the implementation (assuming it is the final implementation).\n     * @return implementation_ The address of the final implementation if it exists, otherwise the current implementation\n     */\n    function implementation() public view override(BaseProxy, IProxy) returns (address implementation_) {\n        implementation_ = _finalImplementation();\n        if (implementation_ == address(0)) {\n            implementation_ = super.implementation();\n        }\n    }\n\n    /**\n     * @dev Checks if the final implementation has been deployed.\n     * @return bool True if the final implementation exists, false otherwise\n     */\n    function isFinal() public view returns (bool) {\n        return _finalImplementation() != address(0);\n    }\n\n    /**\n     * @dev Computes the final implementation address.\n     * @return implementation_ The address of the final implementation, or the zero address if the final implementation\n     * has not yet been deployed\n     */\n    function _finalImplementation() internal view virtual returns (address implementation_) {\n        /**\n         * @dev Computing the address is cheaper than using storage\n         */\n        implementation_ = Create3.deployedAddress(address(this), FINAL_IMPLEMENTATION_SALT);\n\n        if (implementation_.code.length == 0) implementation_ = address(0);\n    }\n\n    /**\n     * @dev Upgrades the proxy to a final implementation.\n     * @param bytecode The bytecode of the final implementation contract\n     * @param setupParams The parameters to setup the final implementation contract\n     * @return finalImplementation_ The address of the final implementation contract\n     */\n    function finalUpgrade(bytes memory bytecode, bytes calldata setupParams) public returns (address finalImplementation_) {\n        address owner;\n        assembly {\n            owner := sload(_OWNER_SLOT)\n        }\n        if (msg.sender != owner) revert NotOwner();\n\n        finalImplementation_ = Create3.deploy(FINAL_IMPLEMENTATION_SALT, bytecode);\n        if (setupParams.length != 0) {\n            (bool success, ) = finalImplementation_.delegatecall(abi.encodeWithSelector(BaseProxy.setup.selector, setupParams));\n            if (!success) revert SetupFailed();\n        }\n    }\n}"
}