@tradeport/sui-trading-sdk 0.4.8 → 0.4.9
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 +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/methods/buyListings/addBuyListingTxs.ts +8 -1
- package/src/methods/claimNfts/claimNfts.ts +4 -0
- package/src/methods/transferNfts/addTransferNftTx.ts +2 -1
- package/src/methods/unlistListings/addUnlistListingTxs.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3736,7 +3736,14 @@ async function addBluemoveKioskBuyTx({
|
|
|
3736
3736
|
transferRequest
|
|
3737
3737
|
});
|
|
3738
3738
|
}
|
|
3739
|
-
async function addSouffl3BuyTx({
|
|
3739
|
+
async function addSouffl3BuyTx({
|
|
3740
|
+
tx,
|
|
3741
|
+
nftType,
|
|
3742
|
+
price,
|
|
3743
|
+
listingNonce,
|
|
3744
|
+
collectionId,
|
|
3745
|
+
transferPolicies
|
|
3746
|
+
}) {
|
|
3740
3747
|
const [coin] = splitCoins({ tx, amounts: [tx.pure.u64(price)] });
|
|
3741
3748
|
const transferPolicyId = getNativeKioskTransferPolicies(transferPolicies)?.at(0)?.id;
|
|
3742
3749
|
if (transferPolicyId && !SOUFFL3_GENERIC_BUY_METHOD_COLLECTIONS?.includes(collectionId)) {
|
|
@@ -4656,6 +4663,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
|
|
|
4656
4663
|
});
|
|
4657
4664
|
}
|
|
4658
4665
|
});
|
|
4666
|
+
globalKioskTx = existingKioskTx;
|
|
4659
4667
|
continue;
|
|
4660
4668
|
}
|
|
4661
4669
|
if (useOldClaim) {
|
|
@@ -4691,6 +4699,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
|
|
|
4691
4699
|
}
|
|
4692
4700
|
});
|
|
4693
4701
|
}
|
|
4702
|
+
globalKioskTx = existingKioskTx;
|
|
4694
4703
|
continue;
|
|
4695
4704
|
}
|
|
4696
4705
|
if (nft?.chain_state?.claimable_reason === "offer-transfer") {
|