@medialane/sdk 0.24.1 → 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 +612 -530
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +233 -263
- package/dist/index.d.ts +233 -263
- package/dist/index.js +613 -529
- 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
|
|
|
@@ -1076,6 +1083,7 @@ interface ApiCreatorListResult {
|
|
|
1076
1083
|
}
|
|
1077
1084
|
type ApiWalletType = "ARGENT" | "BRAAVOS" | "CARTRIDGE" | "PRIVY" | "CHIPIPAY" | "INJECTED" | "UNKNOWN";
|
|
1078
1085
|
type ApiAppSource = "MEDIALANE_DAPP" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK";
|
|
1086
|
+
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BITCOIN";
|
|
1079
1087
|
interface ApiUserWallet {
|
|
1080
1088
|
walletAddress: string;
|
|
1081
1089
|
}
|
|
@@ -1269,6 +1277,7 @@ declare class ApiClient {
|
|
|
1269
1277
|
upsertMyWallet(clerkToken: string, options?: {
|
|
1270
1278
|
walletType?: ApiWalletType;
|
|
1271
1279
|
appSource?: ApiAppSource;
|
|
1280
|
+
chain?: ApiChain;
|
|
1272
1281
|
}): Promise<ApiUserWallet>;
|
|
1273
1282
|
/**
|
|
1274
1283
|
* Get the authenticated user's stored wallet address from the backend DB.
|
|
@@ -1549,28 +1558,11 @@ declare class MedialaneClient {
|
|
|
1549
1558
|
|
|
1550
1559
|
declare const IPMarketplaceABI: readonly [{
|
|
1551
1560
|
readonly type: "impl";
|
|
1552
|
-
readonly name: "
|
|
1553
|
-
readonly interface_name: "
|
|
1554
|
-
}, {
|
|
1555
|
-
readonly type: "interface";
|
|
1556
|
-
readonly name: "openzeppelin_upgrades::interface::IUpgradeable";
|
|
1557
|
-
readonly items: readonly [{
|
|
1558
|
-
readonly type: "function";
|
|
1559
|
-
readonly name: "upgrade";
|
|
1560
|
-
readonly inputs: readonly [{
|
|
1561
|
-
readonly name: "new_class_hash";
|
|
1562
|
-
readonly type: "core::starknet::class_hash::ClassHash";
|
|
1563
|
-
}];
|
|
1564
|
-
readonly outputs: readonly [];
|
|
1565
|
-
readonly state_mutability: "external";
|
|
1566
|
-
}];
|
|
1567
|
-
}, {
|
|
1568
|
-
readonly type: "impl";
|
|
1569
|
-
readonly name: "MedialaneImpl";
|
|
1570
|
-
readonly interface_name: "mediolano_core::core::interface::IMedialane";
|
|
1561
|
+
readonly name: "Medialane721Impl";
|
|
1562
|
+
readonly interface_name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1571
1563
|
}, {
|
|
1572
1564
|
readonly type: "struct";
|
|
1573
|
-
readonly name: "
|
|
1565
|
+
readonly name: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1574
1566
|
readonly members: readonly [{
|
|
1575
1567
|
readonly name: "item_type";
|
|
1576
1568
|
readonly type: "core::felt252";
|
|
@@ -1581,15 +1573,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1581
1573
|
readonly name: "identifier_or_criteria";
|
|
1582
1574
|
readonly type: "core::felt252";
|
|
1583
1575
|
}, {
|
|
1584
|
-
readonly name: "
|
|
1585
|
-
readonly type: "core::felt252";
|
|
1586
|
-
}, {
|
|
1587
|
-
readonly name: "end_amount";
|
|
1576
|
+
readonly name: "amount";
|
|
1588
1577
|
readonly type: "core::felt252";
|
|
1589
1578
|
}];
|
|
1590
1579
|
}, {
|
|
1591
1580
|
readonly type: "struct";
|
|
1592
|
-
readonly name: "
|
|
1581
|
+
readonly name: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1593
1582
|
readonly members: readonly [{
|
|
1594
1583
|
readonly name: "item_type";
|
|
1595
1584
|
readonly type: "core::felt252";
|
|
@@ -1600,10 +1589,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1600
1589
|
readonly name: "identifier_or_criteria";
|
|
1601
1590
|
readonly type: "core::felt252";
|
|
1602
1591
|
}, {
|
|
1603
|
-
readonly name: "
|
|
1604
|
-
readonly type: "core::felt252";
|
|
1605
|
-
}, {
|
|
1606
|
-
readonly name: "end_amount";
|
|
1592
|
+
readonly name: "amount";
|
|
1607
1593
|
readonly type: "core::felt252";
|
|
1608
1594
|
}, {
|
|
1609
1595
|
readonly name: "recipient";
|
|
@@ -1611,16 +1597,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1611
1597
|
}];
|
|
1612
1598
|
}, {
|
|
1613
1599
|
readonly type: "struct";
|
|
1614
|
-
readonly name: "
|
|
1600
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1615
1601
|
readonly members: readonly [{
|
|
1616
1602
|
readonly name: "offerer";
|
|
1617
1603
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly name: "marketplace";
|
|
1606
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1618
1607
|
}, {
|
|
1619
1608
|
readonly name: "offer";
|
|
1620
|
-
readonly type: "
|
|
1609
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1621
1610
|
}, {
|
|
1622
1611
|
readonly name: "consideration";
|
|
1623
|
-
readonly type: "
|
|
1612
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly name: "royalty_max_bps";
|
|
1615
|
+
readonly type: "core::felt252";
|
|
1624
1616
|
}, {
|
|
1625
1617
|
readonly name: "start_time";
|
|
1626
1618
|
readonly type: "core::felt252";
|
|
@@ -1631,68 +1623,42 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1631
1623
|
readonly name: "salt";
|
|
1632
1624
|
readonly type: "core::felt252";
|
|
1633
1625
|
}, {
|
|
1634
|
-
readonly name: "
|
|
1626
|
+
readonly name: "counter";
|
|
1635
1627
|
readonly type: "core::felt252";
|
|
1636
1628
|
}];
|
|
1637
1629
|
}, {
|
|
1638
1630
|
readonly type: "struct";
|
|
1639
|
-
readonly name: "
|
|
1631
|
+
readonly name: "medialane_marketplace_erc721::core::types::Order";
|
|
1640
1632
|
readonly members: readonly [{
|
|
1641
1633
|
readonly name: "parameters";
|
|
1642
|
-
readonly type: "
|
|
1634
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1643
1635
|
}, {
|
|
1644
1636
|
readonly name: "signature";
|
|
1645
1637
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1646
1638
|
}];
|
|
1647
1639
|
}, {
|
|
1648
1640
|
readonly type: "struct";
|
|
1649
|
-
readonly name: "
|
|
1650
|
-
readonly members: readonly [{
|
|
1651
|
-
readonly name: "order_hash";
|
|
1652
|
-
readonly type: "core::felt252";
|
|
1653
|
-
}, {
|
|
1654
|
-
readonly name: "fulfiller";
|
|
1655
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1656
|
-
}, {
|
|
1657
|
-
readonly name: "nonce";
|
|
1658
|
-
readonly type: "core::felt252";
|
|
1659
|
-
}];
|
|
1660
|
-
}, {
|
|
1661
|
-
readonly type: "struct";
|
|
1662
|
-
readonly name: "mediolano_core::core::types::FulfillmentRequest";
|
|
1663
|
-
readonly members: readonly [{
|
|
1664
|
-
readonly name: "fulfillment";
|
|
1665
|
-
readonly type: "mediolano_core::core::types::OrderFulfillment";
|
|
1666
|
-
}, {
|
|
1667
|
-
readonly name: "signature";
|
|
1668
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
1669
|
-
}];
|
|
1670
|
-
}, {
|
|
1671
|
-
readonly type: "struct";
|
|
1672
|
-
readonly name: "mediolano_core::core::types::OrderCancellation";
|
|
1641
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1673
1642
|
readonly members: readonly [{
|
|
1674
1643
|
readonly name: "order_hash";
|
|
1675
1644
|
readonly type: "core::felt252";
|
|
1676
1645
|
}, {
|
|
1677
1646
|
readonly name: "offerer";
|
|
1678
1647
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1679
|
-
}, {
|
|
1680
|
-
readonly name: "nonce";
|
|
1681
|
-
readonly type: "core::felt252";
|
|
1682
1648
|
}];
|
|
1683
1649
|
}, {
|
|
1684
1650
|
readonly type: "struct";
|
|
1685
|
-
readonly name: "
|
|
1651
|
+
readonly name: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1686
1652
|
readonly members: readonly [{
|
|
1687
1653
|
readonly name: "cancelation";
|
|
1688
|
-
readonly type: "
|
|
1654
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1689
1655
|
}, {
|
|
1690
1656
|
readonly name: "signature";
|
|
1691
1657
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1692
1658
|
}];
|
|
1693
1659
|
}, {
|
|
1694
1660
|
readonly type: "enum";
|
|
1695
|
-
readonly name: "
|
|
1661
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1696
1662
|
readonly variants: readonly [{
|
|
1697
1663
|
readonly name: "None";
|
|
1698
1664
|
readonly type: "()";
|
|
@@ -1706,28 +1672,21 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1706
1672
|
readonly name: "Cancelled";
|
|
1707
1673
|
readonly type: "()";
|
|
1708
1674
|
}];
|
|
1709
|
-
}, {
|
|
1710
|
-
readonly type: "enum";
|
|
1711
|
-
readonly name: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
|
|
1712
|
-
readonly variants: readonly [{
|
|
1713
|
-
readonly name: "Some";
|
|
1714
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1715
|
-
}, {
|
|
1716
|
-
readonly name: "None";
|
|
1717
|
-
readonly type: "()";
|
|
1718
|
-
}];
|
|
1719
1675
|
}, {
|
|
1720
1676
|
readonly type: "struct";
|
|
1721
|
-
readonly name: "
|
|
1677
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1722
1678
|
readonly members: readonly [{
|
|
1723
1679
|
readonly name: "offerer";
|
|
1724
1680
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1725
1681
|
}, {
|
|
1726
1682
|
readonly name: "offer";
|
|
1727
|
-
readonly type: "
|
|
1683
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1728
1684
|
}, {
|
|
1729
1685
|
readonly name: "consideration";
|
|
1730
|
-
readonly type: "
|
|
1686
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly name: "royalty_max_bps";
|
|
1689
|
+
readonly type: "core::felt252";
|
|
1731
1690
|
}, {
|
|
1732
1691
|
readonly name: "start_time";
|
|
1733
1692
|
readonly type: "core::integer::u64";
|
|
@@ -1736,20 +1695,17 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1736
1695
|
readonly type: "core::integer::u64";
|
|
1737
1696
|
}, {
|
|
1738
1697
|
readonly name: "order_status";
|
|
1739
|
-
readonly type: "
|
|
1740
|
-
}, {
|
|
1741
|
-
readonly name: "fulfiller";
|
|
1742
|
-
readonly type: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
|
|
1698
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1743
1699
|
}];
|
|
1744
1700
|
}, {
|
|
1745
1701
|
readonly type: "interface";
|
|
1746
|
-
readonly name: "
|
|
1702
|
+
readonly name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1747
1703
|
readonly items: readonly [{
|
|
1748
1704
|
readonly type: "function";
|
|
1749
1705
|
readonly name: "register_order";
|
|
1750
1706
|
readonly inputs: readonly [{
|
|
1751
1707
|
readonly name: "order";
|
|
1752
|
-
readonly type: "
|
|
1708
|
+
readonly type: "medialane_marketplace_erc721::core::types::Order";
|
|
1753
1709
|
}];
|
|
1754
1710
|
readonly outputs: readonly [];
|
|
1755
1711
|
readonly state_mutability: "external";
|
|
@@ -1757,8 +1713,8 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1757
1713
|
readonly type: "function";
|
|
1758
1714
|
readonly name: "fulfill_order";
|
|
1759
1715
|
readonly inputs: readonly [{
|
|
1760
|
-
readonly name: "
|
|
1761
|
-
readonly type: "
|
|
1716
|
+
readonly name: "order_hash";
|
|
1717
|
+
readonly type: "core::felt252";
|
|
1762
1718
|
}];
|
|
1763
1719
|
readonly outputs: readonly [];
|
|
1764
1720
|
readonly state_mutability: "external";
|
|
@@ -1767,10 +1723,16 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1767
1723
|
readonly name: "cancel_order";
|
|
1768
1724
|
readonly inputs: readonly [{
|
|
1769
1725
|
readonly name: "cancel_request";
|
|
1770
|
-
readonly type: "
|
|
1726
|
+
readonly type: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1771
1727
|
}];
|
|
1772
1728
|
readonly outputs: readonly [];
|
|
1773
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";
|
|
1774
1736
|
}, {
|
|
1775
1737
|
readonly type: "function";
|
|
1776
1738
|
readonly name: "get_order_details";
|
|
@@ -1779,7 +1741,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1779
1741
|
readonly type: "core::felt252";
|
|
1780
1742
|
}];
|
|
1781
1743
|
readonly outputs: readonly [{
|
|
1782
|
-
readonly type: "
|
|
1744
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1783
1745
|
}];
|
|
1784
1746
|
readonly state_mutability: "view";
|
|
1785
1747
|
}, {
|
|
@@ -1787,7 +1749,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1787
1749
|
readonly name: "get_order_hash";
|
|
1788
1750
|
readonly inputs: readonly [{
|
|
1789
1751
|
readonly name: "parameters";
|
|
1790
|
-
readonly type: "
|
|
1752
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1791
1753
|
}, {
|
|
1792
1754
|
readonly name: "signer";
|
|
1793
1755
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -1796,52 +1758,37 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1796
1758
|
readonly type: "core::felt252";
|
|
1797
1759
|
}];
|
|
1798
1760
|
readonly state_mutability: "view";
|
|
1799
|
-
}
|
|
1800
|
-
}, {
|
|
1801
|
-
readonly type: "impl";
|
|
1802
|
-
readonly name: "NoncesImpl";
|
|
1803
|
-
readonly interface_name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
1804
|
-
}, {
|
|
1805
|
-
readonly type: "interface";
|
|
1806
|
-
readonly name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
1807
|
-
readonly items: readonly [{
|
|
1761
|
+
}, {
|
|
1808
1762
|
readonly type: "function";
|
|
1809
|
-
readonly name: "
|
|
1763
|
+
readonly name: "get_cancellation_hash";
|
|
1810
1764
|
readonly inputs: readonly [{
|
|
1811
|
-
readonly name: "
|
|
1765
|
+
readonly name: "cancellation";
|
|
1766
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1767
|
+
}, {
|
|
1768
|
+
readonly name: "signer";
|
|
1812
1769
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1813
1770
|
}];
|
|
1814
1771
|
readonly outputs: readonly [{
|
|
1815
1772
|
readonly type: "core::felt252";
|
|
1816
1773
|
}];
|
|
1817
1774
|
readonly state_mutability: "view";
|
|
1818
|
-
}];
|
|
1819
|
-
}, {
|
|
1820
|
-
readonly type: "impl";
|
|
1821
|
-
readonly name: "SRC5Impl";
|
|
1822
|
-
readonly interface_name: "openzeppelin_introspection::interface::ISRC5";
|
|
1823
|
-
}, {
|
|
1824
|
-
readonly type: "enum";
|
|
1825
|
-
readonly name: "core::bool";
|
|
1826
|
-
readonly variants: readonly [{
|
|
1827
|
-
readonly name: "False";
|
|
1828
|
-
readonly type: "()";
|
|
1829
1775
|
}, {
|
|
1830
|
-
readonly name: "True";
|
|
1831
|
-
readonly type: "()";
|
|
1832
|
-
}];
|
|
1833
|
-
}, {
|
|
1834
|
-
readonly type: "interface";
|
|
1835
|
-
readonly name: "openzeppelin_introspection::interface::ISRC5";
|
|
1836
|
-
readonly items: readonly [{
|
|
1837
1776
|
readonly type: "function";
|
|
1838
|
-
readonly name: "
|
|
1777
|
+
readonly name: "get_counter";
|
|
1839
1778
|
readonly inputs: readonly [{
|
|
1840
|
-
readonly name: "
|
|
1779
|
+
readonly name: "offerer";
|
|
1780
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1781
|
+
}];
|
|
1782
|
+
readonly outputs: readonly [{
|
|
1841
1783
|
readonly type: "core::felt252";
|
|
1842
1784
|
}];
|
|
1785
|
+
readonly state_mutability: "view";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly type: "function";
|
|
1788
|
+
readonly name: "get_native_token_address";
|
|
1789
|
+
readonly inputs: readonly [];
|
|
1843
1790
|
readonly outputs: readonly [{
|
|
1844
|
-
readonly type: "core::
|
|
1791
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1845
1792
|
}];
|
|
1846
1793
|
readonly state_mutability: "view";
|
|
1847
1794
|
}];
|
|
@@ -1849,15 +1796,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1849
1796
|
readonly type: "constructor";
|
|
1850
1797
|
readonly name: "constructor";
|
|
1851
1798
|
readonly inputs: readonly [{
|
|
1852
|
-
readonly name: "manager";
|
|
1853
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1854
|
-
}, {
|
|
1855
1799
|
readonly name: "native_token_address";
|
|
1856
1800
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1857
1801
|
}];
|
|
1858
1802
|
}, {
|
|
1859
1803
|
readonly type: "event";
|
|
1860
|
-
readonly name: "
|
|
1804
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1861
1805
|
readonly kind: "struct";
|
|
1862
1806
|
readonly members: readonly [{
|
|
1863
1807
|
readonly name: "order_hash";
|
|
@@ -1868,9 +1812,19 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1868
1812
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1869
1813
|
readonly kind: "key";
|
|
1870
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
|
+
}];
|
|
1871
1825
|
}, {
|
|
1872
1826
|
readonly type: "event";
|
|
1873
|
-
readonly name: "
|
|
1827
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1874
1828
|
readonly kind: "struct";
|
|
1875
1829
|
readonly members: readonly [{
|
|
1876
1830
|
readonly name: "order_hash";
|
|
@@ -1884,10 +1838,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1884
1838
|
readonly name: "fulfiller";
|
|
1885
1839
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1886
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";
|
|
1887
1853
|
}];
|
|
1888
1854
|
}, {
|
|
1889
1855
|
readonly type: "event";
|
|
1890
|
-
readonly name: "
|
|
1856
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCancelled";
|
|
1891
1857
|
readonly kind: "struct";
|
|
1892
1858
|
readonly members: readonly [{
|
|
1893
1859
|
readonly name: "order_hash";
|
|
@@ -1900,19 +1866,36 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1900
1866
|
}];
|
|
1901
1867
|
}, {
|
|
1902
1868
|
readonly type: "event";
|
|
1903
|
-
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";
|
|
1904
1883
|
readonly kind: "enum";
|
|
1905
1884
|
readonly variants: readonly [{
|
|
1906
1885
|
readonly name: "OrderCreated";
|
|
1907
|
-
readonly type: "
|
|
1886
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1908
1887
|
readonly kind: "nested";
|
|
1909
1888
|
}, {
|
|
1910
1889
|
readonly name: "OrderFulfilled";
|
|
1911
|
-
readonly type: "
|
|
1890
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1912
1891
|
readonly kind: "nested";
|
|
1913
1892
|
}, {
|
|
1914
1893
|
readonly name: "OrderCancelled";
|
|
1915
|
-
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";
|
|
1916
1899
|
readonly kind: "nested";
|
|
1917
1900
|
}];
|
|
1918
1901
|
}];
|
|
@@ -2518,11 +2501,11 @@ declare const CollectionRegistryABI: readonly [{
|
|
|
2518
2501
|
|
|
2519
2502
|
declare const Medialane1155ABI: readonly [{
|
|
2520
2503
|
readonly type: "impl";
|
|
2521
|
-
readonly name: "
|
|
2522
|
-
readonly interface_name: "
|
|
2504
|
+
readonly name: "Medialane1155Impl";
|
|
2505
|
+
readonly interface_name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2523
2506
|
}, {
|
|
2524
2507
|
readonly type: "struct";
|
|
2525
|
-
readonly name: "
|
|
2508
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2526
2509
|
readonly members: readonly [{
|
|
2527
2510
|
readonly name: "item_type";
|
|
2528
2511
|
readonly type: "core::felt252";
|
|
@@ -2533,15 +2516,12 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2533
2516
|
readonly name: "identifier_or_criteria";
|
|
2534
2517
|
readonly type: "core::felt252";
|
|
2535
2518
|
}, {
|
|
2536
|
-
readonly name: "
|
|
2537
|
-
readonly type: "core::felt252";
|
|
2538
|
-
}, {
|
|
2539
|
-
readonly name: "end_amount";
|
|
2519
|
+
readonly name: "amount";
|
|
2540
2520
|
readonly type: "core::felt252";
|
|
2541
2521
|
}];
|
|
2542
2522
|
}, {
|
|
2543
2523
|
readonly type: "struct";
|
|
2544
|
-
readonly name: "
|
|
2524
|
+
readonly name: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2545
2525
|
readonly members: readonly [{
|
|
2546
2526
|
readonly name: "item_type";
|
|
2547
2527
|
readonly type: "core::felt252";
|
|
@@ -2552,10 +2532,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2552
2532
|
readonly name: "identifier_or_criteria";
|
|
2553
2533
|
readonly type: "core::felt252";
|
|
2554
2534
|
}, {
|
|
2555
|
-
readonly name: "
|
|
2556
|
-
readonly type: "core::felt252";
|
|
2557
|
-
}, {
|
|
2558
|
-
readonly name: "end_amount";
|
|
2535
|
+
readonly name: "amount";
|
|
2559
2536
|
readonly type: "core::felt252";
|
|
2560
2537
|
}, {
|
|
2561
2538
|
readonly name: "recipient";
|
|
@@ -2563,16 +2540,22 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2563
2540
|
}];
|
|
2564
2541
|
}, {
|
|
2565
2542
|
readonly type: "struct";
|
|
2566
|
-
readonly name: "
|
|
2543
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2567
2544
|
readonly members: readonly [{
|
|
2568
2545
|
readonly name: "offerer";
|
|
2569
2546
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2547
|
+
}, {
|
|
2548
|
+
readonly name: "marketplace";
|
|
2549
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2570
2550
|
}, {
|
|
2571
2551
|
readonly name: "offer";
|
|
2572
|
-
readonly type: "
|
|
2552
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2573
2553
|
}, {
|
|
2574
2554
|
readonly name: "consideration";
|
|
2575
|
-
readonly type: "
|
|
2555
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2556
|
+
}, {
|
|
2557
|
+
readonly name: "royalty_max_bps";
|
|
2558
|
+
readonly type: "core::felt252";
|
|
2576
2559
|
}, {
|
|
2577
2560
|
readonly name: "start_time";
|
|
2578
2561
|
readonly type: "core::felt252";
|
|
@@ -2583,71 +2566,42 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2583
2566
|
readonly name: "salt";
|
|
2584
2567
|
readonly type: "core::felt252";
|
|
2585
2568
|
}, {
|
|
2586
|
-
readonly name: "
|
|
2569
|
+
readonly name: "counter";
|
|
2587
2570
|
readonly type: "core::felt252";
|
|
2588
2571
|
}];
|
|
2589
2572
|
}, {
|
|
2590
2573
|
readonly type: "struct";
|
|
2591
|
-
readonly name: "
|
|
2574
|
+
readonly name: "medialane_marketplace_erc1155::core::types::Order";
|
|
2592
2575
|
readonly members: readonly [{
|
|
2593
2576
|
readonly name: "parameters";
|
|
2594
|
-
readonly type: "
|
|
2577
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2595
2578
|
}, {
|
|
2596
2579
|
readonly name: "signature";
|
|
2597
2580
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2598
2581
|
}];
|
|
2599
2582
|
}, {
|
|
2600
2583
|
readonly type: "struct";
|
|
2601
|
-
readonly name: "
|
|
2602
|
-
readonly members: readonly [{
|
|
2603
|
-
readonly name: "order_hash";
|
|
2604
|
-
readonly type: "core::felt252";
|
|
2605
|
-
}, {
|
|
2606
|
-
readonly name: "fulfiller";
|
|
2607
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2608
|
-
}, {
|
|
2609
|
-
readonly name: "quantity";
|
|
2610
|
-
readonly type: "core::felt252";
|
|
2611
|
-
}, {
|
|
2612
|
-
readonly name: "nonce";
|
|
2613
|
-
readonly type: "core::felt252";
|
|
2614
|
-
}];
|
|
2615
|
-
}, {
|
|
2616
|
-
readonly type: "struct";
|
|
2617
|
-
readonly name: "medialane_erc1155::core::types::FulfillmentRequest";
|
|
2618
|
-
readonly members: readonly [{
|
|
2619
|
-
readonly name: "fulfillment";
|
|
2620
|
-
readonly type: "medialane_erc1155::core::types::OrderFulfillment";
|
|
2621
|
-
}, {
|
|
2622
|
-
readonly name: "signature";
|
|
2623
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
2624
|
-
}];
|
|
2625
|
-
}, {
|
|
2626
|
-
readonly type: "struct";
|
|
2627
|
-
readonly name: "medialane_erc1155::core::types::OrderCancellation";
|
|
2584
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2628
2585
|
readonly members: readonly [{
|
|
2629
2586
|
readonly name: "order_hash";
|
|
2630
2587
|
readonly type: "core::felt252";
|
|
2631
2588
|
}, {
|
|
2632
2589
|
readonly name: "offerer";
|
|
2633
2590
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2634
|
-
}, {
|
|
2635
|
-
readonly name: "nonce";
|
|
2636
|
-
readonly type: "core::felt252";
|
|
2637
2591
|
}];
|
|
2638
2592
|
}, {
|
|
2639
2593
|
readonly type: "struct";
|
|
2640
|
-
readonly name: "
|
|
2594
|
+
readonly name: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2641
2595
|
readonly members: readonly [{
|
|
2642
2596
|
readonly name: "cancelation";
|
|
2643
|
-
readonly type: "
|
|
2597
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2644
2598
|
}, {
|
|
2645
2599
|
readonly name: "signature";
|
|
2646
2600
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2647
2601
|
}];
|
|
2648
2602
|
}, {
|
|
2649
2603
|
readonly type: "enum";
|
|
2650
|
-
readonly name: "
|
|
2604
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2651
2605
|
readonly variants: readonly [{
|
|
2652
2606
|
readonly name: "None";
|
|
2653
2607
|
readonly type: "()";
|
|
@@ -2663,16 +2617,19 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2663
2617
|
}];
|
|
2664
2618
|
}, {
|
|
2665
2619
|
readonly type: "struct";
|
|
2666
|
-
readonly name: "
|
|
2620
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2667
2621
|
readonly members: readonly [{
|
|
2668
2622
|
readonly name: "offerer";
|
|
2669
2623
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2670
2624
|
}, {
|
|
2671
2625
|
readonly name: "offer";
|
|
2672
|
-
readonly type: "
|
|
2626
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2673
2627
|
}, {
|
|
2674
2628
|
readonly name: "consideration";
|
|
2675
|
-
readonly type: "
|
|
2629
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2630
|
+
}, {
|
|
2631
|
+
readonly name: "royalty_max_bps";
|
|
2632
|
+
readonly type: "core::felt252";
|
|
2676
2633
|
}, {
|
|
2677
2634
|
readonly name: "start_time";
|
|
2678
2635
|
readonly type: "core::integer::u64";
|
|
@@ -2681,23 +2638,20 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2681
2638
|
readonly type: "core::integer::u64";
|
|
2682
2639
|
}, {
|
|
2683
2640
|
readonly name: "order_status";
|
|
2684
|
-
readonly type: "
|
|
2685
|
-
}, {
|
|
2686
|
-
readonly name: "total_amount";
|
|
2687
|
-
readonly type: "core::felt252";
|
|
2641
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2688
2642
|
}, {
|
|
2689
2643
|
readonly name: "remaining_amount";
|
|
2690
2644
|
readonly type: "core::felt252";
|
|
2691
2645
|
}];
|
|
2692
2646
|
}, {
|
|
2693
2647
|
readonly type: "interface";
|
|
2694
|
-
readonly name: "
|
|
2648
|
+
readonly name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2695
2649
|
readonly items: readonly [{
|
|
2696
2650
|
readonly type: "function";
|
|
2697
2651
|
readonly name: "register_order";
|
|
2698
2652
|
readonly inputs: readonly [{
|
|
2699
2653
|
readonly name: "order";
|
|
2700
|
-
readonly type: "
|
|
2654
|
+
readonly type: "medialane_marketplace_erc1155::core::types::Order";
|
|
2701
2655
|
}];
|
|
2702
2656
|
readonly outputs: readonly [];
|
|
2703
2657
|
readonly state_mutability: "external";
|
|
@@ -2705,8 +2659,11 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2705
2659
|
readonly type: "function";
|
|
2706
2660
|
readonly name: "fulfill_order";
|
|
2707
2661
|
readonly inputs: readonly [{
|
|
2708
|
-
readonly name: "
|
|
2709
|
-
readonly type: "
|
|
2662
|
+
readonly name: "order_hash";
|
|
2663
|
+
readonly type: "core::felt252";
|
|
2664
|
+
}, {
|
|
2665
|
+
readonly name: "quantity";
|
|
2666
|
+
readonly type: "core::felt252";
|
|
2710
2667
|
}];
|
|
2711
2668
|
readonly outputs: readonly [];
|
|
2712
2669
|
readonly state_mutability: "external";
|
|
@@ -2715,10 +2672,16 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2715
2672
|
readonly name: "cancel_order";
|
|
2716
2673
|
readonly inputs: readonly [{
|
|
2717
2674
|
readonly name: "cancel_request";
|
|
2718
|
-
readonly type: "
|
|
2675
|
+
readonly type: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2719
2676
|
}];
|
|
2720
2677
|
readonly outputs: readonly [];
|
|
2721
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";
|
|
2722
2685
|
}, {
|
|
2723
2686
|
readonly type: "function";
|
|
2724
2687
|
readonly name: "get_order_details";
|
|
@@ -2727,7 +2690,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2727
2690
|
readonly type: "core::felt252";
|
|
2728
2691
|
}];
|
|
2729
2692
|
readonly outputs: readonly [{
|
|
2730
|
-
readonly type: "
|
|
2693
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2731
2694
|
}];
|
|
2732
2695
|
readonly state_mutability: "view";
|
|
2733
2696
|
}, {
|
|
@@ -2735,7 +2698,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2735
2698
|
readonly name: "get_order_hash";
|
|
2736
2699
|
readonly inputs: readonly [{
|
|
2737
2700
|
readonly name: "parameters";
|
|
2738
|
-
readonly type: "
|
|
2701
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2739
2702
|
}, {
|
|
2740
2703
|
readonly name: "signer";
|
|
2741
2704
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -2746,31 +2709,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2746
2709
|
readonly state_mutability: "view";
|
|
2747
2710
|
}, {
|
|
2748
2711
|
readonly type: "function";
|
|
2749
|
-
readonly name: "
|
|
2750
|
-
readonly inputs: readonly [
|
|
2751
|
-
|
|
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";
|
|
2752
2718
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2753
2719
|
}];
|
|
2720
|
+
readonly outputs: readonly [{
|
|
2721
|
+
readonly type: "core::felt252";
|
|
2722
|
+
}];
|
|
2754
2723
|
readonly state_mutability: "view";
|
|
2755
|
-
}
|
|
2756
|
-
}, {
|
|
2757
|
-
readonly type: "impl";
|
|
2758
|
-
readonly name: "NoncesImpl";
|
|
2759
|
-
readonly interface_name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
2760
|
-
}, {
|
|
2761
|
-
readonly type: "interface";
|
|
2762
|
-
readonly name: "openzeppelin_utils::cryptography::interface::INonces";
|
|
2763
|
-
readonly items: readonly [{
|
|
2724
|
+
}, {
|
|
2764
2725
|
readonly type: "function";
|
|
2765
|
-
readonly name: "
|
|
2726
|
+
readonly name: "get_counter";
|
|
2766
2727
|
readonly inputs: readonly [{
|
|
2767
|
-
readonly name: "
|
|
2728
|
+
readonly name: "offerer";
|
|
2768
2729
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2769
2730
|
}];
|
|
2770
2731
|
readonly outputs: readonly [{
|
|
2771
2732
|
readonly type: "core::felt252";
|
|
2772
2733
|
}];
|
|
2773
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";
|
|
2774
2743
|
}];
|
|
2775
2744
|
}, {
|
|
2776
2745
|
readonly type: "constructor";
|
|
@@ -2781,7 +2750,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2781
2750
|
}];
|
|
2782
2751
|
}, {
|
|
2783
2752
|
readonly type: "event";
|
|
2784
|
-
readonly name: "
|
|
2753
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2785
2754
|
readonly kind: "struct";
|
|
2786
2755
|
readonly members: readonly [{
|
|
2787
2756
|
readonly name: "order_hash";
|
|
@@ -2804,7 +2773,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2804
2773
|
}];
|
|
2805
2774
|
}, {
|
|
2806
2775
|
readonly type: "event";
|
|
2807
|
-
readonly name: "
|
|
2776
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2808
2777
|
readonly kind: "struct";
|
|
2809
2778
|
readonly members: readonly [{
|
|
2810
2779
|
readonly name: "order_hash";
|
|
@@ -2841,7 +2810,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2841
2810
|
}];
|
|
2842
2811
|
}, {
|
|
2843
2812
|
readonly type: "event";
|
|
2844
|
-
readonly name: "
|
|
2813
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2845
2814
|
readonly kind: "struct";
|
|
2846
2815
|
readonly members: readonly [{
|
|
2847
2816
|
readonly name: "order_hash";
|
|
@@ -2854,29 +2823,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2854
2823
|
}];
|
|
2855
2824
|
}, {
|
|
2856
2825
|
readonly type: "event";
|
|
2857
|
-
readonly name: "
|
|
2858
|
-
readonly kind: "
|
|
2859
|
-
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
|
+
}];
|
|
2860
2837
|
}, {
|
|
2861
2838
|
readonly type: "event";
|
|
2862
|
-
readonly name: "
|
|
2839
|
+
readonly name: "medialane_marketplace_erc1155::core::medialane::Medialane1155::Event";
|
|
2863
2840
|
readonly kind: "enum";
|
|
2864
2841
|
readonly variants: readonly [{
|
|
2865
2842
|
readonly name: "OrderCreated";
|
|
2866
|
-
readonly type: "
|
|
2843
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2867
2844
|
readonly kind: "nested";
|
|
2868
2845
|
}, {
|
|
2869
2846
|
readonly name: "OrderFulfilled";
|
|
2870
|
-
readonly type: "
|
|
2847
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2871
2848
|
readonly kind: "nested";
|
|
2872
2849
|
}, {
|
|
2873
2850
|
readonly name: "OrderCancelled";
|
|
2874
|
-
readonly type: "
|
|
2851
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2875
2852
|
readonly kind: "nested";
|
|
2876
2853
|
}, {
|
|
2877
|
-
readonly name: "
|
|
2878
|
-
readonly type: "
|
|
2879
|
-
readonly kind: "
|
|
2854
|
+
readonly name: "CounterIncremented";
|
|
2855
|
+
readonly type: "medialane_marketplace_erc1155::core::events::CounterIncremented";
|
|
2856
|
+
readonly kind: "nested";
|
|
2880
2857
|
}];
|
|
2881
2858
|
}];
|
|
2882
2859
|
|
|
@@ -5195,9 +5172,9 @@ declare const SERVICES: {
|
|
|
5195
5172
|
readonly standard: "ERC721";
|
|
5196
5173
|
readonly provenance: "MEDIALANE";
|
|
5197
5174
|
readonly onchain: {
|
|
5198
|
-
readonly factoryAddress: "
|
|
5199
|
-
readonly classHash: "
|
|
5200
|
-
readonly startBlock:
|
|
5175
|
+
readonly factoryAddress: "0x069cf5391077e3ebdd9cb6aebf90ed530d29f0d6aa34a43f5afae938c0fb565e";
|
|
5176
|
+
readonly classHash: "0x04c6f952d747ad7ead1b3dad4c1d587837d38f8ec29d6c095a4afa5b5ece5957";
|
|
5177
|
+
readonly startBlock: 10350340;
|
|
5201
5178
|
};
|
|
5202
5179
|
readonly uiVariant: "standard";
|
|
5203
5180
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5219,9 +5196,9 @@ declare const SERVICES: {
|
|
|
5219
5196
|
readonly standard: "ERC1155";
|
|
5220
5197
|
readonly provenance: "MEDIALANE";
|
|
5221
5198
|
readonly onchain: {
|
|
5222
|
-
readonly factoryAddress: "
|
|
5223
|
-
readonly classHash: "
|
|
5224
|
-
readonly startBlock:
|
|
5199
|
+
readonly factoryAddress: "0x040cd7b3e73bb3c892166e34bdc01d1797f97ecbc356c23f1cf38033cacf0077";
|
|
5200
|
+
readonly classHash: "0x02600bb720908f119afe482309d36c39d087587f0df9576454acfb6363e78cd8";
|
|
5201
|
+
readonly startBlock: 10350855;
|
|
5225
5202
|
};
|
|
5226
5203
|
readonly uiVariant: "edition";
|
|
5227
5204
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5355,15 +5332,8 @@ declare function encodeByteArray(str: string): string[];
|
|
|
5355
5332
|
*/
|
|
5356
5333
|
declare function buildOrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5357
5334
|
declare function build1155OrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5358
|
-
/**
|
|
5359
|
-
* Build SNIP-12 typed data for an OrderFulfillment struct.
|
|
5360
|
-
* ERC-1155 adds a `quantity` field so the contract can verify the partial-fill
|
|
5361
|
-
* amount; ERC-721 omits it (always single-fill).
|
|
5362
|
-
*/
|
|
5363
|
-
declare function buildFulfillmentTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5364
|
-
declare function build1155FulfillmentTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5365
5335
|
/** OrderCancellation typed data — identical shape across both standards. */
|
|
5366
5336
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5367
5337
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5368
5338
|
|
|
5369
|
-
export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, type ApiAppSource, 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 };
|