@tradeport/sui-trading-sdk 0.1.37 → 0.1.39
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tradeport/sui-trading-sdk
|
|
2
2
|
|
|
3
|
+
## 0.1.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c43974b: Converting to personal kiosk in claim
|
|
8
|
+
|
|
9
|
+
## 0.1.38
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e6a7b5d: Place collection bids now using nft type from first nft if there
|
|
14
|
+
|
|
3
15
|
## 0.1.37
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -3061,6 +3061,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
|
|
|
3061
3061
|
tx,
|
|
3062
3062
|
kioskOwner: txData?.claimer,
|
|
3063
3063
|
kiosk: txData?.sellerKiosk,
|
|
3064
|
+
shouldConvertToPersonalKiosk: true,
|
|
3064
3065
|
async runCommands(kioskTx) {
|
|
3065
3066
|
await addClaimAcceptedBidNftWithPurchaseCapTx({ ...txData, kioskTx });
|
|
3066
3067
|
}
|
|
@@ -3719,13 +3720,7 @@ async function addTradePortPlaceCollectionBidTxHandler(txData) {
|
|
|
3719
3720
|
var placeCollectionBids = async ({ collections, walletAddress }, context) => {
|
|
3720
3721
|
const res = await gqlChainRequest({
|
|
3721
3722
|
chain: "sui",
|
|
3722
|
-
query:
|
|
3723
|
-
(collection) => collection.id === "fa58ae52-b18d-4179-a2d4-c2471ede5f14" || // S-Card
|
|
3724
|
-
collection.id === "ca37bbb2-4398-46cb-b467-8a834d2d2612" || // S-Card mint ticket
|
|
3725
|
-
collection.id === "c8e19183-3a9e-4312-939f-c63a1416e344" || // Panzerdogs
|
|
3726
|
-
collection.id === "819eabe2-1565-4c3a-a9f6-1b5fca48e09a"
|
|
3727
|
-
// Panzerdog Tanks
|
|
3728
|
-
) ? fetchCollectionsByIdWithOneNft : fetchCollectionsById,
|
|
3723
|
+
query: fetchCollectionsByIdWithOneNft,
|
|
3729
3724
|
variables: { collectionIds: collections.map((collection) => collection.id) }
|
|
3730
3725
|
});
|
|
3731
3726
|
if (res?.collections?.length === 0) {
|
|
@@ -3737,13 +3732,7 @@ var placeCollectionBids = async ({ collections, walletAddress }, context) => {
|
|
|
3737
3732
|
const collectionsForTracking = [];
|
|
3738
3733
|
const tx = new import_transactions14.Transaction();
|
|
3739
3734
|
for (const collection of res.collections) {
|
|
3740
|
-
const nftType =
|
|
3741
|
-
(collection2) => collection2.id === "fa58ae52-b18d-4179-a2d4-c2471ede5f14" || // S-Card
|
|
3742
|
-
collection2.id === "ca37bbb2-4398-46cb-b467-8a834d2d2612" || // S-Card mint ticket
|
|
3743
|
-
collection2.id === "c8e19183-3a9e-4312-939f-c63a1416e344" || // Panzerdogs
|
|
3744
|
-
collection2.id === "819eabe2-1565-4c3a-a9f6-1b5fca48e09a"
|
|
3745
|
-
// Panzerdog Tanks
|
|
3746
|
-
) ? getNftTypeFromNft(collection?.nfts?.[0]) : collection.id === "07231735-96de-4710-8e11-52c61a482578" ? "0x034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::factory::PrimeMachin" : collection?.contract?.properties?.nft_type;
|
|
3735
|
+
const nftType = collection.id === "07231735-96de-4710-8e11-52c61a482578" ? "0x034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::factory::PrimeMachin" : getNftTypeFromNft(collection?.nfts?.[0]);
|
|
3747
3736
|
const sharedObjects = await getSharedObjects(nftType);
|
|
3748
3737
|
const txData = {
|
|
3749
3738
|
tx,
|