@hypercerts-org/marketplace-sdk 0.3.18 → 0.3.20
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/dist/index.cjs.js
CHANGED
@@ -7522,14 +7522,14 @@ class ApiClient {
|
|
7522
7522
|
}
|
7523
7523
|
return (await res.json());
|
7524
7524
|
};
|
7525
|
-
this.updateOrderValidity = async (
|
7525
|
+
this.updateOrderValidity = async (tokenIds, chainId) => {
|
7526
7526
|
return fetch(`${this._baseUrl}/marketplace/validate/`, {
|
7527
7527
|
method: "POST",
|
7528
7528
|
headers: {
|
7529
7529
|
"Content-Type": "application/json",
|
7530
7530
|
},
|
7531
7531
|
body: JSON.stringify({
|
7532
|
-
|
7532
|
+
tokenIds: tokenIds.map((id) => id.toString()),
|
7533
7533
|
chainId,
|
7534
7534
|
}),
|
7535
7535
|
})
|
@@ -7967,7 +7967,7 @@ class HypercertExchangeClient {
|
|
7967
7967
|
return result.map((res, index) => {
|
7968
7968
|
const order = orders[index];
|
7969
7969
|
const valid = res.every((code) => ACCEPTED_ERROR_CODES.includes(code));
|
7970
|
-
return { id: order.id, valid, validatorCodes: res };
|
7970
|
+
return { id: order.id, valid, validatorCodes: res, order };
|
7971
7971
|
});
|
7972
7972
|
}
|
7973
7973
|
/**
|
package/dist/index.esm.js
CHANGED
@@ -7520,14 +7520,14 @@ class ApiClient {
|
|
7520
7520
|
}
|
7521
7521
|
return (await res.json());
|
7522
7522
|
};
|
7523
|
-
this.updateOrderValidity = async (
|
7523
|
+
this.updateOrderValidity = async (tokenIds, chainId) => {
|
7524
7524
|
return fetch(`${this._baseUrl}/marketplace/validate/`, {
|
7525
7525
|
method: "POST",
|
7526
7526
|
headers: {
|
7527
7527
|
"Content-Type": "application/json",
|
7528
7528
|
},
|
7529
7529
|
body: JSON.stringify({
|
7530
|
-
|
7530
|
+
tokenIds: tokenIds.map((id) => id.toString()),
|
7531
7531
|
chainId,
|
7532
7532
|
}),
|
7533
7533
|
})
|
@@ -7965,7 +7965,7 @@ class HypercertExchangeClient {
|
|
7965
7965
|
return result.map((res, index) => {
|
7966
7966
|
const order = orders[index];
|
7967
7967
|
const valid = res.every((code) => ACCEPTED_ERROR_CODES.includes(code));
|
7968
|
-
return { id: order.id, valid, validatorCodes: res };
|
7968
|
+
return { id: order.id, valid, validatorCodes: res, order };
|
7969
7969
|
});
|
7970
7970
|
}
|
7971
7971
|
/**
|
package/dist/utils/api.d.ts
CHANGED
@@ -96,7 +96,7 @@ export declare class ApiClient {
|
|
96
96
|
validator_codes: number[] | null;
|
97
97
|
}[]>>;
|
98
98
|
handleResponse: <T>(res: Response) => Promise<T>;
|
99
|
-
updateOrderValidity: (
|
99
|
+
updateOrderValidity: (tokenIds: bigint[], chainId: number) => Promise<{
|
100
100
|
id: string;
|
101
101
|
invalidated: boolean;
|
102
102
|
validator_codes: OrderValidatorCode[];
|