@medialane/sdk 0.7.3 → 0.7.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
@@ -3,7 +3,7 @@ import { AccountInterface, constants, TypedData } from 'starknet';
3
3
 
4
4
  declare const MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
5
5
  /** Medialane1155 — dedicated ERC-1155 marketplace. Deployed 2026-04-15. */
6
- declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x042005e9b85536072bfa260b95aa6aaef07f48e622031657384d2375195d7123";
6
+ declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x03aab04e806542cd88bfd0c5bb2a37334fd742d477a2e0f97af09aa4a36137ca";
7
7
  declare const COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
8
8
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
9
9
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
@@ -346,6 +346,8 @@ interface ApiOrder {
346
346
  price: ApiOrderPrice;
347
347
  txHash: ApiOrderTxHash;
348
348
  createdBlockNumber: string;
349
+ /** ERC-1155 only: units still available after the last partial fill. Null for ERC-721 or unfilled orders. */
350
+ remainingAmount: string | null;
349
351
  createdAt: string;
350
352
  updatedAt: string;
351
353
  /** Embedded token metadata (name/image/description). Null when not yet indexed. */
@@ -423,6 +425,8 @@ interface ApiToken {
423
425
  owner: string | null;
424
426
  tokenUri: string | null;
425
427
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
428
+ /** Token standard derived from the parent collection. Use this to determine ERC-721 vs ERC-1155 behavior. */
429
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
426
430
  metadata: ApiTokenMetadata;
427
431
  /** Current holders with amounts. Only present on single-token fetches; null on list responses. */
428
432
  balances: ApiTokenBalance[] | null;
@@ -570,6 +574,8 @@ interface FulfillOrderIntentParams {
570
574
  orderHash: string;
571
575
  /** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
572
576
  tokenStandard?: string;
577
+ /** ERC-1155 only: units to purchase (1 ≤ quantity ≤ remaining_amount). Defaults to 1. */
578
+ quantity?: string;
573
579
  }
574
580
  interface CancelOrderIntentParams {
575
581
  offerer: string;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { AccountInterface, constants, TypedData } from 'starknet';
3
3
 
4
4
  declare const MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
5
5
  /** Medialane1155 — dedicated ERC-1155 marketplace. Deployed 2026-04-15. */
6
- declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x042005e9b85536072bfa260b95aa6aaef07f48e622031657384d2375195d7123";
6
+ declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x03aab04e806542cd88bfd0c5bb2a37334fd742d477a2e0f97af09aa4a36137ca";
7
7
  declare const COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
8
8
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
9
9
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
@@ -346,6 +346,8 @@ interface ApiOrder {
346
346
  price: ApiOrderPrice;
347
347
  txHash: ApiOrderTxHash;
348
348
  createdBlockNumber: string;
349
+ /** ERC-1155 only: units still available after the last partial fill. Null for ERC-721 or unfilled orders. */
350
+ remainingAmount: string | null;
349
351
  createdAt: string;
350
352
  updatedAt: string;
351
353
  /** Embedded token metadata (name/image/description). Null when not yet indexed. */
@@ -423,6 +425,8 @@ interface ApiToken {
423
425
  owner: string | null;
424
426
  tokenUri: string | null;
425
427
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
428
+ /** Token standard derived from the parent collection. Use this to determine ERC-721 vs ERC-1155 behavior. */
429
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
426
430
  metadata: ApiTokenMetadata;
427
431
  /** Current holders with amounts. Only present on single-token fetches; null on list responses. */
428
432
  balances: ApiTokenBalance[] | null;
@@ -570,6 +574,8 @@ interface FulfillOrderIntentParams {
570
574
  orderHash: string;
571
575
  /** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
572
576
  tokenStandard?: string;
577
+ /** ERC-1155 only: units to purchase (1 ≤ quantity ≤ remaining_amount). Defaults to 1. */
578
+ quantity?: string;
573
579
  }
574
580
  interface CancelOrderIntentParams {
575
581
  offerer: string;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { TypedDataRevision, Contract, shortString, cairo, constants, RpcProvider
5
5
 
6
6
  // src/constants.ts
7
7
  var MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
8
- var MARKETPLACE_1155_CONTRACT_MAINNET = "0x042005e9b85536072bfa260b95aa6aaef07f48e622031657384d2375195d7123";
8
+ var MARKETPLACE_1155_CONTRACT_MAINNET = "0x03aab04e806542cd88bfd0c5bb2a37334fd742d477a2e0f97af09aa4a36137ca";
9
9
  var COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
10
10
  var DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
11
11
  var POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";