@medialane/sdk 0.6.7 → 0.6.9

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
@@ -2,6 +2,8 @@ import { z } from 'zod';
2
2
  import { AccountInterface, constants, TypedData } from 'starknet';
3
3
 
4
4
  declare const MARKETPLACE_CONTRACT_MAINNET = "0x0234f4e8838801ebf01d7f4166d42aed9a55bc67c1301162decf9e2040e05f16";
5
+ /** Medialane1155 — dedicated ERC-1155 marketplace. Deployed 2026-04-15. */
6
+ declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x042005e9b85536072bfa260b95aa6aaef07f48e622031657384d2375195d7123";
5
7
  declare const COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
6
8
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
7
9
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
@@ -32,9 +34,9 @@ declare const SUPPORTED_TOKENS: readonly [{
32
34
  readonly listable: true;
33
35
  }];
34
36
  type SupportedTokenSymbol = (typeof SUPPORTED_TOKENS)[number]["symbol"];
35
- declare const SUPPORTED_NETWORKS: readonly ["mainnet", "sepolia"];
37
+ declare const SUPPORTED_NETWORKS: readonly ["mainnet"];
36
38
  type Network = (typeof SUPPORTED_NETWORKS)[number];
37
- declare const DEFAULT_RPC_URLS: Record<Network, string>;
39
+ declare const DEFAULT_RPC_URL = "https://rpc.starknet.lava.build";
38
40
  declare const POP_COLLECTION_CLASS_HASH_MAINNET = "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f";
39
41
  declare const DROP_COLLECTION_CLASS_HASH_MAINNET = "0x00092e72cdb63067521e803aaf7d4101c3e3ce026ae6bc045ec4228027e58282";
40
42
 
@@ -45,12 +47,12 @@ interface RetryOptions {
45
47
  }
46
48
 
47
49
  declare const MedialaneConfigSchema: z.ZodObject<{
48
- network: z.ZodDefault<z.ZodEnum<["mainnet", "sepolia"]>>;
50
+ network: z.ZodDefault<z.ZodEnum<["mainnet"]>>;
49
51
  rpcUrl: z.ZodOptional<z.ZodString>;
50
52
  backendUrl: z.ZodOptional<z.ZodString>;
51
- /** API key for authenticated /v1/* backend endpoints */
52
53
  apiKey: z.ZodOptional<z.ZodString>;
53
54
  marketplaceContract: z.ZodOptional<z.ZodString>;
55
+ marketplace1155Contract: z.ZodOptional<z.ZodString>;
54
56
  collectionContract: z.ZodOptional<z.ZodString>;
55
57
  retryOptions: z.ZodOptional<z.ZodObject<{
56
58
  maxAttempts: z.ZodOptional<z.ZodNumber>;
@@ -66,24 +68,26 @@ declare const MedialaneConfigSchema: z.ZodObject<{
66
68
  maxDelayMs?: number | undefined;
67
69
  }>>;
68
70
  }, "strip", z.ZodTypeAny, {
69
- network: "mainnet" | "sepolia";
70
- collectionContract?: string | undefined;
71
+ network: "mainnet";
71
72
  rpcUrl?: string | undefined;
72
73
  backendUrl?: string | undefined;
73
74
  apiKey?: string | undefined;
74
75
  marketplaceContract?: string | undefined;
76
+ marketplace1155Contract?: string | undefined;
77
+ collectionContract?: string | undefined;
75
78
  retryOptions?: {
76
79
  maxAttempts?: number | undefined;
77
80
  baseDelayMs?: number | undefined;
78
81
  maxDelayMs?: number | undefined;
79
82
  } | undefined;
80
83
  }, {
81
- collectionContract?: string | undefined;
82
- network?: "mainnet" | "sepolia" | undefined;
84
+ network?: "mainnet" | undefined;
83
85
  rpcUrl?: string | undefined;
84
86
  backendUrl?: string | undefined;
85
87
  apiKey?: string | undefined;
86
88
  marketplaceContract?: string | undefined;
89
+ marketplace1155Contract?: string | undefined;
90
+ collectionContract?: string | undefined;
87
91
  retryOptions?: {
88
92
  maxAttempts?: number | undefined;
89
93
  baseDelayMs?: number | undefined;
@@ -97,6 +101,7 @@ interface ResolvedConfig {
97
101
  backendUrl: string | undefined;
98
102
  apiKey: string | undefined;
99
103
  marketplaceContract: string;
104
+ marketplace1155Contract: string;
100
105
  collectionContract: string;
101
106
  retryOptions?: RetryOptions;
102
107
  }
@@ -183,6 +188,32 @@ interface CreateCollectionParams {
183
188
  interface TxResult {
184
189
  txHash: string;
185
190
  }
191
+ interface CreateListing1155Params {
192
+ /** ERC-1155 contract address */
193
+ nftContract: string;
194
+ /** Token type ID */
195
+ tokenId: string;
196
+ /** Number of tokens to sell */
197
+ amount: string;
198
+ /** Human-readable price per token (e.g. "1.5") */
199
+ pricePerUnit: string;
200
+ /** Currency symbol or token address. Defaults to "USDC". */
201
+ currency?: string;
202
+ /** How long the listing is valid, in seconds */
203
+ durationSeconds: number;
204
+ }
205
+ interface FulfillOrder1155Params {
206
+ /** On-chain order hash */
207
+ orderHash: string;
208
+ /** ERC-20 payment token address (from order details) */
209
+ paymentToken: string;
210
+ /** Total price in raw token units (pricePerUnit × amount, as string) */
211
+ totalPrice: string;
212
+ }
213
+ interface CancelOrder1155Params {
214
+ /** On-chain order hash */
215
+ orderHash: string;
216
+ }
186
217
 
187
218
  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";
188
219
 
@@ -207,6 +238,28 @@ declare class MarketplaceModule {
207
238
  buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
208
239
  }
209
240
 
241
+ declare class Medialane1155Module {
242
+ private readonly config;
243
+ constructor(config: ResolvedConfig);
244
+ /**
245
+ * Create an ERC-1155 sell listing.
246
+ * Optionally grants `set_approval_for_all` if not already approved.
247
+ */
248
+ createListing(account: AccountInterface, params: CreateListing1155Params): Promise<TxResult>;
249
+ /**
250
+ * Fulfill (buy) an ERC-1155 listing.
251
+ * Approves the payment token then calls `fulfill_order` atomically.
252
+ */
253
+ fulfillOrder(account: AccountInterface, params: FulfillOrder1155Params): Promise<TxResult>;
254
+ /**
255
+ * Cancel an ERC-1155 listing (offerer only).
256
+ */
257
+ cancelOrder(account: AccountInterface, params: CancelOrder1155Params): Promise<TxResult>;
258
+ buildListingTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
259
+ buildFulfillmentTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
260
+ buildCancellationTypedData(params: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
261
+ }
262
+
210
263
  type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
211
264
  type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
212
265
  type CollectionSource = "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
@@ -496,6 +549,8 @@ interface CreateListingIntentParams {
496
549
  price: string;
497
550
  endTime: number;
498
551
  salt?: string;
552
+ /** Number of units to list — required for ERC-1155, omit for ERC-721. */
553
+ amount?: string;
499
554
  }
500
555
  interface MakeOfferIntentParams {
501
556
  offerer: string;
@@ -1042,8 +1097,10 @@ declare class DropService {
1042
1097
  }
1043
1098
 
1044
1099
  declare class MedialaneClient {
1045
- /** On-chain marketplace interactions (create listing, fulfill order, etc.) */
1100
+ /** On-chain marketplace interactions for ERC-721 assets (create listing, fulfill order, etc.) */
1046
1101
  readonly marketplace: MarketplaceModule;
1102
+ /** On-chain marketplace interactions for ERC-1155 assets (Medialane1155 contract). */
1103
+ readonly marketplace1155: Medialane1155Module;
1047
1104
  /**
1048
1105
  * Off-chain API client — covers all /v1/* backend endpoints.
1049
1106
  * Requires `backendUrl` in config; pass `apiKey` for authenticated routes.
@@ -1055,7 +1112,7 @@ declare class MedialaneClient {
1055
1112
  };
1056
1113
  private readonly config;
1057
1114
  constructor(rawConfig?: MedialaneConfig);
1058
- get network(): "mainnet" | "sepolia";
1115
+ get network(): "mainnet";
1059
1116
  get rpcUrl(): string;
1060
1117
  get marketplaceContract(): string;
1061
1118
  }
@@ -2026,6 +2083,604 @@ declare const CollectionRegistryABI: readonly [{
2026
2083
  }];
2027
2084
  readonly state_mutability: "view";
2028
2085
  }];
2086
+ declare const Medialane1155ABI: readonly [{
2087
+ readonly type: "impl";
2088
+ readonly name: "UpgradeableImpl";
2089
+ readonly interface_name: "openzeppelin_upgrades::interface::IUpgradeable";
2090
+ }, {
2091
+ readonly type: "interface";
2092
+ readonly name: "openzeppelin_upgrades::interface::IUpgradeable";
2093
+ readonly items: readonly [{
2094
+ readonly type: "function";
2095
+ readonly name: "upgrade";
2096
+ readonly inputs: readonly [{
2097
+ readonly name: "new_class_hash";
2098
+ readonly type: "core::starknet::class_hash::ClassHash";
2099
+ }];
2100
+ readonly outputs: readonly [];
2101
+ readonly state_mutability: "external";
2102
+ }];
2103
+ }, {
2104
+ readonly type: "impl";
2105
+ readonly name: "Medialane1155Impl";
2106
+ readonly interface_name: "medialane_erc1155::core::interface::IMedialane1155";
2107
+ }, {
2108
+ readonly type: "struct";
2109
+ readonly name: "medialane_erc1155::core::types::OrderParameters";
2110
+ readonly members: readonly [{
2111
+ readonly name: "offerer";
2112
+ readonly type: "core::starknet::contract_address::ContractAddress";
2113
+ }, {
2114
+ readonly name: "nft_contract";
2115
+ readonly type: "core::starknet::contract_address::ContractAddress";
2116
+ }, {
2117
+ readonly name: "token_id";
2118
+ readonly type: "core::felt252";
2119
+ }, {
2120
+ readonly name: "amount";
2121
+ readonly type: "core::felt252";
2122
+ }, {
2123
+ readonly name: "payment_token";
2124
+ readonly type: "core::starknet::contract_address::ContractAddress";
2125
+ }, {
2126
+ readonly name: "price_per_unit";
2127
+ readonly type: "core::felt252";
2128
+ }, {
2129
+ readonly name: "start_time";
2130
+ readonly type: "core::felt252";
2131
+ }, {
2132
+ readonly name: "end_time";
2133
+ readonly type: "core::felt252";
2134
+ }, {
2135
+ readonly name: "salt";
2136
+ readonly type: "core::felt252";
2137
+ }, {
2138
+ readonly name: "nonce";
2139
+ readonly type: "core::felt252";
2140
+ }];
2141
+ }, {
2142
+ readonly type: "struct";
2143
+ readonly name: "medialane_erc1155::core::types::Order";
2144
+ readonly members: readonly [{
2145
+ readonly name: "parameters";
2146
+ readonly type: "medialane_erc1155::core::types::OrderParameters";
2147
+ }, {
2148
+ readonly name: "signature";
2149
+ readonly type: "core::array::Array::<core::felt252>";
2150
+ }];
2151
+ }, {
2152
+ readonly type: "struct";
2153
+ readonly name: "medialane_erc1155::core::types::OrderFulfillment";
2154
+ readonly members: readonly [{
2155
+ readonly name: "order_hash";
2156
+ readonly type: "core::felt252";
2157
+ }, {
2158
+ readonly name: "fulfiller";
2159
+ readonly type: "core::starknet::contract_address::ContractAddress";
2160
+ }, {
2161
+ readonly name: "nonce";
2162
+ readonly type: "core::felt252";
2163
+ }];
2164
+ }, {
2165
+ readonly type: "struct";
2166
+ readonly name: "medialane_erc1155::core::types::FulfillmentRequest";
2167
+ readonly members: readonly [{
2168
+ readonly name: "fulfillment";
2169
+ readonly type: "medialane_erc1155::core::types::OrderFulfillment";
2170
+ }, {
2171
+ readonly name: "signature";
2172
+ readonly type: "core::array::Array::<core::felt252>";
2173
+ }];
2174
+ }, {
2175
+ readonly type: "struct";
2176
+ readonly name: "medialane_erc1155::core::types::OrderCancellation";
2177
+ readonly members: readonly [{
2178
+ readonly name: "order_hash";
2179
+ readonly type: "core::felt252";
2180
+ }, {
2181
+ readonly name: "offerer";
2182
+ readonly type: "core::starknet::contract_address::ContractAddress";
2183
+ }, {
2184
+ readonly name: "nonce";
2185
+ readonly type: "core::felt252";
2186
+ }];
2187
+ }, {
2188
+ readonly type: "struct";
2189
+ readonly name: "medialane_erc1155::core::types::CancelRequest";
2190
+ readonly members: readonly [{
2191
+ readonly name: "cancelation";
2192
+ readonly type: "medialane_erc1155::core::types::OrderCancellation";
2193
+ }, {
2194
+ readonly name: "signature";
2195
+ readonly type: "core::array::Array::<core::felt252>";
2196
+ }];
2197
+ }, {
2198
+ readonly type: "enum";
2199
+ readonly name: "medialane_erc1155::core::types::OrderStatus";
2200
+ readonly variants: readonly [{
2201
+ readonly name: "None";
2202
+ readonly type: "()";
2203
+ }, {
2204
+ readonly name: "Created";
2205
+ readonly type: "()";
2206
+ }, {
2207
+ readonly name: "Filled";
2208
+ readonly type: "()";
2209
+ }, {
2210
+ readonly name: "Cancelled";
2211
+ readonly type: "()";
2212
+ }];
2213
+ }, {
2214
+ readonly type: "enum";
2215
+ readonly name: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
2216
+ readonly variants: readonly [{
2217
+ readonly name: "Some";
2218
+ readonly type: "core::starknet::contract_address::ContractAddress";
2219
+ }, {
2220
+ readonly name: "None";
2221
+ readonly type: "()";
2222
+ }];
2223
+ }, {
2224
+ readonly type: "struct";
2225
+ readonly name: "medialane_erc1155::core::types::OrderDetails";
2226
+ readonly members: readonly [{
2227
+ readonly name: "offerer";
2228
+ readonly type: "core::starknet::contract_address::ContractAddress";
2229
+ }, {
2230
+ readonly name: "nft_contract";
2231
+ readonly type: "core::starknet::contract_address::ContractAddress";
2232
+ }, {
2233
+ readonly name: "token_id";
2234
+ readonly type: "core::felt252";
2235
+ }, {
2236
+ readonly name: "amount";
2237
+ readonly type: "core::felt252";
2238
+ }, {
2239
+ readonly name: "payment_token";
2240
+ readonly type: "core::starknet::contract_address::ContractAddress";
2241
+ }, {
2242
+ readonly name: "price_per_unit";
2243
+ readonly type: "core::felt252";
2244
+ }, {
2245
+ readonly name: "start_time";
2246
+ readonly type: "core::integer::u64";
2247
+ }, {
2248
+ readonly name: "end_time";
2249
+ readonly type: "core::integer::u64";
2250
+ }, {
2251
+ readonly name: "order_status";
2252
+ readonly type: "medialane_erc1155::core::types::OrderStatus";
2253
+ }, {
2254
+ readonly name: "fulfiller";
2255
+ readonly type: "core::option::Option::<core::starknet::contract_address::ContractAddress>";
2256
+ }];
2257
+ }, {
2258
+ readonly type: "interface";
2259
+ readonly name: "medialane_erc1155::core::interface::IMedialane1155";
2260
+ readonly items: readonly [{
2261
+ readonly type: "function";
2262
+ readonly name: "register_order";
2263
+ readonly inputs: readonly [{
2264
+ readonly name: "order";
2265
+ readonly type: "medialane_erc1155::core::types::Order";
2266
+ }];
2267
+ readonly outputs: readonly [];
2268
+ readonly state_mutability: "external";
2269
+ }, {
2270
+ readonly type: "function";
2271
+ readonly name: "fulfill_order";
2272
+ readonly inputs: readonly [{
2273
+ readonly name: "fulfillment_request";
2274
+ readonly type: "medialane_erc1155::core::types::FulfillmentRequest";
2275
+ }];
2276
+ readonly outputs: readonly [];
2277
+ readonly state_mutability: "external";
2278
+ }, {
2279
+ readonly type: "function";
2280
+ readonly name: "cancel_order";
2281
+ readonly inputs: readonly [{
2282
+ readonly name: "cancel_request";
2283
+ readonly type: "medialane_erc1155::core::types::CancelRequest";
2284
+ }];
2285
+ readonly outputs: readonly [];
2286
+ readonly state_mutability: "external";
2287
+ }, {
2288
+ readonly type: "function";
2289
+ readonly name: "get_order_details";
2290
+ readonly inputs: readonly [{
2291
+ readonly name: "order_hash";
2292
+ readonly type: "core::felt252";
2293
+ }];
2294
+ readonly outputs: readonly [{
2295
+ readonly type: "medialane_erc1155::core::types::OrderDetails";
2296
+ }];
2297
+ readonly state_mutability: "view";
2298
+ }, {
2299
+ readonly type: "function";
2300
+ readonly name: "get_order_hash";
2301
+ readonly inputs: readonly [{
2302
+ readonly name: "parameters";
2303
+ readonly type: "medialane_erc1155::core::types::OrderParameters";
2304
+ }, {
2305
+ readonly name: "signer";
2306
+ readonly type: "core::starknet::contract_address::ContractAddress";
2307
+ }];
2308
+ readonly outputs: readonly [{
2309
+ readonly type: "core::felt252";
2310
+ }];
2311
+ readonly state_mutability: "view";
2312
+ }, {
2313
+ readonly type: "function";
2314
+ readonly name: "get_native_token";
2315
+ readonly inputs: readonly [];
2316
+ readonly outputs: readonly [{
2317
+ readonly type: "core::starknet::contract_address::ContractAddress";
2318
+ }];
2319
+ readonly state_mutability: "view";
2320
+ }];
2321
+ }, {
2322
+ readonly type: "impl";
2323
+ readonly name: "NoncesImpl";
2324
+ readonly interface_name: "openzeppelin_utils::cryptography::interface::INonces";
2325
+ }, {
2326
+ readonly type: "interface";
2327
+ readonly name: "openzeppelin_utils::cryptography::interface::INonces";
2328
+ readonly items: readonly [{
2329
+ readonly type: "function";
2330
+ readonly name: "nonces";
2331
+ readonly inputs: readonly [{
2332
+ readonly name: "owner";
2333
+ readonly type: "core::starknet::contract_address::ContractAddress";
2334
+ }];
2335
+ readonly outputs: readonly [{
2336
+ readonly type: "core::felt252";
2337
+ }];
2338
+ readonly state_mutability: "view";
2339
+ }];
2340
+ }, {
2341
+ readonly type: "impl";
2342
+ readonly name: "SRC5Impl";
2343
+ readonly interface_name: "openzeppelin_introspection::interface::ISRC5";
2344
+ }, {
2345
+ readonly type: "enum";
2346
+ readonly name: "core::bool";
2347
+ readonly variants: readonly [{
2348
+ readonly name: "False";
2349
+ readonly type: "()";
2350
+ }, {
2351
+ readonly name: "True";
2352
+ readonly type: "()";
2353
+ }];
2354
+ }, {
2355
+ readonly type: "interface";
2356
+ readonly name: "openzeppelin_introspection::interface::ISRC5";
2357
+ readonly items: readonly [{
2358
+ readonly type: "function";
2359
+ readonly name: "supports_interface";
2360
+ readonly inputs: readonly [{
2361
+ readonly name: "interface_id";
2362
+ readonly type: "core::felt252";
2363
+ }];
2364
+ readonly outputs: readonly [{
2365
+ readonly type: "core::bool";
2366
+ }];
2367
+ readonly state_mutability: "view";
2368
+ }];
2369
+ }, {
2370
+ readonly type: "impl";
2371
+ readonly name: "AccessControlImpl";
2372
+ readonly interface_name: "openzeppelin_access::accesscontrol::interface::IAccessControl";
2373
+ }, {
2374
+ readonly type: "interface";
2375
+ readonly name: "openzeppelin_access::accesscontrol::interface::IAccessControl";
2376
+ readonly items: readonly [{
2377
+ readonly type: "function";
2378
+ readonly name: "has_role";
2379
+ readonly inputs: readonly [{
2380
+ readonly name: "role";
2381
+ readonly type: "core::felt252";
2382
+ }, {
2383
+ readonly name: "account";
2384
+ readonly type: "core::starknet::contract_address::ContractAddress";
2385
+ }];
2386
+ readonly outputs: readonly [{
2387
+ readonly type: "core::bool";
2388
+ }];
2389
+ readonly state_mutability: "view";
2390
+ }, {
2391
+ readonly type: "function";
2392
+ readonly name: "get_role_admin";
2393
+ readonly inputs: readonly [{
2394
+ readonly name: "role";
2395
+ readonly type: "core::felt252";
2396
+ }];
2397
+ readonly outputs: readonly [{
2398
+ readonly type: "core::felt252";
2399
+ }];
2400
+ readonly state_mutability: "view";
2401
+ }, {
2402
+ readonly type: "function";
2403
+ readonly name: "grant_role";
2404
+ readonly inputs: readonly [{
2405
+ readonly name: "role";
2406
+ readonly type: "core::felt252";
2407
+ }, {
2408
+ readonly name: "account";
2409
+ readonly type: "core::starknet::contract_address::ContractAddress";
2410
+ }];
2411
+ readonly outputs: readonly [];
2412
+ readonly state_mutability: "external";
2413
+ }, {
2414
+ readonly type: "function";
2415
+ readonly name: "revoke_role";
2416
+ readonly inputs: readonly [{
2417
+ readonly name: "role";
2418
+ readonly type: "core::felt252";
2419
+ }, {
2420
+ readonly name: "account";
2421
+ readonly type: "core::starknet::contract_address::ContractAddress";
2422
+ }];
2423
+ readonly outputs: readonly [];
2424
+ readonly state_mutability: "external";
2425
+ }, {
2426
+ readonly type: "function";
2427
+ readonly name: "renounce_role";
2428
+ readonly inputs: readonly [{
2429
+ readonly name: "role";
2430
+ readonly type: "core::felt252";
2431
+ }, {
2432
+ readonly name: "account";
2433
+ readonly type: "core::starknet::contract_address::ContractAddress";
2434
+ }];
2435
+ readonly outputs: readonly [];
2436
+ readonly state_mutability: "external";
2437
+ }];
2438
+ }, {
2439
+ readonly type: "constructor";
2440
+ readonly name: "constructor";
2441
+ readonly inputs: readonly [{
2442
+ readonly name: "manager";
2443
+ readonly type: "core::starknet::contract_address::ContractAddress";
2444
+ }, {
2445
+ readonly name: "native_token_address";
2446
+ readonly type: "core::starknet::contract_address::ContractAddress";
2447
+ }];
2448
+ }, {
2449
+ readonly type: "event";
2450
+ readonly name: "medialane_erc1155::core::events::OrderCreated";
2451
+ readonly kind: "struct";
2452
+ readonly members: readonly [{
2453
+ readonly name: "order_hash";
2454
+ readonly type: "core::felt252";
2455
+ readonly kind: "key";
2456
+ }, {
2457
+ readonly name: "offerer";
2458
+ readonly type: "core::starknet::contract_address::ContractAddress";
2459
+ readonly kind: "key";
2460
+ }, {
2461
+ readonly name: "nft_contract";
2462
+ readonly type: "core::starknet::contract_address::ContractAddress";
2463
+ readonly kind: "data";
2464
+ }, {
2465
+ readonly name: "token_id";
2466
+ readonly type: "core::felt252";
2467
+ readonly kind: "data";
2468
+ }, {
2469
+ readonly name: "amount";
2470
+ readonly type: "core::felt252";
2471
+ readonly kind: "data";
2472
+ }, {
2473
+ readonly name: "price_per_unit";
2474
+ readonly type: "core::felt252";
2475
+ readonly kind: "data";
2476
+ }, {
2477
+ readonly name: "payment_token";
2478
+ readonly type: "core::starknet::contract_address::ContractAddress";
2479
+ readonly kind: "data";
2480
+ }];
2481
+ }, {
2482
+ readonly type: "struct";
2483
+ readonly name: "core::integer::u256";
2484
+ readonly members: readonly [{
2485
+ readonly name: "low";
2486
+ readonly type: "core::integer::u128";
2487
+ }, {
2488
+ readonly name: "high";
2489
+ readonly type: "core::integer::u128";
2490
+ }];
2491
+ }, {
2492
+ readonly type: "event";
2493
+ readonly name: "medialane_erc1155::core::events::OrderFulfilled";
2494
+ readonly kind: "struct";
2495
+ readonly members: readonly [{
2496
+ readonly name: "order_hash";
2497
+ readonly type: "core::felt252";
2498
+ readonly kind: "key";
2499
+ }, {
2500
+ readonly name: "offerer";
2501
+ readonly type: "core::starknet::contract_address::ContractAddress";
2502
+ readonly kind: "key";
2503
+ }, {
2504
+ readonly name: "fulfiller";
2505
+ readonly type: "core::starknet::contract_address::ContractAddress";
2506
+ readonly kind: "key";
2507
+ }, {
2508
+ readonly name: "royalty_receiver";
2509
+ readonly type: "core::starknet::contract_address::ContractAddress";
2510
+ readonly kind: "data";
2511
+ }, {
2512
+ readonly name: "royalty_amount";
2513
+ readonly type: "core::integer::u256";
2514
+ readonly kind: "data";
2515
+ }];
2516
+ }, {
2517
+ readonly type: "event";
2518
+ readonly name: "medialane_erc1155::core::events::OrderCancelled";
2519
+ readonly kind: "struct";
2520
+ readonly members: readonly [{
2521
+ readonly name: "order_hash";
2522
+ readonly type: "core::felt252";
2523
+ readonly kind: "key";
2524
+ }, {
2525
+ readonly name: "offerer";
2526
+ readonly type: "core::starknet::contract_address::ContractAddress";
2527
+ readonly kind: "key";
2528
+ }];
2529
+ }, {
2530
+ readonly type: "event";
2531
+ readonly name: "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event";
2532
+ readonly kind: "enum";
2533
+ readonly variants: readonly [];
2534
+ }, {
2535
+ readonly type: "event";
2536
+ readonly name: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded";
2537
+ readonly kind: "struct";
2538
+ readonly members: readonly [{
2539
+ readonly name: "class_hash";
2540
+ readonly type: "core::starknet::class_hash::ClassHash";
2541
+ readonly kind: "data";
2542
+ }];
2543
+ }, {
2544
+ readonly type: "event";
2545
+ readonly name: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event";
2546
+ readonly kind: "enum";
2547
+ readonly variants: readonly [{
2548
+ readonly name: "Upgraded";
2549
+ readonly type: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded";
2550
+ readonly kind: "nested";
2551
+ }];
2552
+ }, {
2553
+ readonly type: "event";
2554
+ readonly name: "openzeppelin_introspection::src5::SRC5Component::Event";
2555
+ readonly kind: "enum";
2556
+ readonly variants: readonly [];
2557
+ }, {
2558
+ readonly type: "event";
2559
+ readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted";
2560
+ readonly kind: "struct";
2561
+ readonly members: readonly [{
2562
+ readonly name: "role";
2563
+ readonly type: "core::felt252";
2564
+ readonly kind: "data";
2565
+ }, {
2566
+ readonly name: "account";
2567
+ readonly type: "core::starknet::contract_address::ContractAddress";
2568
+ readonly kind: "data";
2569
+ }, {
2570
+ readonly name: "sender";
2571
+ readonly type: "core::starknet::contract_address::ContractAddress";
2572
+ readonly kind: "data";
2573
+ }];
2574
+ }, {
2575
+ readonly type: "event";
2576
+ readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay";
2577
+ readonly kind: "struct";
2578
+ readonly members: readonly [{
2579
+ readonly name: "role";
2580
+ readonly type: "core::felt252";
2581
+ readonly kind: "data";
2582
+ }, {
2583
+ readonly name: "account";
2584
+ readonly type: "core::starknet::contract_address::ContractAddress";
2585
+ readonly kind: "data";
2586
+ }, {
2587
+ readonly name: "sender";
2588
+ readonly type: "core::starknet::contract_address::ContractAddress";
2589
+ readonly kind: "data";
2590
+ }, {
2591
+ readonly name: "delay";
2592
+ readonly type: "core::integer::u64";
2593
+ readonly kind: "data";
2594
+ }];
2595
+ }, {
2596
+ readonly type: "event";
2597
+ readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked";
2598
+ readonly kind: "struct";
2599
+ readonly members: readonly [{
2600
+ readonly name: "role";
2601
+ readonly type: "core::felt252";
2602
+ readonly kind: "data";
2603
+ }, {
2604
+ readonly name: "account";
2605
+ readonly type: "core::starknet::contract_address::ContractAddress";
2606
+ readonly kind: "data";
2607
+ }, {
2608
+ readonly name: "sender";
2609
+ readonly type: "core::starknet::contract_address::ContractAddress";
2610
+ readonly kind: "data";
2611
+ }];
2612
+ }, {
2613
+ readonly type: "event";
2614
+ readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged";
2615
+ readonly kind: "struct";
2616
+ readonly members: readonly [{
2617
+ readonly name: "role";
2618
+ readonly type: "core::felt252";
2619
+ readonly kind: "data";
2620
+ }, {
2621
+ readonly name: "previous_admin_role";
2622
+ readonly type: "core::felt252";
2623
+ readonly kind: "data";
2624
+ }, {
2625
+ readonly name: "new_admin_role";
2626
+ readonly type: "core::felt252";
2627
+ readonly kind: "data";
2628
+ }];
2629
+ }, {
2630
+ readonly type: "event";
2631
+ readonly name: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event";
2632
+ readonly kind: "enum";
2633
+ readonly variants: readonly [{
2634
+ readonly name: "RoleGranted";
2635
+ readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGranted";
2636
+ readonly kind: "nested";
2637
+ }, {
2638
+ readonly name: "RoleGrantedWithDelay";
2639
+ readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleGrantedWithDelay";
2640
+ readonly kind: "nested";
2641
+ }, {
2642
+ readonly name: "RoleRevoked";
2643
+ readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleRevoked";
2644
+ readonly kind: "nested";
2645
+ }, {
2646
+ readonly name: "RoleAdminChanged";
2647
+ readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::RoleAdminChanged";
2648
+ readonly kind: "nested";
2649
+ }];
2650
+ }, {
2651
+ readonly type: "event";
2652
+ readonly name: "medialane_erc1155::core::medialane::Medialane1155::Event";
2653
+ readonly kind: "enum";
2654
+ readonly variants: readonly [{
2655
+ readonly name: "OrderCreated";
2656
+ readonly type: "medialane_erc1155::core::events::OrderCreated";
2657
+ readonly kind: "nested";
2658
+ }, {
2659
+ readonly name: "OrderFulfilled";
2660
+ readonly type: "medialane_erc1155::core::events::OrderFulfilled";
2661
+ readonly kind: "nested";
2662
+ }, {
2663
+ readonly name: "OrderCancelled";
2664
+ readonly type: "medialane_erc1155::core::events::OrderCancelled";
2665
+ readonly kind: "nested";
2666
+ }, {
2667
+ readonly name: "NoncesEvent";
2668
+ readonly type: "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event";
2669
+ readonly kind: "flat";
2670
+ }, {
2671
+ readonly name: "UpgradeableEvent";
2672
+ readonly type: "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event";
2673
+ readonly kind: "flat";
2674
+ }, {
2675
+ readonly name: "SRC5Event";
2676
+ readonly type: "openzeppelin_introspection::src5::SRC5Component::Event";
2677
+ readonly kind: "flat";
2678
+ }, {
2679
+ readonly name: "AccessControlEvent";
2680
+ readonly type: "openzeppelin_access::accesscontrol::accesscontrol::AccessControlComponent::Event";
2681
+ readonly kind: "flat";
2682
+ }];
2683
+ }];
2029
2684
 
2030
2685
  /**
2031
2686
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
@@ -2087,4 +2742,21 @@ declare function buildFulfillmentTypedData(message: Record<string, unknown>, cha
2087
2742
  */
2088
2743
  declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2089
2744
 
2090
- 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, COLLECTION_CONTRACT_MAINNET, 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 CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URLS, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_CONTRACT_MAINNET, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, 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, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
2745
+ /**
2746
+ * Build SNIP-12 typed data for signing an ERC-1155 OrderParameters struct.
2747
+ *
2748
+ * Differs from the ERC-721 Medialane signing:
2749
+ * - Domain name is "Medialane1155"
2750
+ * - OrderParameters is flat (no nested OfferItem / ConsiderationItem structs)
2751
+ */
2752
+ declare function build1155OrderTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2753
+ /**
2754
+ * Build SNIP-12 typed data for signing an ERC-1155 OrderFulfillment struct.
2755
+ */
2756
+ declare function build1155FulfillmentTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2757
+ /**
2758
+ * Build SNIP-12 typed data for signing an ERC-1155 OrderCancellation struct.
2759
+ */
2760
+ declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
2761
+
2762
+ 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, 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, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, 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 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 };