From 42dbcdec0a6c747133b043777facca8e3b04e3c1 Mon Sep 17 00:00:00 2001 From: iain nash Date: Thu, 20 Jul 2023 15:05:14 -0400 Subject: [PATCH] remove deploy fee registry --- script/DeployFeeRegistry.s.sol | 35 ---------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 script/DeployFeeRegistry.s.sol diff --git a/script/DeployFeeRegistry.s.sol b/script/DeployFeeRegistry.s.sol deleted file mode 100644 index 7b042af..0000000 --- a/script/DeployFeeRegistry.s.sol +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.13; - -import "forge-std/console2.sol"; - -import {ZoraDropsDeployBase} from "./ZoraDropsDeployBase.sol"; -import {IOperatorFilterRegistry} from "../src/interfaces/IOperatorFilterRegistry.sol"; -import {OwnedSubscriptionManager} from "../src/filter/OwnedSubscriptionManager.sol"; -import {ChainConfig} from '../src/DeploymentConfig.sol'; - -contract DeployFeeRegistry is ZoraDropsDeployBase { - address constant IMMUTABLE_OPENSEA_FEE_REGISTRY = address(0x000000000000AAeB6D7670E522A718067333cd4E); - - function setupFeeRegistry(address deployer) public returns (OwnedSubscriptionManager) { - OwnedSubscriptionManager ownedSubscriptionManager = new OwnedSubscriptionManager(deployer); - address[] memory blockedOperatorsList = new address[](0); - IOperatorFilterRegistry operatorFilterRegistry = IOperatorFilterRegistry(IMMUTABLE_OPENSEA_FEE_REGISTRY); - operatorFilterRegistry.updateOperators(address(ownedSubscriptionManager), blockedOperatorsList, true); - return ownedSubscriptionManager; - } - - function run() public { - address subscriptionOwner = getChainConfig().subscriptionMarketFilterOwner; - console2.log("Setup operators ---"); - - vm.startBroadcast(); - - // Add opensea contracts to test - OwnedSubscriptionManager ownedSubscriptionManager = setupFeeRegistry(subscriptionOwner); - - vm.stopBroadcast(); - - console2.log(address(ownedSubscriptionManager)); - } -}