Skip to content

Commit

Permalink
Release ApeChain and Flow testnet (#1618)
Browse files Browse the repository at this point in the history
* Release Flow testnet

* cleanup

* add ape
  • Loading branch information
sraturi authored Feb 13, 2025
1 parent 7c854f2 commit a842bf8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
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.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",
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -154,6 +154,8 @@ export enum Chain {
SeiTestnet = "sei_testnet",
/** B3 Sepolia */
B3Sepolia = "b3_sepolia",
/** Flow Testnet */
FlowTestnet = "flow_testnet",
}

/**
Expand Down
9 changes: 9 additions & 0 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
Expand Down Expand Up @@ -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}`);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a842bf8

Please sign in to comment.