@medialane/sdk 0.7.4 → 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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 = "
|
|
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. */
|
|
@@ -572,6 +574,8 @@ interface FulfillOrderIntentParams {
|
|
|
572
574
|
orderHash: string;
|
|
573
575
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
574
576
|
tokenStandard?: string;
|
|
577
|
+
/** ERC-1155 only: units to purchase (1 ≤ quantity ≤ remaining_amount). Defaults to 1. */
|
|
578
|
+
quantity?: string;
|
|
575
579
|
}
|
|
576
580
|
interface CancelOrderIntentParams {
|
|
577
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 = "
|
|
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. */
|
|
@@ -572,6 +574,8 @@ interface FulfillOrderIntentParams {
|
|
|
572
574
|
orderHash: string;
|
|
573
575
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
574
576
|
tokenStandard?: string;
|
|
577
|
+
/** ERC-1155 only: units to purchase (1 ≤ quantity ≤ remaining_amount). Defaults to 1. */
|
|
578
|
+
quantity?: string;
|
|
575
579
|
}
|
|
576
580
|
interface CancelOrderIntentParams {
|
|
577
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 = "
|
|
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";
|