Skip to content

Commit ee32a2a

Browse files
authored
remove deprecated goerli chain (#1346)
* remove deprecated goerli chain * bump version * more
1 parent 8617ca6 commit ee32a2a

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

developerDocs/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ In a browser with web3 or an extension like [MetaMask](https://metamask.io/) or
5555

5656
## Testnets
5757

58-
For testnets, please use `Chain.Goerli` or `Chain.Sepolia`. Rinkeby was deprecated in 2022, and Goerli will be deprecated by January 2024.
58+
For testnets, please use `Chain.Sepolia`. Rinkeby was deprecated in 2022 and Goerli in 2023.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensea-js",
3-
"version": "7.0.6",
3+
"version": "7.0.7",
44
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",
55
"license": "MIT",
66
"author": "OpenSea Developers",

src/constants.ts

-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ export const ENGLISH_AUCTION_ZONE_TESTNETS =
1515

1616
const SHARED_STOREFRONT_ADDRESS_MAINNET =
1717
"0x495f947276749ce646f68ac8c248420045cb7b5e";
18-
const SHARED_STOREFRONT_ADDRESS_GOERLI =
19-
"0x804159144aefb1dc17b171afcefa5b33746c722f";
2018
const SHARED_STOREFRONT_ADDRESS_POLYGON =
2119
"0x2953399124f0cbb46d2cbacd8a89cf0599974963";
2220
const SHARED_STOREFRONT_ADDRESS_KLAYTN =
2321
"0x5bc519d852f7ca2c8cf2d095299d5bb2d13f02c9";
2422
export const SHARED_STOREFRONT_ADDRESSES = [
2523
SHARED_STOREFRONT_ADDRESS_MAINNET,
26-
SHARED_STOREFRONT_ADDRESS_GOERLI,
2724
SHARED_STOREFRONT_ADDRESS_POLYGON,
2825
SHARED_STOREFRONT_ADDRESS_KLAYTN,
2926
].map((address) => address.toLowerCase());

src/types.ts

-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ export enum Chain {
124124

125125
// Testnet Chains
126126
// ⚠️NOTE: When adding to this list, also add to the util function `isTestChain`
127-
/** Goerli */
128-
Goerli = "goerli",
129127
/** Sepolia */
130128
Sepolia = "sepolia",
131129
/** Polygon Testchain Mumbai */

src/utils/utils.ts

-3
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ export const getWETHAddress = (chain: Chain) => {
174174
return "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619";
175175
case Chain.Mumbai:
176176
return "0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa";
177-
case Chain.Goerli:
178-
return "0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6";
179177
case Chain.Sepolia:
180178
return "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14";
181179
case Chain.Klaytn:
@@ -257,7 +255,6 @@ export const basisPointsForFee = (fee: Fee): bigint => {
257255
*/
258256
export const isTestChain = (chain: Chain): boolean => {
259257
switch (chain) {
260-
case Chain.Goerli:
261258
case Chain.Sepolia:
262259
case Chain.Mumbai:
263260
case Chain.Baobab:

test/utils/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const mainAPI = new OpenSeaAPI(
3131

3232
export const testnetAPI = new OpenSeaAPI(
3333
{
34-
chain: Chain.Goerli,
34+
chain: Chain.Sepolia,
3535
},
3636
process.env.DEBUG ? console.log : undefined,
3737
);

0 commit comments

Comments
 (0)