@medialane/sdk 0.95.0 → 0.97.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 +12 -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 +12 -0
- package/dist/index.js.map +1 -1
- package/dist/{services-BllZwNlB.d.ts → services-6lZz3hUV.d.ts} +11 -1
- package/dist/{services-DbJoYGF0.d.cts → services-CRckcKEc.d.cts} +11 -1
- package/dist/starknet/index.cjs +12 -0
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +12 -0
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig } from '../services-CRckcKEc.cjs';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-nPIXtCF5.cjs';
|
|
4
4
|
import 'zod';
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig } from '../services-6lZz3hUV.js';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-nPIXtCF5.js';
|
|
4
4
|
import 'zod';
|
package/dist/starknet/index.js
CHANGED
|
@@ -761,6 +761,18 @@ var ApiClient = class {
|
|
|
761
761
|
getCoinPrices() {
|
|
762
762
|
return this.get("/v1/coins/prices");
|
|
763
763
|
}
|
|
764
|
+
claimCoin(coinAddress, siwsToken) {
|
|
765
|
+
return this.request("/v1/coins/claim", {
|
|
766
|
+
method: "POST",
|
|
767
|
+
headers: { Authorization: `Bearer ${siwsToken}` },
|
|
768
|
+
body: JSON.stringify({ coinAddress })
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
getCoinClaims(status = "PENDING") {
|
|
772
|
+
return this.get(
|
|
773
|
+
`/v1/coins/claims?status=${encodeURIComponent(status)}`
|
|
774
|
+
);
|
|
775
|
+
}
|
|
764
776
|
updateCoinProfile(contract, data, siwsToken) {
|
|
765
777
|
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
766
778
|
method: "PATCH",
|