@hypercerts-org/marketplace-sdk 0.3.19 → 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 +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/utils/api.d.ts +1 -1
- package/package.json +1 -1
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
|
})
|
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
|
})
|
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[];
|