@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/evm/index.cjs +7 -6
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +7 -6
- package/dist/evm/index.js.map +1 -1
- package/dist/{index-DMNv-Oj0.d.ts → index-C2EaTkzk.d.cts} +60 -67
- package/dist/{index-_q2B0g3M.d.cts → index-DjJ4k6p_.d.ts} +60 -67
- package/dist/index.cjs +85 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +85 -85
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +7 -6
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +7 -6
- package/dist/solana/index.js.map +1 -1
- package/dist/starknet/index.cjs +74 -81
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +74 -81
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +7 -6
- package/dist/stellar/index.cjs.map +1 -1
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/stellar/index.js +7 -6
- package/dist/stellar/index.js.map +1 -1
- package/dist/{types-Bx3ax9lW.d.cts → types-CIR6H6ul.d.cts} +1 -0
- package/dist/{types-Bx3ax9lW.d.ts → types-CIR6H6ul.d.ts} +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as Chain, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, h as VenueSigner } from './types-
|
|
2
|
+
import { C as Chain, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, h as VenueSigner } from './types-CIR6H6ul.cjs';
|
|
3
3
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants } from 'starknet';
|
|
4
4
|
|
|
5
5
|
interface RetryOptions {
|
|
@@ -1277,7 +1277,7 @@ interface CreateDropParams {
|
|
|
1277
1277
|
maxSupply: bigint | string;
|
|
1278
1278
|
initialConditions: ClaimConditions;
|
|
1279
1279
|
}
|
|
1280
|
-
interface
|
|
1280
|
+
interface CreateTicketParams {
|
|
1281
1281
|
/** Address of the deployed IPTicketCollection contract. */
|
|
1282
1282
|
collection: string;
|
|
1283
1283
|
maxSupply: bigint | string;
|
|
@@ -1631,6 +1631,14 @@ declare class CreatorCoinService {
|
|
|
1631
1631
|
getPrice(coinAddress: string): Promise<CreatorCoinPrice | null>;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
+
interface TicketRecord {
|
|
1635
|
+
maxSupply: bigint;
|
|
1636
|
+
minted: bigint;
|
|
1637
|
+
startTime: number | null;
|
|
1638
|
+
endTime: number | null;
|
|
1639
|
+
royaltyBps: number;
|
|
1640
|
+
metadataUri: string;
|
|
1641
|
+
}
|
|
1634
1642
|
declare class TicketService {
|
|
1635
1643
|
private readonly factoryAddress?;
|
|
1636
1644
|
private readonly config;
|
|
@@ -1638,42 +1646,32 @@ declare class TicketService {
|
|
|
1638
1646
|
private _factory;
|
|
1639
1647
|
private _collection;
|
|
1640
1648
|
private _collectionRead;
|
|
1641
|
-
/**
|
|
1649
|
+
/**
|
|
1650
|
+
* Deploys a new IPTicketCollection via the factory. Caller becomes owner.
|
|
1651
|
+
* `baseUri` is the collection-level metadata URI, embedded on-chain in the
|
|
1652
|
+
* deploy transaction.
|
|
1653
|
+
*/
|
|
1642
1654
|
deployCollection(account: AccountInterface, params: {
|
|
1643
1655
|
name: string;
|
|
1644
1656
|
symbol: string;
|
|
1657
|
+
baseUri: string;
|
|
1645
1658
|
factoryAddress?: string;
|
|
1646
1659
|
}): Promise<TxResult>;
|
|
1647
|
-
/** Owner-only. Creates a new
|
|
1648
|
-
|
|
1660
|
+
/** Owner-only. Creates a new ticket inside the caller's deployed collection. */
|
|
1661
|
+
createTicket(account: AccountInterface, params: CreateTicketParams): Promise<TxResult>;
|
|
1649
1662
|
/** Owner-only. Mints `amount` of `tokenId` to `to`. */
|
|
1650
1663
|
mint(account: AccountInterface, params: MintTicketsParams): Promise<TxResult>;
|
|
1651
|
-
/**
|
|
1652
|
-
pauseEvent(account: AccountInterface, params: {
|
|
1653
|
-
collection: string;
|
|
1654
|
-
tokenId: bigint | string;
|
|
1655
|
-
active: boolean;
|
|
1656
|
-
}): Promise<TxResult>;
|
|
1657
|
-
/** Read — true if holder has balance > 0 and current time is within the event window. */
|
|
1664
|
+
/** Read — true if holder has balance > 0 and current time is within the ticket window. */
|
|
1658
1665
|
isValid(params: {
|
|
1659
1666
|
collection: string;
|
|
1660
1667
|
tokenId: bigint | string;
|
|
1661
1668
|
holder: string;
|
|
1662
1669
|
}): Promise<boolean>;
|
|
1663
|
-
/** Read — returns the
|
|
1664
|
-
|
|
1670
|
+
/** Read — returns the Ticket record for a token ID. */
|
|
1671
|
+
getTicket(params: {
|
|
1665
1672
|
collection: string;
|
|
1666
1673
|
tokenId: bigint | string;
|
|
1667
|
-
}): Promise<
|
|
1668
|
-
creator: string;
|
|
1669
|
-
maxSupply: bigint;
|
|
1670
|
-
minted: bigint;
|
|
1671
|
-
startTime: number | null;
|
|
1672
|
-
endTime: number | null;
|
|
1673
|
-
royaltyBps: number;
|
|
1674
|
-
metadataUri: string;
|
|
1675
|
-
active: boolean;
|
|
1676
|
-
}>;
|
|
1674
|
+
}): Promise<TicketRecord>;
|
|
1677
1675
|
}
|
|
1678
1676
|
|
|
1679
1677
|
declare class ClubService {
|
|
@@ -5961,11 +5959,8 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
5961
5959
|
}];
|
|
5962
5960
|
}, {
|
|
5963
5961
|
readonly type: "struct";
|
|
5964
|
-
readonly name: "ip_ticket::types::
|
|
5962
|
+
readonly name: "ip_ticket::types::Ticket";
|
|
5965
5963
|
readonly members: readonly [{
|
|
5966
|
-
readonly name: "creator";
|
|
5967
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5968
|
-
}, {
|
|
5969
5964
|
readonly name: "max_supply";
|
|
5970
5965
|
readonly type: "core::integer::u256";
|
|
5971
5966
|
}, {
|
|
@@ -5983,16 +5978,13 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
5983
5978
|
}, {
|
|
5984
5979
|
readonly name: "metadata_uri";
|
|
5985
5980
|
readonly type: "core::byte_array::ByteArray";
|
|
5986
|
-
}, {
|
|
5987
|
-
readonly name: "active";
|
|
5988
|
-
readonly type: "core::bool";
|
|
5989
5981
|
}];
|
|
5990
5982
|
}, {
|
|
5991
5983
|
readonly type: "interface";
|
|
5992
5984
|
readonly name: "ip_ticket::interface::IIPTicketCollection";
|
|
5993
5985
|
readonly items: readonly [{
|
|
5994
5986
|
readonly type: "function";
|
|
5995
|
-
readonly name: "
|
|
5987
|
+
readonly name: "create_ticket";
|
|
5996
5988
|
readonly inputs: readonly [{
|
|
5997
5989
|
readonly name: "max_supply";
|
|
5998
5990
|
readonly type: "core::integer::u256";
|
|
@@ -6028,18 +6020,6 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6028
6020
|
}];
|
|
6029
6021
|
readonly outputs: readonly [];
|
|
6030
6022
|
readonly state_mutability: "external";
|
|
6031
|
-
}, {
|
|
6032
|
-
readonly type: "function";
|
|
6033
|
-
readonly name: "pause_event";
|
|
6034
|
-
readonly inputs: readonly [{
|
|
6035
|
-
readonly name: "token_id";
|
|
6036
|
-
readonly type: "core::integer::u256";
|
|
6037
|
-
}, {
|
|
6038
|
-
readonly name: "active";
|
|
6039
|
-
readonly type: "core::bool";
|
|
6040
|
-
}];
|
|
6041
|
-
readonly outputs: readonly [];
|
|
6042
|
-
readonly state_mutability: "external";
|
|
6043
6023
|
}, {
|
|
6044
6024
|
readonly type: "function";
|
|
6045
6025
|
readonly name: "is_valid";
|
|
@@ -6056,13 +6036,37 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6056
6036
|
readonly state_mutability: "view";
|
|
6057
6037
|
}, {
|
|
6058
6038
|
readonly type: "function";
|
|
6059
|
-
readonly name: "
|
|
6039
|
+
readonly name: "get_ticket";
|
|
6060
6040
|
readonly inputs: readonly [{
|
|
6061
6041
|
readonly name: "token_id";
|
|
6062
6042
|
readonly type: "core::integer::u256";
|
|
6063
6043
|
}];
|
|
6064
6044
|
readonly outputs: readonly [{
|
|
6065
|
-
readonly type: "ip_ticket::types::
|
|
6045
|
+
readonly type: "ip_ticket::types::Ticket";
|
|
6046
|
+
}];
|
|
6047
|
+
readonly state_mutability: "view";
|
|
6048
|
+
}, {
|
|
6049
|
+
readonly type: "function";
|
|
6050
|
+
readonly name: "name";
|
|
6051
|
+
readonly inputs: readonly [];
|
|
6052
|
+
readonly outputs: readonly [{
|
|
6053
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6054
|
+
}];
|
|
6055
|
+
readonly state_mutability: "view";
|
|
6056
|
+
}, {
|
|
6057
|
+
readonly type: "function";
|
|
6058
|
+
readonly name: "symbol";
|
|
6059
|
+
readonly inputs: readonly [];
|
|
6060
|
+
readonly outputs: readonly [{
|
|
6061
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6062
|
+
}];
|
|
6063
|
+
readonly state_mutability: "view";
|
|
6064
|
+
}, {
|
|
6065
|
+
readonly type: "function";
|
|
6066
|
+
readonly name: "base_uri";
|
|
6067
|
+
readonly inputs: readonly [];
|
|
6068
|
+
readonly outputs: readonly [{
|
|
6069
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6066
6070
|
}];
|
|
6067
6071
|
readonly state_mutability: "view";
|
|
6068
6072
|
}, {
|
|
@@ -6405,6 +6409,9 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6405
6409
|
}, {
|
|
6406
6410
|
readonly name: "symbol";
|
|
6407
6411
|
readonly type: "core::byte_array::ByteArray";
|
|
6412
|
+
}, {
|
|
6413
|
+
readonly name: "base_uri";
|
|
6414
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6408
6415
|
}, {
|
|
6409
6416
|
readonly name: "owner";
|
|
6410
6417
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -6556,7 +6563,7 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6556
6563
|
}];
|
|
6557
6564
|
}, {
|
|
6558
6565
|
readonly type: "event";
|
|
6559
|
-
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::
|
|
6566
|
+
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated";
|
|
6560
6567
|
readonly kind: "struct";
|
|
6561
6568
|
readonly members: readonly [{
|
|
6562
6569
|
readonly name: "token_id";
|
|
@@ -6583,19 +6590,6 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6583
6590
|
readonly type: "core::integer::u64";
|
|
6584
6591
|
readonly kind: "data";
|
|
6585
6592
|
}];
|
|
6586
|
-
}, {
|
|
6587
|
-
readonly type: "event";
|
|
6588
|
-
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused";
|
|
6589
|
-
readonly kind: "struct";
|
|
6590
|
-
readonly members: readonly [{
|
|
6591
|
-
readonly name: "token_id";
|
|
6592
|
-
readonly type: "core::integer::u256";
|
|
6593
|
-
readonly kind: "key";
|
|
6594
|
-
}, {
|
|
6595
|
-
readonly name: "active";
|
|
6596
|
-
readonly type: "core::bool";
|
|
6597
|
-
readonly kind: "data";
|
|
6598
|
-
}];
|
|
6599
6593
|
}, {
|
|
6600
6594
|
readonly type: "event";
|
|
6601
6595
|
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::Event";
|
|
@@ -6613,12 +6607,8 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6613
6607
|
readonly type: "openzeppelin_access::ownable::ownable::OwnableComponent::Event";
|
|
6614
6608
|
readonly kind: "flat";
|
|
6615
6609
|
}, {
|
|
6616
|
-
readonly name: "
|
|
6617
|
-
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::
|
|
6618
|
-
readonly kind: "nested";
|
|
6619
|
-
}, {
|
|
6620
|
-
readonly name: "EventPaused";
|
|
6621
|
-
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused";
|
|
6610
|
+
readonly name: "TicketCreated";
|
|
6611
|
+
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated";
|
|
6622
6612
|
readonly kind: "nested";
|
|
6623
6613
|
}];
|
|
6624
6614
|
}];
|
|
@@ -6668,6 +6658,9 @@ declare const IPTicketCollectionFactoryABI: readonly [{
|
|
|
6668
6658
|
}, {
|
|
6669
6659
|
readonly name: "symbol";
|
|
6670
6660
|
readonly type: "core::byte_array::ByteArray";
|
|
6661
|
+
}, {
|
|
6662
|
+
readonly name: "base_uri";
|
|
6663
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6671
6664
|
}];
|
|
6672
6665
|
readonly outputs: readonly [{
|
|
6673
6666
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -10137,4 +10130,4 @@ declare function build1155CancellationTypedData(message: Record<string, unknown>
|
|
|
10137
10130
|
|
|
10138
10131
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
10139
10132
|
|
|
10140
|
-
export { type ApiRewardsConfig as $, ADMIN_HEADERS as A, type ApiCreatorProfile as B, type ApiIntent as C, type ApiIntentCreated as D, type ApiKeyStatus as E, type ApiMeta as F, type ApiMetadataSignedUrl as G, type ApiMetadataUpload as H, type ApiOrder as I, type ApiOrderConsideration as J, type ApiOrderOffer as K, type ApiOrderPrice as L, type ApiOrderTokenMeta as M, type ApiOrderTxHash as N, type ApiOrdersQuery as O, type ApiPointEvent as P, type ApiPortalKey as Q, type ApiPortalKeyCreated as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, IPCollection1155ABI as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type
|
|
10133
|
+
export { type ApiRewardsConfig as $, ADMIN_HEADERS as A, type ApiCreatorProfile as B, type ApiIntent as C, type ApiIntentCreated as D, type ApiKeyStatus as E, type ApiMeta as F, type ApiMetadataSignedUrl as G, type ApiMetadataUpload as H, type ApiOrder as I, type ApiOrderConsideration as J, type ApiOrderOffer as K, type ApiOrderPrice as L, type ApiOrderTokenMeta as M, type ApiOrderTxHash as N, type ApiOrdersQuery as O, type ApiPointEvent as P, type ApiPortalKey as Q, type ApiPortalKeyCreated as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, IPCollection1155ABI as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreatePopCollectionParams as aA, type CreateRemixOfferParams as aB, type CreateSponsorshipOfferParams as aC, type CreateTicketParams as aD, type CreateWebhookParams as aE, CreatorCoinFactoryABI as aF, type CreatorCoinPrice as aG, type CreatorCoinReceiptLike as aH, CreatorCoinService as aI, type DeployClubParams as aJ, type DeployCollectionParams as aK, DropCollectionABI as aL, DropFactoryABI as aM, type DropMintStatus as aN, DropService as aO, ERC1155CollectionService as aP, type EkuboLaunchParams as aQ, type EkuboPoolParams as aR, type EnforcementDeclaration as aS, type FeeConfig as aT, FeeConfigSchema as aU, type FeeSurface as aV, type FulfillOrderIntentParams as aW, IPClubABI as aX, IPClubCollectionABI as aY, IPClubFactoryABI as aZ, IPClubNFTABI as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWebhookCreated as ac, type ApiWebhookEndpoint as ad, type AutoRemixOfferParams as ae, type BatchMintEditionParams as af, type BuildFeeCallParams as ag, MAX_SUPPLY as ah, MIN_SUPPLY as ai, type CancelOrderIntentParams as aj, type ChainFilter as ak, type ClaimConditions as al, ClubService as am, type CollectionSort as an, type CollectionTokensSort as ao, type ConfirmRemixOfferParams as ap, type ConfirmSelfRemixParams as aq, type ConsiderationItem as ar, type CreateClubParams as as, type CreateCollectionIntentParams as at, type CreateCounterOfferIntentParams as au, type CreateCreatorCoinParams as av, type CreateDropParams as aw, type CreateGrantOpts as ax, type CreateListingIntentParams as ay, type CreateMintIntentParams as az, ADMIN_SCOPE as b, buildCreateCreatorCoinCall as b$, IPCollection1155FactoryABI as b0, IPCollectionABI as b1, IPGenesisABI as b2, IPMarketplaceABI as b3, IPNftABI as b4, IPSponsorshipABI as b5, IPSponsorshipLicenseABI as b6, IPTicketCollectionABI as b7, IPTicketCollectionFactoryABI as b8, type IPType as b9, type PopClaimStatus as bA, type PopEventType as bB, PopService as bC, type RemixOfferStatus as bD, type RequestSiwsTokenArgs as bE, type ResolvedConfig as bF, type ResolvedFeeConfig as bG, type ResolvedOrder as bH, type RetryOptions as bI, type ServiceEventDeclaration as bJ, type SiwsSigner as bK, type SortOrder as bL, SponsorshipService as bM, StarknetVenue as bN, type StarknetVenueDeps as bO, type StarknetVenueSigner as bP, type TenantPlan as bQ, TicketService as bR, type TxResult as bS, VALIDATED_EKUBO_PARAMS as bT, type WebhookEventType as bU, type WebhookStatus as bV, adminRequestDigest as bW, build1155CancellationTypedData as bX, build1155OrderTypedData as bY, buildAdminSessionTypedData as bZ, buildCancellationTypedData as b_, type IntentCall as ba, type IntentStatus as bb, type IntentType as bc, type IpAttribute as bd, type IpNftMetadata as be, LAUNCH_PRICE_QUOTE_PER_COIN as bf, type MakeOfferIntentParams as bg, Medialane1155ABI as bh, MedialaneApiError as bi, MedialaneClient as bj, type MedialaneConfig as bk, MedialaneError as bl, type MedialaneErrorCode as bm, type MintEditionParams as bn, type MintTicketsParams as bo, OPEN_LICENSES as bp, type OfferItem as bq, type OpenLicense as br, type Order as bs, type OrderDetails as bt, type OrderParameters as bu, type OrderStatus as bv, POPCollectionABI as bw, POPFactoryABI as bx, type ParsedAdminHeaders as by, type PopBatchEligibilityItem as bz, type ActivityType as c, buildFeeCall as c0, buildLaunchOnEkuboCalls as c1, buildOrderTypedData as c2, buybackQuoteRaw as c3, toRaw as c4, createAdminSessionGrant as c5, encodeAdminHeaders as c6, encodeByteArray as c7, fdvHuman as c8, getCounter as c9, getCounter1155 as ca, getCreatorCoinPrice as cb, getOrderDetails as cc, getOrderDetails1155 as cd, getSiwsStorageKey as ce, getStoredSiwsToken as cf, isSiwsTokenValid as cg, normalizeSiwsSignature as ch, parseAdminHeaders as ci, parseCreatorCoinCreated as cj, randomNonce as ck, requestSiwsToken as cl, resolveConfig as cm, resolveFeeConfig as cn, sessionKeyHashOf as co, signAdminRequest as cp, storeSiwsToken as cq, teamCoinsRaw as cr, validateName as cs, validateSupply as ct, validateSymbol as cu, verifyAdminRequestSig as cv, type AddSupplyParams as d, type AdminGrant as e, type AdminRequest as f, type AdminRequestSig as g, type AdminSession as h, type AdminSessionTypedDataInput as i, type ApiActivitiesQuery as j, type ApiActivity as k, type ApiActivityPrice as l, type ApiAdminCollectionClaim as m, type ApiAppSource as n, type ApiChain as o, ApiClient as p, type ApiCoin as q, type ApiCoinsQuery as r, type ApiCollection as s, type ApiCollectionClaim as t, type ApiCollectionProfile as u, type ApiCollectionSlugClaim as v, type ApiCollectionsQuery as w, type ApiComment as x, type ApiCounterOffersQuery as y, type ApiCreatorListResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as Chain, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, h as VenueSigner } from './types-
|
|
2
|
+
import { C as Chain, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, h as VenueSigner } from './types-CIR6H6ul.js';
|
|
3
3
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants } from 'starknet';
|
|
4
4
|
|
|
5
5
|
interface RetryOptions {
|
|
@@ -1277,7 +1277,7 @@ interface CreateDropParams {
|
|
|
1277
1277
|
maxSupply: bigint | string;
|
|
1278
1278
|
initialConditions: ClaimConditions;
|
|
1279
1279
|
}
|
|
1280
|
-
interface
|
|
1280
|
+
interface CreateTicketParams {
|
|
1281
1281
|
/** Address of the deployed IPTicketCollection contract. */
|
|
1282
1282
|
collection: string;
|
|
1283
1283
|
maxSupply: bigint | string;
|
|
@@ -1631,6 +1631,14 @@ declare class CreatorCoinService {
|
|
|
1631
1631
|
getPrice(coinAddress: string): Promise<CreatorCoinPrice | null>;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
+
interface TicketRecord {
|
|
1635
|
+
maxSupply: bigint;
|
|
1636
|
+
minted: bigint;
|
|
1637
|
+
startTime: number | null;
|
|
1638
|
+
endTime: number | null;
|
|
1639
|
+
royaltyBps: number;
|
|
1640
|
+
metadataUri: string;
|
|
1641
|
+
}
|
|
1634
1642
|
declare class TicketService {
|
|
1635
1643
|
private readonly factoryAddress?;
|
|
1636
1644
|
private readonly config;
|
|
@@ -1638,42 +1646,32 @@ declare class TicketService {
|
|
|
1638
1646
|
private _factory;
|
|
1639
1647
|
private _collection;
|
|
1640
1648
|
private _collectionRead;
|
|
1641
|
-
/**
|
|
1649
|
+
/**
|
|
1650
|
+
* Deploys a new IPTicketCollection via the factory. Caller becomes owner.
|
|
1651
|
+
* `baseUri` is the collection-level metadata URI, embedded on-chain in the
|
|
1652
|
+
* deploy transaction.
|
|
1653
|
+
*/
|
|
1642
1654
|
deployCollection(account: AccountInterface, params: {
|
|
1643
1655
|
name: string;
|
|
1644
1656
|
symbol: string;
|
|
1657
|
+
baseUri: string;
|
|
1645
1658
|
factoryAddress?: string;
|
|
1646
1659
|
}): Promise<TxResult>;
|
|
1647
|
-
/** Owner-only. Creates a new
|
|
1648
|
-
|
|
1660
|
+
/** Owner-only. Creates a new ticket inside the caller's deployed collection. */
|
|
1661
|
+
createTicket(account: AccountInterface, params: CreateTicketParams): Promise<TxResult>;
|
|
1649
1662
|
/** Owner-only. Mints `amount` of `tokenId` to `to`. */
|
|
1650
1663
|
mint(account: AccountInterface, params: MintTicketsParams): Promise<TxResult>;
|
|
1651
|
-
/**
|
|
1652
|
-
pauseEvent(account: AccountInterface, params: {
|
|
1653
|
-
collection: string;
|
|
1654
|
-
tokenId: bigint | string;
|
|
1655
|
-
active: boolean;
|
|
1656
|
-
}): Promise<TxResult>;
|
|
1657
|
-
/** Read — true if holder has balance > 0 and current time is within the event window. */
|
|
1664
|
+
/** Read — true if holder has balance > 0 and current time is within the ticket window. */
|
|
1658
1665
|
isValid(params: {
|
|
1659
1666
|
collection: string;
|
|
1660
1667
|
tokenId: bigint | string;
|
|
1661
1668
|
holder: string;
|
|
1662
1669
|
}): Promise<boolean>;
|
|
1663
|
-
/** Read — returns the
|
|
1664
|
-
|
|
1670
|
+
/** Read — returns the Ticket record for a token ID. */
|
|
1671
|
+
getTicket(params: {
|
|
1665
1672
|
collection: string;
|
|
1666
1673
|
tokenId: bigint | string;
|
|
1667
|
-
}): Promise<
|
|
1668
|
-
creator: string;
|
|
1669
|
-
maxSupply: bigint;
|
|
1670
|
-
minted: bigint;
|
|
1671
|
-
startTime: number | null;
|
|
1672
|
-
endTime: number | null;
|
|
1673
|
-
royaltyBps: number;
|
|
1674
|
-
metadataUri: string;
|
|
1675
|
-
active: boolean;
|
|
1676
|
-
}>;
|
|
1674
|
+
}): Promise<TicketRecord>;
|
|
1677
1675
|
}
|
|
1678
1676
|
|
|
1679
1677
|
declare class ClubService {
|
|
@@ -5961,11 +5959,8 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
5961
5959
|
}];
|
|
5962
5960
|
}, {
|
|
5963
5961
|
readonly type: "struct";
|
|
5964
|
-
readonly name: "ip_ticket::types::
|
|
5962
|
+
readonly name: "ip_ticket::types::Ticket";
|
|
5965
5963
|
readonly members: readonly [{
|
|
5966
|
-
readonly name: "creator";
|
|
5967
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
5968
|
-
}, {
|
|
5969
5964
|
readonly name: "max_supply";
|
|
5970
5965
|
readonly type: "core::integer::u256";
|
|
5971
5966
|
}, {
|
|
@@ -5983,16 +5978,13 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
5983
5978
|
}, {
|
|
5984
5979
|
readonly name: "metadata_uri";
|
|
5985
5980
|
readonly type: "core::byte_array::ByteArray";
|
|
5986
|
-
}, {
|
|
5987
|
-
readonly name: "active";
|
|
5988
|
-
readonly type: "core::bool";
|
|
5989
5981
|
}];
|
|
5990
5982
|
}, {
|
|
5991
5983
|
readonly type: "interface";
|
|
5992
5984
|
readonly name: "ip_ticket::interface::IIPTicketCollection";
|
|
5993
5985
|
readonly items: readonly [{
|
|
5994
5986
|
readonly type: "function";
|
|
5995
|
-
readonly name: "
|
|
5987
|
+
readonly name: "create_ticket";
|
|
5996
5988
|
readonly inputs: readonly [{
|
|
5997
5989
|
readonly name: "max_supply";
|
|
5998
5990
|
readonly type: "core::integer::u256";
|
|
@@ -6028,18 +6020,6 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6028
6020
|
}];
|
|
6029
6021
|
readonly outputs: readonly [];
|
|
6030
6022
|
readonly state_mutability: "external";
|
|
6031
|
-
}, {
|
|
6032
|
-
readonly type: "function";
|
|
6033
|
-
readonly name: "pause_event";
|
|
6034
|
-
readonly inputs: readonly [{
|
|
6035
|
-
readonly name: "token_id";
|
|
6036
|
-
readonly type: "core::integer::u256";
|
|
6037
|
-
}, {
|
|
6038
|
-
readonly name: "active";
|
|
6039
|
-
readonly type: "core::bool";
|
|
6040
|
-
}];
|
|
6041
|
-
readonly outputs: readonly [];
|
|
6042
|
-
readonly state_mutability: "external";
|
|
6043
6023
|
}, {
|
|
6044
6024
|
readonly type: "function";
|
|
6045
6025
|
readonly name: "is_valid";
|
|
@@ -6056,13 +6036,37 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6056
6036
|
readonly state_mutability: "view";
|
|
6057
6037
|
}, {
|
|
6058
6038
|
readonly type: "function";
|
|
6059
|
-
readonly name: "
|
|
6039
|
+
readonly name: "get_ticket";
|
|
6060
6040
|
readonly inputs: readonly [{
|
|
6061
6041
|
readonly name: "token_id";
|
|
6062
6042
|
readonly type: "core::integer::u256";
|
|
6063
6043
|
}];
|
|
6064
6044
|
readonly outputs: readonly [{
|
|
6065
|
-
readonly type: "ip_ticket::types::
|
|
6045
|
+
readonly type: "ip_ticket::types::Ticket";
|
|
6046
|
+
}];
|
|
6047
|
+
readonly state_mutability: "view";
|
|
6048
|
+
}, {
|
|
6049
|
+
readonly type: "function";
|
|
6050
|
+
readonly name: "name";
|
|
6051
|
+
readonly inputs: readonly [];
|
|
6052
|
+
readonly outputs: readonly [{
|
|
6053
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6054
|
+
}];
|
|
6055
|
+
readonly state_mutability: "view";
|
|
6056
|
+
}, {
|
|
6057
|
+
readonly type: "function";
|
|
6058
|
+
readonly name: "symbol";
|
|
6059
|
+
readonly inputs: readonly [];
|
|
6060
|
+
readonly outputs: readonly [{
|
|
6061
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6062
|
+
}];
|
|
6063
|
+
readonly state_mutability: "view";
|
|
6064
|
+
}, {
|
|
6065
|
+
readonly type: "function";
|
|
6066
|
+
readonly name: "base_uri";
|
|
6067
|
+
readonly inputs: readonly [];
|
|
6068
|
+
readonly outputs: readonly [{
|
|
6069
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6066
6070
|
}];
|
|
6067
6071
|
readonly state_mutability: "view";
|
|
6068
6072
|
}, {
|
|
@@ -6405,6 +6409,9 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6405
6409
|
}, {
|
|
6406
6410
|
readonly name: "symbol";
|
|
6407
6411
|
readonly type: "core::byte_array::ByteArray";
|
|
6412
|
+
}, {
|
|
6413
|
+
readonly name: "base_uri";
|
|
6414
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6408
6415
|
}, {
|
|
6409
6416
|
readonly name: "owner";
|
|
6410
6417
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -6556,7 +6563,7 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6556
6563
|
}];
|
|
6557
6564
|
}, {
|
|
6558
6565
|
readonly type: "event";
|
|
6559
|
-
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::
|
|
6566
|
+
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated";
|
|
6560
6567
|
readonly kind: "struct";
|
|
6561
6568
|
readonly members: readonly [{
|
|
6562
6569
|
readonly name: "token_id";
|
|
@@ -6583,19 +6590,6 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6583
6590
|
readonly type: "core::integer::u64";
|
|
6584
6591
|
readonly kind: "data";
|
|
6585
6592
|
}];
|
|
6586
|
-
}, {
|
|
6587
|
-
readonly type: "event";
|
|
6588
|
-
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused";
|
|
6589
|
-
readonly kind: "struct";
|
|
6590
|
-
readonly members: readonly [{
|
|
6591
|
-
readonly name: "token_id";
|
|
6592
|
-
readonly type: "core::integer::u256";
|
|
6593
|
-
readonly kind: "key";
|
|
6594
|
-
}, {
|
|
6595
|
-
readonly name: "active";
|
|
6596
|
-
readonly type: "core::bool";
|
|
6597
|
-
readonly kind: "data";
|
|
6598
|
-
}];
|
|
6599
6593
|
}, {
|
|
6600
6594
|
readonly type: "event";
|
|
6601
6595
|
readonly name: "ip_ticket::IPTicketCollection::IPTicketCollection::Event";
|
|
@@ -6613,12 +6607,8 @@ declare const IPTicketCollectionABI: readonly [{
|
|
|
6613
6607
|
readonly type: "openzeppelin_access::ownable::ownable::OwnableComponent::Event";
|
|
6614
6608
|
readonly kind: "flat";
|
|
6615
6609
|
}, {
|
|
6616
|
-
readonly name: "
|
|
6617
|
-
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::
|
|
6618
|
-
readonly kind: "nested";
|
|
6619
|
-
}, {
|
|
6620
|
-
readonly name: "EventPaused";
|
|
6621
|
-
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused";
|
|
6610
|
+
readonly name: "TicketCreated";
|
|
6611
|
+
readonly type: "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCreated";
|
|
6622
6612
|
readonly kind: "nested";
|
|
6623
6613
|
}];
|
|
6624
6614
|
}];
|
|
@@ -6668,6 +6658,9 @@ declare const IPTicketCollectionFactoryABI: readonly [{
|
|
|
6668
6658
|
}, {
|
|
6669
6659
|
readonly name: "symbol";
|
|
6670
6660
|
readonly type: "core::byte_array::ByteArray";
|
|
6661
|
+
}, {
|
|
6662
|
+
readonly name: "base_uri";
|
|
6663
|
+
readonly type: "core::byte_array::ByteArray";
|
|
6671
6664
|
}];
|
|
6672
6665
|
readonly outputs: readonly [{
|
|
6673
6666
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -10137,4 +10130,4 @@ declare function build1155CancellationTypedData(message: Record<string, unknown>
|
|
|
10137
10130
|
|
|
10138
10131
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
10139
10132
|
|
|
10140
|
-
export { type ApiRewardsConfig as $, ADMIN_HEADERS as A, type ApiCreatorProfile as B, type ApiIntent as C, type ApiIntentCreated as D, type ApiKeyStatus as E, type ApiMeta as F, type ApiMetadataSignedUrl as G, type ApiMetadataUpload as H, type ApiOrder as I, type ApiOrderConsideration as J, type ApiOrderOffer as K, type ApiOrderPrice as L, type ApiOrderTokenMeta as M, type ApiOrderTxHash as N, type ApiOrdersQuery as O, type ApiPointEvent as P, type ApiPortalKey as Q, type ApiPortalKeyCreated as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, IPCollection1155ABI as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type
|
|
10133
|
+
export { type ApiRewardsConfig as $, ADMIN_HEADERS as A, type ApiCreatorProfile as B, type ApiIntent as C, type ApiIntentCreated as D, type ApiKeyStatus as E, type ApiMeta as F, type ApiMetadataSignedUrl as G, type ApiMetadataUpload as H, type ApiOrder as I, type ApiOrderConsideration as J, type ApiOrderOffer as K, type ApiOrderPrice as L, type ApiOrderTokenMeta as M, type ApiOrderTxHash as N, type ApiOrdersQuery as O, type ApiPointEvent as P, type ApiPortalKey as Q, type ApiPortalKeyCreated as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, IPCollection1155ABI as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreatePopCollectionParams as aA, type CreateRemixOfferParams as aB, type CreateSponsorshipOfferParams as aC, type CreateTicketParams as aD, type CreateWebhookParams as aE, CreatorCoinFactoryABI as aF, type CreatorCoinPrice as aG, type CreatorCoinReceiptLike as aH, CreatorCoinService as aI, type DeployClubParams as aJ, type DeployCollectionParams as aK, DropCollectionABI as aL, DropFactoryABI as aM, type DropMintStatus as aN, DropService as aO, ERC1155CollectionService as aP, type EkuboLaunchParams as aQ, type EkuboPoolParams as aR, type EnforcementDeclaration as aS, type FeeConfig as aT, FeeConfigSchema as aU, type FeeSurface as aV, type FulfillOrderIntentParams as aW, IPClubABI as aX, IPClubCollectionABI as aY, IPClubFactoryABI as aZ, IPClubNFTABI as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWebhookCreated as ac, type ApiWebhookEndpoint as ad, type AutoRemixOfferParams as ae, type BatchMintEditionParams as af, type BuildFeeCallParams as ag, MAX_SUPPLY as ah, MIN_SUPPLY as ai, type CancelOrderIntentParams as aj, type ChainFilter as ak, type ClaimConditions as al, ClubService as am, type CollectionSort as an, type CollectionTokensSort as ao, type ConfirmRemixOfferParams as ap, type ConfirmSelfRemixParams as aq, type ConsiderationItem as ar, type CreateClubParams as as, type CreateCollectionIntentParams as at, type CreateCounterOfferIntentParams as au, type CreateCreatorCoinParams as av, type CreateDropParams as aw, type CreateGrantOpts as ax, type CreateListingIntentParams as ay, type CreateMintIntentParams as az, ADMIN_SCOPE as b, buildCreateCreatorCoinCall as b$, IPCollection1155FactoryABI as b0, IPCollectionABI as b1, IPGenesisABI as b2, IPMarketplaceABI as b3, IPNftABI as b4, IPSponsorshipABI as b5, IPSponsorshipLicenseABI as b6, IPTicketCollectionABI as b7, IPTicketCollectionFactoryABI as b8, type IPType as b9, type PopClaimStatus as bA, type PopEventType as bB, PopService as bC, type RemixOfferStatus as bD, type RequestSiwsTokenArgs as bE, type ResolvedConfig as bF, type ResolvedFeeConfig as bG, type ResolvedOrder as bH, type RetryOptions as bI, type ServiceEventDeclaration as bJ, type SiwsSigner as bK, type SortOrder as bL, SponsorshipService as bM, StarknetVenue as bN, type StarknetVenueDeps as bO, type StarknetVenueSigner as bP, type TenantPlan as bQ, TicketService as bR, type TxResult as bS, VALIDATED_EKUBO_PARAMS as bT, type WebhookEventType as bU, type WebhookStatus as bV, adminRequestDigest as bW, build1155CancellationTypedData as bX, build1155OrderTypedData as bY, buildAdminSessionTypedData as bZ, buildCancellationTypedData as b_, type IntentCall as ba, type IntentStatus as bb, type IntentType as bc, type IpAttribute as bd, type IpNftMetadata as be, LAUNCH_PRICE_QUOTE_PER_COIN as bf, type MakeOfferIntentParams as bg, Medialane1155ABI as bh, MedialaneApiError as bi, MedialaneClient as bj, type MedialaneConfig as bk, MedialaneError as bl, type MedialaneErrorCode as bm, type MintEditionParams as bn, type MintTicketsParams as bo, OPEN_LICENSES as bp, type OfferItem as bq, type OpenLicense as br, type Order as bs, type OrderDetails as bt, type OrderParameters as bu, type OrderStatus as bv, POPCollectionABI as bw, POPFactoryABI as bx, type ParsedAdminHeaders as by, type PopBatchEligibilityItem as bz, type ActivityType as c, buildFeeCall as c0, buildLaunchOnEkuboCalls as c1, buildOrderTypedData as c2, buybackQuoteRaw as c3, toRaw as c4, createAdminSessionGrant as c5, encodeAdminHeaders as c6, encodeByteArray as c7, fdvHuman as c8, getCounter as c9, getCounter1155 as ca, getCreatorCoinPrice as cb, getOrderDetails as cc, getOrderDetails1155 as cd, getSiwsStorageKey as ce, getStoredSiwsToken as cf, isSiwsTokenValid as cg, normalizeSiwsSignature as ch, parseAdminHeaders as ci, parseCreatorCoinCreated as cj, randomNonce as ck, requestSiwsToken as cl, resolveConfig as cm, resolveFeeConfig as cn, sessionKeyHashOf as co, signAdminRequest as cp, storeSiwsToken as cq, teamCoinsRaw as cr, validateName as cs, validateSupply as ct, validateSymbol as cu, verifyAdminRequestSig as cv, type AddSupplyParams as d, type AdminGrant as e, type AdminRequest as f, type AdminRequestSig as g, type AdminSession as h, type AdminSessionTypedDataInput as i, type ApiActivitiesQuery as j, type ApiActivity as k, type ApiActivityPrice as l, type ApiAdminCollectionClaim as m, type ApiAppSource as n, type ApiChain as o, ApiClient as p, type ApiCoin as q, type ApiCoinsQuery as r, type ApiCollection as s, type ApiCollectionClaim as t, type ApiCollectionProfile as u, type ApiCollectionSlugClaim as v, type ApiCollectionsQuery as w, type ApiComment as x, type ApiCounterOffersQuery as y, type ApiCreatorListResult as z };
|