@medialane/sdk 0.25.0 → 0.27.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 +257 -266
- package/dist/index.d.ts +257 -266
- package/dist/index.js +607 -525
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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
|
|
|
@@ -800,12 +807,35 @@ interface ApiIntent {
|
|
|
800
807
|
createdAt: string;
|
|
801
808
|
updatedAt: string;
|
|
802
809
|
}
|
|
803
|
-
|
|
810
|
+
/** A single Starknet call as returned in intent calldata. */
|
|
811
|
+
interface IntentCall {
|
|
812
|
+
contractAddress: string;
|
|
813
|
+
entrypoint: string;
|
|
814
|
+
calldata: string[];
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Response from any `createXIntent` call. Discriminated on `requiresSignature`:
|
|
818
|
+
* • true — SNIP-12 intent (listing / offer / cancel / counter-offer). Sign
|
|
819
|
+
* `typedData`, then call `submitIntentSignature(id, sig)` to obtain
|
|
820
|
+
* the executable calls.
|
|
821
|
+
* • false — prebuilt intent (fulfill / mint / create-collection). `calls` are
|
|
822
|
+
* ready to execute directly; there is no signature step.
|
|
823
|
+
*
|
|
824
|
+
* The discriminant makes the wrong access a compile error: `typedData` does not
|
|
825
|
+
* exist on the `false` variant, nor `calls` on the `true` variant. Consumers
|
|
826
|
+
* MUST narrow on `requiresSignature` before reading either.
|
|
827
|
+
*/
|
|
828
|
+
type ApiIntentCreated = {
|
|
804
829
|
id: string;
|
|
830
|
+
expiresAt: string;
|
|
831
|
+
requiresSignature: true;
|
|
805
832
|
typedData: unknown;
|
|
806
|
-
|
|
833
|
+
} | {
|
|
834
|
+
id: string;
|
|
807
835
|
expiresAt: string;
|
|
808
|
-
|
|
836
|
+
requiresSignature: false;
|
|
837
|
+
calls: IntentCall[];
|
|
838
|
+
};
|
|
809
839
|
interface CreateListingIntentParams {
|
|
810
840
|
offerer: string;
|
|
811
841
|
nftContract: string;
|
|
@@ -1551,28 +1581,11 @@ declare class MedialaneClient {
|
|
|
1551
1581
|
|
|
1552
1582
|
declare const IPMarketplaceABI: readonly [{
|
|
1553
1583
|
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";
|
|
1584
|
+
readonly name: "Medialane721Impl";
|
|
1585
|
+
readonly interface_name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1573
1586
|
}, {
|
|
1574
1587
|
readonly type: "struct";
|
|
1575
|
-
readonly name: "
|
|
1588
|
+
readonly name: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1576
1589
|
readonly members: readonly [{
|
|
1577
1590
|
readonly name: "item_type";
|
|
1578
1591
|
readonly type: "core::felt252";
|
|
@@ -1583,15 +1596,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1583
1596
|
readonly name: "identifier_or_criteria";
|
|
1584
1597
|
readonly type: "core::felt252";
|
|
1585
1598
|
}, {
|
|
1586
|
-
readonly name: "
|
|
1587
|
-
readonly type: "core::felt252";
|
|
1588
|
-
}, {
|
|
1589
|
-
readonly name: "end_amount";
|
|
1599
|
+
readonly name: "amount";
|
|
1590
1600
|
readonly type: "core::felt252";
|
|
1591
1601
|
}];
|
|
1592
1602
|
}, {
|
|
1593
1603
|
readonly type: "struct";
|
|
1594
|
-
readonly name: "
|
|
1604
|
+
readonly name: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1595
1605
|
readonly members: readonly [{
|
|
1596
1606
|
readonly name: "item_type";
|
|
1597
1607
|
readonly type: "core::felt252";
|
|
@@ -1602,10 +1612,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1602
1612
|
readonly name: "identifier_or_criteria";
|
|
1603
1613
|
readonly type: "core::felt252";
|
|
1604
1614
|
}, {
|
|
1605
|
-
readonly name: "
|
|
1606
|
-
readonly type: "core::felt252";
|
|
1607
|
-
}, {
|
|
1608
|
-
readonly name: "end_amount";
|
|
1615
|
+
readonly name: "amount";
|
|
1609
1616
|
readonly type: "core::felt252";
|
|
1610
1617
|
}, {
|
|
1611
1618
|
readonly name: "recipient";
|
|
@@ -1613,16 +1620,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1613
1620
|
}];
|
|
1614
1621
|
}, {
|
|
1615
1622
|
readonly type: "struct";
|
|
1616
|
-
readonly name: "
|
|
1623
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1617
1624
|
readonly members: readonly [{
|
|
1618
1625
|
readonly name: "offerer";
|
|
1619
1626
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "marketplace";
|
|
1629
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1620
1630
|
}, {
|
|
1621
1631
|
readonly name: "offer";
|
|
1622
|
-
readonly type: "
|
|
1632
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1623
1633
|
}, {
|
|
1624
1634
|
readonly name: "consideration";
|
|
1625
|
-
readonly type: "
|
|
1635
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly name: "royalty_max_bps";
|
|
1638
|
+
readonly type: "core::felt252";
|
|
1626
1639
|
}, {
|
|
1627
1640
|
readonly name: "start_time";
|
|
1628
1641
|
readonly type: "core::felt252";
|
|
@@ -1633,68 +1646,42 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1633
1646
|
readonly name: "salt";
|
|
1634
1647
|
readonly type: "core::felt252";
|
|
1635
1648
|
}, {
|
|
1636
|
-
readonly name: "
|
|
1649
|
+
readonly name: "counter";
|
|
1637
1650
|
readonly type: "core::felt252";
|
|
1638
1651
|
}];
|
|
1639
1652
|
}, {
|
|
1640
1653
|
readonly type: "struct";
|
|
1641
|
-
readonly name: "
|
|
1654
|
+
readonly name: "medialane_marketplace_erc721::core::types::Order";
|
|
1642
1655
|
readonly members: readonly [{
|
|
1643
1656
|
readonly name: "parameters";
|
|
1644
|
-
readonly type: "
|
|
1657
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1645
1658
|
}, {
|
|
1646
1659
|
readonly name: "signature";
|
|
1647
1660
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1648
1661
|
}];
|
|
1649
1662
|
}, {
|
|
1650
1663
|
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";
|
|
1664
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1675
1665
|
readonly members: readonly [{
|
|
1676
1666
|
readonly name: "order_hash";
|
|
1677
1667
|
readonly type: "core::felt252";
|
|
1678
1668
|
}, {
|
|
1679
1669
|
readonly name: "offerer";
|
|
1680
1670
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1681
|
-
}, {
|
|
1682
|
-
readonly name: "nonce";
|
|
1683
|
-
readonly type: "core::felt252";
|
|
1684
1671
|
}];
|
|
1685
1672
|
}, {
|
|
1686
1673
|
readonly type: "struct";
|
|
1687
|
-
readonly name: "
|
|
1674
|
+
readonly name: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1688
1675
|
readonly members: readonly [{
|
|
1689
1676
|
readonly name: "cancelation";
|
|
1690
|
-
readonly type: "
|
|
1677
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1691
1678
|
}, {
|
|
1692
1679
|
readonly name: "signature";
|
|
1693
1680
|
readonly type: "core::array::Array::<core::felt252>";
|
|
1694
1681
|
}];
|
|
1695
1682
|
}, {
|
|
1696
1683
|
readonly type: "enum";
|
|
1697
|
-
readonly name: "
|
|
1684
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1698
1685
|
readonly variants: readonly [{
|
|
1699
1686
|
readonly name: "None";
|
|
1700
1687
|
readonly type: "()";
|
|
@@ -1708,28 +1695,21 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1708
1695
|
readonly name: "Cancelled";
|
|
1709
1696
|
readonly type: "()";
|
|
1710
1697
|
}];
|
|
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
1698
|
}, {
|
|
1722
1699
|
readonly type: "struct";
|
|
1723
|
-
readonly name: "
|
|
1700
|
+
readonly name: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1724
1701
|
readonly members: readonly [{
|
|
1725
1702
|
readonly name: "offerer";
|
|
1726
1703
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1727
1704
|
}, {
|
|
1728
1705
|
readonly name: "offer";
|
|
1729
|
-
readonly type: "
|
|
1706
|
+
readonly type: "medialane_marketplace_erc721::core::types::OfferItem";
|
|
1730
1707
|
}, {
|
|
1731
1708
|
readonly name: "consideration";
|
|
1732
|
-
readonly type: "
|
|
1709
|
+
readonly type: "medialane_marketplace_erc721::core::types::ConsiderationItem";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly name: "royalty_max_bps";
|
|
1712
|
+
readonly type: "core::felt252";
|
|
1733
1713
|
}, {
|
|
1734
1714
|
readonly name: "start_time";
|
|
1735
1715
|
readonly type: "core::integer::u64";
|
|
@@ -1738,20 +1718,17 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1738
1718
|
readonly type: "core::integer::u64";
|
|
1739
1719
|
}, {
|
|
1740
1720
|
readonly name: "order_status";
|
|
1741
|
-
readonly type: "
|
|
1742
|
-
}, {
|
|
1743
|
-
readonly name: "fulfiller";
|
|
1744
|
-
readonly type: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
|
|
1721
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
1745
1722
|
}];
|
|
1746
1723
|
}, {
|
|
1747
1724
|
readonly type: "interface";
|
|
1748
|
-
readonly name: "
|
|
1725
|
+
readonly name: "medialane_marketplace_erc721::core::interface::IMedialane";
|
|
1749
1726
|
readonly items: readonly [{
|
|
1750
1727
|
readonly type: "function";
|
|
1751
1728
|
readonly name: "register_order";
|
|
1752
1729
|
readonly inputs: readonly [{
|
|
1753
1730
|
readonly name: "order";
|
|
1754
|
-
readonly type: "
|
|
1731
|
+
readonly type: "medialane_marketplace_erc721::core::types::Order";
|
|
1755
1732
|
}];
|
|
1756
1733
|
readonly outputs: readonly [];
|
|
1757
1734
|
readonly state_mutability: "external";
|
|
@@ -1759,8 +1736,8 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1759
1736
|
readonly type: "function";
|
|
1760
1737
|
readonly name: "fulfill_order";
|
|
1761
1738
|
readonly inputs: readonly [{
|
|
1762
|
-
readonly name: "
|
|
1763
|
-
readonly type: "
|
|
1739
|
+
readonly name: "order_hash";
|
|
1740
|
+
readonly type: "core::felt252";
|
|
1764
1741
|
}];
|
|
1765
1742
|
readonly outputs: readonly [];
|
|
1766
1743
|
readonly state_mutability: "external";
|
|
@@ -1769,10 +1746,16 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1769
1746
|
readonly name: "cancel_order";
|
|
1770
1747
|
readonly inputs: readonly [{
|
|
1771
1748
|
readonly name: "cancel_request";
|
|
1772
|
-
readonly type: "
|
|
1749
|
+
readonly type: "medialane_marketplace_erc721::core::types::CancelRequest";
|
|
1773
1750
|
}];
|
|
1774
1751
|
readonly outputs: readonly [];
|
|
1775
1752
|
readonly state_mutability: "external";
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly type: "function";
|
|
1755
|
+
readonly name: "increment_counter";
|
|
1756
|
+
readonly inputs: readonly [];
|
|
1757
|
+
readonly outputs: readonly [];
|
|
1758
|
+
readonly state_mutability: "external";
|
|
1776
1759
|
}, {
|
|
1777
1760
|
readonly type: "function";
|
|
1778
1761
|
readonly name: "get_order_details";
|
|
@@ -1781,7 +1764,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1781
1764
|
readonly type: "core::felt252";
|
|
1782
1765
|
}];
|
|
1783
1766
|
readonly outputs: readonly [{
|
|
1784
|
-
readonly type: "
|
|
1767
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderDetails";
|
|
1785
1768
|
}];
|
|
1786
1769
|
readonly state_mutability: "view";
|
|
1787
1770
|
}, {
|
|
@@ -1789,7 +1772,7 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1789
1772
|
readonly name: "get_order_hash";
|
|
1790
1773
|
readonly inputs: readonly [{
|
|
1791
1774
|
readonly name: "parameters";
|
|
1792
|
-
readonly type: "
|
|
1775
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderParameters";
|
|
1793
1776
|
}, {
|
|
1794
1777
|
readonly name: "signer";
|
|
1795
1778
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -1798,52 +1781,37 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1798
1781
|
readonly type: "core::felt252";
|
|
1799
1782
|
}];
|
|
1800
1783
|
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 [{
|
|
1784
|
+
}, {
|
|
1810
1785
|
readonly type: "function";
|
|
1811
|
-
readonly name: "
|
|
1786
|
+
readonly name: "get_cancellation_hash";
|
|
1812
1787
|
readonly inputs: readonly [{
|
|
1813
|
-
readonly name: "
|
|
1788
|
+
readonly name: "cancellation";
|
|
1789
|
+
readonly type: "medialane_marketplace_erc721::core::types::OrderCancellation";
|
|
1790
|
+
}, {
|
|
1791
|
+
readonly name: "signer";
|
|
1814
1792
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1815
1793
|
}];
|
|
1816
1794
|
readonly outputs: readonly [{
|
|
1817
1795
|
readonly type: "core::felt252";
|
|
1818
1796
|
}];
|
|
1819
1797
|
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
1798
|
}, {
|
|
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
1799
|
readonly type: "function";
|
|
1840
|
-
readonly name: "
|
|
1800
|
+
readonly name: "get_counter";
|
|
1841
1801
|
readonly inputs: readonly [{
|
|
1842
|
-
readonly name: "
|
|
1802
|
+
readonly name: "offerer";
|
|
1803
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1804
|
+
}];
|
|
1805
|
+
readonly outputs: readonly [{
|
|
1843
1806
|
readonly type: "core::felt252";
|
|
1844
1807
|
}];
|
|
1808
|
+
readonly state_mutability: "view";
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "function";
|
|
1811
|
+
readonly name: "get_native_token_address";
|
|
1812
|
+
readonly inputs: readonly [];
|
|
1845
1813
|
readonly outputs: readonly [{
|
|
1846
|
-
readonly type: "core::
|
|
1814
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1847
1815
|
}];
|
|
1848
1816
|
readonly state_mutability: "view";
|
|
1849
1817
|
}];
|
|
@@ -1851,15 +1819,12 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1851
1819
|
readonly type: "constructor";
|
|
1852
1820
|
readonly name: "constructor";
|
|
1853
1821
|
readonly inputs: readonly [{
|
|
1854
|
-
readonly name: "manager";
|
|
1855
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1856
|
-
}, {
|
|
1857
1822
|
readonly name: "native_token_address";
|
|
1858
1823
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1859
1824
|
}];
|
|
1860
1825
|
}, {
|
|
1861
1826
|
readonly type: "event";
|
|
1862
|
-
readonly name: "
|
|
1827
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1863
1828
|
readonly kind: "struct";
|
|
1864
1829
|
readonly members: readonly [{
|
|
1865
1830
|
readonly name: "order_hash";
|
|
@@ -1870,9 +1835,19 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1870
1835
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1871
1836
|
readonly kind: "key";
|
|
1872
1837
|
}];
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly type: "struct";
|
|
1840
|
+
readonly name: "core::integer::u256";
|
|
1841
|
+
readonly members: readonly [{
|
|
1842
|
+
readonly name: "low";
|
|
1843
|
+
readonly type: "core::integer::u128";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly name: "high";
|
|
1846
|
+
readonly type: "core::integer::u128";
|
|
1847
|
+
}];
|
|
1873
1848
|
}, {
|
|
1874
1849
|
readonly type: "event";
|
|
1875
|
-
readonly name: "
|
|
1850
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1876
1851
|
readonly kind: "struct";
|
|
1877
1852
|
readonly members: readonly [{
|
|
1878
1853
|
readonly name: "order_hash";
|
|
@@ -1886,10 +1861,22 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1886
1861
|
readonly name: "fulfiller";
|
|
1887
1862
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1888
1863
|
readonly kind: "key";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "sale_amount";
|
|
1866
|
+
readonly type: "core::integer::u256";
|
|
1867
|
+
readonly kind: "data";
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly name: "royalty_receiver";
|
|
1870
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1871
|
+
readonly kind: "data";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly name: "royalty_amount";
|
|
1874
|
+
readonly type: "core::integer::u256";
|
|
1875
|
+
readonly kind: "data";
|
|
1889
1876
|
}];
|
|
1890
1877
|
}, {
|
|
1891
1878
|
readonly type: "event";
|
|
1892
|
-
readonly name: "
|
|
1879
|
+
readonly name: "medialane_marketplace_erc721::core::events::OrderCancelled";
|
|
1893
1880
|
readonly kind: "struct";
|
|
1894
1881
|
readonly members: readonly [{
|
|
1895
1882
|
readonly name: "order_hash";
|
|
@@ -1902,19 +1889,36 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
1902
1889
|
}];
|
|
1903
1890
|
}, {
|
|
1904
1891
|
readonly type: "event";
|
|
1905
|
-
readonly name: "
|
|
1892
|
+
readonly name: "medialane_marketplace_erc721::core::events::CounterIncremented";
|
|
1893
|
+
readonly kind: "struct";
|
|
1894
|
+
readonly members: readonly [{
|
|
1895
|
+
readonly name: "offerer";
|
|
1896
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1897
|
+
readonly kind: "key";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly name: "new_counter";
|
|
1900
|
+
readonly type: "core::felt252";
|
|
1901
|
+
readonly kind: "data";
|
|
1902
|
+
}];
|
|
1903
|
+
}, {
|
|
1904
|
+
readonly type: "event";
|
|
1905
|
+
readonly name: "medialane_marketplace_erc721::core::medialane::Medialane721::Event";
|
|
1906
1906
|
readonly kind: "enum";
|
|
1907
1907
|
readonly variants: readonly [{
|
|
1908
1908
|
readonly name: "OrderCreated";
|
|
1909
|
-
readonly type: "
|
|
1909
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderCreated";
|
|
1910
1910
|
readonly kind: "nested";
|
|
1911
1911
|
}, {
|
|
1912
1912
|
readonly name: "OrderFulfilled";
|
|
1913
|
-
readonly type: "
|
|
1913
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderFulfilled";
|
|
1914
1914
|
readonly kind: "nested";
|
|
1915
1915
|
}, {
|
|
1916
1916
|
readonly name: "OrderCancelled";
|
|
1917
|
-
readonly type: "
|
|
1917
|
+
readonly type: "medialane_marketplace_erc721::core::events::OrderCancelled";
|
|
1918
|
+
readonly kind: "nested";
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly name: "CounterIncremented";
|
|
1921
|
+
readonly type: "medialane_marketplace_erc721::core::events::CounterIncremented";
|
|
1918
1922
|
readonly kind: "nested";
|
|
1919
1923
|
}];
|
|
1920
1924
|
}];
|
|
@@ -2520,11 +2524,11 @@ declare const CollectionRegistryABI: readonly [{
|
|
|
2520
2524
|
|
|
2521
2525
|
declare const Medialane1155ABI: readonly [{
|
|
2522
2526
|
readonly type: "impl";
|
|
2523
|
-
readonly name: "
|
|
2524
|
-
readonly interface_name: "
|
|
2527
|
+
readonly name: "Medialane1155Impl";
|
|
2528
|
+
readonly interface_name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2525
2529
|
}, {
|
|
2526
2530
|
readonly type: "struct";
|
|
2527
|
-
readonly name: "
|
|
2531
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2528
2532
|
readonly members: readonly [{
|
|
2529
2533
|
readonly name: "item_type";
|
|
2530
2534
|
readonly type: "core::felt252";
|
|
@@ -2535,15 +2539,12 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2535
2539
|
readonly name: "identifier_or_criteria";
|
|
2536
2540
|
readonly type: "core::felt252";
|
|
2537
2541
|
}, {
|
|
2538
|
-
readonly name: "
|
|
2539
|
-
readonly type: "core::felt252";
|
|
2540
|
-
}, {
|
|
2541
|
-
readonly name: "end_amount";
|
|
2542
|
+
readonly name: "amount";
|
|
2542
2543
|
readonly type: "core::felt252";
|
|
2543
2544
|
}];
|
|
2544
2545
|
}, {
|
|
2545
2546
|
readonly type: "struct";
|
|
2546
|
-
readonly name: "
|
|
2547
|
+
readonly name: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2547
2548
|
readonly members: readonly [{
|
|
2548
2549
|
readonly name: "item_type";
|
|
2549
2550
|
readonly type: "core::felt252";
|
|
@@ -2554,10 +2555,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2554
2555
|
readonly name: "identifier_or_criteria";
|
|
2555
2556
|
readonly type: "core::felt252";
|
|
2556
2557
|
}, {
|
|
2557
|
-
readonly name: "
|
|
2558
|
-
readonly type: "core::felt252";
|
|
2559
|
-
}, {
|
|
2560
|
-
readonly name: "end_amount";
|
|
2558
|
+
readonly name: "amount";
|
|
2561
2559
|
readonly type: "core::felt252";
|
|
2562
2560
|
}, {
|
|
2563
2561
|
readonly name: "recipient";
|
|
@@ -2565,16 +2563,22 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2565
2563
|
}];
|
|
2566
2564
|
}, {
|
|
2567
2565
|
readonly type: "struct";
|
|
2568
|
-
readonly name: "
|
|
2566
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2569
2567
|
readonly members: readonly [{
|
|
2570
2568
|
readonly name: "offerer";
|
|
2571
2569
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2570
|
+
}, {
|
|
2571
|
+
readonly name: "marketplace";
|
|
2572
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2572
2573
|
}, {
|
|
2573
2574
|
readonly name: "offer";
|
|
2574
|
-
readonly type: "
|
|
2575
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2575
2576
|
}, {
|
|
2576
2577
|
readonly name: "consideration";
|
|
2577
|
-
readonly type: "
|
|
2578
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2579
|
+
}, {
|
|
2580
|
+
readonly name: "royalty_max_bps";
|
|
2581
|
+
readonly type: "core::felt252";
|
|
2578
2582
|
}, {
|
|
2579
2583
|
readonly name: "start_time";
|
|
2580
2584
|
readonly type: "core::felt252";
|
|
@@ -2585,71 +2589,42 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2585
2589
|
readonly name: "salt";
|
|
2586
2590
|
readonly type: "core::felt252";
|
|
2587
2591
|
}, {
|
|
2588
|
-
readonly name: "
|
|
2592
|
+
readonly name: "counter";
|
|
2589
2593
|
readonly type: "core::felt252";
|
|
2590
2594
|
}];
|
|
2591
2595
|
}, {
|
|
2592
2596
|
readonly type: "struct";
|
|
2593
|
-
readonly name: "
|
|
2597
|
+
readonly name: "medialane_marketplace_erc1155::core::types::Order";
|
|
2594
2598
|
readonly members: readonly [{
|
|
2595
2599
|
readonly name: "parameters";
|
|
2596
|
-
readonly type: "
|
|
2597
|
-
}, {
|
|
2598
|
-
readonly name: "signature";
|
|
2599
|
-
readonly type: "core::array::Array::<core::felt252>";
|
|
2600
|
-
}];
|
|
2601
|
-
}, {
|
|
2602
|
-
readonly type: "struct";
|
|
2603
|
-
readonly name: "medialane_erc1155::core::types::OrderFulfillment";
|
|
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";
|
|
2600
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2623
2601
|
}, {
|
|
2624
2602
|
readonly name: "signature";
|
|
2625
2603
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2626
2604
|
}];
|
|
2627
2605
|
}, {
|
|
2628
2606
|
readonly type: "struct";
|
|
2629
|
-
readonly name: "
|
|
2607
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2630
2608
|
readonly members: readonly [{
|
|
2631
2609
|
readonly name: "order_hash";
|
|
2632
2610
|
readonly type: "core::felt252";
|
|
2633
2611
|
}, {
|
|
2634
2612
|
readonly name: "offerer";
|
|
2635
2613
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2636
|
-
}, {
|
|
2637
|
-
readonly name: "nonce";
|
|
2638
|
-
readonly type: "core::felt252";
|
|
2639
2614
|
}];
|
|
2640
2615
|
}, {
|
|
2641
2616
|
readonly type: "struct";
|
|
2642
|
-
readonly name: "
|
|
2617
|
+
readonly name: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2643
2618
|
readonly members: readonly [{
|
|
2644
2619
|
readonly name: "cancelation";
|
|
2645
|
-
readonly type: "
|
|
2620
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2646
2621
|
}, {
|
|
2647
2622
|
readonly name: "signature";
|
|
2648
2623
|
readonly type: "core::array::Array::<core::felt252>";
|
|
2649
2624
|
}];
|
|
2650
2625
|
}, {
|
|
2651
2626
|
readonly type: "enum";
|
|
2652
|
-
readonly name: "
|
|
2627
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2653
2628
|
readonly variants: readonly [{
|
|
2654
2629
|
readonly name: "None";
|
|
2655
2630
|
readonly type: "()";
|
|
@@ -2665,16 +2640,19 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2665
2640
|
}];
|
|
2666
2641
|
}, {
|
|
2667
2642
|
readonly type: "struct";
|
|
2668
|
-
readonly name: "
|
|
2643
|
+
readonly name: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2669
2644
|
readonly members: readonly [{
|
|
2670
2645
|
readonly name: "offerer";
|
|
2671
2646
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2672
2647
|
}, {
|
|
2673
2648
|
readonly name: "offer";
|
|
2674
|
-
readonly type: "
|
|
2649
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OfferItem";
|
|
2675
2650
|
}, {
|
|
2676
2651
|
readonly name: "consideration";
|
|
2677
|
-
readonly type: "
|
|
2652
|
+
readonly type: "medialane_marketplace_erc1155::core::types::ConsiderationItem";
|
|
2653
|
+
}, {
|
|
2654
|
+
readonly name: "royalty_max_bps";
|
|
2655
|
+
readonly type: "core::felt252";
|
|
2678
2656
|
}, {
|
|
2679
2657
|
readonly name: "start_time";
|
|
2680
2658
|
readonly type: "core::integer::u64";
|
|
@@ -2683,23 +2661,20 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2683
2661
|
readonly type: "core::integer::u64";
|
|
2684
2662
|
}, {
|
|
2685
2663
|
readonly name: "order_status";
|
|
2686
|
-
readonly type: "
|
|
2687
|
-
}, {
|
|
2688
|
-
readonly name: "total_amount";
|
|
2689
|
-
readonly type: "core::felt252";
|
|
2664
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderStatus";
|
|
2690
2665
|
}, {
|
|
2691
2666
|
readonly name: "remaining_amount";
|
|
2692
2667
|
readonly type: "core::felt252";
|
|
2693
2668
|
}];
|
|
2694
2669
|
}, {
|
|
2695
2670
|
readonly type: "interface";
|
|
2696
|
-
readonly name: "
|
|
2671
|
+
readonly name: "medialane_marketplace_erc1155::core::interface::IMedialane1155";
|
|
2697
2672
|
readonly items: readonly [{
|
|
2698
2673
|
readonly type: "function";
|
|
2699
2674
|
readonly name: "register_order";
|
|
2700
2675
|
readonly inputs: readonly [{
|
|
2701
2676
|
readonly name: "order";
|
|
2702
|
-
readonly type: "
|
|
2677
|
+
readonly type: "medialane_marketplace_erc1155::core::types::Order";
|
|
2703
2678
|
}];
|
|
2704
2679
|
readonly outputs: readonly [];
|
|
2705
2680
|
readonly state_mutability: "external";
|
|
@@ -2707,8 +2682,11 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2707
2682
|
readonly type: "function";
|
|
2708
2683
|
readonly name: "fulfill_order";
|
|
2709
2684
|
readonly inputs: readonly [{
|
|
2710
|
-
readonly name: "
|
|
2711
|
-
readonly type: "
|
|
2685
|
+
readonly name: "order_hash";
|
|
2686
|
+
readonly type: "core::felt252";
|
|
2687
|
+
}, {
|
|
2688
|
+
readonly name: "quantity";
|
|
2689
|
+
readonly type: "core::felt252";
|
|
2712
2690
|
}];
|
|
2713
2691
|
readonly outputs: readonly [];
|
|
2714
2692
|
readonly state_mutability: "external";
|
|
@@ -2717,10 +2695,16 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2717
2695
|
readonly name: "cancel_order";
|
|
2718
2696
|
readonly inputs: readonly [{
|
|
2719
2697
|
readonly name: "cancel_request";
|
|
2720
|
-
readonly type: "
|
|
2698
|
+
readonly type: "medialane_marketplace_erc1155::core::types::CancelRequest";
|
|
2721
2699
|
}];
|
|
2722
2700
|
readonly outputs: readonly [];
|
|
2723
2701
|
readonly state_mutability: "external";
|
|
2702
|
+
}, {
|
|
2703
|
+
readonly type: "function";
|
|
2704
|
+
readonly name: "increment_counter";
|
|
2705
|
+
readonly inputs: readonly [];
|
|
2706
|
+
readonly outputs: readonly [];
|
|
2707
|
+
readonly state_mutability: "external";
|
|
2724
2708
|
}, {
|
|
2725
2709
|
readonly type: "function";
|
|
2726
2710
|
readonly name: "get_order_details";
|
|
@@ -2729,7 +2713,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2729
2713
|
readonly type: "core::felt252";
|
|
2730
2714
|
}];
|
|
2731
2715
|
readonly outputs: readonly [{
|
|
2732
|
-
readonly type: "
|
|
2716
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderDetails";
|
|
2733
2717
|
}];
|
|
2734
2718
|
readonly state_mutability: "view";
|
|
2735
2719
|
}, {
|
|
@@ -2737,7 +2721,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2737
2721
|
readonly name: "get_order_hash";
|
|
2738
2722
|
readonly inputs: readonly [{
|
|
2739
2723
|
readonly name: "parameters";
|
|
2740
|
-
readonly type: "
|
|
2724
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderParameters";
|
|
2741
2725
|
}, {
|
|
2742
2726
|
readonly name: "signer";
|
|
2743
2727
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -2748,31 +2732,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2748
2732
|
readonly state_mutability: "view";
|
|
2749
2733
|
}, {
|
|
2750
2734
|
readonly type: "function";
|
|
2751
|
-
readonly name: "
|
|
2752
|
-
readonly inputs: readonly [
|
|
2753
|
-
|
|
2735
|
+
readonly name: "get_cancellation_hash";
|
|
2736
|
+
readonly inputs: readonly [{
|
|
2737
|
+
readonly name: "cancellation";
|
|
2738
|
+
readonly type: "medialane_marketplace_erc1155::core::types::OrderCancellation";
|
|
2739
|
+
}, {
|
|
2740
|
+
readonly name: "signer";
|
|
2754
2741
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2755
2742
|
}];
|
|
2743
|
+
readonly outputs: readonly [{
|
|
2744
|
+
readonly type: "core::felt252";
|
|
2745
|
+
}];
|
|
2756
2746
|
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 [{
|
|
2747
|
+
}, {
|
|
2766
2748
|
readonly type: "function";
|
|
2767
|
-
readonly name: "
|
|
2749
|
+
readonly name: "get_counter";
|
|
2768
2750
|
readonly inputs: readonly [{
|
|
2769
|
-
readonly name: "
|
|
2751
|
+
readonly name: "offerer";
|
|
2770
2752
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2771
2753
|
}];
|
|
2772
2754
|
readonly outputs: readonly [{
|
|
2773
2755
|
readonly type: "core::felt252";
|
|
2774
2756
|
}];
|
|
2775
2757
|
readonly state_mutability: "view";
|
|
2758
|
+
}, {
|
|
2759
|
+
readonly type: "function";
|
|
2760
|
+
readonly name: "get_native_token_address";
|
|
2761
|
+
readonly inputs: readonly [];
|
|
2762
|
+
readonly outputs: readonly [{
|
|
2763
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2764
|
+
}];
|
|
2765
|
+
readonly state_mutability: "view";
|
|
2776
2766
|
}];
|
|
2777
2767
|
}, {
|
|
2778
2768
|
readonly type: "constructor";
|
|
@@ -2783,7 +2773,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2783
2773
|
}];
|
|
2784
2774
|
}, {
|
|
2785
2775
|
readonly type: "event";
|
|
2786
|
-
readonly name: "
|
|
2776
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2787
2777
|
readonly kind: "struct";
|
|
2788
2778
|
readonly members: readonly [{
|
|
2789
2779
|
readonly name: "order_hash";
|
|
@@ -2806,7 +2796,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2806
2796
|
}];
|
|
2807
2797
|
}, {
|
|
2808
2798
|
readonly type: "event";
|
|
2809
|
-
readonly name: "
|
|
2799
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2810
2800
|
readonly kind: "struct";
|
|
2811
2801
|
readonly members: readonly [{
|
|
2812
2802
|
readonly name: "order_hash";
|
|
@@ -2843,7 +2833,7 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2843
2833
|
}];
|
|
2844
2834
|
}, {
|
|
2845
2835
|
readonly type: "event";
|
|
2846
|
-
readonly name: "
|
|
2836
|
+
readonly name: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2847
2837
|
readonly kind: "struct";
|
|
2848
2838
|
readonly members: readonly [{
|
|
2849
2839
|
readonly name: "order_hash";
|
|
@@ -2856,29 +2846,37 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2856
2846
|
}];
|
|
2857
2847
|
}, {
|
|
2858
2848
|
readonly type: "event";
|
|
2859
|
-
readonly name: "
|
|
2860
|
-
readonly kind: "
|
|
2861
|
-
readonly
|
|
2849
|
+
readonly name: "medialane_marketplace_erc1155::core::events::CounterIncremented";
|
|
2850
|
+
readonly kind: "struct";
|
|
2851
|
+
readonly members: readonly [{
|
|
2852
|
+
readonly name: "offerer";
|
|
2853
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
2854
|
+
readonly kind: "key";
|
|
2855
|
+
}, {
|
|
2856
|
+
readonly name: "new_counter";
|
|
2857
|
+
readonly type: "core::felt252";
|
|
2858
|
+
readonly kind: "data";
|
|
2859
|
+
}];
|
|
2862
2860
|
}, {
|
|
2863
2861
|
readonly type: "event";
|
|
2864
|
-
readonly name: "
|
|
2862
|
+
readonly name: "medialane_marketplace_erc1155::core::medialane::Medialane1155::Event";
|
|
2865
2863
|
readonly kind: "enum";
|
|
2866
2864
|
readonly variants: readonly [{
|
|
2867
2865
|
readonly name: "OrderCreated";
|
|
2868
|
-
readonly type: "
|
|
2866
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCreated";
|
|
2869
2867
|
readonly kind: "nested";
|
|
2870
2868
|
}, {
|
|
2871
2869
|
readonly name: "OrderFulfilled";
|
|
2872
|
-
readonly type: "
|
|
2870
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderFulfilled";
|
|
2873
2871
|
readonly kind: "nested";
|
|
2874
2872
|
}, {
|
|
2875
2873
|
readonly name: "OrderCancelled";
|
|
2876
|
-
readonly type: "
|
|
2874
|
+
readonly type: "medialane_marketplace_erc1155::core::events::OrderCancelled";
|
|
2877
2875
|
readonly kind: "nested";
|
|
2878
2876
|
}, {
|
|
2879
|
-
readonly name: "
|
|
2880
|
-
readonly type: "
|
|
2881
|
-
readonly kind: "
|
|
2877
|
+
readonly name: "CounterIncremented";
|
|
2878
|
+
readonly type: "medialane_marketplace_erc1155::core::events::CounterIncremented";
|
|
2879
|
+
readonly kind: "nested";
|
|
2882
2880
|
}];
|
|
2883
2881
|
}];
|
|
2884
2882
|
|
|
@@ -5197,9 +5195,9 @@ declare const SERVICES: {
|
|
|
5197
5195
|
readonly standard: "ERC721";
|
|
5198
5196
|
readonly provenance: "MEDIALANE";
|
|
5199
5197
|
readonly onchain: {
|
|
5200
|
-
readonly factoryAddress: "
|
|
5201
|
-
readonly classHash: "
|
|
5202
|
-
readonly startBlock:
|
|
5198
|
+
readonly factoryAddress: "0x069cf5391077e3ebdd9cb6aebf90ed530d29f0d6aa34a43f5afae938c0fb565e";
|
|
5199
|
+
readonly classHash: "0x04c6f952d747ad7ead1b3dad4c1d587837d38f8ec29d6c095a4afa5b5ece5957";
|
|
5200
|
+
readonly startBlock: 10350340;
|
|
5203
5201
|
};
|
|
5204
5202
|
readonly uiVariant: "standard";
|
|
5205
5203
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5221,9 +5219,9 @@ declare const SERVICES: {
|
|
|
5221
5219
|
readonly standard: "ERC1155";
|
|
5222
5220
|
readonly provenance: "MEDIALANE";
|
|
5223
5221
|
readonly onchain: {
|
|
5224
|
-
readonly factoryAddress: "
|
|
5225
|
-
readonly classHash: "
|
|
5226
|
-
readonly startBlock:
|
|
5222
|
+
readonly factoryAddress: "0x040cd7b3e73bb3c892166e34bdc01d1797f97ecbc356c23f1cf38033cacf0077";
|
|
5223
|
+
readonly classHash: "0x02600bb720908f119afe482309d36c39d087587f0df9576454acfb6363e78cd8";
|
|
5224
|
+
readonly startBlock: 10350855;
|
|
5227
5225
|
};
|
|
5228
5226
|
readonly uiVariant: "edition";
|
|
5229
5227
|
readonly capabilities: ["list", "buy", "make_offer", "cancel"];
|
|
@@ -5357,15 +5355,8 @@ declare function encodeByteArray(str: string): string[];
|
|
|
5357
5355
|
*/
|
|
5358
5356
|
declare function buildOrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5359
5357
|
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
5358
|
/** OrderCancellation typed data — identical shape across both standards. */
|
|
5368
5359
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5369
5360
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
5370
5361
|
|
|
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,
|
|
5362
|
+
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 IntentCall, 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 };
|