Skip to content

Instantly share code, notes, and snippets.

@0xPhaze
0xPhaze / StaticProxy.sol
Created September 11, 2022 21:14
Solidity StaticProxy (replaces PausableUpgradeable)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {OwnableUDS} from "UDS/auth/OwnableUDS.sol";
import {UUPSUpgrade} from "UDS/proxy/UUPSUpgrade.sol";
import {ERC1967_PROXY_STORAGE_SLOT} from "UDS/proxy/ERC1967Proxy.sol";
// ------------- storage
bytes32 constant DIAMOND_STORAGE_STATIC_PROXY = keccak256("diamond.storage.static.proxy");