Skip to content

Commit

Permalink
Release B3 (#1574)
Browse files Browse the repository at this point in the history
* Release B3

* Release B3

* Release B3
  • Loading branch information
sraturi authored Oct 24, 2024
1 parent 3d483a2 commit 5e4554b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 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.13",
"version": "7.1.14",
"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
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export enum Chain {
Zora = "zora",
/** Sei */
Sei = "sei",
B3 = "b3",

// Testnet Chains
// ⚠️NOTE: When adding to this list, also add to the util function `isTestChain`
Expand All @@ -148,6 +149,7 @@ export enum Chain {
ZoraSepolia = "zora_sepolia",
/** Sei Testnet */
SeiTestnet = "sei_testnet",
B3_Sepolia = "b3_sepolia",
}

/**
Expand Down
13 changes: 11 additions & 2 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
} from "@opensea/seaport-js/lib/constants";
import { ethers, FixedNumber } from "ethers";
import {
FIXED_NUMBER_100,
MAX_EXPIRATION_MONTHS,
SHARED_STOREFRONT_LAZY_MINT_ADAPTER_CROSS_CHAIN_ADDRESS,
SHARED_STOREFRONT_ADDRESSES,
FIXED_NUMBER_100,
SHARED_STOREFRONT_LAZY_MINT_ADAPTER_CROSS_CHAIN_ADDRESS,
} from "../constants";
import {
Chain,
Expand Down Expand Up @@ -212,6 +212,10 @@ export const getChainId = (chain: Chain) => {
return "1329";
case Chain.SeiTestnet:
return "1328";
case Chain.B3:
return "8333";
case Chain.B3_Sepolia:
return "1993";
default:
throw new Error(`Unknown chainId for ${chain}`);
}
Expand Down Expand Up @@ -257,6 +261,10 @@ export const getWETHAddress = (chain: Chain) => {
return "0xe30fedd158a2e3b13e9badaeabafc5516e95e8c7";
case Chain.SeiTestnet:
return "0x3921ea6cf927be80211bb57f19830700285b0ada";
case Chain.B3:
return "0x4200000000000000000000000000000000000006";
case Chain.B3_Sepolia:
return "0x4200000000000000000000000000000000000006";
default:
throw new Error(`Unknown WETH address for ${chain}`);
}
Expand Down Expand Up @@ -321,6 +329,7 @@ export const isTestChain = (chain: Chain): boolean => {
case Chain.SolanaDevnet:
case Chain.ZoraSepolia:
case Chain.SeiTestnet:
case Chain.B3_Sepolia:
return true;
default:
return false;
Expand Down

0 comments on commit 5e4554b

Please sign in to comment.