@hypercerts-org/marketplace-sdk 0.3.4 → 0.3.5
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 +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
@@ -4889,7 +4889,7 @@ class ApiClient {
|
|
4889
4889
|
environment: "test",
|
4890
4890
|
});
|
4891
4891
|
const fractions = await hypercertsClient.indexer.fractionsByHypercert({ hypercertId });
|
4892
|
-
const tokenIds = fractions?.hypercerts.data?.flatMap((hypercert) => hypercert.fractions?.data?.map((fraction) => sdk.parseClaimOrFractionId(fraction.
|
4892
|
+
const tokenIds = fractions?.hypercerts.data?.flatMap((hypercert) => hypercert.fractions?.data?.map((fraction) => sdk.parseClaimOrFractionId(fraction.fraction_id).id)) || [];
|
4893
4893
|
const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
|
4894
4894
|
return result;
|
4895
4895
|
};
|
package/dist/index.esm.js
CHANGED
@@ -4887,7 +4887,7 @@ class ApiClient {
|
|
4887
4887
|
environment: "test",
|
4888
4888
|
});
|
4889
4889
|
const fractions = await hypercertsClient.indexer.fractionsByHypercert({ hypercertId });
|
4890
|
-
const tokenIds = fractions?.hypercerts.data?.flatMap((hypercert) => hypercert.fractions?.data?.map((fraction) => parseClaimOrFractionId(fraction.
|
4890
|
+
const tokenIds = fractions?.hypercerts.data?.flatMap((hypercert) => hypercert.fractions?.data?.map((fraction) => parseClaimOrFractionId(fraction.fraction_id).id)) || [];
|
4891
4891
|
const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
|
4892
4892
|
return result;
|
4893
4893
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hypercerts-org/marketplace-sdk",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.5",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -91,7 +91,7 @@
|
|
91
91
|
"typescript": "^5.3.3"
|
92
92
|
},
|
93
93
|
"dependencies": {
|
94
|
-
"@hypercerts-org/sdk": "2.0.0-alpha.
|
94
|
+
"@hypercerts-org/sdk": "2.0.0-alpha.20",
|
95
95
|
"@supabase/supabase-js": "^2.39.2",
|
96
96
|
"ethers": "^6.6.2",
|
97
97
|
"merkletreejs": "^0.3.9"
|