@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tradeport/sui-trading-sdk
2
2
 
3
+ ## 0.1.69
4
+
5
+ ### Patch Changes
6
+
7
+ - 022a856: Added checks and asserts for unshared kiosk issues and method to migrate nfts to shared kiosks
8
+
3
9
  ## 0.1.68
4
10
 
5
11
  ### Patch Changes
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 };