Skip to content

Commit

Permalink
remove deprecated goerli chain (#1346)
Browse files Browse the repository at this point in the history
* remove deprecated goerli chain

* bump version

* more
  • Loading branch information
ryanio authored Jan 4, 2024
1 parent 8617ca6 commit ee32a2a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion developerDocs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 0 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 0 additions & 3 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion test/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

0 comments on commit ee32a2a

Please sign in to comment.