@medialane/sdk 0.25.0 → 0.26.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.cjs +606 -526
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +231 -263
- package/dist/index.d.ts +231 -263
- package/dist/index.js +607 -525
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Call, AccountInterface, constants, TypedData } from 'starknet';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
declare const MARKETPLACE_721_CONTRACT_MAINNET = "
|
|
6
|
-
/** Class hash of the
|
|
7
|
-
declare const MARKETPLACE_721_CLASS_HASH_MAINNET = "
|
|
8
|
-
/** First mainnet block for the
|
|
9
|
-
declare const MARKETPLACE_721_START_BLOCK_MAINNET =
|
|
10
|
-
/**
|
|
11
|
-
declare const MARKETPLACE_1155_CONTRACT_MAINNET = "
|
|
12
|
-
/** Class hash of the
|
|
13
|
-
declare const MARKETPLACE_1155_CLASS_HASH_MAINNET = "
|
|
14
|
-
/** First mainnet block for the
|
|
15
|
-
declare const MARKETPLACE_1155_START_BLOCK_MAINNET =
|
|
4
|
+
/** Medialane721 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
5
|
+
declare const MARKETPLACE_721_CONTRACT_MAINNET = "0x069cf5391077e3ebdd9cb6aebf90ed530d29f0d6aa34a43f5afae938c0fb565e";
|
|
6
|
+
/** Class hash of the Medialane721 venue. */
|
|
7
|
+
declare const MARKETPLACE_721_CLASS_HASH_MAINNET = "0x04c6f952d747ad7ead1b3dad4c1d587837d38f8ec29d6c095a4afa5b5ece5957";
|
|
8
|
+
/** First mainnet block for the Medialane721 venue deployment. */
|
|
9
|
+
declare const MARKETPLACE_721_START_BLOCK_MAINNET = 10350340;
|
|
10
|
+
/** Medialane1155 marketplace venue — immutable, ownerless (redesign, deployed 2026-05-31). */
|
|
11
|
+
declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x040cd7b3e73bb3c892166e34bdc01d1797f97ecbc356c23f1cf38033cacf0077";
|
|
12
|
+
/** Class hash of the Medialane1155 venue. */
|
|
13
|
+
declare const MARKETPLACE_1155_CLASS_HASH_MAINNET = "0x02600bb720908f119afe482309d36c39d087587f0df9576454acfb6363e78cd8";
|
|
14
|
+
/** First mainnet block for the Medialane1155 venue deployment. */
|
|
15
|
+
declare const MARKETPLACE_1155_START_BLOCK_MAINNET = 10350855;
|
|
16
16
|
declare const COLLECTION_721_CONTRACT_MAINNET = "0x0322cb7119955e01ac778d40976eb3ba50540bb0899f812d612f9c7e63e49fd2";
|
|
17
17
|
/** Class hash of the IPNft (per-collection ERC-721) implementation. */
|
|
18
18
|
declare const IPNFT_CLASS_HASH_MAINNET = "0x27ee4ded786d51bced1e94afec3034d6ffce71c032c45ee1ff283ccfa9db12e";
|
|
@@ -218,34 +218,29 @@ interface OfferItem {
|
|
|
218
218
|
item_type: string;
|
|
219
219
|
token: string;
|
|
220
220
|
identifier_or_criteria: string;
|
|
221
|
-
|
|
222
|
-
end_amount: string;
|
|
221
|
+
amount: string;
|
|
223
222
|
}
|
|
224
223
|
interface ConsiderationItem extends OfferItem {
|
|
225
224
|
recipient: string;
|
|
226
225
|
}
|
|
227
226
|
interface OrderParameters {
|
|
228
227
|
offerer: string;
|
|
228
|
+
marketplace: string;
|
|
229
229
|
offer: OfferItem;
|
|
230
230
|
consideration: ConsiderationItem;
|
|
231
|
+
royalty_max_bps: string;
|
|
231
232
|
start_time: string;
|
|
232
233
|
end_time: string;
|
|
233
234
|
salt: string;
|
|
234
|
-
|
|
235
|
+
counter: string;
|
|
235
236
|
}
|
|
236
237
|
interface Order {
|
|
237
238
|
parameters: OrderParameters;
|
|
238
239
|
signature: string[];
|
|
239
240
|
}
|
|
240
|
-
interface Fulfillment {
|
|
241
|
-
order_hash: string;
|
|
242
|
-
fulfiller: string;
|
|
243
|
-
nonce: string;
|
|
244
|
-
}
|
|
245
241
|
interface Cancelation {
|
|
246
242
|
order_hash: string;
|
|
247
243
|
offerer: string;
|
|
248
|
-
nonce: string;
|
|
249
244
|
}
|
|
250
245
|
interface CreateListingParams {
|
|
251
246
|
nftContract: string;
|
|
@@ -254,6 +249,8 @@ interface CreateListingParams {
|
|
|
254
249
|
/** Currency symbol or token address. Defaults to "USDC" (native). */
|
|
255
250
|
currency?: string;
|
|
256
251
|
durationSeconds: number;
|
|
252
|
+
/** Signed EIP-2981 royalty cap in bps. Defaults to the NFT's live 2981 rate. */
|
|
253
|
+
royaltyMaxBps?: string;
|
|
257
254
|
}
|
|
258
255
|
interface MakeOfferParams {
|
|
259
256
|
nftContract: string;
|
|
@@ -262,6 +259,8 @@ interface MakeOfferParams {
|
|
|
262
259
|
/** Currency symbol or token address. Defaults to "USDC" (native). */
|
|
263
260
|
currency?: string;
|
|
264
261
|
durationSeconds: number;
|
|
262
|
+
/** Signed EIP-2981 royalty cap in bps. Defaults to the NFT's live 2981 rate. */
|
|
263
|
+
royaltyMaxBps?: string;
|
|
265
264
|
}
|
|
266
265
|
interface FulfillOrderParams {
|
|
267
266
|
orderHash: string;
|
|
@@ -305,10 +304,12 @@ interface OrderDetails {
|
|
|
305
304
|
offerer: string;
|
|
306
305
|
offer: OfferItem;
|
|
307
306
|
consideration: ConsiderationItem;
|
|
307
|
+
royalty_max_bps: string;
|
|
308
308
|
start_time: bigint;
|
|
309
309
|
end_time: bigint;
|
|
310
310
|
order_status: string;
|
|
311
|
-
|
|
311
|
+
/** ERC-1155 only — units still available. */
|
|
312
|
+
remaining_amount?: string;
|
|
312
313
|
}
|
|
313
314
|
interface CreateListing1155Params {
|
|
314
315
|
/** ERC-1155 contract address */
|
|
@@ -323,6 +324,8 @@ interface CreateListing1155Params {
|
|
|
323
324
|
currency?: string;
|
|
324
325
|
/** How long the listing is valid, in seconds */
|
|
325
326
|
durationSeconds: number;
|
|
327
|
+
/** Signed EIP-2981 royalty cap in bps. Defaults to the NFT's live 2981 rate. */
|
|
328
|
+
royaltyMaxBps?: string;
|
|
326
329
|
}
|
|
327
330
|
interface FulfillOrder1155Params {
|
|
328
331
|
/** On-chain order hash */
|
|
@@ -351,6 +354,8 @@ interface MakeOffer1155Params {
|
|
|
351
354
|
currency?: string;
|
|
352
355
|
/** How long the offer is valid, in seconds */
|
|
353
356
|
durationSeconds: number;
|
|
357
|
+
/** Signed EIP-2981 royalty cap in bps. Defaults to the NFT's live 2981 rate. */
|
|
358
|
+
royaltyMaxBps?: string;
|
|
354
359
|
}
|
|
355
360
|
|
|
356
361
|
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";
|
|
@@ -371,10 +376,11 @@ declare class MarketplaceModule {
|
|
|
371
376
|
checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
|
|
372
377
|
mint(account: AccountInterface, params: MintParams): Promise<TxResult>;
|
|
373
378
|
createCollection(account: AccountInterface, params: CreateCollectionParams): Promise<TxResult>;
|
|
379
|
+
/** Bulk-cancel: bump the caller's counter, invalidating all their open orders. */
|
|
380
|
+
incrementCounter(account: AccountInterface): Promise<TxResult>;
|
|
374
381
|
getOrderDetails(orderHash: string): Promise<OrderDetails>;
|
|
375
|
-
|
|
382
|
+
getCounter(address: string): Promise<bigint>;
|
|
376
383
|
buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
377
|
-
buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
378
384
|
buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
379
385
|
}
|
|
380
386
|
|
|
@@ -405,10 +411,11 @@ declare class Medialane1155Module {
|
|
|
405
411
|
* Signs one fulfillment per item (with quantity), sums ERC-20 approvals by token.
|
|
406
412
|
*/
|
|
407
413
|
checkoutCart(account: AccountInterface, items: CartItem[]): Promise<TxResult>;
|
|
414
|
+
/** Bulk-cancel on the 1155 venue: bump the caller's counter. */
|
|
415
|
+
incrementCounter(account: AccountInterface): Promise<TxResult>;
|
|
408
416
|
getOrderDetails(orderHash: string): Promise<OrderDetails>;
|
|
409
|
-
|
|
417
|
+
getCounter(address: string): Promise<bigint>;
|
|
410
418
|
buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
411
|
-
buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
412
419
|
buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
|
|
413
420
|
}
|
|
414
421
|
|
|
@@ -1551,28 +1558,11 @@ declare class MedialaneClient {
|
|
|
1551
1558
|
|
|
1552
1559
|
declare const IPMarketplaceABI: readonly [{
|
|
1553
1560
|
readonly type: "impl";
|
|
1554
|
-
readonly name: "
|
|
1555
|
-
readonly interface_name: "
|
|
1556
|
-
}, {
|
|
1557
|
-
readonly type: "interface";
|
|
1558
|
-
readonly name: "openzeppelin_upgrades::interface::IUpgradeable";
|
|
1559
|
-
readonly items: readonly [{
|
|
1560
|
-
readonly type: "function";
|
|
1561
|
-
readonly name: "upgrade";
|
|
1562
|
-
readonly inputs: readonly [{
|
|
1563
|
-
readonly name: "new_class_hash";
|
|
1564
|
-
readonly type: "core::starknet::class_hash::ClassHash";
|
|
1565
|
-
}];
|
|
1566
|
-
readonly outputs: readonly [];
|
|
1567
|
-
readonly state_mutability: "external";
|
|
1568
|
-
}];
|
|
1569
|
-
}, {
|
|
1570
|
-
readonly type: "impl";
|
|
1571
|
-
readonly name: "MedialaneImpl";
|
|
1572
|
-
readonly interface_name: "mediolano_core::core::interface::IMedialane";
|
|
1561
|
+
readonly name: "Medialane721Impl";
|
|
1562
|
+
readonly interface_name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1573
1563
|
}, {
|
|
1574
1564
|
readonly type: "struct";
|
|
1575
|
-
readonly name: "
|
|
1565
|
+
readonly name: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1576
1566
|
readonly members: readonly [{
|
|
1577
1567
|
readonly name: "item_type";
|
|
1578
1568
|
readonly type: "core::felt252";
|
|
@@ -1583,15 +1573,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1583
1573
|
readonly name: "identifier_or_criteria";
|
|
1584
1574
|
readonly type: "core::felt252";
|
|
1585
1575
|
}, {
|
|
1586
|
-
readonly name: "
|
|
1587
|
-
readonly type: "core::felt252";
|
|
1588
|
-
}, {
|
|
1589
|
-
readonly name: "end_amount";
|
|
1576
|
+
readonly name: "amount";
|
|
1590
1577
|
readonly type: "core::felt252";
|
|
1591
1578
|
}];
|
|
1592
1579
|
}, {
|
|
1593
1580
|
readonly type: "struct";
|
|
1594
|
-
readonly name: "
|
|
1581
|
+
readonly name: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1595
1582
|
readonly members: readonly [{
|
|
1596
1583
|
readonly name: "item_type";
|
|
1597
1584
|
readonly type: "core::felt252";
|
|
@@ -1602,10 +1589,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1602
1589
|
readonly name: "identifier_or_criteria";
|
|
1603
1590
|
readonly type: "core::felt252";
|
|
1604
1591
|
}, {
|
|
1605
|
-
readonly name: "
|
|
1606
|
-
readonly type: "core::felt252";
|
|
1607
|
-
}, {
|
|
1608
|
-
readonly name: "end_amount";
|
|
1592
|
+
readonly name: "amount";
|
|
1609
1593
|
readonly type: "core::felt252";
|
|
1610
1594
|
}, {
|
|
1611
1595
|
readonly name: "recipient";
|
|
@@ -1613,16 +1597,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1613
1597
|
}];
|
|
1614
1598
|
}, {
|
|
1615
1599
|
readonly type: "struct";
|
|
1616
|
-
readonly name: "
|
|
1600
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1617
1601
|
readonly members: readonly [{
|
|
1618
1602
|
readonly name: "offerer";
|
|
1619
1603
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly name: "marketplace";
|
|
1606
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1620
1607
|
}, {
|
|
1621
1608
|
readonly name: "offer";
|
|
1622
|
-
readonly type: "
|
|
1609
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1623
1610
|
}, {
|
|
1624
1611
|
readonly name: "consideration";
|
|
1625
|
-
readonly type: "
|
|
1612
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly name: "royalty_max_bps";
|
|
1615
|
+
readonly type: "core::felt252";
|
|
1626
1616
|
}, {
|
|
1627
1617
|
readonly name: "start_time";
|
|
1628
1618
|
readonly type: "core::felt252";
|
|
@@ -1633,68 +1623,42 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1633
1623
|
readonly name: "salt";
|
|
1634
1624
|
readonly type: "core::felt252";
|
|
1635
1625
|
}, {
|
|
1636
|
-
readonly name: "
|
|
1626
|
+
readonly name: "counter";
|
|
1637
1627
|
readonly type: "core::felt252";
|
|
1638
1628
|
}];
|
|
1639
1629
|
}, {
|
|
1640
1630
|
readonly type: "struct";
|
|
1641
|
-
readonly name: "
|
|
1631
|
+
readonly name: "medialane_marketplace_erc721::core::types::Order";
|
|
1642
1632
|
readonly members: readonly [{
|
|
1643
1633
|
readonly name: "parameters";
|
|
1644
|
-
readonly type: "
|
|
1634
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1645
1635
|
}, {
|
|
1646
1636
|
readonly name: "signature";
|
|
1647
1637
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1648
1638
|
}];
|
|
1649
1639
|
}, {
|
|
1650
1640
|
readonly type: "struct";
|
|
1651
|
-
readonly name: "
|
|
1652
|
-
readonly members: readonly [{
|
|
1653
|
-
readonly name: "order_hash";
|
|
1654
|
-
readonly type: "core::felt252";
|
|
1655
|
-
}, {
|
|
1656
|
-
readonly name: "fulfiller";
|
|
1657
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1658
|
-
}, {
|
|
1659
|
-
readonly name: "nonce";
|
|
1660
|
-
readonly type: "core::felt252";
|
|
1661
|
-
}];
|
|
1662
|
-
}, {
|
|
1663
|
-
readonly type: "struct";
|
|
1664
|
-
readonly name: "mediolano_core::core::types::FulfillmentRequest";
|
|
1665
|
-
readonly members: readonly [{
|
|
1666
|
-
readonly name: "fulfillment";
|
|
1667
|
-
readonly type: "mediolano_core::core::types::OrderFulfillment";
|
|
1668
|
-
}, {
|
|
1669
|
-
readonly name: "signature";
|
|
1670
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
1671
|
-
}];
|
|
1672
|
-
}, {
|
|
1673
|
-
readonly type: "struct";
|
|
1674
|
-
readonly name: "mediolano_core::core::types::OrderCancellation";
|
|
1641
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1675
1642
|
readonly members: readonly [{
|
|
1676
1643
|
readonly name: "order_hash";
|
|
1677
1644
|
readonly type: "core::felt252";
|
|
1678
1645
|
}, {
|
|
1679
1646
|
readonly name: "offerer";
|
|
1680
1647
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1681
|
-
}, {
|
|
1682
|
-
readonly name: "nonce";
|
|
1683
|
-
readonly type: "core::felt252";
|
|
1684
1648
|
}];
|
|
1685
1649
|
}, {
|
|
1686
1650
|
readonly type: "struct";
|
|
1687
|
-
readonly name: "
|
|
1651
|
+
readonly name: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1688
1652
|
readonly members: readonly [{
|
|
1689
1653
|
readonly name: "cancelation";
|
|
1690
|
-
readonly type: "
|
|
1654
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1691
1655
|
}, {
|
|
1692
1656
|
readonly name: "signature";
|
|
1693
1657
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1694
1658
|
}];
|
|
1695
1659
|
}, {
|
|
1696
1660
|
readonly type: "enum";
|
|
1697
|
-
readonly name: "
|
|
1661
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1698
1662
|
readonly variants: readonly [{
|
|
1699
1663
|
readonly name: "None";
|
|
1700
1664
|
readonly type: "()";
|
|
@@ -1708,28 +1672,21 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1708
1672
|
readonly name: "Cancelled";
|
|
1709
1673
|
readonly type: "()";
|
|
1710
1674
|
}];
|
|
1711
|
-
}, {
|
|
1712
|
-
readonly type: "enum";
|
|
1713
|
-
readonly name: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
|
|
1714
|
-
readonly variants: readonly [{
|
|
1715
|
-
readonly name: "Some";
|
|
1716
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1717
|
-
}, {
|
|
1718
|
-
readonly name: "None";
|
|
1719
|
-
readonly type: "()";
|
|
1720
|
-
}];
|
|
1721
1675
|
}, {
|
|
1722
1676
|
readonly type: "struct";
|
|
1723
|
-
readonly name: "
|
|
1677
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1724
1678
|
readonly members: readonly [{
|
|
1725
1679
|
readonly name: "offerer";
|
|
1726
1680
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1727
1681
|
}, {
|
|
1728
1682
|
readonly name: "offer";
|
|
1729
|
-
readonly type: "
|
|
1683
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1730
1684
|
}, {
|
|
1731
1685
|
readonly name: "consideration";
|
|
1732
|
-
readonly type: "
|
|
1686
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly name: "royalty_max_bps";
|
|
1689
|
+
readonly type: "core::felt252";
|
|
1733
1690
|
}, {
|
|
1734
1691
|
readonly name: "start_time";
|
|
1735
1692
|
readonly type: "core::integer::u64";
|
|
@@ -1738,20 +1695,17 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1738
1695
|
readonly type: "core::integer::u64";
|
|
1739
1696
|
}, {
|
|
1740
1697
|
readonly name: "order_status";
|
|
1741
|
-
readonly type: "
|
|
1742
|
-
}, {
|
|
1743
|
-
readonly name: "fulfiller";
|
|
1744
|
-
readonly type: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
|
|
1698
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1745
1699
|
}];
|
|
1746
1700
|
}, {
|
|
1747
1701
|
readonly type: "interface";
|
|
1748
|
-
readonly name: "
|
|
1702
|
+
readonly name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1749
1703
|
readonly items: readonly [{
|
|
1750
1704
|
readonly type: "function";
|
|
1751
1705
|
readonly name: "register_order";
|
|
1752
1706
|
readonly inputs: readonly [{
|
|
1753
1707
|
readonly name: "order";
|
|
1754
|
-
readonly type: "
|
|
1708
|
+
readonly type: "medialane_marketplace_erc721::core::types::Order";
|
|
1755
1709
|
}];
|
|
1756
1710
|
readonly outputs: readonly [];
|
|
1757
1711
|
readonly state_mutability: "external";
|
|
@@ -1759,8 +1713,8 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1759
1713
|
readonly type: "function";
|
|
1760
1714
|
readonly name: "fulfill_order";
|
|
1761
1715
|
readonly inputs: readonly [{
|
|
1762
|
-
readonly name: "
|
|
1763
|
-
readonly type: "
|
|
1716
|
+
readonly name: "order_hash";
|
|
1717
|
+
readonly type: "core::felt252";
|
|
1764
1718
|
}];
|
|
1765
1719
|
readonly outputs: readonly [];
|
|
1766
1720
|
readonly state_mutability: "external";
|
|
@@ -1769,10 +1723,16 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1769
1723
|
readonly name: "cancel_order";
|
|
1770
1724
|
readonly inputs: readonly [{
|
|
1771
1725
|
readonly name: "cancel_request";
|
|
1772
|
-
readonly type: "
|
|
1726
|
+
readonly type: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1773
1727
|
}];
|
|
1774
1728
|
readonly outputs: readonly [];
|
|
1775
1729
|
readonly state_mutability: "external";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly type: "function";
|
|
1732
|
+
readonly name: "increment_counter";
|
|
1733
|
+
readonly inputs: readonly [];
|
|
1734
|
+
readonly outputs: readonly [];
|
|
1735
|
+
readonly state_mutability: "external";
|
|
1776
1736
|
}, {
|
|
1777
1737
|
readonly type: "function";
|
|
1778
1738
|
readonly name: "get_order_details";
|
|
@@ -1781,7 +1741,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1781
1741
|
readonly type: "core::felt252";
|
|
1782
1742
|
}];
|
|
1783
1743
|
readonly outputs: readonly [{
|
|
1784
|
-
readonly type: "
|
|
1744
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1785
1745
|
}];
|
|
1786
1746
|
readonly state_mutability: "view";
|
|
1787
1747
|
}, {
|
|
@@ -1789,7 +1749,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1789
1749
|
readonly name: "get_order_hash";
|
|
1790
1750
|
readonly inputs: readonly [{
|
|
1791
1751
|
readonly name: "parameters";
|
|
1792
|
-
readonly type: "
|
|
1752
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1793
1753
|
}, {
|
|
1794
1754
|
readonly name: "signer";
|
|
1795
1755
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -1798,52 +1758,37 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1798
1758
|
readonly type: "core::felt252";
|
|
1799
1759
|
}];
|
|
1800
1760
|
readonly state_mutability: "view";
|
|
1801
|
-
}
|
|
1802
|
-
}, {
|
|
1803
|
-
readonly type: "impl";
|
|
1804
|
-
readonly name: "NoncesImpl";
|
|
1805
|
-
readonly interface_name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
1806
|
-
}, {
|
|
1807
|
-
readonly type: "interface";
|
|
1808
|
-
readonly name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
1809
|
-
readonly items: readonly [{
|
|
1761
|
+
}, {
|
|
1810
1762
|
readonly type: "function";
|
|
1811
|
-
readonly name: "
|
|
1763
|
+
readonly name: "get_cancellation_hash";
|
|
1812
1764
|
readonly inputs: readonly [{
|
|
1813
|
-
readonly name: "
|
|
1765
|
+
readonly name: "cancellation";
|
|
1766
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1767
|
+
}, {
|
|
1768
|
+
readonly name: "signer";
|
|
1814
1769
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1815
1770
|
}];
|
|
1816
1771
|
readonly outputs: readonly [{
|
|
1817
1772
|
readonly type: "core::felt252";
|
|
1818
1773
|
}];
|
|
1819
1774
|
readonly state_mutability: "view";
|
|
1820
|
-
}];
|
|
1821
|
-
}, {
|
|
1822
|
-
readonly type: "impl";
|
|
1823
|
-
readonly name: "SRC5Impl";
|
|
1824
|
-
readonly interface_name: "openzeppelin_introspection::interface::ISRC5";
|
|
1825
|
-
}, {
|
|
1826
|
-
readonly type: "enum";
|
|
1827
|
-
readonly name: "core::bool";
|
|
1828
|
-
readonly variants: readonly [{
|
|
1829
|
-
readonly name: "False";
|
|
1830
|
-
readonly type: "()";
|
|
1831
1775
|
}, {
|
|
1832
|
-
readonly name: "True";
|
|
1833
|
-
readonly type: "()";
|
|
1834
|
-
}];
|
|
1835
|
-
}, {
|
|
1836
|
-
readonly type: "interface";
|
|
1837
|
-
readonly name: "openzeppelin_introspection::interface::ISRC5";
|
|
1838
|
-
readonly items: readonly [{
|
|
1839
1776
|
readonly type: "function";
|
|
1840
|
-
readonly name: "
|
|
1777
|
+
readonly name: "get_counter";
|
|
1841
1778
|
readonly inputs: readonly [{
|
|
1842
|
-
readonly name: "
|
|
1779
|
+
readonly name: "offerer";
|
|
1780
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1781
|
+
}];
|
|
1782
|
+
readonly outputs: readonly [{
|
|
1843
1783
|
readonly type: "core::felt252";
|
|
1844
1784
|
}];
|
|
1785
|
+
readonly state_mutability: "view";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly type: "function";
|
|
1788
|
+
readonly name: "get_native_token_address";
|
|
1789
|
+
readonly inputs: readonly [];
|
|
1845
1790
|
readonly outputs: readonly [{
|
|
1846
|
-
readonly type: "core::
|
|
1791
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1847
1792
|
}];
|
|
1848
1793
|
readonly state_mutability: "view";
|
|
1849
1794
|
}];
|
|
@@ -1851,15 +1796,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1851
1796
|
readonly type: "constructor";
|
|
1852
1797
|
readonly name: "constructor";
|
|
1853
1798
|
readonly inputs: readonly [{
|
|
1854
|
-
readonly name: "manager";
|
|
1855
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1856
|
-
}, {
|
|
1857
1799
|
readonly name: "native_token_address";
|
|
1858
1800
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1859
1801
|
}];
|
|
1860
1802
|
}, {
|
|
1861
1803
|
readonly type: "event";
|
|
1862
|
-
readonly name: "
|
|
1804
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1863
1805
|
readonly kind: "struct";
|
|
1864
1806
|
readonly members: readonly [{
|
|
1865
1807
|
readonly name: "order_hash";
|
|
@@ -1870,9 +1812,19 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1870
1812
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1871
1813
|
readonly kind: "key";
|
|
1872
1814
|
}];
|
|
1815
|
+
}, {
|
|
1816
|
+
readonly type: "struct";
|
|
1817
|
+
readonly name: "core::integer::u256";
|
|
1818
|
+
readonly members: readonly [{
|
|
1819
|
+
readonly name: "low";
|
|
1820
|
+
readonly type: "core::integer::u128";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly name: "high";
|
|
1823
|
+
readonly type: "core::integer::u128";
|
|
1824
|
+
}];
|
|
1873
1825
|
}, {
|
|
1874
1826
|
readonly type: "event";
|
|
1875
|
-
readonly name: "
|
|
1827
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1876
1828
|
readonly kind: "struct";
|
|
1877
1829
|
readonly members: readonly [{
|
|
1878
1830
|
readonly name: "order_hash";
|
|
@@ -1886,10 +1838,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1886
1838
|
readonly name: "fulfiller";
|
|
1887
1839
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1888
1840
|
readonly kind: "key";
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly name: "sale_amount";
|
|
1843
|
+
readonly type: "core::integer::u256";
|
|
1844
|
+
readonly kind: "data";
|
|
1845
|
+
}, {
|
|
1846
|
+
readonly name: "royalty_receiver";
|
|
1847
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1848
|
+
readonly kind: "data";
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly name: "royalty_amount";
|
|
1851
|
+
readonly type: "core::integer::u256";
|
|
1852
|
+
readonly kind: "data";
|
|
1889
1853
|
}];
|
|
1890
1854
|
}, {
|
|
1891
1855
|
readonly type: "event";
|
|
1892
|
-
readonly name: "
|
|
1856
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCancelled";
|
|
1893
1857
|
readonly kind: "struct";
|
|
1894
1858
|
readonly members: readonly [{
|
|
1895
1859
|
readonly name: "order_hash";
|
|
@@ -1902,19 +1866,36 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1902
1866
|
}];
|
|
1903
1867
|
}, {
|
|
1904
1868
|
readonly type: "event";
|
|
1905
|
-
readonly name: "
|
|
1869
|
+
readonly name: "medialane_marketplace_erc721::core::events::CounterIncremented";
|
|
1870
|
+
readonly kind: "struct";
|
|
1871
|
+
readonly members: readonly [{
|
|
1872
|
+
readonly name: "offerer";
|
|
1873
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1874
|
+
readonly kind: "key";
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly name: "new_counter";
|
|
1877
|
+
readonly type: "core::felt252";
|
|
1878
|
+
readonly kind: "data";
|
|
1879
|
+
}];
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly type: "event";
|
|
1882
|
+
readonly name: "medialane_marketplace_erc721::core::medialane::Medialane721::Event";
|
|
1906
1883
|
readonly kind: "enum";
|
|
1907
1884
|
readonly variants: readonly [{
|
|
1908
1885
|
readonly name: "OrderCreated";
|
|
1909
|
-
readonly type: "
|
|
1886
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1910
1887
|
readonly kind: "nested";
|
|
1911
1888
|
}, {
|
|
1912
1889
|
readonly name: "OrderFulfilled";
|
|
1913
|
-
readonly type: "
|
|
1890
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1914
1891
|
readonly kind: "nested";
|
|
1915
1892
|
}, {
|
|
1916
1893
|
readonly name: "OrderCancelled";
|
|
1917
|
-
readonly type: "
|
|
1894
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderCancelled";
|
|
1895
|
+
readonly kind: "nested";
|
|
1896
|
+
}, {
|
|
1897
|
+
readonly name: "CounterIncremented";
|
|
1898
|
+
readonly type: "medialane_marketplace_erc721::core::events::CounterIncremented";
|
|
1918
1899
|
readonly kind: "nested";
|
|
1919
1900
|
}];
|
|
1920
1901
|
}];
|
|
@@ -2520,11 +2501,11 @@ declare const CollectionRegistryABI: readonly [{
|
|
|
2520
2501
|
|
|
2521
2502
|
declare const Medialane1155ABI: readonly [{
|
|
2522
2503
|
readonly type: "impl";
|
|
2523
|
-
readonly name: "
|
|
2524
|
-
readonly interface_name: "
|
|
2504
|
+
readonly name: "Medialane1155Impl";
|
|
2505
|
+
readonly interface_name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2525
2506
|
}, {
|
|
2526
2507
|
readonly type: "struct";
|
|
2527
|
-
readonly name: "
|
|
2508
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2528
2509
|
readonly members: readonly [{
|
|
2529
2510
|
readonly name: "item_type";
|
|
2530
2511
|
readonly type: "core::felt252";
|
|
@@ -2535,15 +2516,12 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2535
2516
|
readonly name: "identifier_or_criteria";
|
|
2536
2517
|
readonly type: "core::felt252";
|
|
2537
2518
|
}, {
|
|
2538
|
-
readonly name: "
|
|
2539
|
-
readonly type: "core::felt252";
|
|
2540
|
-
}, {
|
|
2541
|
-
readonly name: "end_amount";
|
|
2519
|
+
readonly name: "amount";
|
|
2542
2520
|
readonly type: "core::felt252";
|
|
2543
2521
|
}];
|
|
2544
2522
|
}, {
|
|
2545
2523
|
readonly type: "struct";
|
|
2546
|
-
readonly name: "
|
|
2524
|
+
readonly name: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2547
2525
|
readonly members: readonly [{
|
|
2548
2526
|
readonly name: "item_type";
|
|
2549
2527
|
readonly type: "core::felt252";
|
|
@@ -2554,10 +2532,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2554
2532
|
readonly name: "identifier_or_criteria";
|
|
2555
2533
|
readonly type: "core::felt252";
|
|
2556
2534
|
}, {
|
|
2557
|
-
readonly name: "
|
|
2558
|
-
readonly type: "core::felt252";
|
|
2559
|
-
}, {
|
|
2560
|
-
readonly name: "end_amount";
|
|
2535
|
+
readonly name: "amount";
|
|
2561
2536
|
readonly type: "core::felt252";
|
|
2562
2537
|
}, {
|
|
2563
2538
|
readonly name: "recipient";
|
|
@@ -2565,16 +2540,22 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2565
2540
|
}];
|
|
2566
2541
|
}, {
|
|
2567
2542
|
readonly type: "struct";
|
|
2568
|
-
readonly name: "
|
|
2543
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2569
2544
|
readonly members: readonly [{
|
|
2570
2545
|
readonly name: "offerer";
|
|
2571
2546
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2547
|
+
}, {
|
|
2548
|
+
readonly name: "marketplace";
|
|
2549
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2572
2550
|
}, {
|
|
2573
2551
|
readonly name: "offer";
|
|
2574
|
-
readonly type: "
|
|
2552
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2575
2553
|
}, {
|
|
2576
2554
|
readonly name: "consideration";
|
|
2577
|
-
readonly type: "
|
|
2555
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2556
|
+
}, {
|
|
2557
|
+
readonly name: "royalty_max_bps";
|
|
2558
|
+
readonly type: "core::felt252";
|
|
2578
2559
|
}, {
|
|
2579
2560
|
readonly name: "start_time";
|
|
2580
2561
|
readonly type: "core::felt252";
|
|
@@ -2585,71 +2566,42 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2585
2566
|
readonly name: "salt";
|
|
2586
2567
|
readonly type: "core::felt252";
|
|
2587
2568
|
}, {
|
|
2588
|
-
readonly name: "
|
|
2569
|
+
readonly name: "counter";
|
|
2589
2570
|
readonly type: "core::felt252";
|
|
2590
2571
|
}];
|
|
2591
2572
|
}, {
|
|
2592
2573
|
readonly type: "struct";
|
|
2593
|
-
readonly name: "
|
|
2574
|
+
readonly name: "medialane_marketplace_erc1155::core::types::Order";
|
|
2594
2575
|
readonly members: readonly [{
|
|
2595
2576
|
readonly name: "parameters";
|
|
2596
|
-
readonly type: "
|
|
2577
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2597
2578
|
}, {
|
|
2598
2579
|
readonly name: "signature";
|
|
2599
2580
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2600
2581
|
}];
|
|
2601
2582
|
}, {
|
|
2602
2583
|
readonly type: "struct";
|
|
2603
|
-
readonly name: "
|
|
2604
|
-
readonly members: readonly [{
|
|
2605
|
-
readonly name: "order_hash";
|
|
2606
|
-
readonly type: "core::felt252";
|
|
2607
|
-
}, {
|
|
2608
|
-
readonly name: "fulfiller";
|
|
2609
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2610
|
-
}, {
|
|
2611
|
-
readonly name: "quantity";
|
|
2612
|
-
readonly type: "core::felt252";
|
|
2613
|
-
}, {
|
|
2614
|
-
readonly name: "nonce";
|
|
2615
|
-
readonly type: "core::felt252";
|
|
2616
|
-
}];
|
|
2617
|
-
}, {
|
|
2618
|
-
readonly type: "struct";
|
|
2619
|
-
readonly name: "medialane_erc1155::core::types::FulfillmentRequest";
|
|
2620
|
-
readonly members: readonly [{
|
|
2621
|
-
readonly name: "fulfillment";
|
|
2622
|
-
readonly type: "medialane_erc1155::core::types::OrderFulfillment";
|
|
2623
|
-
}, {
|
|
2624
|
-
readonly name: "signature";
|
|
2625
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
2626
|
-
}];
|
|
2627
|
-
}, {
|
|
2628
|
-
readonly type: "struct";
|
|
2629
|
-
readonly name: "medialane_erc1155::core::types::OrderCancellation";
|
|
2584
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2630
2585
|
readonly members: readonly [{
|
|
2631
2586
|
readonly name: "order_hash";
|
|
2632
2587
|
readonly type: "core::felt252";
|
|
2633
2588
|
}, {
|
|
2634
2589
|
readonly name: "offerer";
|
|
2635
2590
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2636
|
-
}, {
|
|
2637
|
-
readonly name: "nonce";
|
|
2638
|
-
readonly type: "core::felt252";
|
|
2639
2591
|
}];
|
|
2640
2592
|
}, {
|
|
2641
2593
|
readonly type: "struct";
|
|
2642
|
-
readonly name: "
|
|
2594
|
+
readonly name: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2643
2595
|
readonly members: readonly [{
|
|
2644
2596
|
readonly name: "cancelation";
|
|
2645
|
-
readonly type: "
|
|
2597
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2646
2598
|
}, {
|
|
2647
2599
|
readonly name: "signature";
|
|
2648
2600
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2649
2601
|
}];
|
|
2650
2602
|
}, {
|
|
2651
2603
|
readonly type: "enum";
|
|
2652
|
-
readonly name: "
|
|
2604
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2653
2605
|
readonly variants: readonly [{
|
|
2654
2606
|
readonly name: "None";
|
|
2655
2607
|
readonly type: "()";
|
|
@@ -2665,16 +2617,19 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2665
2617
|
}];
|
|
2666
2618
|
}, {
|
|
2667
2619
|
readonly type: "struct";
|
|
2668
|
-
readonly name: "
|
|
2620
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2669
2621
|
readonly members: readonly [{
|
|
2670
2622
|
readonly name: "offerer";
|
|
2671
2623
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2672
2624
|
}, {
|
|
2673
2625
|
readonly name: "offer";
|
|
2674
|
-
readonly type: "
|
|
2626
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2675
2627
|
}, {
|
|
2676
2628
|
readonly name: "consideration";
|
|
2677
|
-
readonly type: "
|
|
2629
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2630
|
+
}, {
|
|
2631
|
+
readonly name: "royalty_max_bps";
|
|
2632
|
+
readonly type: "core::felt252";
|
|
2678
2633
|
}, {
|
|
2679
2634
|
readonly name: "start_time";
|
|
2680
2635
|
readonly type: "core::integer::u64";
|
|
@@ -2683,23 +2638,20 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2683
2638
|
readonly type: "core::integer::u64";
|
|
2684
2639
|
}, {
|
|
2685
2640
|
readonly name: "order_status";
|
|
2686
|
-
readonly type: "
|
|
2687
|
-
}, {
|
|
2688
|
-
readonly name: "total_amount";
|
|
2689
|
-
readonly type: "core::felt252";
|
|
2641
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2690
2642
|
}, {
|
|
2691
2643
|
readonly name: "remaining_amount";
|
|
2692
2644
|
readonly type: "core::felt252";
|
|
2693
2645
|
}];
|
|
2694
2646
|
}, {
|
|
2695
2647
|
readonly type: "interface";
|
|
2696
|
-
readonly name: "
|
|
2648
|
+
readonly name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2697
2649
|
readonly items: readonly [{
|
|
2698
2650
|
readonly type: "function";
|
|
2699
2651
|
readonly name: "register_order";
|
|
2700
2652
|
readonly inputs: readonly [{
|
|
2701
2653
|
readonly name: "order";
|
|
2702
|
-
readonly type: "
|
|
2654
|
+
readonly type: "medialane_marketplace_erc1155::core::types::Order";
|
|
2703
2655
|
}];
|
|
2704
2656
|
readonly outputs: readonly [];
|
|
2705
2657
|
readonly state_mutability: "external";
|
|
@@ -2707,8 +2659,11 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2707
2659
|
readonly type: "function";
|
|
2708
2660
|
readonly name: "fulfill_order";
|
|
2709
2661
|
readonly inputs: readonly [{
|
|
2710
|
-
readonly name: "
|
|
2711
|
-
readonly type: "
|
|
2662
|
+
readonly name: "order_hash";
|
|
2663
|
+
readonly type: "core::felt252";
|
|
2664
|
+
}, {
|
|
2665
|
+
readonly name: "quantity";
|
|
2666
|
+
readonly type: "core::felt252";
|
|
2712
2667
|
}];
|
|
2713
2668
|
readonly outputs: readonly [];
|
|
2714
2669
|
readonly state_mutability: "external";
|
|
@@ -2717,10 +2672,16 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2717
2672
|
readonly name: "cancel_order";
|
|
2718
2673
|
readonly inputs: readonly [{
|
|
2719
2674
|
readonly name: "cancel_request";
|
|
2720
|
-
readonly type: "
|
|
2675
|
+
readonly type: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2721
2676
|
}];
|
|
2722
2677
|
readonly outputs: readonly [];
|
|
2723
2678
|
readonly state_mutability: "external";
|
|
2679
|
+
}, {
|
|
2680
|
+
readonly type: "function";
|
|
2681
|
+
readonly name: "increment_counter";
|
|
2682
|
+
readonly inputs: readonly [];
|
|
2683
|
+
readonly outputs: readonly [];
|
|
2684
|
+
readonly state_mutability: "external";
|
|
2724
2685
|
}, {
|
|
2725
2686
|
readonly type: "function";
|
|
2726
2687
|
readonly name: "get_order_details";
|
|
@@ -2729,7 +2690,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2729
2690
|
readonly type: "core::felt252";
|
|
2730
2691
|
}];
|
|
2731
2692
|
readonly outputs: readonly [{
|
|
2732
|
-
readonly type: "
|
|
2693
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2733
2694
|
}];
|
|
2734
2695
|
readonly state_mutability: "view";
|
|
2735
2696
|
}, {
|
|
@@ -2737,7 +2698,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2737
2698
|
readonly name: "get_order_hash";
|
|
2738
2699
|
readonly inputs: readonly [{
|
|
2739
2700
|
readonly name: "parameters";
|
|
2740
|
-
readonly type: "
|
|
2701
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2741
2702
|
}, {
|
|
2742
2703
|
readonly name: "signer";
|
|
2743
2704
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -2748,31 +2709,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2748
2709
|
readonly state_mutability: "view";
|
|
2749
2710
|
}, {
|
|
2750
2711
|
readonly type: "function";
|
|
2751
|
-
readonly name: "
|
|
2752
|
-
readonly inputs: readonly [
|
|
2753
|
-
|
|
2712
|
+
readonly name: "get_cancellation_hash";
|
|
2713
|
+
readonly inputs: readonly [{
|
|
2714
|
+
readonly name: "cancellation";
|
|
2715
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2716
|
+
}, {
|
|
2717
|
+
readonly name: "signer";
|
|
2754
2718
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2755
2719
|
}];
|
|
2720
|
+
readonly outputs: readonly [{
|
|
2721
|
+
readonly type: "core::felt252";
|
|
2722
|
+
}];
|
|
2756
2723
|
readonly state_mutability: "view";
|
|
2757
|
-
}
|
|
2758
|
-
}, {
|
|
2759
|
-
readonly type: "impl";
|
|
2760
|
-
readonly name: "NoncesImpl";
|
|
2761
|
-
readonly interface_name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
2762
|
-
}, {
|
|
2763
|
-
readonly type: "interface";
|
|
2764
|
-
readonly name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
2765
|
-
readonly items: readonly [{
|
|
2724
|
+
}, {
|
|
2766
2725
|
readonly type: "function";
|
|
2767
|
-
readonly name: "
|
|
2726
|
+
readonly name: "get_counter";
|
|
2768
2727
|
readonly inputs: readonly [{
|
|
2769
|
-
readonly name: "
|
|
2728
|
+
readonly name: "offerer";
|
|
2770
2729
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2771
2730
|
}];
|
|
2772
2731
|
readonly outputs: readonly [{
|
|
2773
2732
|
readonly type: "core::felt252";
|
|
2774
2733
|
}];
|
|
2775
2734
|
readonly state_mutability: "view";
|
|
2735
|
+
}, {
|
|
2736
|
+
readonly type: "function";
|
|
2737
|
+
readonly name: "get_native_token_address";
|
|
2738
|
+
readonly inputs: readonly [];
|
|
2739
|
+
readonly outputs: readonly [{
|
|
2740
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2741
|
+
}];
|
|
2742
|
+
readonly state_mutability: "view";
|
|
2776
2743
|
}];
|
|
2777
2744
|
}, {
|
|
2778
2745
|
readonly type: "constructor";
|
|
@@ -2783,7 +2750,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2783
2750
|
}];
|
|
2784
2751
|
}, {
|
|
2785
2752
|
readonly type: "event";
|
|
2786
|
-
readonly name: "
|
|
2753
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2787
2754
|
readonly kind: "struct";
|
|
2788
2755
|
readonly members: readonly [{
|
|
2789
2756
|
readonly name: "order_hash";
|
|
@@ -2806,7 +2773,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2806
2773
|
}];
|
|
2807
2774
|
}, {
|
|
2808
2775
|
readonly type: "event";
|
|
2809
|
-
readonly name: "
|
|
2776
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2810
2777
|
readonly kind: "struct";
|
|
2811
2778
|
readonly members: readonly [{
|
|
2812
2779
|
readonly name: "order_hash";
|
|
@@ -2843,7 +2810,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2843
2810
|
}];
|
|
2844
2811
|
}, {
|
|
2845
2812
|
readonly type: "event";
|
|
2846
|
-
readonly name: "
|
|
2813
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2847
2814
|
readonly kind: "struct";
|
|
2848
2815
|
readonly members: readonly [{
|
|
2849
2816
|
readonly name: "order_hash";
|
|
@@ -2856,29 +2823,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2856
2823
|
}];
|
|
2857
2824
|
}, {
|
|
2858
2825
|
readonly type: "event";
|
|
2859
|
-
readonly name: "
|
|
2860
|
-
readonly kind: "
|
|
2861
|
-
readonly
|
|
2826
|
+
readonly name: "medialane_marketplace_erc1155::core::events::CounterIncremented";
|
|
2827
|
+
readonly kind: "struct";
|
|
2828
|
+
readonly members: readonly [{
|
|
2829
|
+
readonly name: "offerer";
|
|
2830
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2831
|
+
readonly kind: "key";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly name: "new_counter";
|
|
2834
|
+
readonly type: "core::felt252";
|
|
2835
|
+
readonly kind: "data";
|
|
2836
|
+
}];
|
|
2862
2837
|
}, {
|
|
2863
2838
|
readonly type: "event";
|
|
2864
|
-
readonly name: "
|
|
2839
|
+
readonly name: "medialane_marketplace_erc1155::core::medialane::Medialane1155::Event";
|
|
2865
2840
|
readonly kind: "enum";
|
|
2866
2841
|
readonly variants: readonly [{
|
|
2867
2842
|
readonly name: "OrderCreated";
|
|
2868
|
-
readonly type: "
|
|
2843
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2869
2844
|
readonly kind: "nested";
|
|
2870
2845
|
}, {
|
|
2871
2846
|
readonly name: "OrderFulfilled";
|
|
2872
|
-
readonly type: "
|
|
2847
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2873
2848
|
readonly kind: "nested";
|
|
2874
2849
|
}, {
|
|
2875
2850
|
readonly name: "OrderCancelled";
|
|
2876
|
-
readonly type: "
|
|
2851
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2877
2852
|
readonly kind: "nested";
|
|
2878
2853
|
}, {
|
|
2879
|
-
readonly name: "
|
|
2880
|
-
readonly type: "
|
|
2881
|
-
readonly kind: "
|
|
2854
|
+
readonly name: "CounterIncremented";
|
|
2855
|
+
readonly type: "medialane_marketplace_erc1155::core::events::CounterIncremented";
|
|
2856
|
+
readonly kind: "nested";
|
|
2882
2857
|
}];
|
|
2883
2858
|
}];
|
|
2884
2859
|
|
|
@@ -5197,9 +5172,9 @@ declare const SERVICES: {
|
|
|
5197
5172
|
readonly standard: "ERC721";
|
|
5198
5173
|
readonly provenance: "MEDIALANE";
|
|
5199
5174
|
readonly onchain: {
|
|
5200
|
-
readonly factoryAddress: "
|
|
5201
|
-
readonly classHash: "
|
|
5202
|
-
readonly startBlock:
|
|
5175
|
+
readonly factoryAddress: "0x069cf5391077e3ebdd9cb6aebf90ed530d29f0d6aa34a43f5afae938c0fb565e";
|
|
5176
|
+
readonly classHash: "0x04c6f952d747ad7ead1b3dad4c1d587837d38f8ec29d6c095a4afa5b5ece5957";
|
|
5177
|
+
readonly startBlock: 10350340;
|
|
5203
5178
|
};
|
|
5204
5179
|
readonly uiVariant: "standard";
|
|
5205
5180
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5221,9 +5196,9 @@ declare const SERVICES: {
|
|
|
5221
5196
|
readonly standard: "ERC1155";
|
|
5222
5197
|
readonly provenance: "MEDIALANE";
|
|
5223
5198
|
readonly onchain: {
|
|
5224
|
-
readonly factoryAddress: "
|
|
5225
|
-
readonly classHash: "
|
|
5226
|
-
readonly startBlock:
|
|
5199
|
+
readonly factoryAddress: "0x040cd7b3e73bb3c892166e34bdc01d1797f97ecbc356c23f1cf38033cacf0077";
|
|
5200
|
+
readonly classHash: "0x02600bb720908f119afe482309d36c39d087587f0df9576454acfb6363e78cd8";
|
|
5201
|
+
readonly startBlock: 10350855;
|
|
5227
5202
|
};
|
|
5228
5203
|
readonly uiVariant: "edition";
|
|
5229
5204
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5357,15 +5332,8 @@ declare function encodeByteArray(str: string): string[];
|
|
|
5357
5332
|
*/
|
|
5358
5333
|
declare function buildOrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5359
5334
|
declare function build1155OrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5360
|
-
/**
|
|
5361
|
-
* Build SNIP-12 typed data for an OrderFulfillment struct.
|
|
5362
|
-
* ERC-1155 adds a `quantity` field so the contract can verify the partial-fill
|
|
5363
|
-
* amount; ERC-721 omits it (always single-fill).
|
|
5364
|
-
*/
|
|
5365
|
-
declare function buildFulfillmentTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5366
|
-
declare function build1155FulfillmentTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5367
5335
|
/** OrderCancellation typed data — identical shape across both standards. */
|
|
5368
5336
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5369
5337
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5370
5338
|
|
|
5371
|
-
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, 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 ApiWalletType, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, type BuildFeeCallParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET, COLLECTION_1155_START_BLOCK_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_721_START_BLOCK_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, 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, type EnforcementDeclaration, type FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams,
|
|
5339
|
+
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, type ApiChain, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, 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 ApiWalletType, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, type BuildFeeCallParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_1155_FACTORY_CLASS_HASH_MAINNET, COLLECTION_1155_START_BLOCK_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_721_START_BLOCK_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, 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, type EnforcementDeclaration, type FeeConfig, FeeConfigSchema, type FeeSurface, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, IPCOLLECTION_CLASS_HASH_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNFT_CLASS_HASH_MAINNET, IPNftABI, 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, 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 ResolvedFeeConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type ServiceEventDeclaration, type ServiceId, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, isServiceId, listServices, normalizeAddress, normalizeHash, parseAmount, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
|