@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 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.listCollections({ owner: "0x...", service: "drop-collection" });
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
- async getDropMintStatus(collection, wallet) {
872
- const res = await this.get(
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-DOIIAXHD.cjs.map
1969
- //# sourceMappingURL=chunk-DOIIAXHD.cjs.map
1953
+ //# sourceMappingURL=chunk-BC2L2H6A.cjs.map
1954
+ //# sourceMappingURL=chunk-BC2L2H6A.cjs.map