@medialane/sdk 0.8.0 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,12 +1,33 @@
1
1
  import { z } from 'zod';
2
2
  import { AccountInterface, constants, TypedData } from 'starknet';
3
3
 
4
- declare const MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
5
- /** Medialane1155 dedicated ERC-1155 marketplace. Deployed 2026-04-15. */
6
- declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x03aab04e806542cd88bfd0c5bb2a37334fd742d477a2e0f97af09aa4a36137ca";
4
+ /** Medialane Protocol ERC-721 marketplace — immutable, no admin key. */
5
+ declare const MARKETPLACE_721_CONTRACT_MAINNET = "0x00f8ccaae0bc811c79605974cc1dab769b9cea8877f033f8e3c17f30457caba6";
6
+ /** @deprecated Use MARKETPLACE_721_CONTRACT_MAINNET. */
7
+ declare const MARKETPLACE_CONTRACT_MAINNET = "0x00f8ccaae0bc811c79605974cc1dab769b9cea8877f033f8e3c17f30457caba6";
8
+ /** Class hash of the Medialane Protocol ERC-721 marketplace implementation. */
9
+ declare const MARKETPLACE_721_CLASS_HASH_MAINNET = "0x03dff4f34b976207246207954263be9a28b51390321702443291088dcdf4b2e6";
10
+ /** @deprecated Use MARKETPLACE_721_CLASS_HASH_MAINNET. */
11
+ declare const MARKETPLACE_CLASS_HASH_MAINNET = "0x03dff4f34b976207246207954263be9a28b51390321702443291088dcdf4b2e6";
12
+ /** First mainnet block for the current Medialane Protocol ERC-721 deployment. */
13
+ declare const MARKETPLACE_721_START_BLOCK_MAINNET = 9196722;
14
+ /** @deprecated Use MARKETPLACE_721_START_BLOCK_MAINNET. */
15
+ declare const MARKETPLACE_START_BLOCK_MAINNET = 9196722;
16
+ /** Medialane Protocol ERC-1155 marketplace — immutable, no admin key. */
17
+ declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x02bfa521c25461a09d735889b469418608d7d92f8b26e3d37ef174a4c2e22f99";
18
+ /** Class hash of the Medialane Protocol ERC-1155 marketplace implementation. */
19
+ declare const MARKETPLACE_1155_CLASS_HASH_MAINNET = "0x01b674aad934be85abc7c1970265cbf7e9bc7d586a90f0a67112c201636dbdd3";
20
+ /** First mainnet block for the current Medialane Protocol ERC-1155 deployment. */
21
+ declare const MARKETPLACE_1155_START_BLOCK_MAINNET = 9260304;
22
+ declare const COLLECTION_721_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
23
+ /** @deprecated Use COLLECTION_721_CONTRACT_MAINNET. */
7
24
  declare const COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
8
25
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
9
26
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
27
+ /** NFTComments on-chain comment system — immutable, no admin key. */
28
+ declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x024f97eb5abe659fb650bf162b5fc16501f8f3863a7369901ce6099462e62799";
29
+ /** Earliest block required to index the current mainnet protocol deployments. */
30
+ declare const INDEXER_START_BLOCK_MAINNET = 9196722;
10
31
  declare const SUPPORTED_TOKENS: readonly [{
11
32
  readonly symbol: "USDC";
12
33
  readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
@@ -40,8 +61,12 @@ declare const DEFAULT_RPC_URL = "https://rpc.starknet.lava.build";
40
61
  declare const POP_COLLECTION_CLASS_HASH_MAINNET = "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
41
62
  declare const DROP_COLLECTION_CLASS_HASH_MAINNET = "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
42
63
  /** IP-Programmable-ERC1155-Collections factory. Redeployed 2026-04-16 (v2 — adds base_uri). */
64
+ declare const COLLECTION_1155_CONTRACT_MAINNET = "0x006b2dc7ca7c4f466bb4575ba043d934310f052074f849caf853a86bcb819fd6";
65
+ /** @deprecated Use COLLECTION_1155_CONTRACT_MAINNET. */
43
66
  declare const ERC1155_FACTORY_CONTRACT_MAINNET = "0x006b2dc7ca7c4f466bb4575ba043d934310f052074f849caf853a86bcb819fd6";
44
67
  /** Class hash of the IPCollection ERC-1155 implementation. Redeployed 2026-04-16 (v2). */
68
+ declare const COLLECTION_1155_CLASS_HASH_MAINNET = "0x39a85126c6627db263617e5bce2bb72e49d2bb1f20961efc8b8954665bcfd25";
69
+ /** @deprecated Use COLLECTION_1155_CLASS_HASH_MAINNET. */
45
70
  declare const ERC1155_COLLECTION_CLASS_HASH_MAINNET = "0x39a85126c6627db263617e5bce2bb72e49d2bb1f20961efc8b8954665bcfd25";
46
71
 
47
72
  interface RetryOptions {
@@ -55,9 +80,12 @@ declare const MedialaneConfigSchema: z.ZodObject<{
55
80
  rpcUrl: z.ZodOptional<z.ZodString>;
56
81
  backendUrl: z.ZodOptional<z.ZodString>;
57
82
  apiKey: z.ZodOptional<z.ZodString>;
83
+ marketplace721Contract: z.ZodOptional<z.ZodString>;
58
84
  marketplaceContract: z.ZodOptional<z.ZodString>;
59
85
  marketplace1155Contract: z.ZodOptional<z.ZodString>;
86
+ collection721Contract: z.ZodOptional<z.ZodString>;
60
87
  collectionContract: z.ZodOptional<z.ZodString>;
88
+ collection1155Contract: z.ZodOptional<z.ZodString>;
61
89
  retryOptions: z.ZodOptional<z.ZodObject<{
62
90
  maxAttempts: z.ZodOptional<z.ZodNumber>;
63
91
  baseDelayMs: z.ZodOptional<z.ZodNumber>;
@@ -76,9 +104,12 @@ declare const MedialaneConfigSchema: z.ZodObject<{
76
104
  rpcUrl?: string | undefined;
77
105
  backendUrl?: string | undefined;
78
106
  apiKey?: string | undefined;
107
+ marketplace721Contract?: string | undefined;
79
108
  marketplaceContract?: string | undefined;
80
109
  marketplace1155Contract?: string | undefined;
110
+ collection721Contract?: string | undefined;
81
111
  collectionContract?: string | undefined;
112
+ collection1155Contract?: string | undefined;
82
113
  retryOptions?: {
83
114
  maxAttempts?: number | undefined;
84
115
  baseDelayMs?: number | undefined;
@@ -89,9 +120,12 @@ declare const MedialaneConfigSchema: z.ZodObject<{
89
120
  rpcUrl?: string | undefined;
90
121
  backendUrl?: string | undefined;
91
122
  apiKey?: string | undefined;
123
+ marketplace721Contract?: string | undefined;
92
124
  marketplaceContract?: string | undefined;
93
125
  marketplace1155Contract?: string | undefined;
126
+ collection721Contract?: string | undefined;
94
127
  collectionContract?: string | undefined;
128
+ collection1155Contract?: string | undefined;
95
129
  retryOptions?: {
96
130
  maxAttempts?: number | undefined;
97
131
  baseDelayMs?: number | undefined;
@@ -104,9 +138,12 @@ interface ResolvedConfig {
104
138
  rpcUrl: string;
105
139
  backendUrl: string | undefined;
106
140
  apiKey: string | undefined;
141
+ marketplace721Contract: string;
107
142
  marketplaceContract: string;
108
143
  marketplace1155Contract: string;
144
+ collection721Contract: string;
109
145
  collectionContract: string;
146
+ collection1155Contract: string;
110
147
  retryOptions?: RetryOptions;
111
148
  }
112
149
  declare function resolveConfig(raw: MedialaneConfig): ResolvedConfig;
@@ -570,6 +607,10 @@ interface MakeOfferIntentParams {
570
607
  price: string;
571
608
  endTime: number;
572
609
  salt?: string;
610
+ /** Caller hint — "ERC1155" creates the bid on the ERC-1155 marketplace. */
611
+ tokenStandard?: string;
612
+ /** ERC-1155 only: number of editions requested. Defaults to 1. */
613
+ quantity?: string;
573
614
  }
574
615
  interface FulfillOrderIntentParams {
575
616
  fulfiller: string;
@@ -2101,46 +2142,61 @@ declare const CollectionRegistryABI: readonly [{
2101
2142
  }];
2102
2143
  declare const Medialane1155ABI: readonly [{
2103
2144
  readonly type: "impl";
2104
- readonly name: "UpgradeableImpl";
2105
- readonly interface_name: "openzeppelin_upgrades::interface::IUpgradeable";
2145
+ readonly name: "Medialane1155V2Impl";
2146
+ readonly interface_name: "medialane_erc1155::core::interface::IMedialane1155V2";
2106
2147
  }, {
2107
- readonly type: "interface";
2108
- readonly name: "openzeppelin_upgrades::interface::IUpgradeable";
2109
- readonly items: readonly [{
2110
- readonly type: "function";
2111
- readonly name: "upgrade";
2112
- readonly inputs: readonly [{
2113
- readonly name: "new_class_hash";
2114
- readonly type: "core::starknet::class_hash::ClassHash";
2115
- }];
2116
- readonly outputs: readonly [];
2117
- readonly state_mutability: "external";
2148
+ readonly type: "struct";
2149
+ readonly name: "medialane_erc1155::core::types::OfferItem";
2150
+ readonly members: readonly [{
2151
+ readonly name: "item_type";
2152
+ readonly type: "core::felt252";
2153
+ }, {
2154
+ readonly name: "token";
2155
+ readonly type: "core::starknet::contract_address::ContractAddress";
2156
+ }, {
2157
+ readonly name: "identifier_or_criteria";
2158
+ readonly type: "core::felt252";
2159
+ }, {
2160
+ readonly name: "start_amount";
2161
+ readonly type: "core::felt252";
2162
+ }, {
2163
+ readonly name: "end_amount";
2164
+ readonly type: "core::felt252";
2118
2165
  }];
2119
- }, {
2120
- readonly type: "impl";
2121
- readonly name: "Medialane1155Impl";
2122
- readonly interface_name: "medialane_erc1155::core::interface::IMedialane1155";
2123
2166
  }, {
2124
2167
  readonly type: "struct";
2125
- readonly name: "medialane_erc1155::core::types::OrderParameters";
2168
+ readonly name: "medialane_erc1155::core::types::ConsiderationItem";
2126
2169
  readonly members: readonly [{
2127
- readonly name: "offerer";
2128
- readonly type: "core::starknet::contract_address::ContractAddress";
2170
+ readonly name: "item_type";
2171
+ readonly type: "core::felt252";
2129
2172
  }, {
2130
- readonly name: "nft_contract";
2173
+ readonly name: "token";
2131
2174
  readonly type: "core::starknet::contract_address::ContractAddress";
2132
2175
  }, {
2133
- readonly name: "token_id";
2176
+ readonly name: "identifier_or_criteria";
2177
+ readonly type: "core::felt252";
2178
+ }, {
2179
+ readonly name: "start_amount";
2134
2180
  readonly type: "core::felt252";
2135
2181
  }, {
2136
- readonly name: "amount";
2182
+ readonly name: "end_amount";
2137
2183
  readonly type: "core::felt252";
2138
2184
  }, {
2139
- readonly name: "payment_token";
2185
+ readonly name: "recipient";
2186
+ readonly type: "core::starknet::contract_address::ContractAddress";
2187
+ }];
2188
+ }, {
2189
+ readonly type: "struct";
2190
+ readonly name: "medialane_erc1155::core::types::OrderParameters";
2191
+ readonly members: readonly [{
2192
+ readonly name: "offerer";
2140
2193
  readonly type: "core::starknet::contract_address::ContractAddress";
2141
2194
  }, {
2142
- readonly name: "price_per_unit";
2143
- readonly type: "core::felt252";
2195
+ readonly name: "offer";
2196
+ readonly type: "medialane_erc1155::core::types::OfferItem";
2197
+ }, {
2198
+ readonly name: "consideration";
2199
+ readonly type: "medialane_erc1155::core::types::ConsiderationItem";
2144
2200
  }, {
2145
2201
  readonly name: "start_time";
2146
2202
  readonly type: "core::felt252";
@@ -2173,6 +2229,9 @@ declare const Medialane1155ABI: readonly [{
2173
2229
  }, {
2174
2230
  readonly name: "fulfiller";
2175
2231
  readonly type: "core::starknet::contract_address::ContractAddress";
2232
+ }, {
2233
+ readonly name: "quantity";
2234
+ readonly type: "core::felt252";
2176
2235
  }, {
2177
2236
  readonly name: "nonce";
2178
2237
  readonly type: "core::felt252";
@@ -2226,16 +2285,6 @@ declare const Medialane1155ABI: readonly [{
2226
2285
  readonly name: "Cancelled";
2227
2286
  readonly type: "()";
2228
2287
  }];
2229
- }, {
2230
- readonly type: "enum";
2231
- readonly name: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
2232
- readonly variants: readonly [{
2233
- readonly name: "Some";
2234
- readonly type: "core::starknet::contract_address::ContractAddress";
2235
- }, {
2236
- readonly name: "None";
2237
- readonly type: "()";
2238
- }];
2239
2288
  }, {
2240
2289
  readonly type: "struct";
2241
2290
  readonly name: "medialane_erc1155::core::types::OrderDetails";
@@ -2243,20 +2292,11 @@ declare const Medialane1155ABI: readonly [{
2243
2292
  readonly name: "offerer";
2244
2293
  readonly type: "core::starknet::contract_address::ContractAddress";
2245
2294
  }, {
2246
- readonly name: "nft_contract";
2247
- readonly type: "core::starknet::contract_address::ContractAddress";
2248
- }, {
2249
- readonly name: "token_id";
2250
- readonly type: "core::felt252";
2251
- }, {
2252
- readonly name: "amount";
2253
- readonly type: "core::felt252";
2254
- }, {
2255
- readonly name: "payment_token";
2256
- readonly type: "core::starknet::contract_address::ContractAddress";
2295
+ readonly name: "offer";
2296
+ readonly type: "medialane_erc1155::core::types::OfferItem";
2257
2297
  }, {
2258
- readonly name: "price_per_unit";
2259
- readonly type: "core::felt252";
2298
+ readonly name: "consideration";
2299
+ readonly type: "medialane_erc1155::core::types::ConsiderationItem";
2260
2300
  }, {
2261
2301
  readonly name: "start_time";
2262
2302
  readonly type: "core::integer::u64";
@@ -2267,12 +2307,15 @@ declare const Medialane1155ABI: readonly [{
2267
2307
  readonly name: "order_status";
2268
2308
  readonly type: "medialane_erc1155::core::types::OrderStatus";
2269
2309
  }, {
2270
- readonly name: "fulfiller";
2271
- readonly type: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
2310
+ readonly name: "total_amount";
2311
+ readonly type: "core::felt252";
2312
+ }, {
2313
+ readonly name: "remaining_amount";
2314
+ readonly type: "core::felt252";
2272
2315
  }];
2273
2316
  }, {
2274
2317
  readonly type: "interface";
2275
- readonly name: "medialane_erc1155::core::interface::IMedialane1155";
2318
+ readonly name: "medialane_erc1155::core::interface::IMedialane1155V2";
2276
2319
  readonly items: readonly [{
2277
2320
  readonly type: "function";
2278
2321
  readonly name: "register_order";
@@ -2327,7 +2370,7 @@ declare const Medialane1155ABI: readonly [{
2327
2370
  readonly state_mutability: "view";
2328
2371
  }, {
2329
2372
  readonly type: "function";
2330
- readonly name: "get_native_token";
2373
+ readonly name: "get_native_token_address";
2331
2374
  readonly inputs: readonly [];
2332
2375
  readonly outputs: readonly [{
2333
2376
  readonly type: "core::starknet::contract_address::ContractAddress";
@@ -2353,111 +2396,10 @@ declare const Medialane1155ABI: readonly [{
2353
2396
  }];
2354
2397
  readonly state_mutability: "view";
2355
2398
  }];
2356
- }, {
2357
- readonly type: "impl";
2358
- readonly name: "SRC5Impl";
2359
- readonly interface_name: "openzeppelin_introspection::interface::ISRC5";
2360
- }, {
2361
- readonly type: "enum";
2362
- readonly name: "core::bool";
2363
- readonly variants: readonly [{
2364
- readonly name: "False";
2365
- readonly type: "()";
2366
- }, {
2367
- readonly name: "True";
2368
- readonly type: "()";
2369
- }];
2370
- }, {
2371
- readonly type: "interface";
2372
- readonly name: "openzeppelin_introspection::interface::ISRC5";
2373
- readonly items: readonly [{
2374
- readonly type: "function";
2375
- readonly name: "supports_interface";
2376
- readonly inputs: readonly [{
2377
- readonly name: "interface_id";
2378
- readonly type: "core::felt252";
2379
- }];
2380
- readonly outputs: readonly [{
2381
- readonly type: "core::bool";
2382
- }];
2383
- readonly state_mutability: "view";
2384
- }];
2385
- }, {
2386
- readonly type: "impl";
2387
- readonly name: "AccessControlImpl";
2388
- readonly interface_name: "openzeppelin_access::accesscontrol::interface::IAccessControl";
2389
- }, {
2390
- readonly type: "interface";
2391
- readonly name: "openzeppelin_access::accesscontrol::interface::IAccessControl";
2392
- readonly items: readonly [{
2393
- readonly type: "function";
2394
- readonly name: "has_role";
2395
- readonly inputs: readonly [{
2396
- readonly name: "role";
2397
- readonly type: "core::felt252";
2398
- }, {
2399
- readonly name: "account";
2400
- readonly type: "core::starknet::contract_address::ContractAddress";
2401
- }];
2402
- readonly outputs: readonly [{
2403
- readonly type: "core::bool";
2404
- }];
2405
- readonly state_mutability: "view";
2406
- }, {
2407
- readonly type: "function";
2408
- readonly name: "get_role_admin";
2409
- readonly inputs: readonly [{
2410
- readonly name: "role";
2411
- readonly type: "core::felt252";
2412
- }];
2413
- readonly outputs: readonly [{
2414
- readonly type: "core::felt252";
2415
- }];
2416
- readonly state_mutability: "view";
2417
- }, {
2418
- readonly type: "function";
2419
- readonly name: "grant_role";
2420
- readonly inputs: readonly [{
2421
- readonly name: "role";
2422
- readonly type: "core::felt252";
2423
- }, {
2424
- readonly name: "account";
2425
- readonly type: "core::starknet::contract_address::ContractAddress";
2426
- }];
2427
- readonly outputs: readonly [];
2428
- readonly state_mutability: "external";
2429
- }, {
2430
- readonly type: "function";
2431
- readonly name: "revoke_role";
2432
- readonly inputs: readonly [{
2433
- readonly name: "role";
2434
- readonly type: "core::felt252";
2435
- }, {
2436
- readonly name: "account";
2437
- readonly type: "core::starknet::contract_address::ContractAddress";
2438
- }];
2439
- readonly outputs: readonly [];
2440
- readonly state_mutability: "external";
2441
- }, {
2442
- readonly type: "function";
2443
- readonly name: "renounce_role";
2444
- readonly inputs: readonly [{
2445
- readonly name: "role";
2446
- readonly type: "core::felt252";
2447
- }, {
2448
- readonly name: "account";
2449
- readonly type: "core::starknet::contract_address::ContractAddress";
2450
- }];
2451
- readonly outputs: readonly [];
2452
- readonly state_mutability: "external";
2453
- }];
2454
2399
  }, {
2455
2400
  readonly type: "constructor";
2456
2401
  readonly name: "constructor";
2457
2402
  readonly inputs: readonly [{
2458
- readonly name: "manager";
2459
- readonly type: "core::starknet::contract_address::ContractAddress";
2460
- }, {
2461
2403
  readonly name: "native_token_address";
2462
2404
  readonly type: "core::starknet::contract_address::ContractAddress";
2463
2405
  }];
@@ -2473,26 +2415,6 @@ declare const Medialane1155ABI: readonly [{
2473
2415
  readonly name: "offerer";
2474
2416
  readonly type: "core::starknet::contract_address::ContractAddress";
2475
2417
  readonly kind: "key";
2476
- }, {
2477
- readonly name: "nft_contract";
2478
- readonly type: "core::starknet::contract_address::ContractAddress";
2479
- readonly kind: "data";
2480
- }, {
2481
- readonly name: "token_id";
2482
- readonly type: "core::felt252";
2483
- readonly kind: "data";
2484
- }, {
2485
- readonly name: "amount";
2486
- readonly type: "core::felt252";
2487
- readonly kind: "data";
2488
- }, {
2489
- readonly name: "price_per_unit";
2490
- readonly type: "core::felt252";
2491
- readonly kind: "data";
2492
- }, {
2493
- readonly name: "payment_token";
2494
- readonly type: "core::starknet::contract_address::ContractAddress";
2495
- readonly kind: "data";
2496
2418
  }];
2497
2419
  }, {
2498
2420
  readonly type: "struct";
@@ -2520,6 +2442,18 @@ declare const Medialane1155ABI: readonly [{
2520
2442
  readonly name: "fulfiller";
2521
2443
  readonly type: "core::starknet::contract_address::ContractAddress";
2522
2444
  readonly kind: "key";
2445
+ }, {
2446
+ readonly name: "quantity";
2447
+ readonly type: "core::felt252";
2448
+ readonly kind: "data";
2449
+ }, {
2450
+ readonly name: "remaining_amount";
2451
+ readonly type: "core::felt252";
2452
+ readonly kind: "data";
2453
+ }, {
2454
+ readonly name: "sale_amount";
2455
+ readonly type: "core::integer::u256";
2456
+ readonly kind: "data";
2523
2457
  }, {
2524
2458
  readonly name: "royalty_receiver";
2525
2459
  readonly type: "core::starknet::contract_address::ContractAddress";
@@ -2549,123 +2483,7 @@ declare const Medialane1155ABI: readonly [{
2549
2483
  readonly variants: readonly [];
2550
2484
  }, {
2551
2485
  readonly type: "event";
2552
- readonly name: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded";
2553
- readonly kind: "struct";
2554
- readonly members: readonly [{
2555
- readonly name: "class_hash";
2556
- readonly type: "core::starknet::class_hash::ClassHash";
2557
- readonly kind: "data";
2558
- }];
2559
- }, {
2560
- readonly type: "event";
2561
- readonly name: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event";
2562
- readonly kind: "enum";
2563
- readonly variants: readonly [{
2564
- readonly name: "Upgraded";
2565
- readonly type: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded";
2566
- readonly kind: "nested";
2567
- }];
2568
- }, {
2569
- readonly type: "event";
2570
- readonly name: "openzeppelin_introspection::src5::SRC5Component::Event";
2571
- readonly kind: "enum";
2572
- readonly variants: readonly [];
2573
- }, {
2574
- readonly type: "event";
2575
- readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted";
2576
- readonly kind: "struct";
2577
- readonly members: readonly [{
2578
- readonly name: "role";
2579
- readonly type: "core::felt252";
2580
- readonly kind: "data";
2581
- }, {
2582
- readonly name: "account";
2583
- readonly type: "core::starknet::contract_address::ContractAddress";
2584
- readonly kind: "data";
2585
- }, {
2586
- readonly name: "sender";
2587
- readonly type: "core::starknet::contract_address::ContractAddress";
2588
- readonly kind: "data";
2589
- }];
2590
- }, {
2591
- readonly type: "event";
2592
- readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay";
2593
- readonly kind: "struct";
2594
- readonly members: readonly [{
2595
- readonly name: "role";
2596
- readonly type: "core::felt252";
2597
- readonly kind: "data";
2598
- }, {
2599
- readonly name: "account";
2600
- readonly type: "core::starknet::contract_address::ContractAddress";
2601
- readonly kind: "data";
2602
- }, {
2603
- readonly name: "sender";
2604
- readonly type: "core::starknet::contract_address::ContractAddress";
2605
- readonly kind: "data";
2606
- }, {
2607
- readonly name: "delay";
2608
- readonly type: "core::integer::u64";
2609
- readonly kind: "data";
2610
- }];
2611
- }, {
2612
- readonly type: "event";
2613
- readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked";
2614
- readonly kind: "struct";
2615
- readonly members: readonly [{
2616
- readonly name: "role";
2617
- readonly type: "core::felt252";
2618
- readonly kind: "data";
2619
- }, {
2620
- readonly name: "account";
2621
- readonly type: "core::starknet::contract_address::ContractAddress";
2622
- readonly kind: "data";
2623
- }, {
2624
- readonly name: "sender";
2625
- readonly type: "core::starknet::contract_address::ContractAddress";
2626
- readonly kind: "data";
2627
- }];
2628
- }, {
2629
- readonly type: "event";
2630
- readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged";
2631
- readonly kind: "struct";
2632
- readonly members: readonly [{
2633
- readonly name: "role";
2634
- readonly type: "core::felt252";
2635
- readonly kind: "data";
2636
- }, {
2637
- readonly name: "previous_admin_role";
2638
- readonly type: "core::felt252";
2639
- readonly kind: "data";
2640
- }, {
2641
- readonly name: "new_admin_role";
2642
- readonly type: "core::felt252";
2643
- readonly kind: "data";
2644
- }];
2645
- }, {
2646
- readonly type: "event";
2647
- readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event";
2648
- readonly kind: "enum";
2649
- readonly variants: readonly [{
2650
- readonly name: "RoleGranted";
2651
- readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted";
2652
- readonly kind: "nested";
2653
- }, {
2654
- readonly name: "RoleGrantedWithDelay";
2655
- readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay";
2656
- readonly kind: "nested";
2657
- }, {
2658
- readonly name: "RoleRevoked";
2659
- readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked";
2660
- readonly kind: "nested";
2661
- }, {
2662
- readonly name: "RoleAdminChanged";
2663
- readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged";
2664
- readonly kind: "nested";
2665
- }];
2666
- }, {
2667
- readonly type: "event";
2668
- readonly name: "medialane_erc1155::core::medialane::Medialane1155::Event";
2486
+ readonly name: "medialane_erc1155::core::medialane::Medialane1155V2::Event";
2669
2487
  readonly kind: "enum";
2670
2488
  readonly variants: readonly [{
2671
2489
  readonly name: "OrderCreated";
@@ -2683,18 +2501,6 @@ declare const Medialane1155ABI: readonly [{
2683
2501
  readonly name: "NoncesEvent";
2684
2502
  readonly type: "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event";
2685
2503
  readonly kind: "flat";
2686
- }, {
2687
- readonly name: "UpgradeableEvent";
2688
- readonly type: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event";
2689
- readonly kind: "flat";
2690
- }, {
2691
- readonly name: "SRC5Event";
2692
- readonly type: "openzeppelin_introspection::src5::SRC5Component::Event";
2693
- readonly kind: "flat";
2694
- }, {
2695
- readonly name: "AccessControlEvent";
2696
- readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event";
2697
- readonly kind: "flat";
2698
2504
  }];
2699
2505
  }];
2700
2506
  declare const IPCollection1155FactoryABI: readonly [{
@@ -2989,7 +2795,7 @@ interface BatchMintItemParams {
2989
2795
  }
2990
2796
  declare class ERC1155CollectionService {
2991
2797
  private readonly factoryAddress;
2992
- constructor(_config: ResolvedConfig);
2798
+ constructor(config: ResolvedConfig);
2993
2799
  private _factory;
2994
2800
  private _collection;
2995
2801
  /**
@@ -3105,9 +2911,10 @@ declare function buildCancellationTypedData(message: Record<string, unknown>, ch
3105
2911
  /**
3106
2912
  * Build SNIP-12 typed data for signing an ERC-1155 OrderParameters struct.
3107
2913
  *
3108
- * Differs from the ERC-721 Medialane signing:
3109
- * - Domain name is "Medialane1155"
3110
- * - OrderParameters is flat (no nested OfferItem / ConsiderationItem structs)
2914
+ * Uses the ERC-1155 V2 marketplace shape:
2915
+ * - Domain name is "Medialane"
2916
+ * - Domain version is "2"
2917
+ * - OrderParameters contains nested OfferItem and ConsiderationItem structs
3111
2918
  */
3112
2919
  declare function build1155OrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
3113
2920
  /**
@@ -3119,4 +2926,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
3119
2926
  */
3120
2927
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
3121
2928
 
3122
- export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, 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 ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, 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, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, 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 RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
2929
+ export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, 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 ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, 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, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, 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, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, 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 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 RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };