@tradeport/sui-trading-sdk 0.4.8 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -148,7 +148,8 @@ var TRADEPORT_KIOSK_BIDDING_ESCROW_KIOSK = "0x151fbe627d3f8de855f424c879ea2176d8
148
148
  var TRADEPORT_KIOSK_BID_NONCE_TYPE = "0xec175e537be9e48f75fa6929291de6454d2502f1091feb22c0d26a22821bbf28::kiosk_biddings::Bid";
149
149
  var TRADEPORT_PRICE_LOCK_PACKAGE = "0x3cb532a2548290780a3d70ad6f4f06abc5bebb75ec6f8dd0197d4d2b2860c5d8";
150
150
  var TRADEPORT_PRICE_LOCK_STORE = "0x4b705de46a79b29276baf45009bc7d6f70cc0f1407f0c9e03cac5729c0c47946";
151
- var TRADEPORT_MULTI_BID_PACKAGE = "0x53134eb544c5a0b5085e99efaf7eab13b28ad123de35d61f941f8c8c40b72033";
151
+ var TRADEPORT_MULTI_BID_PACKAGE = "0x6058c583a0c0c893006036cad0d4f5399479c7e140747cb703457aee8b158e9f";
152
+ var TRADEPORT_MULTI_BID_PACKAGE_ORIGINAL = "0x53134eb544c5a0b5085e99efaf7eab13b28ad123de35d61f941f8c8c40b72033";
152
153
  var TRADEPORT_MULTI_BID_STORE = "0x8aaed7e884343fb8b222c721d02eaac2c6ae2abbb4ddcdf16cb55cf8754ee860";
153
154
  var COLLECTION_IDS_WITH_ZERO_COMMISSION = [
154
155
  ""
@@ -1330,7 +1331,7 @@ var isSingleBid = (bidType) => {
1330
1331
  if (!bidType.startsWith("0x")) {
1331
1332
  bidType = `0x${bidType}`;
1332
1333
  }
1333
- return bidType === `${TRADEPORT_MULTI_BID_PACKAGE}::tradeport_biddings::SingleBid`;
1334
+ return bidType === `${TRADEPORT_MULTI_BID_PACKAGE_ORIGINAL}::tradeport_biddings::SingleBid`;
1334
1335
  };
1335
1336
 
1336
1337
  // src/graphql/queries/fetchKiosksByOwner.ts
@@ -3736,7 +3737,14 @@ async function addBluemoveKioskBuyTx({
3736
3737
  transferRequest
3737
3738
  });
3738
3739
  }
3739
- async function addSouffl3BuyTx({ tx, nftType, price, listingNonce, collectionId, transferPolicies }) {
3740
+ async function addSouffl3BuyTx({
3741
+ tx,
3742
+ nftType,
3743
+ price,
3744
+ listingNonce,
3745
+ collectionId,
3746
+ transferPolicies
3747
+ }) {
3740
3748
  const [coin] = splitCoins({ tx, amounts: [tx.pure.u64(price)] });
3741
3749
  const transferPolicyId = getNativeKioskTransferPolicies(transferPolicies)?.at(0)?.id;
3742
3750
  if (transferPolicyId && !SOUFFL3_GENERIC_BUY_METHOD_COLLECTIONS?.includes(collectionId)) {
@@ -4656,6 +4664,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4656
4664
  });
4657
4665
  }
4658
4666
  });
4667
+ globalKioskTx = existingKioskTx;
4659
4668
  continue;
4660
4669
  }
4661
4670
  if (useOldClaim) {
@@ -4691,6 +4700,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4691
4700
  }
4692
4701
  });
4693
4702
  }
4703
+ globalKioskTx = existingKioskTx;
4694
4704
  continue;
4695
4705
  }
4696
4706
  if (nft?.chain_state?.claimable_reason === "offer-transfer") {