@tradeport/sui-trading-sdk 0.1.57 → 0.1.58
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 +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +1 -14
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -160,9 +160,6 @@ 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>;
|
|
166
163
|
createLongLocks(args: CreateLongLocks): Promise<Transaction>;
|
|
167
164
|
createShortLocks(args: CreateShortLocks): Promise<Transaction>;
|
|
168
165
|
cancelLocks(args: CancelLocks): Promise<Transaction>;
|
package/dist/index.d.ts
CHANGED
|
@@ -160,9 +160,6 @@ 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>;
|
|
166
163
|
createLongLocks(args: CreateLongLocks): Promise<Transaction>;
|
|
167
164
|
createShortLocks(args: CreateShortLocks): Promise<Transaction>;
|
|
168
165
|
cancelLocks(args: CancelLocks): Promise<Transaction>;
|
package/dist/index.js
CHANGED
|
@@ -24,9 +24,6 @@ __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
|
-
|
|
30
27
|
// src/apiClients/graphqlClient.ts
|
|
31
28
|
var import_graphql_request = require("graphql-request");
|
|
32
29
|
var graphqlClient = new import_graphql_request.GraphQLClient("https://api.indexer.xyz/graphql");
|
|
@@ -4760,17 +4757,6 @@ var SuiTradingClient = class {
|
|
|
4760
4757
|
return claimNfts({ nftIds, walletAddress }, context);
|
|
4761
4758
|
}
|
|
4762
4759
|
}
|
|
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
|
-
}
|
|
4774
4760
|
async createLongLocks(args) {
|
|
4775
4761
|
return createLongLocks(args);
|
|
4776
4762
|
}
|