diff --git a/package.json b/package.json index 879f9f897..bef1d9590 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opensea-js", - "version": "7.1.15", + "version": "7.1.16", "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/types.ts b/src/types.ts index 52aa7207c..10dfbf643 100644 --- a/src/types.ts +++ b/src/types.ts @@ -127,7 +127,7 @@ export enum Chain { B3 = "b3", /** Bera Chain */ BeraChain = "bera_chain", - + ApeChain = "ape_chain", // Testnet Chains // ⚠️NOTE: When adding to this list, also add to the util function `isTestChain` /** Sepolia */ @@ -154,6 +154,8 @@ export enum Chain { SeiTestnet = "sei_testnet", /** B3 Sepolia */ B3Sepolia = "b3_sepolia", + /** Flow Testnet */ + FlowTestnet = "flow_testnet", } /** diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 2d7669943..1e965a385 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -218,6 +218,10 @@ export const getChainId = (chain: Chain) => { return "1993"; case Chain.BeraChain: return "80094"; + case Chain.FlowTestnet: + return "545"; + case Chain.ApeChain: + return "33139"; default: throw new Error(`Unknown chainId for ${chain}`); } @@ -267,6 +271,10 @@ export const getWETHAddress = (chain: Chain) => { return "0xe30fedd158a2e3b13e9badaeabafc5516e95e8c7"; case Chain.SeiTestnet: return "0x3921ea6cf927be80211bb57f19830700285b0ada"; + case Chain.FlowTestnet: + return "0x23b1864b73c6E7Cd6D90bDFa3E62B159eBDdbAb3"; + case Chain.ApeChain: + return "0x48b62137edfa95a428d35c09e44256a739f6b557"; default: throw new Error(`Unknown WETH address for ${chain}`); } @@ -332,6 +340,7 @@ export const isTestChain = (chain: Chain): boolean => { case Chain.ZoraSepolia: case Chain.SeiTestnet: case Chain.B3Sepolia: + case Chain.FlowTestnet: return true; default: return false;