@medialane/sdk 0.8.3 → 0.9.1

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
@@ -199,6 +199,10 @@ interface MakeOfferParams {
199
199
  }
200
200
  interface FulfillOrderParams {
201
201
  orderHash: string;
202
+ /** ERC-20 payment token address — the consideration token on the listing. */
203
+ paymentToken: string;
204
+ /** Total price in raw token units as a string (e.g. "1000000" for 1 USDC). */
205
+ totalPrice: string;
202
206
  }
203
207
  interface CancelOrderParams {
204
208
  orderHash: string;
@@ -211,6 +215,8 @@ interface CartItem {
211
215
  considerationAmount: string;
212
216
  /** Human-readable identifier for the NFT (for logging) */
213
217
  offerIdentifier?: string;
218
+ /** ERC-1155 only: number of units to purchase per item (defaults to "1") */
219
+ quantity?: string;
214
220
  }
215
221
  interface MintParams {
216
222
  collectionId: string;
@@ -229,6 +235,15 @@ interface CreateCollectionParams {
229
235
  interface TxResult {
230
236
  txHash: string;
231
237
  }
238
+ interface OrderDetails {
239
+ offerer: string;
240
+ offer: OfferItem;
241
+ consideration: ConsiderationItem;
242
+ start_time: bigint;
243
+ end_time: bigint;
244
+ order_status: string;
245
+ fulfiller: string | null;
246
+ }
232
247
  interface CreateListing1155Params {
233
248
  /** ERC-1155 contract address */
234
249
  nftContract: string;
@@ -257,6 +272,20 @@ interface CancelOrder1155Params {
257
272
  /** On-chain order hash */
258
273
  orderHash: string;
259
274
  }
275
+ interface MakeOffer1155Params {
276
+ /** ERC-1155 contract address */
277
+ nftContract: string;
278
+ /** Token type ID */
279
+ tokenId: string;
280
+ /** Number of tokens requested */
281
+ amount: string;
282
+ /** Total offer price in human-readable units (e.g. "1.5") */
283
+ price: string;
284
+ /** Currency symbol or token address. Defaults to "USDC". */
285
+ currency?: string;
286
+ /** How long the offer is valid, in seconds */
287
+ durationSeconds: number;
288
+ }
260
289
 
261
290
  type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
262
291
 
@@ -276,6 +305,8 @@ declare class MarketplaceModule {
276
305
  checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
277
306
  mint(account: AccountInterface, params: MintParams): Promise<TxResult>;
278
307
  createCollection(account: AccountInterface, params: CreateCollectionParams): Promise<TxResult>;
308
+ getOrderDetails(orderHash: string): Promise<OrderDetails>;
309
+ getNonce(address: string): Promise<bigint>;
279
310
  buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
280
311
  buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
281
312
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
@@ -289,6 +320,11 @@ declare class Medialane1155Module {
289
320
  * Optionally grants `set_approval_for_all` if not already approved.
290
321
  */
291
322
  createListing(account: AccountInterface, params: CreateListing1155Params): Promise<TxResult>;
323
+ /**
324
+ * Make an offer (bid) on an ERC-1155 token.
325
+ * Approves the ERC-20 spend then calls `register_order` atomically.
326
+ */
327
+ makeOffer(account: AccountInterface, params: MakeOffer1155Params): Promise<TxResult>;
292
328
  /**
293
329
  * Fulfill (buy) an ERC-1155 listing.
294
330
  * Approves the payment token then calls `fulfill_order` atomically.
@@ -298,6 +334,13 @@ declare class Medialane1155Module {
298
334
  * Cancel an ERC-1155 listing (offerer only).
299
335
  */
300
336
  cancelOrder(account: AccountInterface, params: CancelOrder1155Params): Promise<TxResult>;
337
+ /**
338
+ * Checkout a cart of ERC-1155 orders atomically.
339
+ * Signs one fulfillment per item (with quantity), sums ERC-20 approvals by token.
340
+ */
341
+ checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
342
+ getOrderDetails(orderHash: string): Promise<OrderDetails>;
343
+ getNonce(address: string): Promise<bigint>;
301
344
  buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
302
345
  buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
303
346
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
@@ -654,7 +697,7 @@ interface CreateCounterOfferIntentParams {
654
697
  /** Order hash of the original buyer bid being countered. */
655
698
  originalOrderHash: string;
656
699
  /** Counter price as a raw wei integer string (not human-readable). */
657
- counterPrice: string;
700
+ priceRaw: string;
658
701
  /** Duration in seconds the counter-offer will be valid (3600–2592000). */
659
702
  durationSeconds: number;
660
703
  /** Optional message from the seller to the buyer. Max 500 chars. */
@@ -1153,6 +1196,99 @@ declare class DropService {
1153
1196
  createDrop(account: AccountInterface, params: CreateDropParams): Promise<TxResult>;
1154
1197
  }
1155
1198
 
1199
+ interface DeployCollectionParams {
1200
+ /** Human-readable collection name (e.g. "My IP Collection") */
1201
+ name: string;
1202
+ /** Short ticker symbol (e.g. "MIP") */
1203
+ symbol: string;
1204
+ /**
1205
+ * Collection-level metadata URI (e.g. "ipfs://Qm…/collection.json").
1206
+ * Should point to a JSON containing `name`, `description`, `image`, and `external_link`.
1207
+ * Stored on-chain at deploy time. Pass an empty string if not available.
1208
+ */
1209
+ baseUri: string;
1210
+ }
1211
+ interface MintItemParams {
1212
+ /** ERC-1155 collection contract address */
1213
+ collection: string;
1214
+ /** Recipient wallet address */
1215
+ to: string;
1216
+ /** Token ID (u256 — use a numeric string or bigint) */
1217
+ tokenId: bigint | string;
1218
+ /** Number of copies to mint */
1219
+ value: bigint | string;
1220
+ /**
1221
+ * Metadata URI — must start with `ipfs://` or `ar://`.
1222
+ * Immutable: validated and stored on first mint of each token_id.
1223
+ */
1224
+ tokenUri: string;
1225
+ }
1226
+ interface BatchMintItemParams {
1227
+ /** ERC-1155 collection contract address */
1228
+ collection: string;
1229
+ /** Recipient wallet address */
1230
+ to: string;
1231
+ items: Array<{
1232
+ tokenId: bigint | string;
1233
+ value: bigint | string;
1234
+ tokenUri: string;
1235
+ }>;
1236
+ }
1237
+ declare class ERC1155CollectionService {
1238
+ private readonly factoryAddress;
1239
+ constructor(config: ResolvedConfig);
1240
+ private _factory;
1241
+ private _collection;
1242
+ /**
1243
+ * Deploy a new ERC-1155 IP collection.
1244
+ * Caller becomes the collection owner and can mint items.
1245
+ * Returns the transaction hash; the deployed collection address is emitted
1246
+ * in the `CollectionDeployed` event of the factory.
1247
+ */
1248
+ deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
1249
+ /**
1250
+ * Mint a single token into an existing ERC-1155 collection.
1251
+ * Caller must be the collection owner.
1252
+ * The `tokenUri` is immutable — validated and stored on the first mint only.
1253
+ */
1254
+ mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
1255
+ /**
1256
+ * Batch-mint multiple token IDs into an existing ERC-1155 collection.
1257
+ * All items go to the same `to` address.
1258
+ * Caller must be the collection owner.
1259
+ */
1260
+ batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
1261
+ /**
1262
+ * Set the default ERC-2981 royalty for the entire collection.
1263
+ * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
1264
+ * Caller must be the collection owner.
1265
+ */
1266
+ setDefaultRoyalty(account: AccountInterface, params: {
1267
+ collection: string;
1268
+ receiver: string;
1269
+ feeNumerator: number;
1270
+ }): Promise<TxResult>;
1271
+ /**
1272
+ * Set a per-token ERC-2981 royalty override.
1273
+ * `feeNumerator` is out of 10 000. Caller must be the collection owner.
1274
+ */
1275
+ setTokenRoyalty(account: AccountInterface, params: {
1276
+ collection: string;
1277
+ tokenId: bigint | string;
1278
+ receiver: string;
1279
+ feeNumerator: number;
1280
+ }): Promise<TxResult>;
1281
+ /**
1282
+ * Approve the Medialane1155 marketplace (or any operator) to transfer
1283
+ * all tokens on behalf of `account`. Required before listing.
1284
+ */
1285
+ setApprovalForAll(account: AccountInterface, params: {
1286
+ collection: string;
1287
+ operator: string;
1288
+ approved: boolean;
1289
+ }): Promise<TxResult>;
1290
+ }
1291
+
1156
1292
  declare class MedialaneClient {
1157
1293
  /** On-chain marketplace interactions for ERC-721 assets (create listing, fulfill order, etc.) */
1158
1294
  readonly marketplace: MarketplaceModule;
@@ -1166,6 +1302,7 @@ declare class MedialaneClient {
1166
1302
  readonly services: {
1167
1303
  readonly pop: PopService;
1168
1304
  readonly drop: DropService;
1305
+ readonly erc1155Collection: ERC1155CollectionService;
1169
1306
  };
1170
1307
  private readonly config;
1171
1308
  constructor(rawConfig?: MedialaneConfig);
@@ -2755,99 +2892,6 @@ declare const IPCollection1155ABI: readonly [{
2755
2892
  readonly state_mutability: "external";
2756
2893
  }];
2757
2894
 
2758
- interface DeployCollectionParams {
2759
- /** Human-readable collection name (e.g. "My IP Collection") */
2760
- name: string;
2761
- /** Short ticker symbol (e.g. "MIP") */
2762
- symbol: string;
2763
- /**
2764
- * Collection-level metadata URI (e.g. "ipfs://Qm…/collection.json").
2765
- * Should point to a JSON containing `name`, `description`, `image`, and `external_link`.
2766
- * Stored on-chain at deploy time. Pass an empty string if not available.
2767
- */
2768
- baseUri: string;
2769
- }
2770
- interface MintItemParams {
2771
- /** ERC-1155 collection contract address */
2772
- collection: string;
2773
- /** Recipient wallet address */
2774
- to: string;
2775
- /** Token ID (u256 — use a numeric string or bigint) */
2776
- tokenId: bigint | string;
2777
- /** Number of copies to mint */
2778
- value: bigint | string;
2779
- /**
2780
- * Metadata URI — must start with `ipfs://` or `ar://`.
2781
- * Immutable: validated and stored on first mint of each token_id.
2782
- */
2783
- tokenUri: string;
2784
- }
2785
- interface BatchMintItemParams {
2786
- /** ERC-1155 collection contract address */
2787
- collection: string;
2788
- /** Recipient wallet address */
2789
- to: string;
2790
- items: Array<{
2791
- tokenId: bigint | string;
2792
- value: bigint | string;
2793
- tokenUri: string;
2794
- }>;
2795
- }
2796
- declare class ERC1155CollectionService {
2797
- private readonly factoryAddress;
2798
- constructor(config: ResolvedConfig);
2799
- private _factory;
2800
- private _collection;
2801
- /**
2802
- * Deploy a new ERC-1155 IP collection.
2803
- * Caller becomes the collection owner and can mint items.
2804
- * Returns the transaction hash; the deployed collection address is emitted
2805
- * in the `CollectionDeployed` event of the factory.
2806
- */
2807
- deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
2808
- /**
2809
- * Mint a single token into an existing ERC-1155 collection.
2810
- * Caller must be the collection owner.
2811
- * The `tokenUri` is immutable — validated and stored on the first mint only.
2812
- */
2813
- mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
2814
- /**
2815
- * Batch-mint multiple token IDs into an existing ERC-1155 collection.
2816
- * All items go to the same `to` address.
2817
- * Caller must be the collection owner.
2818
- */
2819
- batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
2820
- /**
2821
- * Set the default ERC-2981 royalty for the entire collection.
2822
- * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
2823
- * Caller must be the collection owner.
2824
- */
2825
- setDefaultRoyalty(account: AccountInterface, params: {
2826
- collection: string;
2827
- receiver: string;
2828
- feeNumerator: number;
2829
- }): Promise<TxResult>;
2830
- /**
2831
- * Set a per-token ERC-2981 royalty override.
2832
- * `feeNumerator` is out of 10 000. Caller must be the collection owner.
2833
- */
2834
- setTokenRoyalty(account: AccountInterface, params: {
2835
- collection: string;
2836
- tokenId: bigint | string;
2837
- receiver: string;
2838
- feeNumerator: number;
2839
- }): Promise<TxResult>;
2840
- /**
2841
- * Approve the Medialane1155 marketplace (or any operator) to transfer
2842
- * all tokens on behalf of `account`. Required before listing.
2843
- */
2844
- setApprovalForAll(account: AccountInterface, params: {
2845
- collection: string;
2846
- operator: string;
2847
- approved: boolean;
2848
- }): Promise<TxResult>;
2849
- }
2850
-
2851
2895
  /**
2852
2896
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
2853
2897
  */
@@ -2894,6 +2938,18 @@ declare function stringifyBigInts(obj: unknown): unknown;
2894
2938
  */
2895
2939
  declare function u256ToBigInt(low: string, high: string): bigint;
2896
2940
 
2941
+ /**
2942
+ * Serialize a string as Cairo ByteArray calldata felts using UTF-8 encoding.
2943
+ *
2944
+ * starknet.js byteArray.byteArrayFromString calls encodeShortString internally
2945
+ * which rejects non-ASCII characters (accented letters, CJK, Arabic, etc.).
2946
+ * This implementation packs raw UTF-8 bytes into 31-byte chunks as big-endian
2947
+ * felts, matching the Cairo ByteArray struct layout.
2948
+ *
2949
+ * Return layout: [chunks_len, ...chunk_felts, pending_word, pending_word_len]
2950
+ */
2951
+ declare function encodeByteArray(str: string): string[];
2952
+
2897
2953
  /**
2898
2954
  * Build SNIP-12 typed data for signing an OrderParameters struct.
2899
2955
  * Uses TypedDataRevision.ACTIVE and ContractAddress / shortstring SNIP-12 types.
@@ -2926,4 +2982,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
2926
2982
  */
2927
2983
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2928
2984
 
2929
- 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_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, 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, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, 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 };
2985
+ 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_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, 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, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, 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, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
package/dist/index.d.ts CHANGED
@@ -199,6 +199,10 @@ interface MakeOfferParams {
199
199
  }
200
200
  interface FulfillOrderParams {
201
201
  orderHash: string;
202
+ /** ERC-20 payment token address — the consideration token on the listing. */
203
+ paymentToken: string;
204
+ /** Total price in raw token units as a string (e.g. "1000000" for 1 USDC). */
205
+ totalPrice: string;
202
206
  }
203
207
  interface CancelOrderParams {
204
208
  orderHash: string;
@@ -211,6 +215,8 @@ interface CartItem {
211
215
  considerationAmount: string;
212
216
  /** Human-readable identifier for the NFT (for logging) */
213
217
  offerIdentifier?: string;
218
+ /** ERC-1155 only: number of units to purchase per item (defaults to "1") */
219
+ quantity?: string;
214
220
  }
215
221
  interface MintParams {
216
222
  collectionId: string;
@@ -229,6 +235,15 @@ interface CreateCollectionParams {
229
235
  interface TxResult {
230
236
  txHash: string;
231
237
  }
238
+ interface OrderDetails {
239
+ offerer: string;
240
+ offer: OfferItem;
241
+ consideration: ConsiderationItem;
242
+ start_time: bigint;
243
+ end_time: bigint;
244
+ order_status: string;
245
+ fulfiller: string | null;
246
+ }
232
247
  interface CreateListing1155Params {
233
248
  /** ERC-1155 contract address */
234
249
  nftContract: string;
@@ -257,6 +272,20 @@ interface CancelOrder1155Params {
257
272
  /** On-chain order hash */
258
273
  orderHash: string;
259
274
  }
275
+ interface MakeOffer1155Params {
276
+ /** ERC-1155 contract address */
277
+ nftContract: string;
278
+ /** Token type ID */
279
+ tokenId: string;
280
+ /** Number of tokens requested */
281
+ amount: string;
282
+ /** Total offer price in human-readable units (e.g. "1.5") */
283
+ price: string;
284
+ /** Currency symbol or token address. Defaults to "USDC". */
285
+ currency?: string;
286
+ /** How long the offer is valid, in seconds */
287
+ durationSeconds: number;
288
+ }
260
289
 
261
290
  type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
262
291
 
@@ -276,6 +305,8 @@ declare class MarketplaceModule {
276
305
  checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
277
306
  mint(account: AccountInterface, params: MintParams): Promise<TxResult>;
278
307
  createCollection(account: AccountInterface, params: CreateCollectionParams): Promise<TxResult>;
308
+ getOrderDetails(orderHash: string): Promise<OrderDetails>;
309
+ getNonce(address: string): Promise<bigint>;
279
310
  buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
280
311
  buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
281
312
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
@@ -289,6 +320,11 @@ declare class Medialane1155Module {
289
320
  * Optionally grants `set_approval_for_all` if not already approved.
290
321
  */
291
322
  createListing(account: AccountInterface, params: CreateListing1155Params): Promise<TxResult>;
323
+ /**
324
+ * Make an offer (bid) on an ERC-1155 token.
325
+ * Approves the ERC-20 spend then calls `register_order` atomically.
326
+ */
327
+ makeOffer(account: AccountInterface, params: MakeOffer1155Params): Promise<TxResult>;
292
328
  /**
293
329
  * Fulfill (buy) an ERC-1155 listing.
294
330
  * Approves the payment token then calls `fulfill_order` atomically.
@@ -298,6 +334,13 @@ declare class Medialane1155Module {
298
334
  * Cancel an ERC-1155 listing (offerer only).
299
335
  */
300
336
  cancelOrder(account: AccountInterface, params: CancelOrder1155Params): Promise<TxResult>;
337
+ /**
338
+ * Checkout a cart of ERC-1155 orders atomically.
339
+ * Signs one fulfillment per item (with quantity), sums ERC-20 approvals by token.
340
+ */
341
+ checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
342
+ getOrderDetails(orderHash: string): Promise<OrderDetails>;
343
+ getNonce(address: string): Promise<bigint>;
301
344
  buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
302
345
  buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
303
346
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
@@ -654,7 +697,7 @@ interface CreateCounterOfferIntentParams {
654
697
  /** Order hash of the original buyer bid being countered. */
655
698
  originalOrderHash: string;
656
699
  /** Counter price as a raw wei integer string (not human-readable). */
657
- counterPrice: string;
700
+ priceRaw: string;
658
701
  /** Duration in seconds the counter-offer will be valid (3600–2592000). */
659
702
  durationSeconds: number;
660
703
  /** Optional message from the seller to the buyer. Max 500 chars. */
@@ -1153,6 +1196,99 @@ declare class DropService {
1153
1196
  createDrop(account: AccountInterface, params: CreateDropParams): Promise<TxResult>;
1154
1197
  }
1155
1198
 
1199
+ interface DeployCollectionParams {
1200
+ /** Human-readable collection name (e.g. "My IP Collection") */
1201
+ name: string;
1202
+ /** Short ticker symbol (e.g. "MIP") */
1203
+ symbol: string;
1204
+ /**
1205
+ * Collection-level metadata URI (e.g. "ipfs://Qm…/collection.json").
1206
+ * Should point to a JSON containing `name`, `description`, `image`, and `external_link`.
1207
+ * Stored on-chain at deploy time. Pass an empty string if not available.
1208
+ */
1209
+ baseUri: string;
1210
+ }
1211
+ interface MintItemParams {
1212
+ /** ERC-1155 collection contract address */
1213
+ collection: string;
1214
+ /** Recipient wallet address */
1215
+ to: string;
1216
+ /** Token ID (u256 — use a numeric string or bigint) */
1217
+ tokenId: bigint | string;
1218
+ /** Number of copies to mint */
1219
+ value: bigint | string;
1220
+ /**
1221
+ * Metadata URI — must start with `ipfs://` or `ar://`.
1222
+ * Immutable: validated and stored on first mint of each token_id.
1223
+ */
1224
+ tokenUri: string;
1225
+ }
1226
+ interface BatchMintItemParams {
1227
+ /** ERC-1155 collection contract address */
1228
+ collection: string;
1229
+ /** Recipient wallet address */
1230
+ to: string;
1231
+ items: Array<{
1232
+ tokenId: bigint | string;
1233
+ value: bigint | string;
1234
+ tokenUri: string;
1235
+ }>;
1236
+ }
1237
+ declare class ERC1155CollectionService {
1238
+ private readonly factoryAddress;
1239
+ constructor(config: ResolvedConfig);
1240
+ private _factory;
1241
+ private _collection;
1242
+ /**
1243
+ * Deploy a new ERC-1155 IP collection.
1244
+ * Caller becomes the collection owner and can mint items.
1245
+ * Returns the transaction hash; the deployed collection address is emitted
1246
+ * in the `CollectionDeployed` event of the factory.
1247
+ */
1248
+ deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
1249
+ /**
1250
+ * Mint a single token into an existing ERC-1155 collection.
1251
+ * Caller must be the collection owner.
1252
+ * The `tokenUri` is immutable — validated and stored on the first mint only.
1253
+ */
1254
+ mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
1255
+ /**
1256
+ * Batch-mint multiple token IDs into an existing ERC-1155 collection.
1257
+ * All items go to the same `to` address.
1258
+ * Caller must be the collection owner.
1259
+ */
1260
+ batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
1261
+ /**
1262
+ * Set the default ERC-2981 royalty for the entire collection.
1263
+ * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
1264
+ * Caller must be the collection owner.
1265
+ */
1266
+ setDefaultRoyalty(account: AccountInterface, params: {
1267
+ collection: string;
1268
+ receiver: string;
1269
+ feeNumerator: number;
1270
+ }): Promise<TxResult>;
1271
+ /**
1272
+ * Set a per-token ERC-2981 royalty override.
1273
+ * `feeNumerator` is out of 10 000. Caller must be the collection owner.
1274
+ */
1275
+ setTokenRoyalty(account: AccountInterface, params: {
1276
+ collection: string;
1277
+ tokenId: bigint | string;
1278
+ receiver: string;
1279
+ feeNumerator: number;
1280
+ }): Promise<TxResult>;
1281
+ /**
1282
+ * Approve the Medialane1155 marketplace (or any operator) to transfer
1283
+ * all tokens on behalf of `account`. Required before listing.
1284
+ */
1285
+ setApprovalForAll(account: AccountInterface, params: {
1286
+ collection: string;
1287
+ operator: string;
1288
+ approved: boolean;
1289
+ }): Promise<TxResult>;
1290
+ }
1291
+
1156
1292
  declare class MedialaneClient {
1157
1293
  /** On-chain marketplace interactions for ERC-721 assets (create listing, fulfill order, etc.) */
1158
1294
  readonly marketplace: MarketplaceModule;
@@ -1166,6 +1302,7 @@ declare class MedialaneClient {
1166
1302
  readonly services: {
1167
1303
  readonly pop: PopService;
1168
1304
  readonly drop: DropService;
1305
+ readonly erc1155Collection: ERC1155CollectionService;
1169
1306
  };
1170
1307
  private readonly config;
1171
1308
  constructor(rawConfig?: MedialaneConfig);
@@ -2755,99 +2892,6 @@ declare const IPCollection1155ABI: readonly [{
2755
2892
  readonly state_mutability: "external";
2756
2893
  }];
2757
2894
 
2758
- interface DeployCollectionParams {
2759
- /** Human-readable collection name (e.g. "My IP Collection") */
2760
- name: string;
2761
- /** Short ticker symbol (e.g. "MIP") */
2762
- symbol: string;
2763
- /**
2764
- * Collection-level metadata URI (e.g. "ipfs://Qm…/collection.json").
2765
- * Should point to a JSON containing `name`, `description`, `image`, and `external_link`.
2766
- * Stored on-chain at deploy time. Pass an empty string if not available.
2767
- */
2768
- baseUri: string;
2769
- }
2770
- interface MintItemParams {
2771
- /** ERC-1155 collection contract address */
2772
- collection: string;
2773
- /** Recipient wallet address */
2774
- to: string;
2775
- /** Token ID (u256 — use a numeric string or bigint) */
2776
- tokenId: bigint | string;
2777
- /** Number of copies to mint */
2778
- value: bigint | string;
2779
- /**
2780
- * Metadata URI — must start with `ipfs://` or `ar://`.
2781
- * Immutable: validated and stored on first mint of each token_id.
2782
- */
2783
- tokenUri: string;
2784
- }
2785
- interface BatchMintItemParams {
2786
- /** ERC-1155 collection contract address */
2787
- collection: string;
2788
- /** Recipient wallet address */
2789
- to: string;
2790
- items: Array<{
2791
- tokenId: bigint | string;
2792
- value: bigint | string;
2793
- tokenUri: string;
2794
- }>;
2795
- }
2796
- declare class ERC1155CollectionService {
2797
- private readonly factoryAddress;
2798
- constructor(config: ResolvedConfig);
2799
- private _factory;
2800
- private _collection;
2801
- /**
2802
- * Deploy a new ERC-1155 IP collection.
2803
- * Caller becomes the collection owner and can mint items.
2804
- * Returns the transaction hash; the deployed collection address is emitted
2805
- * in the `CollectionDeployed` event of the factory.
2806
- */
2807
- deployCollection(account: AccountInterface, params: DeployCollectionParams): Promise<TxResult>;
2808
- /**
2809
- * Mint a single token into an existing ERC-1155 collection.
2810
- * Caller must be the collection owner.
2811
- * The `tokenUri` is immutable — validated and stored on the first mint only.
2812
- */
2813
- mintItem(account: AccountInterface, params: MintItemParams): Promise<TxResult>;
2814
- /**
2815
- * Batch-mint multiple token IDs into an existing ERC-1155 collection.
2816
- * All items go to the same `to` address.
2817
- * Caller must be the collection owner.
2818
- */
2819
- batchMintItem(account: AccountInterface, params: BatchMintItemParams): Promise<TxResult>;
2820
- /**
2821
- * Set the default ERC-2981 royalty for the entire collection.
2822
- * `feeNumerator` is out of 10 000 (e.g. 500 = 5%).
2823
- * Caller must be the collection owner.
2824
- */
2825
- setDefaultRoyalty(account: AccountInterface, params: {
2826
- collection: string;
2827
- receiver: string;
2828
- feeNumerator: number;
2829
- }): Promise<TxResult>;
2830
- /**
2831
- * Set a per-token ERC-2981 royalty override.
2832
- * `feeNumerator` is out of 10 000. Caller must be the collection owner.
2833
- */
2834
- setTokenRoyalty(account: AccountInterface, params: {
2835
- collection: string;
2836
- tokenId: bigint | string;
2837
- receiver: string;
2838
- feeNumerator: number;
2839
- }): Promise<TxResult>;
2840
- /**
2841
- * Approve the Medialane1155 marketplace (or any operator) to transfer
2842
- * all tokens on behalf of `account`. Required before listing.
2843
- */
2844
- setApprovalForAll(account: AccountInterface, params: {
2845
- collection: string;
2846
- operator: string;
2847
- approved: boolean;
2848
- }): Promise<TxResult>;
2849
- }
2850
-
2851
2895
  /**
2852
2896
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
2853
2897
  */
@@ -2894,6 +2938,18 @@ declare function stringifyBigInts(obj: unknown): unknown;
2894
2938
  */
2895
2939
  declare function u256ToBigInt(low: string, high: string): bigint;
2896
2940
 
2941
+ /**
2942
+ * Serialize a string as Cairo ByteArray calldata felts using UTF-8 encoding.
2943
+ *
2944
+ * starknet.js byteArray.byteArrayFromString calls encodeShortString internally
2945
+ * which rejects non-ASCII characters (accented letters, CJK, Arabic, etc.).
2946
+ * This implementation packs raw UTF-8 bytes into 31-byte chunks as big-endian
2947
+ * felts, matching the Cairo ByteArray struct layout.
2948
+ *
2949
+ * Return layout: [chunks_len, ...chunk_felts, pending_word, pending_word_len]
2950
+ */
2951
+ declare function encodeByteArray(str: string): string[];
2952
+
2897
2953
  /**
2898
2954
  * Build SNIP-12 typed data for signing an OrderParameters struct.
2899
2955
  * Uses TypedDataRevision.ACTIVE and ContractAddress / shortstring SNIP-12 types.
@@ -2926,4 +2982,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
2926
2982
  */
2927
2983
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2928
2984
 
2929
- 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_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, 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, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, 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 };
2985
+ 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_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, 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, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, 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, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };