@hypercerts-org/marketplace-sdk 0.3.9 → 0.3.10
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 +4 -2
- package/dist/index.esm.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -7276,7 +7276,7 @@ function initGraphQLTada() {
|
|
7276
7276
|
var e = initGraphQLTada();
|
7277
7277
|
|
7278
7278
|
const urqlClient = new C({
|
7279
|
-
url: sdk.CONSTANTS.ENDPOINTS["test"]
|
7279
|
+
url: `${sdk.CONSTANTS.ENDPOINTS["test"]}/v1/graphql`,
|
7280
7280
|
exchanges: [cacheExchange, fetchExchange],
|
7281
7281
|
});
|
7282
7282
|
const fractionsByIdQuery = e(`
|
@@ -7285,7 +7285,7 @@ const fractionsByIdQuery = e(`
|
|
7285
7285
|
data {
|
7286
7286
|
creation_block_timestamp
|
7287
7287
|
fraction_id
|
7288
|
-
last_update_block_timestamp
|
7288
|
+
last_update_block_timestamp
|
7289
7289
|
owner_address
|
7290
7290
|
units
|
7291
7291
|
}
|
@@ -7385,8 +7385,10 @@ class ApiClient {
|
|
7385
7385
|
* @param chainId Chain ID
|
7386
7386
|
*/
|
7387
7387
|
this.fetchOrdersByHypercertId = async ({ hypercertId }) => {
|
7388
|
+
console.log("fetchOrdersByHypercertId", hypercertId);
|
7388
7389
|
const fractions = await getFractionsById(hypercertId);
|
7389
7390
|
const tokenIds = fractions?.flatMap(() => fractions.map((fraction) => sdk.parseClaimOrFractionId(fraction.fraction_id).id)) || [];
|
7391
|
+
console.log("tokenIds", tokenIds);
|
7390
7392
|
const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
|
7391
7393
|
return result;
|
7392
7394
|
};
|
package/dist/index.esm.js
CHANGED
@@ -7274,7 +7274,7 @@ function initGraphQLTada() {
|
|
7274
7274
|
var e = initGraphQLTada();
|
7275
7275
|
|
7276
7276
|
const urqlClient = new C({
|
7277
|
-
url: CONSTANTS.ENDPOINTS["test"]
|
7277
|
+
url: `${CONSTANTS.ENDPOINTS["test"]}/v1/graphql`,
|
7278
7278
|
exchanges: [cacheExchange, fetchExchange],
|
7279
7279
|
});
|
7280
7280
|
const fractionsByIdQuery = e(`
|
@@ -7283,7 +7283,7 @@ const fractionsByIdQuery = e(`
|
|
7283
7283
|
data {
|
7284
7284
|
creation_block_timestamp
|
7285
7285
|
fraction_id
|
7286
|
-
last_update_block_timestamp
|
7286
|
+
last_update_block_timestamp
|
7287
7287
|
owner_address
|
7288
7288
|
units
|
7289
7289
|
}
|
@@ -7383,8 +7383,10 @@ class ApiClient {
|
|
7383
7383
|
* @param chainId Chain ID
|
7384
7384
|
*/
|
7385
7385
|
this.fetchOrdersByHypercertId = async ({ hypercertId }) => {
|
7386
|
+
console.log("fetchOrdersByHypercertId", hypercertId);
|
7386
7387
|
const fractions = await getFractionsById(hypercertId);
|
7387
7388
|
const tokenIds = fractions?.flatMap(() => fractions.map((fraction) => parseClaimOrFractionId(fraction.fraction_id).id)) || [];
|
7389
|
+
console.log("tokenIds", tokenIds);
|
7388
7390
|
const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
|
7389
7391
|
return result;
|
7390
7392
|
};
|