From ee32a2a7446e403c88a3da26e673add5fa256a38 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 4 Jan 2024 12:04:52 -0800 Subject: [PATCH] remove deprecated goerli chain (#1346) * remove deprecated goerli chain * bump version * more --- developerDocs/quick-start.md | 2 +- package.json | 2 +- src/constants.ts | 3 --- src/types.ts | 2 -- src/utils/utils.ts | 3 --- test/utils/constants.ts | 2 +- 6 files changed, 3 insertions(+), 11 deletions(-) diff --git a/developerDocs/quick-start.md b/developerDocs/quick-start.md index 1328afccb..f7084cc7f 100644 --- a/developerDocs/quick-start.md +++ b/developerDocs/quick-start.md @@ -55,4 +55,4 @@ In a browser with web3 or an extension like [MetaMask](https://metamask.io/) or ## Testnets -For testnets, please use `Chain.Goerli` or `Chain.Sepolia`. Rinkeby was deprecated in 2022, and Goerli will be deprecated by January 2024. +For testnets, please use `Chain.Sepolia`. Rinkeby was deprecated in 2022 and Goerli in 2023. diff --git a/package.json b/package.json index 7ad297b30..7292991c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opensea-js", - "version": "7.0.6", + "version": "7.0.7", "description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data", "license": "MIT", "author": "OpenSea Developers", diff --git a/src/constants.ts b/src/constants.ts index ec38ac974..c8305b3d0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -15,15 +15,12 @@ export const ENGLISH_AUCTION_ZONE_TESTNETS = const SHARED_STOREFRONT_ADDRESS_MAINNET = "0x495f947276749ce646f68ac8c248420045cb7b5e"; -const SHARED_STOREFRONT_ADDRESS_GOERLI = - "0x804159144aefb1dc17b171afcefa5b33746c722f"; const SHARED_STOREFRONT_ADDRESS_POLYGON = "0x2953399124f0cbb46d2cbacd8a89cf0599974963"; const SHARED_STOREFRONT_ADDRESS_KLAYTN = "0x5bc519d852f7ca2c8cf2d095299d5bb2d13f02c9"; export const SHARED_STOREFRONT_ADDRESSES = [ SHARED_STOREFRONT_ADDRESS_MAINNET, - SHARED_STOREFRONT_ADDRESS_GOERLI, SHARED_STOREFRONT_ADDRESS_POLYGON, SHARED_STOREFRONT_ADDRESS_KLAYTN, ].map((address) => address.toLowerCase()); diff --git a/src/types.ts b/src/types.ts index 0efb4e5bf..8de8ac4a3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -124,8 +124,6 @@ export enum Chain { // Testnet Chains // ⚠️NOTE: When adding to this list, also add to the util function `isTestChain` - /** Goerli */ - Goerli = "goerli", /** Sepolia */ Sepolia = "sepolia", /** Polygon Testchain Mumbai */ diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 040893693..a0e69c5e5 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -174,8 +174,6 @@ export const getWETHAddress = (chain: Chain) => { return "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"; case Chain.Mumbai: return "0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa"; - case Chain.Goerli: - return "0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6"; case Chain.Sepolia: return "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14"; case Chain.Klaytn: @@ -257,7 +255,6 @@ export const basisPointsForFee = (fee: Fee): bigint => { */ export const isTestChain = (chain: Chain): boolean => { switch (chain) { - case Chain.Goerli: case Chain.Sepolia: case Chain.Mumbai: case Chain.Baobab: diff --git a/test/utils/constants.ts b/test/utils/constants.ts index 70e1f8c5d..70c5147e0 100644 --- a/test/utils/constants.ts +++ b/test/utils/constants.ts @@ -31,7 +31,7 @@ export const mainAPI = new OpenSeaAPI( export const testnetAPI = new OpenSeaAPI( { - chain: Chain.Goerli, + chain: Chain.Sepolia, }, process.env.DEBUG ? console.log : undefined, );