@tradeport/sui-trading-sdk 0.3.1 → 0.3.2

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.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 69418c0: Fixed serialization of Transaction in bulk remove bids
8
+
3
9
  ## 0.3.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -128,12 +128,12 @@ type PlaceNftBids = {
128
128
 
129
129
  type RemoveCollectionBids = {
130
130
  bidIds: string[];
131
- tx?: Transaction;
131
+ tx?: Transaction | string;
132
132
  };
133
133
 
134
134
  type RemoveNftBids = {
135
135
  bidIds: string[];
136
- tx?: Transaction;
136
+ tx?: Transaction | string;
137
137
  };
138
138
 
139
139
  type TransferNfts = {
package/dist/index.d.ts CHANGED
@@ -128,12 +128,12 @@ type PlaceNftBids = {
128
128
 
129
129
  type RemoveCollectionBids = {
130
130
  bidIds: string[];
131
- tx?: Transaction;
131
+ tx?: Transaction | string;
132
132
  };
133
133
 
134
134
  type RemoveNftBids = {
135
135
  bidIds: string[];
136
- tx?: Transaction;
136
+ tx?: Transaction | string;
137
137
  };
138
138
 
139
139
  type TransferNfts = {
package/dist/index.js CHANGED
@@ -5941,7 +5941,7 @@ var removeCollectionBids = async ({ bidIds, tx: existingTx }, context) => {
5941
5941
  throw new Error("No bids found");
5942
5942
  }
5943
5943
  const bidsForTracking = [];
5944
- const tx = existingTx ?? new import_transactions19.Transaction();
5944
+ const tx = import_transactions19.Transaction.from(existingTx) ?? new import_transactions19.Transaction();
5945
5945
  for (const bid of res.bids) {
5946
5946
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
5947
5947
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);
@@ -6003,7 +6003,7 @@ var removeNftBids = async ({ bidIds, tx: existingTx }, context) => {
6003
6003
  throw new Error("No bids found");
6004
6004
  }
6005
6005
  const bidsForTracking = [];
6006
- const tx = existingTx ?? new import_transactions20.Transaction();
6006
+ const tx = import_transactions20.Transaction.from(existingTx) ?? new import_transactions20.Transaction();
6007
6007
  for (const bid of res.bids) {
6008
6008
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(bid?.nft?.token_id)) {
6009
6009
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);