@hypercerts-org/marketplace-sdk 0.3.3 → 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 +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
@@ -702,7 +702,7 @@ exports.CollectionType = void 0;
|
|
702
702
|
exports.StrategyType = void 0;
|
703
703
|
(function (StrategyType) {
|
704
704
|
StrategyType[StrategyType["standard"] = 0] = "standard";
|
705
|
-
StrategyType[StrategyType["collection"] =
|
705
|
+
StrategyType[StrategyType["collection"] = 10] = "collection";
|
706
706
|
StrategyType[StrategyType["collectionWithMerkleTree"] = 2] = "collectionWithMerkleTree";
|
707
707
|
StrategyType[StrategyType["dutchAuction"] = 4] = "dutchAuction";
|
708
708
|
StrategyType[StrategyType["itemIdsRange"] = 5] = "itemIdsRange";
|
@@ -710,7 +710,7 @@ exports.StrategyType = void 0;
|
|
710
710
|
StrategyType[StrategyType["hypercertCollectionOfferWithProof"] = 7] = "hypercertCollectionOfferWithProof";
|
711
711
|
StrategyType[StrategyType["hypercertCollectionOfferWithAllowlist"] = 8] = "hypercertCollectionOfferWithAllowlist";
|
712
712
|
StrategyType[StrategyType["hypercertDutchAuction"] = 9] = "hypercertDutchAuction";
|
713
|
-
StrategyType[StrategyType["hypercertFractionOffer"] =
|
713
|
+
StrategyType[StrategyType["hypercertFractionOffer"] = 1] = "hypercertFractionOffer";
|
714
714
|
StrategyType[StrategyType["hypercertFractionOfferWithAllowlist"] = 11] = "hypercertFractionOfferWithAllowlist";
|
715
715
|
})(exports.StrategyType || (exports.StrategyType = {}));
|
716
716
|
/** Type for maker order */
|
@@ -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
@@ -700,7 +700,7 @@ var CollectionType;
|
|
700
700
|
var StrategyType;
|
701
701
|
(function (StrategyType) {
|
702
702
|
StrategyType[StrategyType["standard"] = 0] = "standard";
|
703
|
-
StrategyType[StrategyType["collection"] =
|
703
|
+
StrategyType[StrategyType["collection"] = 10] = "collection";
|
704
704
|
StrategyType[StrategyType["collectionWithMerkleTree"] = 2] = "collectionWithMerkleTree";
|
705
705
|
StrategyType[StrategyType["dutchAuction"] = 4] = "dutchAuction";
|
706
706
|
StrategyType[StrategyType["itemIdsRange"] = 5] = "itemIdsRange";
|
@@ -708,7 +708,7 @@ var StrategyType;
|
|
708
708
|
StrategyType[StrategyType["hypercertCollectionOfferWithProof"] = 7] = "hypercertCollectionOfferWithProof";
|
709
709
|
StrategyType[StrategyType["hypercertCollectionOfferWithAllowlist"] = 8] = "hypercertCollectionOfferWithAllowlist";
|
710
710
|
StrategyType[StrategyType["hypercertDutchAuction"] = 9] = "hypercertDutchAuction";
|
711
|
-
StrategyType[StrategyType["hypercertFractionOffer"] =
|
711
|
+
StrategyType[StrategyType["hypercertFractionOffer"] = 1] = "hypercertFractionOffer";
|
712
712
|
StrategyType[StrategyType["hypercertFractionOfferWithAllowlist"] = 11] = "hypercertFractionOfferWithAllowlist";
|
713
713
|
})(StrategyType || (StrategyType = {}));
|
714
714
|
/** Type for maker order */
|
@@ -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/dist/types.d.ts
CHANGED
@@ -32,7 +32,7 @@ export declare enum CollectionType {
|
|
32
32
|
/** List of trading strategies */
|
33
33
|
export declare enum StrategyType {
|
34
34
|
standard = 0,
|
35
|
-
collection =
|
35
|
+
collection = 10,
|
36
36
|
collectionWithMerkleTree = 2,
|
37
37
|
dutchAuction = 4,
|
38
38
|
itemIdsRange = 5,
|
@@ -40,7 +40,7 @@ export declare enum StrategyType {
|
|
40
40
|
hypercertCollectionOfferWithProof = 7,
|
41
41
|
hypercertCollectionOfferWithAllowlist = 8,
|
42
42
|
hypercertDutchAuction = 9,
|
43
|
-
hypercertFractionOffer =
|
43
|
+
hypercertFractionOffer = 1,
|
44
44
|
hypercertFractionOfferWithAllowlist = 11
|
45
45
|
}
|
46
46
|
/** Type for maker order */
|
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"
|