@medialane/sdk 0.6.3 → 0.6.5

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
1
  import { z } from 'zod';
2
2
  import { AccountInterface, constants, TypedData } from 'starknet';
3
3
 
4
- declare const MARKETPLACE_CONTRACT_MAINNET = "0x04299b51289aa700de4ce19cc77bcea8430bfd1aef04193efab09d60a3a7ee0f";
4
+ declare const MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
5
5
  declare const COLLECTION_CONTRACT_MAINNET = "0x05e73b7be06d82beeb390a0e0d655f2c9e7cf519658e04f05d9c690ccc41da03";
6
6
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
7
7
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
@@ -35,6 +35,8 @@ type SupportedTokenSymbol = (typeof SUPPORTED_TOKENS)[number]["symbol"];
35
35
  declare const SUPPORTED_NETWORKS: readonly ["mainnet", "sepolia"];
36
36
  type Network = (typeof SUPPORTED_NETWORKS)[number];
37
37
  declare const DEFAULT_RPC_URLS: Record<Network, string>;
38
+ declare const POP_COLLECTION_CLASS_HASH_MAINNET = "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
39
+ declare const DROP_COLLECTION_CLASS_HASH_MAINNET = "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
38
40
 
39
41
  interface RetryOptions {
40
42
  maxAttempts?: number;
@@ -205,15 +207,16 @@ declare class MarketplaceModule {
205
207
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
206
208
  }
207
209
 
208
- type PopEventType = "Conference" | "Bootcamp" | "Workshop" | "Hackathon" | "Meetup" | "Course" | "Other";
209
210
  type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
210
211
  type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
212
+ type CollectionSource = "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
211
213
  interface ApiCollectionsQuery {
212
214
  page?: number;
213
215
  limit?: number;
214
216
  isKnown?: boolean;
215
217
  sort?: CollectionSort;
216
218
  owner?: string;
219
+ source?: CollectionSource;
217
220
  }
218
221
  type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
219
222
  type SortOrder = "price_asc" | "price_desc" | "recent";
@@ -348,15 +351,24 @@ interface ApiTokenMetadata {
348
351
  registration: string | null;
349
352
  author: string | null;
350
353
  }
354
+ /** Per-holder balance entry. Present for ERC-1155 (multi-holder); single entry for ERC-721. */
355
+ interface ApiTokenBalance {
356
+ owner: string;
357
+ /** Quantity held. Always "1" for ERC-721. */
358
+ amount: string;
359
+ }
351
360
  interface ApiToken {
352
361
  id: string;
353
362
  chain: string;
354
363
  contractAddress: string;
355
364
  tokenId: string;
356
- owner: string;
365
+ /** @deprecated Use `balances` for ownership checks — always null after ERC-1155 migration. */
366
+ owner: string | null;
357
367
  tokenUri: string | null;
358
368
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
359
369
  metadata: ApiTokenMetadata;
370
+ /** Current holders with amounts. Only present on single-token fetches; null on list responses. */
371
+ balances: ApiTokenBalance[] | null;
360
372
  activeOrders: ApiOrder[];
361
373
  createdAt: string;
362
374
  updatedAt: string;
@@ -373,8 +385,10 @@ interface ApiCollection {
373
385
  owner: string | null;
374
386
  startBlock: string;
375
387
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
388
+ /** Token standard detected via ERC-165. */
389
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
376
390
  isKnown: boolean;
377
- source: "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME";
391
+ source: CollectionSource;
378
392
  claimedBy: string | null;
379
393
  profile?: ApiCollectionProfile | null;
380
394
  floorPrice: string | null;
@@ -730,6 +744,19 @@ interface ApiAdminCollectionClaim extends ApiCollectionClaim {
730
744
  reviewedAt: string | null;
731
745
  updatedAt: string;
732
746
  }
747
+ interface PopClaimStatus {
748
+ isEligible: boolean;
749
+ hasClaimed: boolean;
750
+ tokenId: string | null;
751
+ }
752
+ interface PopBatchEligibilityItem extends PopClaimStatus {
753
+ wallet: string;
754
+ }
755
+ type PopEventType = "Conference" | "Bootcamp" | "Workshop" | "Hackathon" | "Meetup" | "Course" | "Other";
756
+ interface DropMintStatus {
757
+ mintedByWallet: number;
758
+ totalMinted: number;
759
+ }
733
760
 
734
761
  declare class MedialaneApiError extends Error {
735
762
  readonly status: number;
@@ -753,7 +780,7 @@ declare class ApiClient {
753
780
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
754
781
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
755
782
  getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
756
- getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort): Promise<ApiResponse<ApiCollection[]>>;
783
+ getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, source?: CollectionSource): Promise<ApiResponse<ApiCollection[]>>;
757
784
  getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
758
785
  getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
759
786
  getCollectionTokens(contract: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -829,6 +856,11 @@ declare class ApiClient {
829
856
  * Update collection profile. Requires Clerk JWT for ownership check.
830
857
  */
831
858
  updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, clerkToken: string): Promise<ApiCollectionProfile>;
859
+ getGatedContent(contractAddress: string, clerkToken: string): Promise<{
860
+ title: string;
861
+ url: string;
862
+ type: string;
863
+ } | null>;
832
864
  /** List all creators with an approved username. */
833
865
  getCreators(opts?: {
834
866
  search?: string;
@@ -896,6 +928,117 @@ declare class ApiClient {
896
928
  * Requires Clerk JWT.
897
929
  */
898
930
  extendRemixOffer(id: string, days: number, clerkToken: string): Promise<ApiResponse<ApiRemixOffer>>;
931
+ getPopCollections(opts?: {
932
+ page?: number;
933
+ limit?: number;
934
+ sort?: CollectionSort;
935
+ }): Promise<ApiResponse<ApiCollection[]>>;
936
+ getPopEligibility(collection: string, wallet: string): Promise<PopClaimStatus>;
937
+ getPopEligibilityBatch(collection: string, wallets: string[]): Promise<PopBatchEligibilityItem[]>;
938
+ getDropCollections(opts?: {
939
+ page?: number;
940
+ limit?: number;
941
+ sort?: CollectionSort;
942
+ }): Promise<ApiResponse<ApiCollection[]>>;
943
+ getDropMintStatus(collection: string, wallet: string): Promise<DropMintStatus>;
944
+ }
945
+
946
+ interface CreatePopCollectionParams {
947
+ name: string;
948
+ symbol: string;
949
+ baseUri: string;
950
+ claimEndTime: number;
951
+ eventType: PopEventType;
952
+ }
953
+ interface ClaimConditions {
954
+ /** Unix timestamp when minting opens. 0 = open immediately. */
955
+ startTime: number;
956
+ /** Unix timestamp when minting closes. 0 = never closes. */
957
+ endTime: number;
958
+ /** Price per token in payment_token units. 0 = free mint. */
959
+ price: bigint | string;
960
+ /** ERC-20 token address for payment. Must be non-zero if price > 0. */
961
+ paymentToken: string;
962
+ /** Max tokens a single wallet may mint across all phases. 0 = unlimited. */
963
+ maxQuantityPerWallet: bigint | string;
964
+ }
965
+ interface CreateDropParams {
966
+ name: string;
967
+ symbol: string;
968
+ baseUri: string;
969
+ maxSupply: bigint | string;
970
+ initialConditions: ClaimConditions;
971
+ }
972
+
973
+ declare class PopService {
974
+ private readonly factoryAddress;
975
+ constructor(_config: ResolvedConfig);
976
+ private _collection;
977
+ claim(account: AccountInterface, collectionAddress: string): Promise<TxResult>;
978
+ adminMint(account: AccountInterface, params: {
979
+ collection: string;
980
+ recipient: string;
981
+ customUri?: string;
982
+ }): Promise<TxResult>;
983
+ addToAllowlist(account: AccountInterface, params: {
984
+ collection: string;
985
+ address: string;
986
+ }): Promise<TxResult>;
987
+ batchAddToAllowlist(account: AccountInterface, params: {
988
+ collection: string;
989
+ addresses: string[];
990
+ }): Promise<TxResult>;
991
+ removeFromAllowlist(account: AccountInterface, params: {
992
+ collection: string;
993
+ address: string;
994
+ }): Promise<TxResult>;
995
+ setTokenUri(account: AccountInterface, params: {
996
+ collection: string;
997
+ tokenId: string | bigint;
998
+ uri: string;
999
+ }): Promise<TxResult>;
1000
+ setPaused(account: AccountInterface, params: {
1001
+ collection: string;
1002
+ paused: boolean;
1003
+ }): Promise<TxResult>;
1004
+ createCollection(account: AccountInterface, params: CreatePopCollectionParams): Promise<TxResult>;
1005
+ }
1006
+
1007
+ declare class DropService {
1008
+ private readonly factoryAddress;
1009
+ constructor(_config: ResolvedConfig);
1010
+ private _collection;
1011
+ claim(account: AccountInterface, collectionAddress: string, quantity?: bigint | string | number): Promise<TxResult>;
1012
+ adminMint(account: AccountInterface, params: {
1013
+ collection: string;
1014
+ recipient: string;
1015
+ quantity?: bigint | string | number;
1016
+ customUri?: string;
1017
+ }): Promise<TxResult>;
1018
+ setClaimConditions(account: AccountInterface, params: {
1019
+ collection: string;
1020
+ conditions: ClaimConditions;
1021
+ }): Promise<TxResult>;
1022
+ setAllowlistEnabled(account: AccountInterface, params: {
1023
+ collection: string;
1024
+ enabled: boolean;
1025
+ }): Promise<TxResult>;
1026
+ addToAllowlist(account: AccountInterface, params: {
1027
+ collection: string;
1028
+ address: string;
1029
+ }): Promise<TxResult>;
1030
+ batchAddToAllowlist(account: AccountInterface, params: {
1031
+ collection: string;
1032
+ addresses: string[];
1033
+ }): Promise<TxResult>;
1034
+ setPaused(account: AccountInterface, params: {
1035
+ collection: string;
1036
+ paused: boolean;
1037
+ }): Promise<TxResult>;
1038
+ withdrawPayments(account: AccountInterface, params: {
1039
+ collection: string;
1040
+ }): Promise<TxResult>;
1041
+ createDrop(account: AccountInterface, params: CreateDropParams): Promise<TxResult>;
899
1042
  }
900
1043
 
901
1044
  declare class MedialaneClient {
@@ -906,6 +1049,10 @@ declare class MedialaneClient {
906
1049
  * Requires `backendUrl` in config; pass `apiKey` for authenticated routes.
907
1050
  */
908
1051
  readonly api: ApiClient;
1052
+ readonly services: {
1053
+ readonly pop: PopService;
1054
+ readonly drop: DropService;
1055
+ };
909
1056
  private readonly config;
910
1057
  constructor(rawConfig?: MedialaneConfig);
911
1058
  get network(): "mainnet" | "sepolia";
@@ -1282,63 +1429,132 @@ declare const IPMarketplaceABI: readonly [{
1282
1429
  readonly kind: "nested";
1283
1430
  }];
1284
1431
  }];
1285
- declare const DropFactoryABI: readonly [{
1432
+ declare const POPCollectionABI: readonly [{
1286
1433
  readonly type: "struct";
1287
- readonly name: "launchpad::types::ClaimConditions";
1434
+ readonly name: "core::byte_array::ByteArray";
1288
1435
  readonly members: readonly [{
1289
- readonly name: "start_time";
1290
- readonly type: "core::integer::u64";
1291
- }, {
1292
- readonly name: "end_time";
1293
- readonly type: "core::integer::u64";
1294
- }, {
1295
- readonly name: "price";
1296
- readonly type: "core::integer::u256";
1436
+ readonly name: "data";
1437
+ readonly type: "core::array::Array::<core::felt252>";
1297
1438
  }, {
1298
- readonly name: "payment_token";
1299
- readonly type: "core::starknet::contract_address::ContractAddress";
1439
+ readonly name: "pending_word";
1440
+ readonly type: "core::felt252";
1300
1441
  }, {
1301
- readonly name: "max_quantity_per_wallet";
1302
- readonly type: "core::integer::u256";
1442
+ readonly name: "pending_word_len";
1443
+ readonly type: "core::integer::u32";
1303
1444
  }];
1304
1445
  }, {
1305
1446
  readonly type: "function";
1306
- readonly name: "create_drop";
1447
+ readonly name: "claim";
1448
+ readonly inputs: readonly [];
1449
+ readonly outputs: readonly [];
1450
+ readonly state_mutability: "external";
1451
+ }, {
1452
+ readonly type: "function";
1453
+ readonly name: "admin_mint";
1307
1454
  readonly inputs: readonly [{
1308
- readonly name: "name";
1309
- readonly type: "core::byte_array::ByteArray";
1310
- }, {
1311
- readonly name: "symbol";
1312
- readonly type: "core::byte_array::ByteArray";
1455
+ readonly name: "recipient";
1456
+ readonly type: "core::starknet::contract_address::ContractAddress";
1313
1457
  }, {
1314
- readonly name: "base_uri";
1458
+ readonly name: "custom_uri";
1315
1459
  readonly type: "core::byte_array::ByteArray";
1316
- }, {
1317
- readonly name: "max_supply";
1460
+ }];
1461
+ readonly outputs: readonly [];
1462
+ readonly state_mutability: "external";
1463
+ }, {
1464
+ readonly type: "function";
1465
+ readonly name: "add_to_allowlist";
1466
+ readonly inputs: readonly [{
1467
+ readonly name: "address";
1468
+ readonly type: "core::starknet::contract_address::ContractAddress";
1469
+ }];
1470
+ readonly outputs: readonly [];
1471
+ readonly state_mutability: "external";
1472
+ }, {
1473
+ readonly type: "function";
1474
+ readonly name: "batch_add_to_allowlist";
1475
+ readonly inputs: readonly [{
1476
+ readonly name: "addresses";
1477
+ readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
1478
+ }];
1479
+ readonly outputs: readonly [];
1480
+ readonly state_mutability: "external";
1481
+ }, {
1482
+ readonly type: "function";
1483
+ readonly name: "remove_from_allowlist";
1484
+ readonly inputs: readonly [{
1485
+ readonly name: "address";
1486
+ readonly type: "core::starknet::contract_address::ContractAddress";
1487
+ }];
1488
+ readonly outputs: readonly [];
1489
+ readonly state_mutability: "external";
1490
+ }, {
1491
+ readonly type: "function";
1492
+ readonly name: "set_token_uri";
1493
+ readonly inputs: readonly [{
1494
+ readonly name: "token_id";
1318
1495
  readonly type: "core::integer::u256";
1319
1496
  }, {
1320
- readonly name: "claim_conditions";
1321
- readonly type: "launchpad::types::ClaimConditions";
1497
+ readonly name: "uri";
1498
+ readonly type: "core::byte_array::ByteArray";
1322
1499
  }];
1323
- readonly outputs: readonly [{
1324
- readonly type: "core::starknet::contract_address::ContractAddress";
1500
+ readonly outputs: readonly [];
1501
+ readonly state_mutability: "external";
1502
+ }, {
1503
+ readonly type: "function";
1504
+ readonly name: "set_paused";
1505
+ readonly inputs: readonly [{
1506
+ readonly name: "paused";
1507
+ readonly type: "core::bool";
1325
1508
  }];
1509
+ readonly outputs: readonly [];
1326
1510
  readonly state_mutability: "external";
1327
1511
  }, {
1328
1512
  readonly type: "function";
1329
- readonly name: "is_active_organizer";
1513
+ readonly name: "is_eligible";
1330
1514
  readonly inputs: readonly [{
1331
- readonly name: "organizer";
1515
+ readonly name: "address";
1516
+ readonly type: "core::starknet::contract_address::ContractAddress";
1517
+ }];
1518
+ readonly outputs: readonly [{
1519
+ readonly type: "core::bool";
1520
+ }];
1521
+ readonly state_mutability: "view";
1522
+ }, {
1523
+ readonly type: "function";
1524
+ readonly name: "has_claimed";
1525
+ readonly inputs: readonly [{
1526
+ readonly name: "address";
1332
1527
  readonly type: "core::starknet::contract_address::ContractAddress";
1333
1528
  }];
1334
1529
  readonly outputs: readonly [{
1335
1530
  readonly type: "core::bool";
1336
1531
  }];
1337
1532
  readonly state_mutability: "view";
1533
+ }, {
1534
+ readonly type: "function";
1535
+ readonly name: "total_minted";
1536
+ readonly inputs: readonly [];
1537
+ readonly outputs: readonly [{
1538
+ readonly type: "core::integer::u256";
1539
+ }];
1540
+ readonly state_mutability: "view";
1338
1541
  }];
1339
1542
  declare const POPFactoryABI: readonly [{
1543
+ readonly type: "struct";
1544
+ readonly name: "core::byte_array::ByteArray";
1545
+ readonly members: readonly [{
1546
+ readonly name: "data";
1547
+ readonly type: "core::array::Array::<core::felt252>";
1548
+ }, {
1549
+ readonly name: "pending_word";
1550
+ readonly type: "core::felt252";
1551
+ }, {
1552
+ readonly name: "pending_word_len";
1553
+ readonly type: "core::integer::u32";
1554
+ }];
1555
+ }, {
1340
1556
  readonly type: "enum";
1341
- readonly name: "launchpad::pop::EventType";
1557
+ readonly name: "pop_protocol::types::EventType";
1342
1558
  readonly variants: readonly [{
1343
1559
  readonly name: "Conference";
1344
1560
  readonly type: "()";
@@ -1378,7 +1594,7 @@ declare const POPFactoryABI: readonly [{
1378
1594
  readonly type: "core::integer::u64";
1379
1595
  }, {
1380
1596
  readonly name: "event_type";
1381
- readonly type: "launchpad::pop::EventType";
1597
+ readonly type: "pop_protocol::types::EventType";
1382
1598
  }];
1383
1599
  readonly outputs: readonly [{
1384
1600
  readonly type: "core::starknet::contract_address::ContractAddress";
@@ -1386,15 +1602,371 @@ declare const POPFactoryABI: readonly [{
1386
1602
  readonly state_mutability: "external";
1387
1603
  }, {
1388
1604
  readonly type: "function";
1389
- readonly name: "is_active_provider";
1605
+ readonly name: "register_provider";
1390
1606
  readonly inputs: readonly [{
1391
1607
  readonly name: "provider";
1392
1608
  readonly type: "core::starknet::contract_address::ContractAddress";
1609
+ }, {
1610
+ readonly name: "name";
1611
+ readonly type: "core::byte_array::ByteArray";
1612
+ }, {
1613
+ readonly name: "website_url";
1614
+ readonly type: "core::byte_array::ByteArray";
1615
+ }];
1616
+ readonly outputs: readonly [];
1617
+ readonly state_mutability: "external";
1618
+ }, {
1619
+ readonly type: "function";
1620
+ readonly name: "set_pop_collection_class_hash";
1621
+ readonly inputs: readonly [{
1622
+ readonly name: "new_class_hash";
1623
+ readonly type: "core::starknet::class_hash::ClassHash";
1624
+ }];
1625
+ readonly outputs: readonly [];
1626
+ readonly state_mutability: "external";
1627
+ }];
1628
+ declare const DropCollectionABI: readonly [{
1629
+ readonly type: "struct";
1630
+ readonly name: "core::byte_array::ByteArray";
1631
+ readonly members: readonly [{
1632
+ readonly name: "data";
1633
+ readonly type: "core::array::Array::<core::felt252>";
1634
+ }, {
1635
+ readonly name: "pending_word";
1636
+ readonly type: "core::felt252";
1637
+ }, {
1638
+ readonly name: "pending_word_len";
1639
+ readonly type: "core::integer::u32";
1640
+ }];
1641
+ }, {
1642
+ readonly type: "struct";
1643
+ readonly name: "collection_drop::types::ClaimConditions";
1644
+ readonly members: readonly [{
1645
+ readonly name: "start_time";
1646
+ readonly type: "core::integer::u64";
1647
+ }, {
1648
+ readonly name: "end_time";
1649
+ readonly type: "core::integer::u64";
1650
+ }, {
1651
+ readonly name: "price";
1652
+ readonly type: "core::integer::u256";
1653
+ }, {
1654
+ readonly name: "payment_token";
1655
+ readonly type: "core::starknet::contract_address::ContractAddress";
1656
+ }, {
1657
+ readonly name: "max_quantity_per_wallet";
1658
+ readonly type: "core::integer::u256";
1659
+ }];
1660
+ }, {
1661
+ readonly type: "function";
1662
+ readonly name: "claim";
1663
+ readonly inputs: readonly [{
1664
+ readonly name: "quantity";
1665
+ readonly type: "core::integer::u256";
1666
+ }];
1667
+ readonly outputs: readonly [];
1668
+ readonly state_mutability: "external";
1669
+ }, {
1670
+ readonly type: "function";
1671
+ readonly name: "admin_mint";
1672
+ readonly inputs: readonly [{
1673
+ readonly name: "recipient";
1674
+ readonly type: "core::starknet::contract_address::ContractAddress";
1675
+ }, {
1676
+ readonly name: "quantity";
1677
+ readonly type: "core::integer::u256";
1678
+ }, {
1679
+ readonly name: "custom_uri";
1680
+ readonly type: "core::byte_array::ByteArray";
1681
+ }];
1682
+ readonly outputs: readonly [];
1683
+ readonly state_mutability: "external";
1684
+ }, {
1685
+ readonly type: "function";
1686
+ readonly name: "set_claim_conditions";
1687
+ readonly inputs: readonly [{
1688
+ readonly name: "conditions";
1689
+ readonly type: "collection_drop::types::ClaimConditions";
1690
+ }];
1691
+ readonly outputs: readonly [];
1692
+ readonly state_mutability: "external";
1693
+ }, {
1694
+ readonly type: "function";
1695
+ readonly name: "get_claim_conditions";
1696
+ readonly inputs: readonly [];
1697
+ readonly outputs: readonly [{
1698
+ readonly type: "collection_drop::types::ClaimConditions";
1699
+ }];
1700
+ readonly state_mutability: "view";
1701
+ }, {
1702
+ readonly type: "function";
1703
+ readonly name: "set_allowlist_enabled";
1704
+ readonly inputs: readonly [{
1705
+ readonly name: "enabled";
1706
+ readonly type: "core::bool";
1707
+ }];
1708
+ readonly outputs: readonly [];
1709
+ readonly state_mutability: "external";
1710
+ }, {
1711
+ readonly type: "function";
1712
+ readonly name: "is_allowlist_enabled";
1713
+ readonly inputs: readonly [];
1714
+ readonly outputs: readonly [{
1715
+ readonly type: "core::bool";
1716
+ }];
1717
+ readonly state_mutability: "view";
1718
+ }, {
1719
+ readonly type: "function";
1720
+ readonly name: "add_to_allowlist";
1721
+ readonly inputs: readonly [{
1722
+ readonly name: "address";
1723
+ readonly type: "core::starknet::contract_address::ContractAddress";
1724
+ }];
1725
+ readonly outputs: readonly [];
1726
+ readonly state_mutability: "external";
1727
+ }, {
1728
+ readonly type: "function";
1729
+ readonly name: "batch_add_to_allowlist";
1730
+ readonly inputs: readonly [{
1731
+ readonly name: "addresses";
1732
+ readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
1733
+ }];
1734
+ readonly outputs: readonly [];
1735
+ readonly state_mutability: "external";
1736
+ }, {
1737
+ readonly type: "function";
1738
+ readonly name: "remove_from_allowlist";
1739
+ readonly inputs: readonly [{
1740
+ readonly name: "address";
1741
+ readonly type: "core::starknet::contract_address::ContractAddress";
1742
+ }];
1743
+ readonly outputs: readonly [];
1744
+ readonly state_mutability: "external";
1745
+ }, {
1746
+ readonly type: "function";
1747
+ readonly name: "is_allowlisted";
1748
+ readonly inputs: readonly [{
1749
+ readonly name: "address";
1750
+ readonly type: "core::starknet::contract_address::ContractAddress";
1751
+ }];
1752
+ readonly outputs: readonly [{
1753
+ readonly type: "core::bool";
1754
+ }];
1755
+ readonly state_mutability: "view";
1756
+ }, {
1757
+ readonly type: "function";
1758
+ readonly name: "set_base_uri";
1759
+ readonly inputs: readonly [{
1760
+ readonly name: "new_uri";
1761
+ readonly type: "core::byte_array::ByteArray";
1762
+ }];
1763
+ readonly outputs: readonly [];
1764
+ readonly state_mutability: "external";
1765
+ }, {
1766
+ readonly type: "function";
1767
+ readonly name: "set_token_uri";
1768
+ readonly inputs: readonly [{
1769
+ readonly name: "token_id";
1770
+ readonly type: "core::integer::u256";
1771
+ }, {
1772
+ readonly name: "uri";
1773
+ readonly type: "core::byte_array::ByteArray";
1774
+ }];
1775
+ readonly outputs: readonly [];
1776
+ readonly state_mutability: "external";
1777
+ }, {
1778
+ readonly type: "function";
1779
+ readonly name: "set_paused";
1780
+ readonly inputs: readonly [{
1781
+ readonly name: "paused";
1782
+ readonly type: "core::bool";
1783
+ }];
1784
+ readonly outputs: readonly [];
1785
+ readonly state_mutability: "external";
1786
+ }, {
1787
+ readonly type: "function";
1788
+ readonly name: "withdraw_payments";
1789
+ readonly inputs: readonly [];
1790
+ readonly outputs: readonly [];
1791
+ readonly state_mutability: "external";
1792
+ }, {
1793
+ readonly type: "function";
1794
+ readonly name: "get_drop_id";
1795
+ readonly inputs: readonly [];
1796
+ readonly outputs: readonly [{
1797
+ readonly type: "core::integer::u256";
1798
+ }];
1799
+ readonly state_mutability: "view";
1800
+ }, {
1801
+ readonly type: "function";
1802
+ readonly name: "get_max_supply";
1803
+ readonly inputs: readonly [];
1804
+ readonly outputs: readonly [{
1805
+ readonly type: "core::integer::u256";
1806
+ }];
1807
+ readonly state_mutability: "view";
1808
+ }, {
1809
+ readonly type: "function";
1810
+ readonly name: "total_minted";
1811
+ readonly inputs: readonly [];
1812
+ readonly outputs: readonly [{
1813
+ readonly type: "core::integer::u256";
1814
+ }];
1815
+ readonly state_mutability: "view";
1816
+ }, {
1817
+ readonly type: "function";
1818
+ readonly name: "remaining_supply";
1819
+ readonly inputs: readonly [];
1820
+ readonly outputs: readonly [{
1821
+ readonly type: "core::integer::u256";
1822
+ }];
1823
+ readonly state_mutability: "view";
1824
+ }, {
1825
+ readonly type: "function";
1826
+ readonly name: "minted_by_wallet";
1827
+ readonly inputs: readonly [{
1828
+ readonly name: "wallet";
1829
+ readonly type: "core::starknet::contract_address::ContractAddress";
1830
+ }];
1831
+ readonly outputs: readonly [{
1832
+ readonly type: "core::integer::u256";
1833
+ }];
1834
+ readonly state_mutability: "view";
1835
+ }, {
1836
+ readonly type: "function";
1837
+ readonly name: "is_paused";
1838
+ readonly inputs: readonly [];
1839
+ readonly outputs: readonly [{
1840
+ readonly type: "core::bool";
1841
+ }];
1842
+ readonly state_mutability: "view";
1843
+ }];
1844
+ declare const DropFactoryABI: readonly [{
1845
+ readonly type: "struct";
1846
+ readonly name: "core::byte_array::ByteArray";
1847
+ readonly members: readonly [{
1848
+ readonly name: "data";
1849
+ readonly type: "core::array::Array::<core::felt252>";
1850
+ }, {
1851
+ readonly name: "pending_word";
1852
+ readonly type: "core::felt252";
1853
+ }, {
1854
+ readonly name: "pending_word_len";
1855
+ readonly type: "core::integer::u32";
1856
+ }];
1857
+ }, {
1858
+ readonly type: "struct";
1859
+ readonly name: "collection_drop::types::ClaimConditions";
1860
+ readonly members: readonly [{
1861
+ readonly name: "start_time";
1862
+ readonly type: "core::integer::u64";
1863
+ }, {
1864
+ readonly name: "end_time";
1865
+ readonly type: "core::integer::u64";
1866
+ }, {
1867
+ readonly name: "price";
1868
+ readonly type: "core::integer::u256";
1869
+ }, {
1870
+ readonly name: "payment_token";
1871
+ readonly type: "core::starknet::contract_address::ContractAddress";
1872
+ }, {
1873
+ readonly name: "max_quantity_per_wallet";
1874
+ readonly type: "core::integer::u256";
1875
+ }];
1876
+ }, {
1877
+ readonly type: "function";
1878
+ readonly name: "register_organizer";
1879
+ readonly inputs: readonly [{
1880
+ readonly name: "organizer";
1881
+ readonly type: "core::starknet::contract_address::ContractAddress";
1882
+ }, {
1883
+ readonly name: "name";
1884
+ readonly type: "core::byte_array::ByteArray";
1885
+ }];
1886
+ readonly outputs: readonly [];
1887
+ readonly state_mutability: "external";
1888
+ }, {
1889
+ readonly type: "function";
1890
+ readonly name: "revoke_organizer";
1891
+ readonly inputs: readonly [{
1892
+ readonly name: "organizer";
1893
+ readonly type: "core::starknet::contract_address::ContractAddress";
1894
+ }];
1895
+ readonly outputs: readonly [];
1896
+ readonly state_mutability: "external";
1897
+ }, {
1898
+ readonly type: "function";
1899
+ readonly name: "is_active_organizer";
1900
+ readonly inputs: readonly [{
1901
+ readonly name: "organizer";
1902
+ readonly type: "core::starknet::contract_address::ContractAddress";
1393
1903
  }];
1394
1904
  readonly outputs: readonly [{
1395
1905
  readonly type: "core::bool";
1396
1906
  }];
1397
1907
  readonly state_mutability: "view";
1908
+ }, {
1909
+ readonly type: "function";
1910
+ readonly name: "create_drop";
1911
+ readonly inputs: readonly [{
1912
+ readonly name: "name";
1913
+ readonly type: "core::byte_array::ByteArray";
1914
+ }, {
1915
+ readonly name: "symbol";
1916
+ readonly type: "core::byte_array::ByteArray";
1917
+ }, {
1918
+ readonly name: "base_uri";
1919
+ readonly type: "core::byte_array::ByteArray";
1920
+ }, {
1921
+ readonly name: "max_supply";
1922
+ readonly type: "core::integer::u256";
1923
+ }, {
1924
+ readonly name: "initial_conditions";
1925
+ readonly type: "collection_drop::types::ClaimConditions";
1926
+ }];
1927
+ readonly outputs: readonly [{
1928
+ readonly type: "core::starknet::contract_address::ContractAddress";
1929
+ }];
1930
+ readonly state_mutability: "external";
1931
+ }, {
1932
+ readonly type: "function";
1933
+ readonly name: "get_drop_address";
1934
+ readonly inputs: readonly [{
1935
+ readonly name: "drop_id";
1936
+ readonly type: "core::integer::u256";
1937
+ }];
1938
+ readonly outputs: readonly [{
1939
+ readonly type: "core::starknet::contract_address::ContractAddress";
1940
+ }];
1941
+ readonly state_mutability: "view";
1942
+ }, {
1943
+ readonly type: "function";
1944
+ readonly name: "get_last_drop_id";
1945
+ readonly inputs: readonly [];
1946
+ readonly outputs: readonly [{
1947
+ readonly type: "core::integer::u256";
1948
+ }];
1949
+ readonly state_mutability: "view";
1950
+ }, {
1951
+ readonly type: "function";
1952
+ readonly name: "get_organizer_drop_count";
1953
+ readonly inputs: readonly [{
1954
+ readonly name: "organizer";
1955
+ readonly type: "core::starknet::contract_address::ContractAddress";
1956
+ }];
1957
+ readonly outputs: readonly [{
1958
+ readonly type: "core::integer::u32";
1959
+ }];
1960
+ readonly state_mutability: "view";
1961
+ }, {
1962
+ readonly type: "function";
1963
+ readonly name: "set_drop_collection_class_hash";
1964
+ readonly inputs: readonly [{
1965
+ readonly name: "new_class_hash";
1966
+ readonly type: "core::starknet::class_hash::ClassHash";
1967
+ }];
1968
+ readonly outputs: readonly [];
1969
+ readonly state_mutability: "external";
1398
1970
  }];
1399
1971
 
1400
1972
  /**
@@ -1457,4 +2029,4 @@ declare function buildFulfillmentTypedData(message: Record<string, unknown>, cha
1457
2029
  */
1458
2030
  declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
1459
2031
 
1460
- export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, COLLECTION_CONTRACT_MAINNET, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URLS, DROP_FACTORY_CONTRACT_MAINNET, DropFactoryABI, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintParams, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderParameters, type OrderStatus, POPFactoryABI, POP_FACTORY_CONTRACT_MAINNET, type PopEventType, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
2032
+ export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, COLLECTION_CONTRACT_MAINNET, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URLS, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintParams, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };