@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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/methods/removeCollectionBids/removeCollectionBids.ts +2 -2
- package/src/methods/removeNftBids/removeNftBids.ts +2 -2
package/CHANGELOG.md
CHANGED
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);
|