@medialane/sdk 0.170.0 → 0.172.0
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/README.md +1 -1
- package/dist/{chunk-DOIIAXHD.cjs → chunk-BC2L2H6A.cjs} +4 -19
- package/dist/{chunk-DOIIAXHD.cjs.map → chunk-BC2L2H6A.cjs.map} +1 -1
- package/dist/{chunk-HUTEU22Y.js → chunk-DDZJFN65.js} +4 -19
- package/dist/{chunk-HUTEU22Y.js.map → chunk-DDZJFN65.js.map} +1 -1
- package/dist/{errors-PGCoVYdU.d.ts → errors-5C3YHsDE.d.ts} +6 -32
- package/dist/{errors-CZlv-DJJ.d.cts → errors-DvSfHOZu.d.cts} +6 -32
- package/dist/index.cjs +75 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +88 -81
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +14 -8
- package/dist/starknet/index.d.ts +14 -8
- package/dist/starknet/index.js +19 -12
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ const collections = await client.api.listCollections();
|
|
|
182
182
|
// Filter, sort and paginate in one query
|
|
183
183
|
const byVolume = await client.api.listCollections({ page: 1, limit: 20, sort: "volume" });
|
|
184
184
|
const featured = await client.api.listCollections({ limit: 18, isFeatured: true, sort: "recent" });
|
|
185
|
-
const myDrops = await client.api.
|
|
185
|
+
const myDrops = await client.api.getDrops({ organizer: "0x..." });
|
|
186
186
|
|
|
187
187
|
// Sort options: "recent" | "supply" | "floor" | "volume" | "name"
|
|
188
188
|
const collection = await client.api.getCollection(contract);
|
|
@@ -868,23 +868,8 @@ var ApiClient = class {
|
|
|
868
868
|
headers: this.bearer(siwsToken)
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
`/v1/drop/mint-status/${this.addr(collection)}/${this.addr(wallet)}`
|
|
874
|
-
);
|
|
875
|
-
return res.data;
|
|
876
|
-
}
|
|
877
|
-
async getDropInfo(contract) {
|
|
878
|
-
const res = await this.request(
|
|
879
|
-
`/v1/drop/${this.addr(contract)}/info`,
|
|
880
|
-
{ method: "GET" },
|
|
881
|
-
{ allow404: true }
|
|
882
|
-
);
|
|
883
|
-
return res?.data ?? null;
|
|
884
|
-
}
|
|
885
|
-
async getDropState(contract) {
|
|
886
|
-
const res = await this.get(`/v1/drop/${this.addr(contract)}/state`);
|
|
887
|
-
return res.data;
|
|
871
|
+
getDropFee() {
|
|
872
|
+
return this.get("/v1/drops/fee").then((r) => r.data);
|
|
888
873
|
}
|
|
889
874
|
getDrops(query = {}) {
|
|
890
875
|
const params = new URLSearchParams();
|
|
@@ -1965,5 +1950,5 @@ exports.starkKeyPairFromPrivateKey = starkKeyPairFromPrivateKey;
|
|
|
1965
1950
|
exports.stringifyBigInts = stringifyBigInts;
|
|
1966
1951
|
exports.u256ToBigInt = u256ToBigInt;
|
|
1967
1952
|
exports.unsealPrivateKey = unsealPrivateKey;
|
|
1968
|
-
//# sourceMappingURL=chunk-
|
|
1969
|
-
//# sourceMappingURL=chunk-
|
|
1953
|
+
//# sourceMappingURL=chunk-BC2L2H6A.cjs.map
|
|
1954
|
+
//# sourceMappingURL=chunk-BC2L2H6A.cjs.map
|