11import EventEmitter = require( "events" ) ;
22import { Seaport } from "@opensea/seaport-js" ;
3- import {
4- CROSS_CHAIN_SEAPORT_V1_6_ADDRESS ,
5- OPENSEA_CONDUIT_KEY ,
6- } from "@opensea/seaport-js/lib/constants" ;
3+ import { CROSS_CHAIN_SEAPORT_V1_6_ADDRESS } from "@opensea/seaport-js/lib/constants" ;
74import {
85 AdvancedOrder ,
96 ConsiderationInputItem ,
@@ -24,6 +21,8 @@ import {
2421import { OpenSeaAPI } from "./api/api" ;
2522import { CollectionOffer , Listing , NFT , Order } from "./api/types" ;
2623import {
24+ OPENSEA_CONDUIT_ADDRESS_2 ,
25+ OPENSEA_CONDUIT_KEY_2 ,
2726 INVERSE_BASIS_POINT ,
2827 ENGLISH_AUCTION_ZONE_MAINNETS ,
2928 ENGLISH_AUCTION_ZONE_TESTNETS ,
@@ -54,6 +53,7 @@ import {
5453 AssetWithTokenId ,
5554} from "./types" ;
5655import {
56+ getDefaultConduitKey ,
5757 getMaxOrderExpirationTimestamp ,
5858 hasErrorCode ,
5959 getAssetItemType ,
@@ -111,7 +111,10 @@ export class OpenSeaSDK {
111111
112112 // eslint-disable-next-line @typescript-eslint/no-explicit-any
113113 this . seaport_v1_6 = new Seaport ( this . _signerOrProvider as any , {
114- overrides : { defaultConduitKey : OPENSEA_CONDUIT_KEY } ,
114+ conduitKeyToConduit : {
115+ [ OPENSEA_CONDUIT_KEY_2 ] : OPENSEA_CONDUIT_ADDRESS_2 ,
116+ } ,
117+ overrides : { defaultConduitKey : getDefaultConduitKey ( this . chain ) } ,
115118 } ) ;
116119
117120 // Emit events
0 commit comments