@tradeport/sui-trading-sdk 0.1.56 → 0.1.57
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 +6 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +14 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -160,6 +160,9 @@ declare class SuiTradingClient {
|
|
|
160
160
|
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<Transaction>;
|
|
161
161
|
cancelNftTransfers({ nftIds, walletAddress }: CancelNftTransfers): Promise<Transaction>;
|
|
162
162
|
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<Transaction>;
|
|
163
|
+
shareAllKiosks({ kioskIds }: {
|
|
164
|
+
kioskIds: string[];
|
|
165
|
+
}): Promise<Transaction>;
|
|
163
166
|
createLongLocks(args: CreateLongLocks): Promise<Transaction>;
|
|
164
167
|
createShortLocks(args: CreateShortLocks): Promise<Transaction>;
|
|
165
168
|
cancelLocks(args: CancelLocks): Promise<Transaction>;
|
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,9 @@ declare class SuiTradingClient {
|
|
|
160
160
|
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<Transaction>;
|
|
161
161
|
cancelNftTransfers({ nftIds, walletAddress }: CancelNftTransfers): Promise<Transaction>;
|
|
162
162
|
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<Transaction>;
|
|
163
|
+
shareAllKiosks({ kioskIds }: {
|
|
164
|
+
kioskIds: string[];
|
|
165
|
+
}): Promise<Transaction>;
|
|
163
166
|
createLongLocks(args: CreateLongLocks): Promise<Transaction>;
|
|
164
167
|
createShortLocks(args: CreateShortLocks): Promise<Transaction>;
|
|
165
168
|
cancelLocks(args: CancelLocks): Promise<Transaction>;
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,9 @@ __export(src_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(src_exports);
|
|
26
26
|
|
|
27
|
+
// src/SuiTradingClient.ts
|
|
28
|
+
var import_transactions21 = require("@mysten/sui/transactions");
|
|
29
|
+
|
|
27
30
|
// src/apiClients/graphqlClient.ts
|
|
28
31
|
var import_graphql_request = require("graphql-request");
|
|
29
32
|
var graphqlClient = new import_graphql_request.GraphQLClient("https://api.indexer.xyz/graphql");
|
|
@@ -4757,6 +4760,17 @@ var SuiTradingClient = class {
|
|
|
4757
4760
|
return claimNfts({ nftIds, walletAddress }, context);
|
|
4758
4761
|
}
|
|
4759
4762
|
}
|
|
4763
|
+
async shareAllKiosks({ kioskIds }) {
|
|
4764
|
+
const tx = new import_transactions21.Transaction();
|
|
4765
|
+
for (const kioskId of kioskIds) {
|
|
4766
|
+
tx.moveCall({
|
|
4767
|
+
target: `0x2::transfer::public_share_object`,
|
|
4768
|
+
typeArguments: ["0x2::kiosk::Kiosk"],
|
|
4769
|
+
arguments: [tx?.object(kioskId)]
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
return import_transactions21.Transaction.from(tx);
|
|
4773
|
+
}
|
|
4760
4774
|
async createLongLocks(args) {
|
|
4761
4775
|
return createLongLocks(args);
|
|
4762
4776
|
}
|