@medialane/sdk 0.65.0 → 0.67.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.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { S as ServiceDefinition, a as ServiceCapability } from './index-_q2B0g3M.cjs';
2
- export { A as ADMIN_HEADERS, b as ADMIN_SCOPE, c as ActivityType, d as AddSupplyParams, e as AdminGrant, f as AdminRequest, g as AdminRequestSig, h as AdminSession, i as AdminSessionTypedDataInput, j as ApiActivitiesQuery, k as ApiActivity, l as ApiActivityPrice, m as ApiAdminCollectionClaim, n as ApiAppSource, o as ApiChain, p as ApiClient, q as ApiCoin, r as ApiCoinsQuery, s as ApiCollection, t as ApiCollectionClaim, u as ApiCollectionProfile, v as ApiCollectionSlugClaim, w as ApiCollectionsQuery, x as ApiComment, y as ApiCounterOffersQuery, z as ApiCreatorListResult, B as ApiCreatorProfile, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, R as ApiPortalKeyCreated, T as ApiPortalMe, U as ApiPublicRemix, V as ApiRemixOffer, W as ApiRemixOfferPrice, X as ApiRemixOffersQuery, Y as ApiResponse, Z as ApiRewardsBadge, _ as ApiRewardsBatchEntry, $ as ApiRewardsConfig, a0 as ApiRewardsLeaderboardEntry, a1 as ApiRewardsLevel, a2 as ApiSearchCollectionResult, a3 as ApiSearchCreatorResult, a4 as ApiSearchResult, a5 as ApiSearchTokenResult, a6 as ApiToken, a7 as ApiTokenBalance, a8 as ApiTokenMetadata, a9 as ApiUsageDay, aa as ApiUserRewards, ab as ApiUserWallet, ac as ApiWebhookCreated, ad as ApiWebhookEndpoint, ae as AutoRemixOfferParams, af as BatchMintEditionParams, ag as BuildFeeCallParams, ah as COIN_MAX_SUPPLY, ai as COIN_MIN_SUPPLY, aj as CancelOrderIntentParams, ak as ChainFilter, al as ClaimConditions, am as ClubService, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateClubParams, at as CreateCollectionIntentParams, au as CreateCounterOfferIntentParams, av as CreateCreatorCoinParams, aw as CreateDropParams, ax as CreateEventParams, ay as CreateGrantOpts, az as CreateListingIntentParams, aA as CreateMintIntentParams, aB as CreatePopCollectionParams, aC as CreateRemixOfferParams, aD as CreateSponsorshipOfferParams, aE as CreateWebhookParams, aF as CreatorCoinFactoryABI, aG as CreatorCoinPrice, aH as CreatorCoinReceiptLike, aI as CreatorCoinService, aJ as DeployClubParams, aK as DeployCollectionParams, aL as DropCollectionABI, aM as DropFactoryABI, aN as DropMintStatus, aO as DropService, aP as ERC1155CollectionService, aQ as EkuboLaunchParams, aR as EkuboPoolParams, aS as EnforcementDeclaration, aT as FeeConfig, aU as FeeConfigSchema, aV as FeeSurface, aW as FulfillOrderIntentParams, aX as IPClubABI, aY as IPClubCollectionABI, aZ as IPClubFactoryABI, a_ as IPClubNFTABI, a$ as IPCollection1155ABI, b0 as IPCollection1155FactoryABI, b1 as IPCollectionABI, b2 as IPGenesisABI, b3 as IPMarketplaceABI, b4 as IPNftABI, b5 as IPSponsorshipABI, b6 as IPSponsorshipLicenseABI, b7 as IPTicketCollectionABI, b8 as IPTicketCollectionFactoryABI, b9 as IPType, ba as IntentCall, bb as IntentStatus, bc as IntentType, bd as IpAttribute, be as IpNftMetadata, bf as LAUNCH_PRICE_QUOTE_PER_COIN, bg as MakeOfferIntentParams, bh as Medialane1155ABI, bi as MedialaneApiError, bj as MedialaneClient, bk as MedialaneConfig, bl as MedialaneError, bm as MedialaneErrorCode, bn as MintEditionParams, bo as MintTicketsParams, bp as OPEN_LICENSES, bq as OfferItem, br as OpenLicense, bs as Order, bt as OrderDetails, bu as OrderParameters, bv as OrderStatus, bw as POPCollectionABI, bx as POPFactoryABI, by as ParsedAdminHeaders, bz as PopBatchEligibilityItem, bA as PopClaimStatus, bB as PopEventType, bC as PopService, bD as RemixOfferStatus, bE as RequestSiwsTokenArgs, bF as ResolvedConfig, bG as ResolvedFeeConfig, bH as ResolvedOrder, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SiwsSigner, bL as SortOrder, bM as SponsorshipService, bN as StarknetVenue, bO as StarknetVenueDeps, bP as StarknetVenueSigner, bQ as TenantPlan, bR as TicketService, bS as TxResult, bT as VALIDATED_EKUBO_PARAMS, bU as WebhookEventType, bV as WebhookStatus, bW as adminRequestDigest, bX as build1155CancellationTypedData, bY as build1155OrderTypedData, bZ as buildAdminSessionTypedData, b_ as buildCancellationTypedData, b$ as buildCreateCreatorCoinCall, c0 as buildFeeCall, c1 as buildLaunchOnEkuboCalls, c2 as buildOrderTypedData, c3 as buybackQuoteRaw, c4 as coinToRaw, c5 as createAdminSessionGrant, c6 as encodeAdminHeaders, c7 as encodeByteArray, c8 as fdvHuman, c9 as getCounter, ca as getCounter1155, cb as getCreatorCoinPrice, cc as getOrderDetails, cd as getOrderDetails1155, ce as getSiwsStorageKey, cf as getStoredSiwsToken, cg as isSiwsTokenValid, ch as normalizeSiwsSignature, ci as parseAdminHeaders, cj as parseCreatorCoinCreated, ck as randomNonce, cl as requestSiwsToken, cm as resolveConfig, cn as resolveFeeConfig, co as sessionKeyHashOf, cp as signAdminRequest, cq as storeSiwsToken, cr as teamCoinsRaw, cs as validateCoinName, ct as validateCoinSupply, cu as validateCoinSymbol, cv as verifyAdminRequestSig } from './index-_q2B0g3M.cjs';
3
- import { C as Chain } from './types-Bx3ax9lW.cjs';
4
- export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as VenueSigner, i as getCoordinates, j as getStarknetCoordinates } from './types-Bx3ax9lW.cjs';
1
+ import { S as ServiceDefinition, a as ServiceCapability } from './index-C2EaTkzk.cjs';
2
+ export { A as ADMIN_HEADERS, b as ADMIN_SCOPE, c as ActivityType, d as AddSupplyParams, e as AdminGrant, f as AdminRequest, g as AdminRequestSig, h as AdminSession, i as AdminSessionTypedDataInput, j as ApiActivitiesQuery, k as ApiActivity, l as ApiActivityPrice, m as ApiAdminCollectionClaim, n as ApiAppSource, o as ApiChain, p as ApiClient, q as ApiCoin, r as ApiCoinsQuery, s as ApiCollection, t as ApiCollectionClaim, u as ApiCollectionProfile, v as ApiCollectionSlugClaim, w as ApiCollectionsQuery, x as ApiComment, y as ApiCounterOffersQuery, z as ApiCreatorListResult, B as ApiCreatorProfile, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, R as ApiPortalKeyCreated, T as ApiPortalMe, U as ApiPublicRemix, V as ApiRemixOffer, W as ApiRemixOfferPrice, X as ApiRemixOffersQuery, Y as ApiResponse, Z as ApiRewardsBadge, _ as ApiRewardsBatchEntry, $ as ApiRewardsConfig, a0 as ApiRewardsLeaderboardEntry, a1 as ApiRewardsLevel, a2 as ApiSearchCollectionResult, a3 as ApiSearchCreatorResult, a4 as ApiSearchResult, a5 as ApiSearchTokenResult, a6 as ApiToken, a7 as ApiTokenBalance, a8 as ApiTokenMetadata, a9 as ApiUsageDay, aa as ApiUserRewards, ab as ApiUserWallet, ac as ApiWebhookCreated, ad as ApiWebhookEndpoint, ae as AutoRemixOfferParams, af as BatchMintEditionParams, ag as BuildFeeCallParams, ah as COIN_MAX_SUPPLY, ai as COIN_MIN_SUPPLY, aj as CancelOrderIntentParams, ak as ChainFilter, al as ClaimConditions, am as ClubService, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateClubParams, at as CreateCollectionIntentParams, au as CreateCounterOfferIntentParams, av as CreateCreatorCoinParams, aw as CreateDropParams, ax as CreateGrantOpts, ay as CreateListingIntentParams, az as CreateMintIntentParams, aA as CreatePopCollectionParams, aB as CreateRemixOfferParams, aC as CreateSponsorshipOfferParams, aD as CreateTicketParams, aE as CreateWebhookParams, aF as CreatorCoinFactoryABI, aG as CreatorCoinPrice, aH as CreatorCoinReceiptLike, aI as CreatorCoinService, aJ as DeployClubParams, aK as DeployCollectionParams, aL as DropCollectionABI, aM as DropFactoryABI, aN as DropMintStatus, aO as DropService, aP as ERC1155CollectionService, aQ as EkuboLaunchParams, aR as EkuboPoolParams, aS as EnforcementDeclaration, aT as FeeConfig, aU as FeeConfigSchema, aV as FeeSurface, aW as FulfillOrderIntentParams, aX as IPClubABI, aY as IPClubCollectionABI, aZ as IPClubFactoryABI, a_ as IPClubNFTABI, a$ as IPCollection1155ABI, b0 as IPCollection1155FactoryABI, b1 as IPCollectionABI, b2 as IPGenesisABI, b3 as IPMarketplaceABI, b4 as IPNftABI, b5 as IPSponsorshipABI, b6 as IPSponsorshipLicenseABI, b7 as IPTicketCollectionABI, b8 as IPTicketCollectionFactoryABI, b9 as IPType, ba as IntentCall, bb as IntentStatus, bc as IntentType, bd as IpAttribute, be as IpNftMetadata, bf as LAUNCH_PRICE_QUOTE_PER_COIN, bg as MakeOfferIntentParams, bh as Medialane1155ABI, bi as MedialaneApiError, bj as MedialaneClient, bk as MedialaneConfig, bl as MedialaneError, bm as MedialaneErrorCode, bn as MintEditionParams, bo as MintTicketsParams, bp as OPEN_LICENSES, bq as OfferItem, br as OpenLicense, bs as Order, bt as OrderDetails, bu as OrderParameters, bv as OrderStatus, bw as POPCollectionABI, bx as POPFactoryABI, by as ParsedAdminHeaders, bz as PopBatchEligibilityItem, bA as PopClaimStatus, bB as PopEventType, bC as PopService, bD as RemixOfferStatus, bE as RequestSiwsTokenArgs, bF as ResolvedConfig, bG as ResolvedFeeConfig, bH as ResolvedOrder, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SiwsSigner, bL as SortOrder, bM as SponsorshipService, bN as StarknetVenue, bO as StarknetVenueDeps, bP as StarknetVenueSigner, bQ as TenantPlan, bR as TicketService, bS as TxResult, bT as VALIDATED_EKUBO_PARAMS, bU as WebhookEventType, bV as WebhookStatus, bW as adminRequestDigest, bX as build1155CancellationTypedData, bY as build1155OrderTypedData, bZ as buildAdminSessionTypedData, b_ as buildCancellationTypedData, b$ as buildCreateCreatorCoinCall, c0 as buildFeeCall, c1 as buildLaunchOnEkuboCalls, c2 as buildOrderTypedData, c3 as buybackQuoteRaw, c4 as coinToRaw, c5 as createAdminSessionGrant, c6 as encodeAdminHeaders, c7 as encodeByteArray, c8 as fdvHuman, c9 as getCounter, ca as getCounter1155, cb as getCreatorCoinPrice, cc as getOrderDetails, cd as getOrderDetails1155, ce as getSiwsStorageKey, cf as getStoredSiwsToken, cg as isSiwsTokenValid, ch as normalizeSiwsSignature, ci as parseAdminHeaders, cj as parseCreatorCoinCreated, ck as randomNonce, cl as requestSiwsToken, cm as resolveConfig, cn as resolveFeeConfig, co as sessionKeyHashOf, cp as signAdminRequest, cq as storeSiwsToken, cr as teamCoinsRaw, cs as validateCoinName, ct as validateCoinSupply, cu as validateCoinSymbol, cv as verifyAdminRequestSig } from './index-C2EaTkzk.cjs';
3
+ import { C as Chain } from './types-CIR6H6ul.cjs';
4
+ export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as VenueSigner, i as getCoordinates, j as getStarknetCoordinates } from './types-CIR6H6ul.cjs';
5
5
  import 'zod';
6
6
  import 'starknet';
7
7
 
@@ -194,14 +194,23 @@ declare const SERVICES: {
194
194
  readonly "ip-tickets": {
195
195
  readonly id: "ip-tickets";
196
196
  readonly displayName: "IP Tickets";
197
- readonly description: "Sell verifiable, redeemable tickets for events and experiences.";
198
- readonly standard: "ERC721";
197
+ readonly description: "Create verifiable on-chain tickets mint to attendees, trade like any collection.";
198
+ readonly standard: "ERC1155";
199
199
  readonly provenance: "MEDIALANE";
200
+ readonly onchain: {
201
+ readonly STARKNET: {
202
+ readonly factoryAddress: `0x${string}`;
203
+ readonly classHash: `0x${string}`;
204
+ };
205
+ };
200
206
  readonly uiVariant: "ticket";
201
- readonly capabilities: ["mint", "redeem", "transfer"];
207
+ readonly capabilities: ["mint", "redeem", "list", "buy", "make_offer", "cancel", "transfer"];
202
208
  readonly events: [{
203
209
  readonly name: "CollectionDeployed";
204
210
  readonly emittedBy: "factory";
211
+ }, {
212
+ readonly name: "TicketCreated";
213
+ readonly emittedBy: "instance";
205
214
  }];
206
215
  readonly metadataSchema: {
207
216
  readonly licenseDefault: "CC BY-SA";
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { S as ServiceDefinition, a as ServiceCapability } from './index-DMNv-Oj0.js';
2
- export { A as ADMIN_HEADERS, b as ADMIN_SCOPE, c as ActivityType, d as AddSupplyParams, e as AdminGrant, f as AdminRequest, g as AdminRequestSig, h as AdminSession, i as AdminSessionTypedDataInput, j as ApiActivitiesQuery, k as ApiActivity, l as ApiActivityPrice, m as ApiAdminCollectionClaim, n as ApiAppSource, o as ApiChain, p as ApiClient, q as ApiCoin, r as ApiCoinsQuery, s as ApiCollection, t as ApiCollectionClaim, u as ApiCollectionProfile, v as ApiCollectionSlugClaim, w as ApiCollectionsQuery, x as ApiComment, y as ApiCounterOffersQuery, z as ApiCreatorListResult, B as ApiCreatorProfile, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, R as ApiPortalKeyCreated, T as ApiPortalMe, U as ApiPublicRemix, V as ApiRemixOffer, W as ApiRemixOfferPrice, X as ApiRemixOffersQuery, Y as ApiResponse, Z as ApiRewardsBadge, _ as ApiRewardsBatchEntry, $ as ApiRewardsConfig, a0 as ApiRewardsLeaderboardEntry, a1 as ApiRewardsLevel, a2 as ApiSearchCollectionResult, a3 as ApiSearchCreatorResult, a4 as ApiSearchResult, a5 as ApiSearchTokenResult, a6 as ApiToken, a7 as ApiTokenBalance, a8 as ApiTokenMetadata, a9 as ApiUsageDay, aa as ApiUserRewards, ab as ApiUserWallet, ac as ApiWebhookCreated, ad as ApiWebhookEndpoint, ae as AutoRemixOfferParams, af as BatchMintEditionParams, ag as BuildFeeCallParams, ah as COIN_MAX_SUPPLY, ai as COIN_MIN_SUPPLY, aj as CancelOrderIntentParams, ak as ChainFilter, al as ClaimConditions, am as ClubService, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateClubParams, at as CreateCollectionIntentParams, au as CreateCounterOfferIntentParams, av as CreateCreatorCoinParams, aw as CreateDropParams, ax as CreateEventParams, ay as CreateGrantOpts, az as CreateListingIntentParams, aA as CreateMintIntentParams, aB as CreatePopCollectionParams, aC as CreateRemixOfferParams, aD as CreateSponsorshipOfferParams, aE as CreateWebhookParams, aF as CreatorCoinFactoryABI, aG as CreatorCoinPrice, aH as CreatorCoinReceiptLike, aI as CreatorCoinService, aJ as DeployClubParams, aK as DeployCollectionParams, aL as DropCollectionABI, aM as DropFactoryABI, aN as DropMintStatus, aO as DropService, aP as ERC1155CollectionService, aQ as EkuboLaunchParams, aR as EkuboPoolParams, aS as EnforcementDeclaration, aT as FeeConfig, aU as FeeConfigSchema, aV as FeeSurface, aW as FulfillOrderIntentParams, aX as IPClubABI, aY as IPClubCollectionABI, aZ as IPClubFactoryABI, a_ as IPClubNFTABI, a$ as IPCollection1155ABI, b0 as IPCollection1155FactoryABI, b1 as IPCollectionABI, b2 as IPGenesisABI, b3 as IPMarketplaceABI, b4 as IPNftABI, b5 as IPSponsorshipABI, b6 as IPSponsorshipLicenseABI, b7 as IPTicketCollectionABI, b8 as IPTicketCollectionFactoryABI, b9 as IPType, ba as IntentCall, bb as IntentStatus, bc as IntentType, bd as IpAttribute, be as IpNftMetadata, bf as LAUNCH_PRICE_QUOTE_PER_COIN, bg as MakeOfferIntentParams, bh as Medialane1155ABI, bi as MedialaneApiError, bj as MedialaneClient, bk as MedialaneConfig, bl as MedialaneError, bm as MedialaneErrorCode, bn as MintEditionParams, bo as MintTicketsParams, bp as OPEN_LICENSES, bq as OfferItem, br as OpenLicense, bs as Order, bt as OrderDetails, bu as OrderParameters, bv as OrderStatus, bw as POPCollectionABI, bx as POPFactoryABI, by as ParsedAdminHeaders, bz as PopBatchEligibilityItem, bA as PopClaimStatus, bB as PopEventType, bC as PopService, bD as RemixOfferStatus, bE as RequestSiwsTokenArgs, bF as ResolvedConfig, bG as ResolvedFeeConfig, bH as ResolvedOrder, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SiwsSigner, bL as SortOrder, bM as SponsorshipService, bN as StarknetVenue, bO as StarknetVenueDeps, bP as StarknetVenueSigner, bQ as TenantPlan, bR as TicketService, bS as TxResult, bT as VALIDATED_EKUBO_PARAMS, bU as WebhookEventType, bV as WebhookStatus, bW as adminRequestDigest, bX as build1155CancellationTypedData, bY as build1155OrderTypedData, bZ as buildAdminSessionTypedData, b_ as buildCancellationTypedData, b$ as buildCreateCreatorCoinCall, c0 as buildFeeCall, c1 as buildLaunchOnEkuboCalls, c2 as buildOrderTypedData, c3 as buybackQuoteRaw, c4 as coinToRaw, c5 as createAdminSessionGrant, c6 as encodeAdminHeaders, c7 as encodeByteArray, c8 as fdvHuman, c9 as getCounter, ca as getCounter1155, cb as getCreatorCoinPrice, cc as getOrderDetails, cd as getOrderDetails1155, ce as getSiwsStorageKey, cf as getStoredSiwsToken, cg as isSiwsTokenValid, ch as normalizeSiwsSignature, ci as parseAdminHeaders, cj as parseCreatorCoinCreated, ck as randomNonce, cl as requestSiwsToken, cm as resolveConfig, cn as resolveFeeConfig, co as sessionKeyHashOf, cp as signAdminRequest, cq as storeSiwsToken, cr as teamCoinsRaw, cs as validateCoinName, ct as validateCoinSupply, cu as validateCoinSymbol, cv as verifyAdminRequestSig } from './index-DMNv-Oj0.js';
3
- import { C as Chain } from './types-Bx3ax9lW.js';
4
- export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as VenueSigner, i as getCoordinates, j as getStarknetCoordinates } from './types-Bx3ax9lW.js';
1
+ import { S as ServiceDefinition, a as ServiceCapability } from './index-DjJ4k6p_.js';
2
+ export { A as ADMIN_HEADERS, b as ADMIN_SCOPE, c as ActivityType, d as AddSupplyParams, e as AdminGrant, f as AdminRequest, g as AdminRequestSig, h as AdminSession, i as AdminSessionTypedDataInput, j as ApiActivitiesQuery, k as ApiActivity, l as ApiActivityPrice, m as ApiAdminCollectionClaim, n as ApiAppSource, o as ApiChain, p as ApiClient, q as ApiCoin, r as ApiCoinsQuery, s as ApiCollection, t as ApiCollectionClaim, u as ApiCollectionProfile, v as ApiCollectionSlugClaim, w as ApiCollectionsQuery, x as ApiComment, y as ApiCounterOffersQuery, z as ApiCreatorListResult, B as ApiCreatorProfile, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, R as ApiPortalKeyCreated, T as ApiPortalMe, U as ApiPublicRemix, V as ApiRemixOffer, W as ApiRemixOfferPrice, X as ApiRemixOffersQuery, Y as ApiResponse, Z as ApiRewardsBadge, _ as ApiRewardsBatchEntry, $ as ApiRewardsConfig, a0 as ApiRewardsLeaderboardEntry, a1 as ApiRewardsLevel, a2 as ApiSearchCollectionResult, a3 as ApiSearchCreatorResult, a4 as ApiSearchResult, a5 as ApiSearchTokenResult, a6 as ApiToken, a7 as ApiTokenBalance, a8 as ApiTokenMetadata, a9 as ApiUsageDay, aa as ApiUserRewards, ab as ApiUserWallet, ac as ApiWebhookCreated, ad as ApiWebhookEndpoint, ae as AutoRemixOfferParams, af as BatchMintEditionParams, ag as BuildFeeCallParams, ah as COIN_MAX_SUPPLY, ai as COIN_MIN_SUPPLY, aj as CancelOrderIntentParams, ak as ChainFilter, al as ClaimConditions, am as ClubService, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateClubParams, at as CreateCollectionIntentParams, au as CreateCounterOfferIntentParams, av as CreateCreatorCoinParams, aw as CreateDropParams, ax as CreateGrantOpts, ay as CreateListingIntentParams, az as CreateMintIntentParams, aA as CreatePopCollectionParams, aB as CreateRemixOfferParams, aC as CreateSponsorshipOfferParams, aD as CreateTicketParams, aE as CreateWebhookParams, aF as CreatorCoinFactoryABI, aG as CreatorCoinPrice, aH as CreatorCoinReceiptLike, aI as CreatorCoinService, aJ as DeployClubParams, aK as DeployCollectionParams, aL as DropCollectionABI, aM as DropFactoryABI, aN as DropMintStatus, aO as DropService, aP as ERC1155CollectionService, aQ as EkuboLaunchParams, aR as EkuboPoolParams, aS as EnforcementDeclaration, aT as FeeConfig, aU as FeeConfigSchema, aV as FeeSurface, aW as FulfillOrderIntentParams, aX as IPClubABI, aY as IPClubCollectionABI, aZ as IPClubFactoryABI, a_ as IPClubNFTABI, a$ as IPCollection1155ABI, b0 as IPCollection1155FactoryABI, b1 as IPCollectionABI, b2 as IPGenesisABI, b3 as IPMarketplaceABI, b4 as IPNftABI, b5 as IPSponsorshipABI, b6 as IPSponsorshipLicenseABI, b7 as IPTicketCollectionABI, b8 as IPTicketCollectionFactoryABI, b9 as IPType, ba as IntentCall, bb as IntentStatus, bc as IntentType, bd as IpAttribute, be as IpNftMetadata, bf as LAUNCH_PRICE_QUOTE_PER_COIN, bg as MakeOfferIntentParams, bh as Medialane1155ABI, bi as MedialaneApiError, bj as MedialaneClient, bk as MedialaneConfig, bl as MedialaneError, bm as MedialaneErrorCode, bn as MintEditionParams, bo as MintTicketsParams, bp as OPEN_LICENSES, bq as OfferItem, br as OpenLicense, bs as Order, bt as OrderDetails, bu as OrderParameters, bv as OrderStatus, bw as POPCollectionABI, bx as POPFactoryABI, by as ParsedAdminHeaders, bz as PopBatchEligibilityItem, bA as PopClaimStatus, bB as PopEventType, bC as PopService, bD as RemixOfferStatus, bE as RequestSiwsTokenArgs, bF as ResolvedConfig, bG as ResolvedFeeConfig, bH as ResolvedOrder, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SiwsSigner, bL as SortOrder, bM as SponsorshipService, bN as StarknetVenue, bO as StarknetVenueDeps, bP as StarknetVenueSigner, bQ as TenantPlan, bR as TicketService, bS as TxResult, bT as VALIDATED_EKUBO_PARAMS, bU as WebhookEventType, bV as WebhookStatus, bW as adminRequestDigest, bX as build1155CancellationTypedData, bY as build1155OrderTypedData, bZ as buildAdminSessionTypedData, b_ as buildCancellationTypedData, b$ as buildCreateCreatorCoinCall, c0 as buildFeeCall, c1 as buildLaunchOnEkuboCalls, c2 as buildOrderTypedData, c3 as buybackQuoteRaw, c4 as coinToRaw, c5 as createAdminSessionGrant, c6 as encodeAdminHeaders, c7 as encodeByteArray, c8 as fdvHuman, c9 as getCounter, ca as getCounter1155, cb as getCreatorCoinPrice, cc as getOrderDetails, cd as getOrderDetails1155, ce as getSiwsStorageKey, cf as getStoredSiwsToken, cg as isSiwsTokenValid, ch as normalizeSiwsSignature, ci as parseAdminHeaders, cj as parseCreatorCoinCreated, ck as randomNonce, cl as requestSiwsToken, cm as resolveConfig, cn as resolveFeeConfig, co as sessionKeyHashOf, cp as signAdminRequest, cq as storeSiwsToken, cr as teamCoinsRaw, cs as validateCoinName, ct as validateCoinSupply, cu as validateCoinSymbol, cv as verifyAdminRequestSig } from './index-DjJ4k6p_.js';
3
+ import { C as Chain } from './types-CIR6H6ul.js';
4
+ export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as VenueSigner, i as getCoordinates, j as getStarknetCoordinates } from './types-CIR6H6ul.js';
5
5
  import 'zod';
6
6
  import 'starknet';
7
7
 
@@ -194,14 +194,23 @@ declare const SERVICES: {
194
194
  readonly "ip-tickets": {
195
195
  readonly id: "ip-tickets";
196
196
  readonly displayName: "IP Tickets";
197
- readonly description: "Sell verifiable, redeemable tickets for events and experiences.";
198
- readonly standard: "ERC721";
197
+ readonly description: "Create verifiable on-chain tickets mint to attendees, trade like any collection.";
198
+ readonly standard: "ERC1155";
199
199
  readonly provenance: "MEDIALANE";
200
+ readonly onchain: {
201
+ readonly STARKNET: {
202
+ readonly factoryAddress: `0x${string}`;
203
+ readonly classHash: `0x${string}`;
204
+ };
205
+ };
200
206
  readonly uiVariant: "ticket";
201
- readonly capabilities: ["mint", "redeem", "transfer"];
207
+ readonly capabilities: ["mint", "redeem", "list", "buy", "make_offer", "cancel", "transfer"];
202
208
  readonly events: [{
203
209
  readonly name: "CollectionDeployed";
204
210
  readonly emittedBy: "factory";
211
+ }, {
212
+ readonly name: "TicketCreated";
213
+ readonly emittedBy: "instance";
205
214
  }];
206
215
  readonly metadataSchema: {
207
216
  readonly licenseDefault: "CC BY-SA";
package/dist/index.js CHANGED
@@ -35,16 +35,17 @@ var COORDINATES = {
35
35
  creatorCoinFactoryClassHash: "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55",
36
36
  creatorCoinStartBlock: 10474544,
37
37
  ekuboCore: "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b",
38
- ipTicketsFactory: "0x03ffef4162fe2c44e17d6be2aad3553cab0ac2274cd0b1bb3fafb12fd66695c1",
39
- ipTicketCollectionClassHash: "0x036393fb4241ed55bd12d8b328ed877d08100fadf9150a650e2b84cbab95e1d4",
40
- ipTicketsStartBlock: 11689800,
38
+ ipTicketsFactory: "0x059802639b41e9c6449c3d557703e610ef639a91866dc1dd44216f9f37111ac5",
39
+ ipTicketCollectionClassHash: "0x047bd108881457c4f4db6c64671c1dd402f4d8c79fd9182f03a2dd841335a34b",
40
+ ipTicketsFactoryClassHash: "0x04a739ac3a673ebd0db96bb24475600797c3ed34827e79517f9b2b1640276e6a",
41
+ ipTicketsStartBlock: 11836622,
41
42
  ipClubRegistry: "0x00e189c619b6bb07d78973a149641c59c37eb0716f8584d7520bce12d303eede",
42
43
  ipClubNftClassHash: "0x02bc9b20cca21b04245e9215bf7121f4d7295b195890e449b472b573017fb889",
43
44
  ipClubStartBlock: 11404776,
44
- ipClubFactory: "0x010726346c264d1832a7303afaf5692dbd2b05446fecc6da30d958d0227c36d0",
45
+ ipClubFactory: "0x05519705345ce225db666253a21cf89d1c675658f16cc6ae4320cefd1a1219a3",
45
46
  ipClubFactoryClassHash: "0x07197062578375d962b2d42d3e91560770b11b1c97a9defb74c706a2c5299473",
46
- ipClubCollectionClassHash: "0x049dc5e5ff00e67d5d457c6991ee70822f36a979b76cefd1b617aeccd7051d4b",
47
- ipClubFactoryStartBlock: 11652766,
47
+ ipClubCollectionClassHash: "0x35b8836a2269523ae9176077ec525451cce1053b2acd9fae3b05354aa4eded3",
48
+ ipClubFactoryStartBlock: 11884796,
48
49
  ipSponsorship: "0x044d9b9c3bb29b94685b0a3fe27a5e2dfa30a3637ab55979c718ebcd3268bc2f",
49
50
  ipSponsorshipStartBlock: 11405085,
50
51
  // Dedicated ip-erc721/MIP instance for sponsorship receipts (class hash
@@ -1039,13 +1040,20 @@ var SERVICES = {
1039
1040
  "ip-tickets": {
1040
1041
  id: "ip-tickets",
1041
1042
  displayName: "IP Tickets",
1042
- description: "Sell verifiable, redeemable tickets for events and experiences.",
1043
- standard: "ERC721",
1043
+ description: "Create verifiable on-chain tickets \u2014 mint to attendees, trade like any collection.",
1044
+ standard: "ERC1155",
1044
1045
  provenance: "MEDIALANE",
1046
+ onchain: {
1047
+ STARKNET: {
1048
+ factoryAddress: SN2.ipTicketsFactory,
1049
+ classHash: SN2.ipTicketCollectionClassHash
1050
+ }
1051
+ },
1045
1052
  uiVariant: "ticket",
1046
- capabilities: ["mint", "redeem", "transfer"],
1053
+ capabilities: ["mint", "redeem", "list", "buy", "make_offer", "cancel", "transfer"],
1047
1054
  events: [
1048
- { name: "CollectionDeployed", emittedBy: "factory" }
1055
+ { name: "CollectionDeployed", emittedBy: "factory" },
1056
+ { name: "TicketCreated", emittedBy: "instance" }
1049
1057
  ],
1050
1058
  metadataSchema: { licenseDefault: "CC BY-SA" }
1051
1059
  },
@@ -5837,12 +5845,8 @@ var IPTicketCollectionABI = [
5837
5845
  },
5838
5846
  {
5839
5847
  "type": "struct",
5840
- "name": "ip_ticket::types::EventRecord",
5848
+ "name": "ip_ticket::types::Ticket",
5841
5849
  "members": [
5842
- {
5843
- "name": "creator",
5844
- "type": "core::starknet::contract_address::ContractAddress"
5845
- },
5846
5850
  {
5847
5851
  "name": "max_supply",
5848
5852
  "type": "core::integer::u256"
@@ -5866,10 +5870,6 @@ var IPTicketCollectionABI = [
5866
5870
  {
5867
5871
  "name": "metadata_uri",
5868
5872
  "type": "core::byte_array::ByteArray"
5869
- },
5870
- {
5871
- "name": "active",
5872
- "type": "core::bool"
5873
5873
  }
5874
5874
  ]
5875
5875
  },
@@ -5879,7 +5879,7 @@ var IPTicketCollectionABI = [
5879
5879
  "items": [
5880
5880
  {
5881
5881
  "type": "function",
5882
- "name": "create_event",
5882
+ "name": "create_ticket",
5883
5883
  "inputs": [
5884
5884
  {
5885
5885
  "name": "max_supply",
@@ -5931,52 +5931,69 @@ var IPTicketCollectionABI = [
5931
5931
  },
5932
5932
  {
5933
5933
  "type": "function",
5934
- "name": "pause_event",
5934
+ "name": "is_valid",
5935
5935
  "inputs": [
5936
5936
  {
5937
5937
  "name": "token_id",
5938
5938
  "type": "core::integer::u256"
5939
5939
  },
5940
5940
  {
5941
- "name": "active",
5941
+ "name": "holder",
5942
+ "type": "core::starknet::contract_address::ContractAddress"
5943
+ }
5944
+ ],
5945
+ "outputs": [
5946
+ {
5942
5947
  "type": "core::bool"
5943
5948
  }
5944
5949
  ],
5945
- "outputs": [],
5946
- "state_mutability": "external"
5950
+ "state_mutability": "view"
5947
5951
  },
5948
5952
  {
5949
5953
  "type": "function",
5950
- "name": "is_valid",
5954
+ "name": "get_ticket",
5951
5955
  "inputs": [
5952
5956
  {
5953
5957
  "name": "token_id",
5954
5958
  "type": "core::integer::u256"
5955
- },
5959
+ }
5960
+ ],
5961
+ "outputs": [
5956
5962
  {
5957
- "name": "holder",
5958
- "type": "core::starknet::contract_address::ContractAddress"
5963
+ "type": "ip_ticket::types::Ticket"
5959
5964
  }
5960
5965
  ],
5966
+ "state_mutability": "view"
5967
+ },
5968
+ {
5969
+ "type": "function",
5970
+ "name": "name",
5971
+ "inputs": [],
5961
5972
  "outputs": [
5962
5973
  {
5963
- "type": "core::bool"
5974
+ "type": "core::byte_array::ByteArray"
5964
5975
  }
5965
5976
  ],
5966
5977
  "state_mutability": "view"
5967
5978
  },
5968
5979
  {
5969
5980
  "type": "function",
5970
- "name": "get_event",
5971
- "inputs": [
5981
+ "name": "symbol",
5982
+ "inputs": [],
5983
+ "outputs": [
5972
5984
  {
5973
- "name": "token_id",
5974
- "type": "core::integer::u256"
5985
+ "type": "core::byte_array::ByteArray"
5975
5986
  }
5976
5987
  ],
5988
+ "state_mutability": "view"
5989
+ },
5990
+ {
5991
+ "type": "function",
5992
+ "name": "base_uri",
5993
+ "inputs": [],
5977
5994
  "outputs": [
5978
5995
  {
5979
- "type": "ip_ticket::types::EventRecord"
5996
+ "type": "core::byte_array::ByteArray"
5980
5997
  }
5981
5998
  ],
5982
5999
  "state_mutability": "view"
@@ -6449,6 +6466,10 @@ var IPTicketCollectionABI = [
6449
6466
  "name": "symbol",
6450
6467
  "type": "core::byte_array::ByteArray"
6451
6468
  },
6469
+ {
6470
+ "name": "base_uri",
6471
+ "type": "core::byte_array::ByteArray"
6472
+ },
6452
6473
  {
6453
6474
  "name": "owner",
6454
6475
  "type": "core::starknet::contract_address::ContractAddress"
@@ -6644,7 +6665,7 @@ var IPTicketCollectionABI = [
6644
6665
  },
6645
6666
  {
6646
6667
  "type": "event",
6647
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::EventCreated",
6668
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated",
6648
6669
  "kind": "struct",
6649
6670
  "members": [
6650
6671
  {
@@ -6679,23 +6700,6 @@ var IPTicketCollectionABI = [
6679
6700
  }
6680
6701
  ]
6681
6702
  },
6682
- {
6683
- "type": "event",
6684
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused",
6685
- "kind": "struct",
6686
- "members": [
6687
- {
6688
- "name": "token_id",
6689
- "type": "core::integer::u256",
6690
- "kind": "key"
6691
- },
6692
- {
6693
- "name": "active",
6694
- "type": "core::bool",
6695
- "kind": "data"
6696
- }
6697
- ]
6698
- },
6699
6703
  {
6700
6704
  "type": "event",
6701
6705
  "name": "ip_ticket::IPTicketCollection::IPTicketCollection::Event",
@@ -6717,13 +6721,8 @@ var IPTicketCollectionABI = [
6717
6721
  "kind": "flat"
6718
6722
  },
6719
6723
  {
6720
- "name": "EventCreated",
6721
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::EventCreated",
6722
- "kind": "nested"
6723
- },
6724
- {
6725
- "name": "EventPaused",
6726
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused",
6724
+ "name": "TicketCreated",
6725
+ "type": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated",
6727
6726
  "kind": "nested"
6728
6727
  }
6729
6728
  ]
@@ -6792,6 +6791,10 @@ var IPTicketCollectionFactoryABI = [
6792
6791
  {
6793
6792
  "name": "symbol",
6794
6793
  "type": "core::byte_array::ByteArray"
6794
+ },
6795
+ {
6796
+ "name": "base_uri",
6797
+ "type": "core::byte_array::ByteArray"
6795
6798
  }
6796
6799
  ],
6797
6800
  "outputs": [
@@ -11814,17 +11817,25 @@ var TicketService = class {
11814
11817
  const provider = new RpcProvider({ nodeUrl: this.config.rpcUrl });
11815
11818
  return newContract(IPTicketCollectionABI, normalizeAddress("STARKNET", address), provider);
11816
11819
  }
11817
- /** Deploys a new IPTicketCollection via the factory. Caller becomes owner. */
11820
+ /**
11821
+ * Deploys a new IPTicketCollection via the factory. Caller becomes owner.
11822
+ * `baseUri` is the collection-level metadata URI, embedded on-chain in the
11823
+ * deploy transaction.
11824
+ */
11818
11825
  async deployCollection(account, params) {
11819
- const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [params.name, params.symbol]);
11826
+ const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [
11827
+ params.name,
11828
+ params.symbol,
11829
+ params.baseUri
11830
+ ]);
11820
11831
  const res = await account.execute([call]);
11821
11832
  return { txHash: res.transaction_hash };
11822
11833
  }
11823
- /** Owner-only. Creates a new event inside the caller's deployed collection. */
11824
- async createEvent(account, params) {
11834
+ /** Owner-only. Creates a new ticket inside the caller's deployed collection. */
11835
+ async createTicket(account, params) {
11825
11836
  const startTime = params.startTime != null ? new CairoOption(CairoOptionVariant.Some, params.startTime) : new CairoOption(CairoOptionVariant.None);
11826
11837
  const endTime = params.endTime != null ? new CairoOption(CairoOptionVariant.Some, params.endTime) : new CairoOption(CairoOptionVariant.None);
11827
- const call = this._collection(params.collection, account).populate("create_event", [
11838
+ const call = this._collection(params.collection, account).populate("create_ticket", [
11828
11839
  cairo.uint256(params.maxSupply),
11829
11840
  startTime,
11830
11841
  endTime,
@@ -11844,16 +11855,7 @@ var TicketService = class {
11844
11855
  const res = await account.execute([call]);
11845
11856
  return { txHash: res.transaction_hash };
11846
11857
  }
11847
- /** Owner-only. Pauses or resumes minting for one event. */
11848
- async pauseEvent(account, params) {
11849
- const call = this._collection(params.collection, account).populate("pause_event", [
11850
- cairo.uint256(params.tokenId),
11851
- params.active
11852
- ]);
11853
- const res = await account.execute([call]);
11854
- return { txHash: res.transaction_hash };
11855
- }
11856
- /** Read — true if holder has balance > 0 and current time is within the event window. */
11858
+ /** Read true if holder has balance > 0 and current time is within the ticket window. */
11857
11859
  async isValid(params) {
11858
11860
  const result = await this._collectionRead(params.collection).call("is_valid", [
11859
11861
  cairo.uint256(params.tokenId),
@@ -11861,20 +11863,18 @@ var TicketService = class {
11861
11863
  ]);
11862
11864
  return Boolean(result);
11863
11865
  }
11864
- /** Read — returns the EventRecord for a token ID. */
11865
- async getEvent(params) {
11866
- const ev = await this._collectionRead(params.collection).call("get_event", [
11866
+ /** Read — returns the Ticket record for a token ID. */
11867
+ async getTicket(params) {
11868
+ const t = await this._collectionRead(params.collection).call("get_ticket", [
11867
11869
  cairo.uint256(params.tokenId)
11868
11870
  ]);
11869
11871
  return {
11870
- creator: ev.creator,
11871
- maxSupply: BigInt(ev.max_supply),
11872
- minted: BigInt(ev.minted),
11873
- startTime: ev.start_time?.variant === "Some" ? Number(ev.start_time.values[0] ?? ev.start_time.value) : null,
11874
- endTime: ev.end_time?.variant === "Some" ? Number(ev.end_time.values[0] ?? ev.end_time.value) : null,
11875
- royaltyBps: Number(ev.royalty_bps),
11876
- metadataUri: ev.metadata_uri,
11877
- active: Boolean(ev.active)
11872
+ maxSupply: BigInt(t.max_supply),
11873
+ minted: BigInt(t.minted),
11874
+ startTime: t.start_time?.variant === "Some" ? Number(t.start_time.values[0] ?? t.start_time.value) : null,
11875
+ endTime: t.end_time?.variant === "Some" ? Number(t.end_time.values[0] ?? t.end_time.value) : null,
11876
+ royaltyBps: Number(t.royalty_bps),
11877
+ metadataUri: t.metadata_uri
11878
11878
  };
11879
11879
  }
11880
11880
  };