Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from OpenSeaProtocol/merge-upstream
Browse files Browse the repository at this point in the history
Merge upstream Readme and Script changes
  • Loading branch information
emo-eth authored Jan 20, 2023
2 parents 8112f89 + 65ecc03 commit 8be4dad
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 10 deletions.
43 changes: 39 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Operator Filter Registry

## **Note on Grace Period for Non-Ethereum Chains**
## **Note on Grace Period**

Currently, OpenSea only requires creator earnings enforcement on Ethereum Mainnet and Goerli for collections to be eligible for creator earnings. However, starting **January 2nd, 2023**, Opensea will begin validating creator earnings enforcement on all supported EVM chains.
Starting **January 2nd, 2023**, Opensea will begin validating creator fee enforcement for new collections on all supported EVM chains. After January 2nd, 2023, if OpenSea is unable to validate enforcement, OpenSea will make creator fees **optional** for that collection. Older collections will continue to have their fees enforced on OpenSea, **including on Ethereum Mainnet** (previously, enforcement was already required on Ethereum Mainnet).

You may read more on [OpenSea's Twitter](https://twitter.com/opensea/status/1600913295300792321).

## Introduction

Expand Down Expand Up @@ -32,6 +34,9 @@ While sometimes described as "on-chain," EIP-2981 only provides a method to dete

## Filtered addresses


Ownership of this list [has been transferred](https://etherscan.io/tx/0xf15e8ac08a333b2e4f884250ace94baccf7ba8908c119736d9cc8f063183a496/advanced#eventlog) to the [Creator Ownership Research Institute](https://corinstitute.co/) to administer. You may read more on [OpenSea's Twitter](https://twitter.com/opensea/status/1600913295300792321).

Entries in this list are added according to the following criteria:

- If the application most commonly used to interface with the contract gives buyers and sellers the ability to bypass creator earnings when a similar transaction for the same item would require creator earnings payment on OpenSea.io
Expand Down Expand Up @@ -67,8 +72,38 @@ Ethereum Mainnet
</tr>

<tr>
<td>SudoSwap LSSVMPairRouter</td>
<td>0x2b2e8cda09bba9660dca5cb6233787738ad68329</td>
<td>SudoSwap LSSVMPairEnumerableERC20</td>
<td>0xD42638863462d2F21bb7D4275d7637eE5d5541eB</td>
<td>Ethereum Mainnet</td>
</tr>

<tr>
<td>SudoSwap LSSVMPairEnumerableETH</td>
<td>0x08CE97807A81896E85841d74FB7E7B065ab3ef05</td>
<td>Ethereum Mainnet</td>
</tr>

<tr>
<td>SudoSwap LSSVMPairMissingEnumerableERC20</td>
<td>0x92de3a1511EF22AbCf3526c302159882a4755B22</td>
<td>Ethereum Mainnet</td>
</tr>

<tr>
<td>SudoSwap LSSVMPairMissingEnumerableETH</td>
<td>0xCd80C916B1194beB48aBF007D0b79a7238436D56</td>
<td>Ethereum Mainnet</td>
</tr>

<tr>
<td>SudoSwap LSSVMPairFactory</td>
<td>0xb16c1342E617A5B6E4b631EB114483FDB289c0A4</td>
<td>Ethereum Mainnet</td>
</tr>

<tr>
<td>NFTX NFTXMarketplaceZap</td>
<td>0x0fc584529a2aefa997697fafacba5831fac0c22d</td>
<td>Ethereum Mainnet</td>
</tr>

Expand Down
18 changes: 12 additions & 6 deletions script/ConfigureOwnedRegistrant.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ contract ConfigureOwnedRegistrant is ScriptBase {
setUp();
address registryAddress = vm.envAddress("REGISTRY_ADDRESS");
IOperatorFilterRegistry registry = IOperatorFilterRegistry(registryAddress);

vm.startBroadcast(deployer);
OwnedRegistrant registrant = OwnedRegistrant(vm.envAddress("REGISTRANT_ADDRESS"));
address add = vm.envAddress("NEW_FILTERED_ADDRESSES");
address remove = vm.envAddress("REMOVE_FILTERED_ADDRESSES");
registry.updateOperator(address(registrant), add, true);
registry.updateOperator(address(registrant), remove, false);
address[] memory add = vm.envAddress("NEW_FILTERED_ADDRESSES", ",");
address[] memory remove = vm.envAddress("REMOVE_FILTERED_ADDRESSES", ",");

string[] memory chains = vm.envString("CHAINS", ",");
for (uint256 i = 0; i < chains.length; i++) {
string memory chain = chains[i];
vm.createSelectFork(stdChains[chain].rpcUrl);
vm.startBroadcast(deployer);
registry.updateOperators(address(registrant), add, true);
registry.updateOperators(address(registrant), remove, false);
vm.stopBroadcast();
}
}
}

0 comments on commit 8be4dad

Please sign in to comment.