@medialane/sdk 0.6.8 → 0.7.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
@@ -39,6 +39,10 @@ type Network = (typeof SUPPORTED_NETWORKS)[number];
39
39
  declare const DEFAULT_RPC_URL = "https://rpc.starknet.lava.build";
40
40
  declare const POP_COLLECTION_CLASS_HASH_MAINNET = "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
41
41
  declare const DROP_COLLECTION_CLASS_HASH_MAINNET = "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
42
+ /** IP-Programmable-ERC1155-Collections factory. Deployed 2026-04-15. */
43
+ declare const ERC1155_FACTORY_CONTRACT_MAINNET = "0x0459a9a3c04be5d884a038744f977dff019897264d4a281f9e0f87af417b3bec";
44
+ /** Class hash of the IPCollection ERC-1155 implementation. Deployed 2026-04-15. */
45
+ declare const ERC1155_COLLECTION_CLASS_HASH_MAINNET = "0x02da5e81be7a1ca493b9441522c450f8ff4c54b14ec16a0c2349f5e6e6fdc5d7";
42
46
 
43
47
  interface RetryOptions {
44
48
  maxAttempts?: number;
@@ -549,6 +553,8 @@ interface CreateListingIntentParams {
549
553
  price: string;
550
554
  endTime: number;
551
555
  salt?: string;
556
+ /** Number of units to list — required for ERC-1155, omit for ERC-721. */
557
+ amount?: string;
552
558
  }
553
559
  interface MakeOfferIntentParams {
554
560
  offerer: string;
@@ -2679,6 +2685,241 @@ declare const Medialane1155ABI: readonly [{
2679
2685
  readonly kind: "flat";
2680
2686
  }];
2681
2687
  }];
2688
+ declare const IPCollection1155FactoryABI: readonly [{
2689
+ readonly type: "function";
2690
+ readonly name: "collection_class_hash";
2691
+ readonly inputs: readonly [];
2692
+ readonly outputs: readonly [{
2693
+ readonly type: "core::starknet::class_hash::ClassHash";
2694
+ }];
2695
+ readonly state_mutability: "view";
2696
+ }, {
2697
+ readonly type: "function";
2698
+ readonly name: "deploy_collection";
2699
+ readonly inputs: readonly [{
2700
+ readonly name: "name";
2701
+ readonly type: "core::byte_array::ByteArray";
2702
+ }, {
2703
+ readonly name: "symbol";
2704
+ readonly type: "core::byte_array::ByteArray";
2705
+ }];
2706
+ readonly outputs: readonly [{
2707
+ readonly type: "core::starknet::contract_address::ContractAddress";
2708
+ }];
2709
+ readonly state_mutability: "external";
2710
+ }, {
2711
+ readonly type: "function";
2712
+ readonly name: "owner";
2713
+ readonly inputs: readonly [];
2714
+ readonly outputs: readonly [{
2715
+ readonly type: "core::starknet::contract_address::ContractAddress";
2716
+ }];
2717
+ readonly state_mutability: "view";
2718
+ }];
2719
+ declare const IPCollection1155ABI: readonly [{
2720
+ readonly type: "function";
2721
+ readonly name: "mint_item";
2722
+ readonly inputs: readonly [{
2723
+ readonly name: "to";
2724
+ readonly type: "core::starknet::contract_address::ContractAddress";
2725
+ }, {
2726
+ readonly name: "token_id";
2727
+ readonly type: "core::integer::u256";
2728
+ }, {
2729
+ readonly name: "value";
2730
+ readonly type: "core::integer::u256";
2731
+ }, {
2732
+ readonly name: "token_uri";
2733
+ readonly type: "core::byte_array::ByteArray";
2734
+ }];
2735
+ readonly outputs: readonly [];
2736
+ readonly state_mutability: "external";
2737
+ }, {
2738
+ readonly type: "function";
2739
+ readonly name: "batch_mint_item";
2740
+ readonly inputs: readonly [{
2741
+ readonly name: "to";
2742
+ readonly type: "core::starknet::contract_address::ContractAddress";
2743
+ }, {
2744
+ readonly name: "token_ids";
2745
+ readonly type: "core::array::Span::<core::integer::u256>";
2746
+ }, {
2747
+ readonly name: "values";
2748
+ readonly type: "core::array::Span::<core::integer::u256>";
2749
+ }, {
2750
+ readonly name: "token_uris";
2751
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
2752
+ }];
2753
+ readonly outputs: readonly [];
2754
+ readonly state_mutability: "external";
2755
+ }, {
2756
+ readonly type: "function";
2757
+ readonly name: "uri";
2758
+ readonly inputs: readonly [{
2759
+ readonly name: "token_id";
2760
+ readonly type: "core::integer::u256";
2761
+ }];
2762
+ readonly outputs: readonly [{
2763
+ readonly type: "core::byte_array::ByteArray";
2764
+ }];
2765
+ readonly state_mutability: "view";
2766
+ }, {
2767
+ readonly type: "function";
2768
+ readonly name: "get_collection_creator";
2769
+ readonly inputs: readonly [];
2770
+ readonly outputs: readonly [{
2771
+ readonly type: "core::starknet::contract_address::ContractAddress";
2772
+ }];
2773
+ readonly state_mutability: "view";
2774
+ }, {
2775
+ readonly type: "function";
2776
+ readonly name: "get_token_creator";
2777
+ readonly inputs: readonly [{
2778
+ readonly name: "token_id";
2779
+ readonly type: "core::integer::u256";
2780
+ }];
2781
+ readonly outputs: readonly [{
2782
+ readonly type: "core::starknet::contract_address::ContractAddress";
2783
+ }];
2784
+ readonly state_mutability: "view";
2785
+ }, {
2786
+ readonly type: "function";
2787
+ readonly name: "owner";
2788
+ readonly inputs: readonly [];
2789
+ readonly outputs: readonly [{
2790
+ readonly type: "core::starknet::contract_address::ContractAddress";
2791
+ }];
2792
+ readonly state_mutability: "view";
2793
+ }, {
2794
+ readonly type: "function";
2795
+ readonly name: "balance_of";
2796
+ readonly inputs: readonly [{
2797
+ readonly name: "account";
2798
+ readonly type: "core::starknet::contract_address::ContractAddress";
2799
+ }, {
2800
+ readonly name: "token_id";
2801
+ readonly type: "core::integer::u256";
2802
+ }];
2803
+ readonly outputs: readonly [{
2804
+ readonly type: "core::integer::u256";
2805
+ }];
2806
+ readonly state_mutability: "view";
2807
+ }, {
2808
+ readonly type: "function";
2809
+ readonly name: "set_approval_for_all";
2810
+ readonly inputs: readonly [{
2811
+ readonly name: "operator";
2812
+ readonly type: "core::starknet::contract_address::ContractAddress";
2813
+ }, {
2814
+ readonly name: "approved";
2815
+ readonly type: "core::bool";
2816
+ }];
2817
+ readonly outputs: readonly [];
2818
+ readonly state_mutability: "external";
2819
+ }, {
2820
+ readonly type: "function";
2821
+ readonly name: "is_approved_for_all";
2822
+ readonly inputs: readonly [{
2823
+ readonly name: "owner";
2824
+ readonly type: "core::starknet::contract_address::ContractAddress";
2825
+ }, {
2826
+ readonly name: "operator";
2827
+ readonly type: "core::starknet::contract_address::ContractAddress";
2828
+ }];
2829
+ readonly outputs: readonly [{
2830
+ readonly type: "core::bool";
2831
+ }];
2832
+ readonly state_mutability: "view";
2833
+ }, {
2834
+ readonly type: "function";
2835
+ readonly name: "set_royalty";
2836
+ readonly inputs: readonly [{
2837
+ readonly name: "receiver";
2838
+ readonly type: "core::starknet::contract_address::ContractAddress";
2839
+ }, {
2840
+ readonly name: "fee_numerator";
2841
+ readonly type: "core::integer::u128";
2842
+ }];
2843
+ readonly outputs: readonly [];
2844
+ readonly state_mutability: "external";
2845
+ }];
2846
+
2847
+ interface DeployCollectionParams {
2848
+ /** Human-readable collection name (e.g. "My IP Collection") */
2849
+ name: string;
2850
+ /** Short ticker symbol (e.g. "MIP") */
2851
+ symbol: string;
2852
+ }
2853
+ interface MintItemParams {
2854
+ /** ERC-1155 collection contract address */
2855
+ collection: string;
2856
+ /** Recipient wallet address */
2857
+ to: string;
2858
+ /** Token ID (u256 — use a numeric string or bigint) */
2859
+ tokenId: bigint | string;
2860
+ /** Number of copies to mint */
2861
+ value: bigint | string;
2862
+ /**
2863
+ * Metadata URI — must start with `ipfs://` or `ar://`.
2864
+ * Immutable: validated and stored on first mint of each token_id.
2865
+ */
2866
+ tokenUri: string;
2867
+ }
2868
+ interface BatchMintItemParams {
2869
+ /** ERC-1155 collection contract address */
2870
+ collection: string;
2871
+ /** Recipient wallet address */
2872
+ to: string;
2873
+ items: Array<{
2874
+ tokenId: bigint | string;
2875
+ value: bigint | string;
2876
+ tokenUri: string;
2877
+ }>;
2878
+ }
2879
+ declare class ERC1155CollectionService {
2880
+ private readonly factoryAddress;
2881
+ constructor(_config: ResolvedConfig);
2882
+ private _factory;
2883
+ private _collection;
2884
+ /**
2885
+ * Deploy a new ERC-1155 IP collection.
2886
+ * Caller becomes the collection owner and can mint items.
2887
+ * Returns the transaction hash; the deployed collection address is emitted
2888
+ * in the `CollectionDeployed` event of the factory.
2889
+ */
2890
+ deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
2891
+ /**
2892
+ * Mint a single token into an existing ERC-1155 collection.
2893
+ * Caller must be the collection owner.
2894
+ * The `tokenUri` is immutable — validated and stored on the first mint only.
2895
+ */
2896
+ mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
2897
+ /**
2898
+ * Batch-mint multiple token IDs into an existing ERC-1155 collection.
2899
+ * All items go to the same `to` address.
2900
+ * Caller must be the collection owner.
2901
+ */
2902
+ batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
2903
+ /**
2904
+ * Set ERC-2981 royalties for the collection.
2905
+ * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
2906
+ * Caller must be the collection owner.
2907
+ */
2908
+ setRoyalty(account: AccountInterface, params: {
2909
+ collection: string;
2910
+ receiver: string;
2911
+ feeNumerator: number;
2912
+ }): Promise<TxResult>;
2913
+ /**
2914
+ * Approve the Medialane1155 marketplace (or any operator) to transfer
2915
+ * all tokens on behalf of `account`. Required before listing.
2916
+ */
2917
+ setApprovalForAll(account: AccountInterface, params: {
2918
+ collection: string;
2919
+ operator: string;
2920
+ approved: boolean;
2921
+ }): Promise<TxResult>;
2922
+ }
2682
2923
 
2683
2924
  /**
2684
2925
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
@@ -2757,4 +2998,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
2757
2998
  */
2758
2999
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2759
3000
 
2760
- 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 CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, 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, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
3001
+ 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, type BatchMintItemParams, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, 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, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
package/dist/index.d.ts CHANGED
@@ -39,6 +39,10 @@ type Network = (typeof SUPPORTED_NETWORKS)[number];
39
39
  declare const DEFAULT_RPC_URL = "https://rpc.starknet.lava.build";
40
40
  declare const POP_COLLECTION_CLASS_HASH_MAINNET = "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
41
41
  declare const DROP_COLLECTION_CLASS_HASH_MAINNET = "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
42
+ /** IP-Programmable-ERC1155-Collections factory. Deployed 2026-04-15. */
43
+ declare const ERC1155_FACTORY_CONTRACT_MAINNET = "0x0459a9a3c04be5d884a038744f977dff019897264d4a281f9e0f87af417b3bec";
44
+ /** Class hash of the IPCollection ERC-1155 implementation. Deployed 2026-04-15. */
45
+ declare const ERC1155_COLLECTION_CLASS_HASH_MAINNET = "0x02da5e81be7a1ca493b9441522c450f8ff4c54b14ec16a0c2349f5e6e6fdc5d7";
42
46
 
43
47
  interface RetryOptions {
44
48
  maxAttempts?: number;
@@ -549,6 +553,8 @@ interface CreateListingIntentParams {
549
553
  price: string;
550
554
  endTime: number;
551
555
  salt?: string;
556
+ /** Number of units to list — required for ERC-1155, omit for ERC-721. */
557
+ amount?: string;
552
558
  }
553
559
  interface MakeOfferIntentParams {
554
560
  offerer: string;
@@ -2679,6 +2685,241 @@ declare const Medialane1155ABI: readonly [{
2679
2685
  readonly kind: "flat";
2680
2686
  }];
2681
2687
  }];
2688
+ declare const IPCollection1155FactoryABI: readonly [{
2689
+ readonly type: "function";
2690
+ readonly name: "collection_class_hash";
2691
+ readonly inputs: readonly [];
2692
+ readonly outputs: readonly [{
2693
+ readonly type: "core::starknet::class_hash::ClassHash";
2694
+ }];
2695
+ readonly state_mutability: "view";
2696
+ }, {
2697
+ readonly type: "function";
2698
+ readonly name: "deploy_collection";
2699
+ readonly inputs: readonly [{
2700
+ readonly name: "name";
2701
+ readonly type: "core::byte_array::ByteArray";
2702
+ }, {
2703
+ readonly name: "symbol";
2704
+ readonly type: "core::byte_array::ByteArray";
2705
+ }];
2706
+ readonly outputs: readonly [{
2707
+ readonly type: "core::starknet::contract_address::ContractAddress";
2708
+ }];
2709
+ readonly state_mutability: "external";
2710
+ }, {
2711
+ readonly type: "function";
2712
+ readonly name: "owner";
2713
+ readonly inputs: readonly [];
2714
+ readonly outputs: readonly [{
2715
+ readonly type: "core::starknet::contract_address::ContractAddress";
2716
+ }];
2717
+ readonly state_mutability: "view";
2718
+ }];
2719
+ declare const IPCollection1155ABI: readonly [{
2720
+ readonly type: "function";
2721
+ readonly name: "mint_item";
2722
+ readonly inputs: readonly [{
2723
+ readonly name: "to";
2724
+ readonly type: "core::starknet::contract_address::ContractAddress";
2725
+ }, {
2726
+ readonly name: "token_id";
2727
+ readonly type: "core::integer::u256";
2728
+ }, {
2729
+ readonly name: "value";
2730
+ readonly type: "core::integer::u256";
2731
+ }, {
2732
+ readonly name: "token_uri";
2733
+ readonly type: "core::byte_array::ByteArray";
2734
+ }];
2735
+ readonly outputs: readonly [];
2736
+ readonly state_mutability: "external";
2737
+ }, {
2738
+ readonly type: "function";
2739
+ readonly name: "batch_mint_item";
2740
+ readonly inputs: readonly [{
2741
+ readonly name: "to";
2742
+ readonly type: "core::starknet::contract_address::ContractAddress";
2743
+ }, {
2744
+ readonly name: "token_ids";
2745
+ readonly type: "core::array::Span::<core::integer::u256>";
2746
+ }, {
2747
+ readonly name: "values";
2748
+ readonly type: "core::array::Span::<core::integer::u256>";
2749
+ }, {
2750
+ readonly name: "token_uris";
2751
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
2752
+ }];
2753
+ readonly outputs: readonly [];
2754
+ readonly state_mutability: "external";
2755
+ }, {
2756
+ readonly type: "function";
2757
+ readonly name: "uri";
2758
+ readonly inputs: readonly [{
2759
+ readonly name: "token_id";
2760
+ readonly type: "core::integer::u256";
2761
+ }];
2762
+ readonly outputs: readonly [{
2763
+ readonly type: "core::byte_array::ByteArray";
2764
+ }];
2765
+ readonly state_mutability: "view";
2766
+ }, {
2767
+ readonly type: "function";
2768
+ readonly name: "get_collection_creator";
2769
+ readonly inputs: readonly [];
2770
+ readonly outputs: readonly [{
2771
+ readonly type: "core::starknet::contract_address::ContractAddress";
2772
+ }];
2773
+ readonly state_mutability: "view";
2774
+ }, {
2775
+ readonly type: "function";
2776
+ readonly name: "get_token_creator";
2777
+ readonly inputs: readonly [{
2778
+ readonly name: "token_id";
2779
+ readonly type: "core::integer::u256";
2780
+ }];
2781
+ readonly outputs: readonly [{
2782
+ readonly type: "core::starknet::contract_address::ContractAddress";
2783
+ }];
2784
+ readonly state_mutability: "view";
2785
+ }, {
2786
+ readonly type: "function";
2787
+ readonly name: "owner";
2788
+ readonly inputs: readonly [];
2789
+ readonly outputs: readonly [{
2790
+ readonly type: "core::starknet::contract_address::ContractAddress";
2791
+ }];
2792
+ readonly state_mutability: "view";
2793
+ }, {
2794
+ readonly type: "function";
2795
+ readonly name: "balance_of";
2796
+ readonly inputs: readonly [{
2797
+ readonly name: "account";
2798
+ readonly type: "core::starknet::contract_address::ContractAddress";
2799
+ }, {
2800
+ readonly name: "token_id";
2801
+ readonly type: "core::integer::u256";
2802
+ }];
2803
+ readonly outputs: readonly [{
2804
+ readonly type: "core::integer::u256";
2805
+ }];
2806
+ readonly state_mutability: "view";
2807
+ }, {
2808
+ readonly type: "function";
2809
+ readonly name: "set_approval_for_all";
2810
+ readonly inputs: readonly [{
2811
+ readonly name: "operator";
2812
+ readonly type: "core::starknet::contract_address::ContractAddress";
2813
+ }, {
2814
+ readonly name: "approved";
2815
+ readonly type: "core::bool";
2816
+ }];
2817
+ readonly outputs: readonly [];
2818
+ readonly state_mutability: "external";
2819
+ }, {
2820
+ readonly type: "function";
2821
+ readonly name: "is_approved_for_all";
2822
+ readonly inputs: readonly [{
2823
+ readonly name: "owner";
2824
+ readonly type: "core::starknet::contract_address::ContractAddress";
2825
+ }, {
2826
+ readonly name: "operator";
2827
+ readonly type: "core::starknet::contract_address::ContractAddress";
2828
+ }];
2829
+ readonly outputs: readonly [{
2830
+ readonly type: "core::bool";
2831
+ }];
2832
+ readonly state_mutability: "view";
2833
+ }, {
2834
+ readonly type: "function";
2835
+ readonly name: "set_royalty";
2836
+ readonly inputs: readonly [{
2837
+ readonly name: "receiver";
2838
+ readonly type: "core::starknet::contract_address::ContractAddress";
2839
+ }, {
2840
+ readonly name: "fee_numerator";
2841
+ readonly type: "core::integer::u128";
2842
+ }];
2843
+ readonly outputs: readonly [];
2844
+ readonly state_mutability: "external";
2845
+ }];
2846
+
2847
+ interface DeployCollectionParams {
2848
+ /** Human-readable collection name (e.g. "My IP Collection") */
2849
+ name: string;
2850
+ /** Short ticker symbol (e.g. "MIP") */
2851
+ symbol: string;
2852
+ }
2853
+ interface MintItemParams {
2854
+ /** ERC-1155 collection contract address */
2855
+ collection: string;
2856
+ /** Recipient wallet address */
2857
+ to: string;
2858
+ /** Token ID (u256 — use a numeric string or bigint) */
2859
+ tokenId: bigint | string;
2860
+ /** Number of copies to mint */
2861
+ value: bigint | string;
2862
+ /**
2863
+ * Metadata URI — must start with `ipfs://` or `ar://`.
2864
+ * Immutable: validated and stored on first mint of each token_id.
2865
+ */
2866
+ tokenUri: string;
2867
+ }
2868
+ interface BatchMintItemParams {
2869
+ /** ERC-1155 collection contract address */
2870
+ collection: string;
2871
+ /** Recipient wallet address */
2872
+ to: string;
2873
+ items: Array<{
2874
+ tokenId: bigint | string;
2875
+ value: bigint | string;
2876
+ tokenUri: string;
2877
+ }>;
2878
+ }
2879
+ declare class ERC1155CollectionService {
2880
+ private readonly factoryAddress;
2881
+ constructor(_config: ResolvedConfig);
2882
+ private _factory;
2883
+ private _collection;
2884
+ /**
2885
+ * Deploy a new ERC-1155 IP collection.
2886
+ * Caller becomes the collection owner and can mint items.
2887
+ * Returns the transaction hash; the deployed collection address is emitted
2888
+ * in the `CollectionDeployed` event of the factory.
2889
+ */
2890
+ deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
2891
+ /**
2892
+ * Mint a single token into an existing ERC-1155 collection.
2893
+ * Caller must be the collection owner.
2894
+ * The `tokenUri` is immutable — validated and stored on the first mint only.
2895
+ */
2896
+ mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
2897
+ /**
2898
+ * Batch-mint multiple token IDs into an existing ERC-1155 collection.
2899
+ * All items go to the same `to` address.
2900
+ * Caller must be the collection owner.
2901
+ */
2902
+ batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
2903
+ /**
2904
+ * Set ERC-2981 royalties for the collection.
2905
+ * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
2906
+ * Caller must be the collection owner.
2907
+ */
2908
+ setRoyalty(account: AccountInterface, params: {
2909
+ collection: string;
2910
+ receiver: string;
2911
+ feeNumerator: number;
2912
+ }): Promise<TxResult>;
2913
+ /**
2914
+ * Approve the Medialane1155 marketplace (or any operator) to transfer
2915
+ * all tokens on behalf of `account`. Required before listing.
2916
+ */
2917
+ setApprovalForAll(account: AccountInterface, params: {
2918
+ collection: string;
2919
+ operator: string;
2920
+ approved: boolean;
2921
+ }): Promise<TxResult>;
2922
+ }
2682
2923
 
2683
2924
  /**
2684
2925
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
@@ -2757,4 +2998,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
2757
2998
  */
2758
2999
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2759
3000
 
2760
- 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 CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, 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, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
3001
+ 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, type BatchMintItemParams, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, 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, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };