Skip to content

Commit

Permalink
add blast chains (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 5, 2024
1 parent 5874bd1 commit 476854e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 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.3",
"version": "7.1.4",
"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
8 changes: 6 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ export enum Chain {
Polygon = "matic",
/** Klaytn */
Klaytn = "klaytn",
/** Base L2 */
/** Base */
Base = "base",
/** Blast */
Blast = "blast",
/** Binance Smart Chain */
BNB = "bsc",
/** Arbitrum */
Expand All @@ -130,8 +132,10 @@ export enum Chain {
Mumbai = "mumbai",
/** Klaytn Baobab */
Baobab = "baobab",
/** Base L2 Testnet */
/** Base Testnet */
BaseSepolia = "base_sepolia",
/** Blast Testnet */
BlastSepolia = "blast_sepolia",
/** Binance Smart Chain Testnet */
BNBTestnet = "bsctestnet",
/** Arbitrum Testnet */
Expand Down
7 changes: 6 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ export const getWETHAddress = (chain: Chain) => {
return "0x722e8bdd2ce80a4422e880164f2079488e115365";
case Chain.ArbitrumSepolia:
return "0x980b62da83eff3d4576c647993b0c1d7faf17c73";
// OP Chains have weth at the same address
case Chain.Blast:
return "0x4300000000000000000000000000000000000004";
case Chain.BlastSepolia:
return "0x4200000000000000000000000000000000000023";
// OP Chains have WETH at the same address
case Chain.Base:
case Chain.BaseSepolia:
case Chain.Optimism:
Expand Down Expand Up @@ -261,6 +265,7 @@ export const isTestChain = (chain: Chain): boolean => {
case Chain.Mumbai:
case Chain.Baobab:
case Chain.BaseSepolia:
case Chain.BlastSepolia:
case Chain.BNBTestnet:
case Chain.ArbitrumSepolia:
case Chain.Fuji:
Expand Down

0 comments on commit 476854e

Please sign in to comment.