Skip to content

Commit

Permalink
feat: adds Base and Base Goerli Testnet to NFT Swap SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrjj committed Jul 31, 2023
1 parent 70a6b95 commit b1e709e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sdk/v4/NftSwapV4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import { DIRECTION_MAPPING, OrderStatusV4, TradeDirection } from './enums';
import { CONTRACT_ORDER_VALIDATOR } from './properties';
import { ETH_ADDRESS_AS_ERC20 } from './constants';
import { ZERO_AMOUNT } from '../../utils/eth';
import { arrayify } from '@ethersproject/bytes';

export enum SupportedChainIdsV4 {
Mainnet = 1,
Expand All @@ -85,7 +84,9 @@ export enum SupportedChainIdsV4 {
Fantom = 250,
Celo = 42220,
Avalance = 43114,
// Arbitrum = 42161, // soon
Arbitrum = 42161,
Base = 8453,
BaseGoerli = 84531,
}

export const SupportedChainsForV4OrderbookStatusMonitoring = [
Expand Down
8 changes: 8 additions & 0 deletions src/sdk/v4/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,13 @@
"43114": {
"exchange": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"wrappedNativeToken": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"
},
"8453": {
"exchange": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"wrappedNativeToken": "0x4200000000000000000000000000000000000006"
},
"84531": {
"exchange": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"wrappedNativeToken": "0x4200000000000000000000000000000000000006"
}
}

0 comments on commit b1e709e

Please sign in to comment.