@medialane/sdk 0.90.0 → 0.92.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.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{services-vwXIiRBm.d.cts → services-D3M9dJZg.d.cts} +7 -2
- package/dist/{services-CELm1bdL.d.ts → services-DTkc0lLx.d.ts} +7 -2
- package/dist/starknet/index.cjs +9 -6
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +10 -4
- package/dist/starknet/index.d.ts +10 -4
- package/dist/starknet/index.js +9 -6
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -548,9 +548,14 @@ interface CreateCollectionIntentParams {
|
|
|
548
548
|
maxQuantityPerWallet: string;
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
+
interface CheckoutIntentItem {
|
|
552
|
+
orderHash: string;
|
|
553
|
+
quantity?: string;
|
|
554
|
+
}
|
|
551
555
|
interface CreateCheckoutIntentParams {
|
|
552
556
|
fulfiller: string;
|
|
553
|
-
|
|
557
|
+
items?: CheckoutIntentItem[];
|
|
558
|
+
orderHashes?: string[];
|
|
554
559
|
}
|
|
555
560
|
interface ApiCheckoutIntentResult {
|
|
556
561
|
id?: string;
|
|
@@ -1280,4 +1285,4 @@ interface ProposeSponsorshipParams {
|
|
|
1280
1285
|
royaltyBps: bigint | string;
|
|
1281
1286
|
}
|
|
1282
1287
|
|
|
1283
|
-
export { type ApiSearchCollectionResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiRemixOfferPrice as T, type ApiRemixOffersQuery as U, type ApiResponse as V, type ApiRewardsBadge as W, type ApiRewardsBatchEntry as X, type ApiRewardsConfig as Y, type ApiRewardsLeaderboardEntry as Z, type ApiRewardsLevel as _, type ServiceCapability as a, type
|
|
1288
|
+
export { type ApiSearchCollectionResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiRemixOfferPrice as T, type ApiRemixOffersQuery as U, type ApiResponse as V, type ApiRewardsBadge as W, type ApiRewardsBatchEntry as X, type ApiRewardsConfig as Y, type ApiRewardsLeaderboardEntry as Z, type ApiRewardsLevel as _, type ServiceCapability as a, type OrderParameters as a$, type ApiSearchCreatorResult as a0, type ApiSearchResult as a1, type ApiSearchTokenResult as a2, type ApiToken as a3, type ApiTokenBalance as a4, type ApiTokenMetadata as a5, type ApiUsageDay as a6, type ApiUserRewards as a7, type ApiUserWallet as a8, type ApiWalletActivity as a9, type CreateTicketParams as aA, type CreateTierIntentParams as aB, type CreateWebhookParams as aC, type DropMintStatus as aD, type EnforcementDeclaration as aE, type FactoryFamilyServiceId as aF, type FeeConfig as aG, FeeConfigSchema as aH, type FulfillOrderIntentParams as aI, type IPType as aJ, type IntentCall as aK, type IntentStatus as aL, type IntentType as aM, type IpAttribute as aN, type IpNftMetadata as aO, type LaunchCoinIntentParams as aP, type MakeOfferIntentParams as aQ, MedialaneApiError as aR, type MedialaneConfig as aS, type MedialaneErrorCode as aT, type MintMembershipsParams as aU, type MintTicketsParams as aV, OPEN_LICENSES as aW, type OfferItem as aX, type OpenLicense as aY, type Order as aZ, type OrderDetails as a_, type ApiWebhookCreated as aa, type ApiWebhookEndpoint as ab, type AutoRemixOfferParams as ac, type CancelOrderIntentParams as ad, type ChainFilter as ae, type CheckoutIntentItem as af, type ClaimConditions as ag, type CollectionServiceId as ah, type CollectionSort as ai, type CollectionTokensSort as aj, type ConfirmRemixOfferParams as ak, type ConfirmSelfRemixParams as al, type ConsiderationItem as am, type CreateCheckoutIntentParams as an, type CreateCoinIntentParams as ao, type CreateCollectionIntentParams as ap, type CreateCounterOfferIntentParams as aq, type CreateDropParams as ar, type CreateListingIntentParams as as, type CreateMembershipParams as at, type CreateMintIntentParams as au, type CreatePopCollectionParams as av, type CreateRemixOfferParams as aw, type CreateSponsorshipOfferIntentParams as ax, type CreateSponsorshipOfferParams as ay, type CreateSponsorshipProposalIntentParams as az, type AcceptSponsorshipProposalIntentParams as b, type OrderStatus as b0, type PlaceSponsorshipBidIntentParams as b1, type PopBatchEligibilityItem as b2, type PopClaimStatus as b3, type PopEventType as b4, type ProposeSponsorshipParams as b5, type RejectSponsorshipProposalIntentParams as b6, type RemixOfferStatus as b7, type ResolvedConfig as b8, type RetractSponsorshipBidIntentParams as b9, type RetryOptions as ba, type ServiceEventDeclaration as bb, type SetSponsorshipOfferOpenIntentParams as bc, type SortOrder as bd, type TenantPlan as be, type TierServiceId as bf, type TxResult as bg, type WebhookEventType as bh, type WebhookStatus as bi, type WithdrawSponsorshipProposalIntentParams as bj, resolveConfig as bk, resolveFeeConfig as bl, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinsQuery as n, type ApiCollection as o, type ApiCollectionClaim as p, type ApiCollectionProfile as q, type ApiCollectionSlugClaim as r, type ApiCollectionsQuery as s, type ApiComment as t, type ApiCounterOffersQuery as u, type ApiCreatorListResult as v, type ApiCreatorProfile as w, type ApiIntent as x, type ApiIntentCreated as y, type ApiKeyStatus as z };
|
|
@@ -548,9 +548,14 @@ interface CreateCollectionIntentParams {
|
|
|
548
548
|
maxQuantityPerWallet: string;
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
+
interface CheckoutIntentItem {
|
|
552
|
+
orderHash: string;
|
|
553
|
+
quantity?: string;
|
|
554
|
+
}
|
|
551
555
|
interface CreateCheckoutIntentParams {
|
|
552
556
|
fulfiller: string;
|
|
553
|
-
|
|
557
|
+
items?: CheckoutIntentItem[];
|
|
558
|
+
orderHashes?: string[];
|
|
554
559
|
}
|
|
555
560
|
interface ApiCheckoutIntentResult {
|
|
556
561
|
id?: string;
|
|
@@ -1280,4 +1285,4 @@ interface ProposeSponsorshipParams {
|
|
|
1280
1285
|
royaltyBps: bigint | string;
|
|
1281
1286
|
}
|
|
1282
1287
|
|
|
1283
|
-
export { type ApiSearchCollectionResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiRemixOfferPrice as T, type ApiRemixOffersQuery as U, type ApiResponse as V, type ApiRewardsBadge as W, type ApiRewardsBatchEntry as X, type ApiRewardsConfig as Y, type ApiRewardsLeaderboardEntry as Z, type ApiRewardsLevel as _, type ServiceCapability as a, type
|
|
1288
|
+
export { type ApiSearchCollectionResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiRemixOfferPrice as T, type ApiRemixOffersQuery as U, type ApiResponse as V, type ApiRewardsBadge as W, type ApiRewardsBatchEntry as X, type ApiRewardsConfig as Y, type ApiRewardsLeaderboardEntry as Z, type ApiRewardsLevel as _, type ServiceCapability as a, type OrderParameters as a$, type ApiSearchCreatorResult as a0, type ApiSearchResult as a1, type ApiSearchTokenResult as a2, type ApiToken as a3, type ApiTokenBalance as a4, type ApiTokenMetadata as a5, type ApiUsageDay as a6, type ApiUserRewards as a7, type ApiUserWallet as a8, type ApiWalletActivity as a9, type CreateTicketParams as aA, type CreateTierIntentParams as aB, type CreateWebhookParams as aC, type DropMintStatus as aD, type EnforcementDeclaration as aE, type FactoryFamilyServiceId as aF, type FeeConfig as aG, FeeConfigSchema as aH, type FulfillOrderIntentParams as aI, type IPType as aJ, type IntentCall as aK, type IntentStatus as aL, type IntentType as aM, type IpAttribute as aN, type IpNftMetadata as aO, type LaunchCoinIntentParams as aP, type MakeOfferIntentParams as aQ, MedialaneApiError as aR, type MedialaneConfig as aS, type MedialaneErrorCode as aT, type MintMembershipsParams as aU, type MintTicketsParams as aV, OPEN_LICENSES as aW, type OfferItem as aX, type OpenLicense as aY, type Order as aZ, type OrderDetails as a_, type ApiWebhookCreated as aa, type ApiWebhookEndpoint as ab, type AutoRemixOfferParams as ac, type CancelOrderIntentParams as ad, type ChainFilter as ae, type CheckoutIntentItem as af, type ClaimConditions as ag, type CollectionServiceId as ah, type CollectionSort as ai, type CollectionTokensSort as aj, type ConfirmRemixOfferParams as ak, type ConfirmSelfRemixParams as al, type ConsiderationItem as am, type CreateCheckoutIntentParams as an, type CreateCoinIntentParams as ao, type CreateCollectionIntentParams as ap, type CreateCounterOfferIntentParams as aq, type CreateDropParams as ar, type CreateListingIntentParams as as, type CreateMembershipParams as at, type CreateMintIntentParams as au, type CreatePopCollectionParams as av, type CreateRemixOfferParams as aw, type CreateSponsorshipOfferIntentParams as ax, type CreateSponsorshipOfferParams as ay, type CreateSponsorshipProposalIntentParams as az, type AcceptSponsorshipProposalIntentParams as b, type OrderStatus as b0, type PlaceSponsorshipBidIntentParams as b1, type PopBatchEligibilityItem as b2, type PopClaimStatus as b3, type PopEventType as b4, type ProposeSponsorshipParams as b5, type RejectSponsorshipProposalIntentParams as b6, type RemixOfferStatus as b7, type ResolvedConfig as b8, type RetractSponsorshipBidIntentParams as b9, type RetryOptions as ba, type ServiceEventDeclaration as bb, type SetSponsorshipOfferOpenIntentParams as bc, type SortOrder as bd, type TenantPlan as be, type TierServiceId as bf, type TxResult as bg, type WebhookEventType as bh, type WebhookStatus as bi, type WithdrawSponsorshipProposalIntentParams as bj, resolveConfig as bk, resolveFeeConfig as bl, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinsQuery as n, type ApiCollection as o, type ApiCollectionClaim as p, type ApiCollectionProfile as q, type ApiCollectionSlugClaim as r, type ApiCollectionsQuery as s, type ApiComment as t, type ApiCounterOffersQuery as u, type ApiCreatorListResult as v, type ApiCreatorProfile as w, type ApiIntent as x, type ApiIntentCreated as y, type ApiKeyStatus as z };
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -10333,13 +10333,13 @@ function priceToEkuboParams(quoteDecimals, price = LAUNCH_PRICE_QUOTE_PER_COIN)
|
|
|
10333
10333
|
};
|
|
10334
10334
|
}
|
|
10335
10335
|
var COIN_DECIMALS2 = 18;
|
|
10336
|
-
async function
|
|
10336
|
+
async function getCreatorCoinMarket(coinAddress, provider) {
|
|
10337
10337
|
const r = await provider.callContract({
|
|
10338
10338
|
contractAddress: coinAddress,
|
|
10339
10339
|
entrypoint: "launched_with_liquidity_parameters",
|
|
10340
10340
|
calldata: []
|
|
10341
10341
|
});
|
|
10342
|
-
if (BigInt(r[0]) !== 0n || BigInt(r[1]) !== 0n) return
|
|
10342
|
+
if (BigInt(r[0]) !== 0n || BigInt(r[1]) !== 0n) return { status: "pre-launch" };
|
|
10343
10343
|
const fee = r[2];
|
|
10344
10344
|
const tickSpacing = r[3];
|
|
10345
10345
|
const quoteToken = normalizeAddress("STARKNET", "0x" + BigInt(r[7]).toString(16));
|
|
@@ -10358,7 +10358,10 @@ async function getCreatorCoinPrice(coinAddress, provider) {
|
|
|
10358
10358
|
const priceT1perT0 = (Number(sqrt) / 2 ** 128) ** 2;
|
|
10359
10359
|
const decAdj = 10 ** (COIN_DECIMALS2 - quoteDecimals);
|
|
10360
10360
|
const quotePerCoin = (quoteIsToken0 ? 1 / priceT1perT0 : priceT1perT0) * decAdj;
|
|
10361
|
-
return {
|
|
10361
|
+
return {
|
|
10362
|
+
status: "live",
|
|
10363
|
+
price: { quotePerCoin, quoteToken, quoteSymbol: token?.symbol ?? null, quoteDecimals }
|
|
10364
|
+
};
|
|
10362
10365
|
}
|
|
10363
10366
|
var _factoryContract = null;
|
|
10364
10367
|
function factoryContract() {
|
|
@@ -10447,8 +10450,8 @@ var CreatorCoinService = class {
|
|
|
10447
10450
|
const r = await this._factory(account).is_creator_coin(address);
|
|
10448
10451
|
return BigInt(r) === 1n;
|
|
10449
10452
|
}
|
|
10450
|
-
async
|
|
10451
|
-
return
|
|
10453
|
+
async getMarket(coinAddress) {
|
|
10454
|
+
return getCreatorCoinMarket(coinAddress, new starknet.RpcProvider({ nodeUrl: this.config.rpcUrl }));
|
|
10452
10455
|
}
|
|
10453
10456
|
};
|
|
10454
10457
|
var TicketService = class {
|
|
@@ -11767,7 +11770,7 @@ exports.fdvHuman = fdvHuman;
|
|
|
11767
11770
|
exports.generateStarkKeyPair = generateStarkKeyPair;
|
|
11768
11771
|
exports.getCounter = getCounter;
|
|
11769
11772
|
exports.getCounter1155 = getCounter1155;
|
|
11770
|
-
exports.
|
|
11773
|
+
exports.getCreatorCoinMarket = getCreatorCoinMarket;
|
|
11771
11774
|
exports.getEscape = getEscape;
|
|
11772
11775
|
exports.getEscapeSecurityPeriod = getEscapeSecurityPeriod;
|
|
11773
11776
|
exports.getGuardians = getGuardians;
|