@medialane/sdk 0.94.0 → 0.96.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/dist/index.cjs +15 -0
- 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 +15 -0
- package/dist/index.js.map +1 -1
- package/dist/{services-DTkc0lLx.d.ts → services-CRrl4KPp.d.ts} +16 -1
- package/dist/{services-D3M9dJZg.d.cts → services-DoPHyfG_.d.cts} +16 -1
- package/dist/starknet/index.cjs +17 -52
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -16
- package/dist/starknet/index.d.ts +3 -16
- package/dist/starknet/index.js +18 -52
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -785,6 +785,21 @@ var ApiClient = class {
|
|
|
785
785
|
getCoin(contract) {
|
|
786
786
|
return this.get(`/v1/coins/${this.addr(contract)}`);
|
|
787
787
|
}
|
|
788
|
+
getCoinPrices() {
|
|
789
|
+
return this.get("/v1/coins/prices");
|
|
790
|
+
}
|
|
791
|
+
claimCoin(coinAddress, siwsToken) {
|
|
792
|
+
return this.request("/v1/coins/claim", {
|
|
793
|
+
method: "POST",
|
|
794
|
+
headers: { Authorization: `Bearer ${siwsToken}` },
|
|
795
|
+
body: JSON.stringify({ coinAddress })
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
getCoinClaims(status = "PENDING") {
|
|
799
|
+
return this.get(
|
|
800
|
+
`/v1/coins/claims?status=${encodeURIComponent(status)}`
|
|
801
|
+
);
|
|
802
|
+
}
|
|
788
803
|
updateCoinProfile(contract, data, siwsToken) {
|
|
789
804
|
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
790
805
|
method: "PATCH",
|