@tradeport/sui-trading-sdk 0.1.68 → 0.1.69
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +304 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +304 -117
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +20 -0
- package/src/graphql/queries/fetchKiosksByOwner.ts +1 -0
- package/src/graphql/queries/fetchNftsByKioskId.ts +16 -0
- package/src/graphql/queries/fetchWalletKiosks.ts +1 -0
- package/src/helpers/kiosk/assertNftInSharedKiosk.ts +31 -0
- package/src/helpers/kiosk/kioskTxWrapper.ts +11 -1
- package/src/helpers/originByte/getOBKiosk.ts +5 -16
- package/src/methods/acceptCollectionBid/addAcceptCollectionBIdTxs.ts +11 -0
- package/src/methods/acceptNftBids/addAcceptNftBidTxs.ts +8 -0
- package/src/methods/buyListings/addBuyListingTxs.ts +14 -0
- package/src/methods/buyListings/buyListings.ts +2 -0
- package/src/methods/claimNfts/addClaimNftsTxs.ts +0 -2
- package/src/methods/listNfts/addListTxs.ts +9 -0
- package/src/methods/migrateNftsFromUnsharedToSharedKiosks/migrateNftsFromUnsharedToSharedKiosks.ts +139 -0
- package/src/methods/relistNft/relistNft.ts +1 -0
- package/src/methods/transferNfts/addTransferNftTx.ts +7 -0
- package/src/methods/transferNfts/transferNfts.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -106,6 +106,10 @@ type ListNfts = {
|
|
|
106
106
|
walletAddress: string;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
+
type MigrateNftsFromUnsharedToSharedKiosks = {
|
|
110
|
+
walletAddress: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
109
113
|
type PlaceCollectionBid = {
|
|
110
114
|
collectionId: string;
|
|
111
115
|
bidAmountInMist: number;
|
|
@@ -154,6 +158,7 @@ declare class SuiTradingClient {
|
|
|
154
158
|
private readonly apiKey;
|
|
155
159
|
private readonly suiClient;
|
|
156
160
|
private readonly kioskClient;
|
|
161
|
+
private readonly allowedApiUsersForUnsharedKiosksMigration;
|
|
157
162
|
constructor({ apiUser, apiKey, suiNodeUrl }: ApiConfig);
|
|
158
163
|
buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
|
|
159
164
|
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
@@ -176,6 +181,7 @@ declare class SuiTradingClient {
|
|
|
176
181
|
buyAndExerciseLongLocks(args: BuyAndExerciseLongLocks): Promise<Transaction>;
|
|
177
182
|
buyAndExerciseShortLocks(args: BuyAndExerciseShortLocks): Promise<Transaction>;
|
|
178
183
|
withdrawProfitsFromKiosks(args: WithdrawProfitsFromKiosks): Promise<Transaction>;
|
|
184
|
+
migrateNftsFromUnsharedToSharedKiosks(args: MigrateNftsFromUnsharedToSharedKiosks): Promise<Transaction>;
|
|
179
185
|
}
|
|
180
186
|
|
|
181
187
|
export { SuiTradingClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ type ListNfts = {
|
|
|
106
106
|
walletAddress: string;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
+
type MigrateNftsFromUnsharedToSharedKiosks = {
|
|
110
|
+
walletAddress: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
109
113
|
type PlaceCollectionBid = {
|
|
110
114
|
collectionId: string;
|
|
111
115
|
bidAmountInMist: number;
|
|
@@ -154,6 +158,7 @@ declare class SuiTradingClient {
|
|
|
154
158
|
private readonly apiKey;
|
|
155
159
|
private readonly suiClient;
|
|
156
160
|
private readonly kioskClient;
|
|
161
|
+
private readonly allowedApiUsersForUnsharedKiosksMigration;
|
|
157
162
|
constructor({ apiUser, apiKey, suiNodeUrl }: ApiConfig);
|
|
158
163
|
buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
|
|
159
164
|
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
@@ -176,6 +181,7 @@ declare class SuiTradingClient {
|
|
|
176
181
|
buyAndExerciseLongLocks(args: BuyAndExerciseLongLocks): Promise<Transaction>;
|
|
177
182
|
buyAndExerciseShortLocks(args: BuyAndExerciseShortLocks): Promise<Transaction>;
|
|
178
183
|
withdrawProfitsFromKiosks(args: WithdrawProfitsFromKiosks): Promise<Transaction>;
|
|
184
|
+
migrateNftsFromUnsharedToSharedKiosks(args: MigrateNftsFromUnsharedToSharedKiosks): Promise<Transaction>;
|
|
179
185
|
}
|
|
180
186
|
|
|
181
187
|
export { SuiTradingClient };
|