@medialane/sdk 0.53.0 → 0.55.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/README.md +27 -13
- package/dist/evm/index.cjs +357 -0
- package/dist/evm/index.cjs.map +1 -0
- package/dist/evm/index.d.cts +613 -0
- package/dist/evm/index.d.ts +613 -0
- package/dist/evm/index.js +346 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/index-Dq4AXt2m.d.ts +8890 -0
- package/dist/index-uBEA-1JF.d.cts +8890 -0
- package/dist/index.cjs +6909 -7821
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -9703
- package/dist/index.d.ts +65 -9703
- package/dist/index.js +7036 -7949
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +253 -0
- package/dist/solana/index.cjs.map +1 -0
- package/dist/solana/index.d.cts +62 -0
- package/dist/solana/index.d.ts +62 -0
- package/dist/solana/index.js +241 -0
- package/dist/solana/index.js.map +1 -0
- package/dist/starknet/index.cjs +11317 -0
- package/dist/starknet/index.cjs.map +1 -0
- package/dist/starknet/index.d.cts +4 -0
- package/dist/starknet/index.d.ts +4 -0
- package/dist/starknet/index.js +11249 -0
- package/dist/starknet/index.js.map +1 -0
- package/dist/stellar/index.cjs +165 -0
- package/dist/stellar/index.cjs.map +1 -0
- package/dist/stellar/index.d.cts +49 -0
- package/dist/stellar/index.d.ts +49 -0
- package/dist/stellar/index.js +162 -0
- package/dist/stellar/index.js.map +1 -0
- package/dist/types-D3PWgk3x.d.cts +175 -0
- package/dist/types-D3PWgk3x.d.ts +175 -0
- package/package.json +44 -4
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
import { TypedDataDomain, WalletClient, PublicClient } from 'viem';
|
|
2
|
+
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef, I as IssuanceAdapter, a as CreateCollectionInput, M as MintInput } from '../types-D3PWgk3x.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* EIP-712 order typing for the Medialane EVM venues — byte-identical to the
|
|
6
|
+
* audited Solidity (contracts/EVM-Marketplace-ERC721/src/Medialane721.sol and
|
|
7
|
+
* the 1155 venue, which shares the type strings; the domain's
|
|
8
|
+
* verifyingContract separates deployments and venues).
|
|
9
|
+
*/
|
|
10
|
+
declare const EVM_ORDER_TYPES: {
|
|
11
|
+
readonly OfferItem: readonly [{
|
|
12
|
+
readonly name: "itemType";
|
|
13
|
+
readonly type: "uint8";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "token";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "identifier";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "amount";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}];
|
|
24
|
+
readonly ConsiderationItem: readonly [{
|
|
25
|
+
readonly name: "itemType";
|
|
26
|
+
readonly type: "uint8";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "token";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "identifier";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "amount";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "recipient";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly OrderParameters: readonly [{
|
|
41
|
+
readonly name: "offerer";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "offer";
|
|
45
|
+
readonly type: "OfferItem";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "consideration";
|
|
48
|
+
readonly type: "ConsiderationItem";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "royaltyMaxBps";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "startTime";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "endTime";
|
|
57
|
+
readonly type: "uint256";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "salt";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "counter";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
};
|
|
66
|
+
/** NATIVE=0, ERC20=1, ERC721=2 on the 721 venue; NATIVE=0, ERC20=1, ERC1155=2 on the 1155 venue. */
|
|
67
|
+
type EvmItemType = 0 | 1 | 2;
|
|
68
|
+
interface EvmOfferItem {
|
|
69
|
+
itemType: EvmItemType;
|
|
70
|
+
token: `0x${string}`;
|
|
71
|
+
identifier: bigint;
|
|
72
|
+
amount: bigint;
|
|
73
|
+
}
|
|
74
|
+
interface EvmConsiderationItem extends EvmOfferItem {
|
|
75
|
+
recipient: `0x${string}`;
|
|
76
|
+
}
|
|
77
|
+
interface EvmOrderParameters {
|
|
78
|
+
offerer: `0x${string}`;
|
|
79
|
+
offer: EvmOfferItem;
|
|
80
|
+
consideration: EvmConsiderationItem;
|
|
81
|
+
royaltyMaxBps: bigint;
|
|
82
|
+
startTime: bigint;
|
|
83
|
+
endTime: bigint;
|
|
84
|
+
salt: bigint;
|
|
85
|
+
counter: bigint;
|
|
86
|
+
}
|
|
87
|
+
declare function evmOrderDomain(chainId: number, verifyingContract: `0x${string}`): TypedDataDomain;
|
|
88
|
+
/** The order's EIP-712 digest — the venue's order hash and the platform's
|
|
89
|
+
* canonical order id on EVM chains. */
|
|
90
|
+
declare function evmOrderDigest(chainId: number, verifyingContract: `0x${string}`, parameters: EvmOrderParameters): `0x${string}`;
|
|
91
|
+
|
|
92
|
+
type EvmChain = "ETHEREUM" | "BASE";
|
|
93
|
+
interface EvmVenueOptions {
|
|
94
|
+
chain: EvmChain;
|
|
95
|
+
chainId: number;
|
|
96
|
+
publicClient: PublicClient;
|
|
97
|
+
/** "721" (unique assets) or "1155" (partial fills). */
|
|
98
|
+
variant: "721" | "1155";
|
|
99
|
+
/** Defaults to the chain registry's venue address (populated at deploy). */
|
|
100
|
+
contract?: `0x${string}`;
|
|
101
|
+
}
|
|
102
|
+
/** The Medialane venue adapter for EVM chains — one implementation serves
|
|
103
|
+
* Ethereum and Base (same bytecode; the EIP-712 domain separates them). */
|
|
104
|
+
declare class EvmVenue implements VenueAdapter<WalletClient> {
|
|
105
|
+
readonly chain: Chain;
|
|
106
|
+
private readonly chainId;
|
|
107
|
+
private readonly contract;
|
|
108
|
+
private readonly publicClient;
|
|
109
|
+
private readonly variant;
|
|
110
|
+
constructor(opts: EvmVenueOptions);
|
|
111
|
+
/** Builds the order struct, signs the EIP-712 digest, and registers it.
|
|
112
|
+
* The digest is the canonical order id on EVM chains. */
|
|
113
|
+
registerOrder(signer: WalletClient, params: RegisterOrderParams): Promise<AdapterTxResult & {
|
|
114
|
+
orderRef: OrderRef;
|
|
115
|
+
}>;
|
|
116
|
+
fulfillOrder(signer: WalletClient, orderRef: OrderRef, opts?: {
|
|
117
|
+
quantity?: string;
|
|
118
|
+
value?: string;
|
|
119
|
+
}): Promise<AdapterTxResult>;
|
|
120
|
+
cancelOrder(signer: WalletClient, orderRef: OrderRef): Promise<AdapterTxResult>;
|
|
121
|
+
incrementCounter(signer: WalletClient): Promise<AdapterTxResult>;
|
|
122
|
+
getOrderDetails(orderRef: OrderRef): Promise<unknown>;
|
|
123
|
+
getCounter(address: string): Promise<bigint>;
|
|
124
|
+
}
|
|
125
|
+
/** Payment-token sentinel for native ETH (spec §3.2b currency encoding). */
|
|
126
|
+
declare const NATIVE_SENTINEL = "native";
|
|
127
|
+
|
|
128
|
+
/** Minimal venue ABI — verified against Medialane721.sol / Medialane1155.sol.
|
|
129
|
+
* The 1155 venue's fulfillOrder additionally takes a quantity. */
|
|
130
|
+
declare const EvmVenueABI: readonly [{
|
|
131
|
+
readonly name: "registerOrder";
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly stateMutability: "nonpayable";
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly type: "tuple";
|
|
136
|
+
readonly components: readonly [{
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly name: "offerer";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "offer";
|
|
141
|
+
readonly type: "tuple";
|
|
142
|
+
readonly components: readonly [{
|
|
143
|
+
readonly type: "uint8";
|
|
144
|
+
readonly name: "itemType";
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
readonly name: "token";
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
readonly name: "identifier";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
readonly name: "amount";
|
|
154
|
+
}];
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "consideration";
|
|
157
|
+
readonly type: "tuple";
|
|
158
|
+
readonly components: readonly [{
|
|
159
|
+
readonly type: "uint8";
|
|
160
|
+
readonly name: "itemType";
|
|
161
|
+
}, {
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
readonly name: "token";
|
|
164
|
+
}, {
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
readonly name: "identifier";
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
readonly name: "amount";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
readonly name: "recipient";
|
|
173
|
+
}];
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
readonly name: "royaltyMaxBps";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
readonly name: "startTime";
|
|
180
|
+
}, {
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
readonly name: "endTime";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
readonly name: "salt";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
readonly name: "counter";
|
|
189
|
+
}];
|
|
190
|
+
readonly name: "parameters";
|
|
191
|
+
}, {
|
|
192
|
+
readonly type: "bytes";
|
|
193
|
+
readonly name: "signature";
|
|
194
|
+
}];
|
|
195
|
+
readonly outputs: readonly [];
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "fulfillOrder";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
readonly stateMutability: "payable";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly type: "bytes32";
|
|
202
|
+
readonly name: "orderHash";
|
|
203
|
+
}];
|
|
204
|
+
readonly outputs: readonly [];
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "cancelOrder";
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly stateMutability: "nonpayable";
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly type: "bytes32";
|
|
211
|
+
readonly name: "orderHash";
|
|
212
|
+
}];
|
|
213
|
+
readonly outputs: readonly [];
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "incrementCounter";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
readonly stateMutability: "nonpayable";
|
|
218
|
+
readonly inputs: readonly [];
|
|
219
|
+
readonly outputs: readonly [];
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "getOrderHash";
|
|
222
|
+
readonly type: "function";
|
|
223
|
+
readonly stateMutability: "view";
|
|
224
|
+
readonly inputs: readonly [{
|
|
225
|
+
readonly type: "tuple";
|
|
226
|
+
readonly components: readonly [{
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
readonly name: "offerer";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "offer";
|
|
231
|
+
readonly type: "tuple";
|
|
232
|
+
readonly components: readonly [{
|
|
233
|
+
readonly type: "uint8";
|
|
234
|
+
readonly name: "itemType";
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "address";
|
|
237
|
+
readonly name: "token";
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
readonly name: "identifier";
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
readonly name: "amount";
|
|
244
|
+
}];
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "consideration";
|
|
247
|
+
readonly type: "tuple";
|
|
248
|
+
readonly components: readonly [{
|
|
249
|
+
readonly type: "uint8";
|
|
250
|
+
readonly name: "itemType";
|
|
251
|
+
}, {
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
readonly name: "token";
|
|
254
|
+
}, {
|
|
255
|
+
readonly type: "uint256";
|
|
256
|
+
readonly name: "identifier";
|
|
257
|
+
}, {
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
readonly name: "amount";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly name: "recipient";
|
|
263
|
+
}];
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
readonly name: "royaltyMaxBps";
|
|
267
|
+
}, {
|
|
268
|
+
readonly type: "uint256";
|
|
269
|
+
readonly name: "startTime";
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "uint256";
|
|
272
|
+
readonly name: "endTime";
|
|
273
|
+
}, {
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
readonly name: "salt";
|
|
276
|
+
}, {
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
readonly name: "counter";
|
|
279
|
+
}];
|
|
280
|
+
readonly name: "parameters";
|
|
281
|
+
}];
|
|
282
|
+
readonly outputs: readonly [{
|
|
283
|
+
readonly type: "bytes32";
|
|
284
|
+
}];
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "getCounter";
|
|
287
|
+
readonly type: "function";
|
|
288
|
+
readonly stateMutability: "view";
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
readonly name: "offerer";
|
|
292
|
+
}];
|
|
293
|
+
readonly outputs: readonly [{
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
}];
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "version";
|
|
298
|
+
readonly type: "function";
|
|
299
|
+
readonly stateMutability: "pure";
|
|
300
|
+
readonly inputs: readonly [];
|
|
301
|
+
readonly outputs: readonly [{
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
}];
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "OrderCreated";
|
|
306
|
+
readonly type: "event";
|
|
307
|
+
readonly inputs: readonly [{
|
|
308
|
+
readonly type: "bytes32";
|
|
309
|
+
readonly name: "orderHash";
|
|
310
|
+
readonly indexed: true;
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
readonly name: "offerer";
|
|
314
|
+
readonly indexed: true;
|
|
315
|
+
}];
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "OrderFulfilled";
|
|
318
|
+
readonly type: "event";
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly type: "bytes32";
|
|
321
|
+
readonly name: "orderHash";
|
|
322
|
+
readonly indexed: true;
|
|
323
|
+
}, {
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
readonly name: "offerer";
|
|
326
|
+
readonly indexed: true;
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly name: "fulfiller";
|
|
330
|
+
readonly indexed: true;
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
readonly name: "saleAmount";
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "address";
|
|
336
|
+
readonly name: "royaltyReceiver";
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "uint256";
|
|
339
|
+
readonly name: "royaltyAmount";
|
|
340
|
+
}];
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "OrderCancelled";
|
|
343
|
+
readonly type: "event";
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly type: "bytes32";
|
|
346
|
+
readonly name: "orderHash";
|
|
347
|
+
readonly indexed: true;
|
|
348
|
+
}, {
|
|
349
|
+
readonly type: "address";
|
|
350
|
+
readonly name: "offerer";
|
|
351
|
+
readonly indexed: true;
|
|
352
|
+
}];
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "CounterIncremented";
|
|
355
|
+
readonly type: "event";
|
|
356
|
+
readonly inputs: readonly [{
|
|
357
|
+
readonly type: "address";
|
|
358
|
+
readonly name: "offerer";
|
|
359
|
+
readonly indexed: true;
|
|
360
|
+
}, {
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
readonly name: "newCounter";
|
|
363
|
+
}];
|
|
364
|
+
}];
|
|
365
|
+
declare const EvmVenue1155ABI: readonly [{
|
|
366
|
+
readonly name: "fulfillOrder";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
readonly stateMutability: "payable";
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly type: "bytes32";
|
|
371
|
+
readonly name: "orderHash";
|
|
372
|
+
}, {
|
|
373
|
+
readonly type: "uint256";
|
|
374
|
+
readonly name: "quantity";
|
|
375
|
+
}];
|
|
376
|
+
readonly outputs: readonly [];
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "OrderFulfilled";
|
|
379
|
+
readonly type: "event";
|
|
380
|
+
readonly inputs: readonly [{
|
|
381
|
+
readonly type: "bytes32";
|
|
382
|
+
readonly name: "orderHash";
|
|
383
|
+
readonly indexed: true;
|
|
384
|
+
}, {
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
readonly name: "offerer";
|
|
387
|
+
readonly indexed: true;
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
readonly name: "fulfiller";
|
|
391
|
+
readonly indexed: true;
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "uint256";
|
|
394
|
+
readonly name: "quantity";
|
|
395
|
+
}, {
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
readonly name: "remainingAmount";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
readonly name: "saleAmount";
|
|
401
|
+
}, {
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
readonly name: "royaltyReceiver";
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
readonly name: "royaltyAmount";
|
|
407
|
+
}];
|
|
408
|
+
}];
|
|
409
|
+
/** MIP issuance — verified against MIPRegistry.sol / MIPCollection.sol (and
|
|
410
|
+
* the editions pair, which shares the registry surface). */
|
|
411
|
+
declare const EvmMipRegistryABI: readonly [{
|
|
412
|
+
readonly name: "createCollection";
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
readonly stateMutability: "nonpayable";
|
|
415
|
+
readonly inputs: readonly [{
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly name: "name";
|
|
418
|
+
}, {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly name: "symbol";
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly name: "baseUri";
|
|
424
|
+
}, {
|
|
425
|
+
readonly type: "uint96";
|
|
426
|
+
readonly name: "royaltyBps";
|
|
427
|
+
}];
|
|
428
|
+
readonly outputs: readonly [{
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
readonly name: "collectionId";
|
|
431
|
+
}, {
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
readonly name: "collection";
|
|
434
|
+
}];
|
|
435
|
+
}, {
|
|
436
|
+
readonly name: "getCollection";
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
readonly stateMutability: "view";
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
readonly name: "collectionId";
|
|
442
|
+
}];
|
|
443
|
+
readonly outputs: readonly [{
|
|
444
|
+
readonly type: "address";
|
|
445
|
+
readonly name: "collection";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
readonly name: "creator";
|
|
449
|
+
}];
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "collectionCount";
|
|
452
|
+
readonly type: "function";
|
|
453
|
+
readonly stateMutability: "view";
|
|
454
|
+
readonly inputs: readonly [];
|
|
455
|
+
readonly outputs: readonly [{
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}];
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "CollectionCreated";
|
|
460
|
+
readonly type: "event";
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly type: "uint256";
|
|
463
|
+
readonly name: "collectionId";
|
|
464
|
+
readonly indexed: true;
|
|
465
|
+
}, {
|
|
466
|
+
readonly type: "address";
|
|
467
|
+
readonly name: "collection";
|
|
468
|
+
readonly indexed: true;
|
|
469
|
+
}, {
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
readonly name: "creator";
|
|
472
|
+
readonly indexed: true;
|
|
473
|
+
}, {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly name: "name";
|
|
476
|
+
}, {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly name: "symbol";
|
|
479
|
+
}, {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly name: "baseUri";
|
|
482
|
+
}];
|
|
483
|
+
}];
|
|
484
|
+
declare const EvmMipCollectionABI: readonly [{
|
|
485
|
+
readonly name: "mint";
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
readonly stateMutability: "nonpayable";
|
|
488
|
+
readonly inputs: readonly [{
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
readonly name: "to";
|
|
491
|
+
}, {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly name: "metadataUri";
|
|
494
|
+
}];
|
|
495
|
+
readonly outputs: readonly [{
|
|
496
|
+
readonly type: "uint256";
|
|
497
|
+
readonly name: "tokenId";
|
|
498
|
+
}];
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "batchMint";
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
readonly stateMutability: "nonpayable";
|
|
503
|
+
readonly inputs: readonly [{
|
|
504
|
+
readonly type: "address[]";
|
|
505
|
+
readonly name: "to";
|
|
506
|
+
}, {
|
|
507
|
+
readonly type: "string[]";
|
|
508
|
+
readonly name: "metadataUris";
|
|
509
|
+
}];
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly type: "uint256[]";
|
|
512
|
+
readonly name: "tokenIds";
|
|
513
|
+
}];
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "tokenURI";
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
readonly stateMutability: "view";
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
readonly name: "tokenId";
|
|
521
|
+
}];
|
|
522
|
+
readonly outputs: readonly [{
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
}];
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "ownerOf";
|
|
527
|
+
readonly type: "function";
|
|
528
|
+
readonly stateMutability: "view";
|
|
529
|
+
readonly inputs: readonly [{
|
|
530
|
+
readonly type: "uint256";
|
|
531
|
+
readonly name: "tokenId";
|
|
532
|
+
}];
|
|
533
|
+
readonly outputs: readonly [{
|
|
534
|
+
readonly type: "address";
|
|
535
|
+
}];
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "balanceOf";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
readonly stateMutability: "view";
|
|
540
|
+
readonly inputs: readonly [{
|
|
541
|
+
readonly type: "address";
|
|
542
|
+
readonly name: "owner";
|
|
543
|
+
}];
|
|
544
|
+
readonly outputs: readonly [{
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}];
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "owner";
|
|
549
|
+
readonly type: "function";
|
|
550
|
+
readonly stateMutability: "view";
|
|
551
|
+
readonly inputs: readonly [];
|
|
552
|
+
readonly outputs: readonly [{
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}];
|
|
555
|
+
}, {
|
|
556
|
+
readonly name: "TokenMinted";
|
|
557
|
+
readonly type: "event";
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
readonly name: "tokenId";
|
|
561
|
+
readonly indexed: true;
|
|
562
|
+
}, {
|
|
563
|
+
readonly type: "address";
|
|
564
|
+
readonly name: "owner";
|
|
565
|
+
readonly indexed: true;
|
|
566
|
+
}, {
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
readonly name: "metadataUri";
|
|
569
|
+
}];
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "Transfer";
|
|
572
|
+
readonly type: "event";
|
|
573
|
+
readonly inputs: readonly [{
|
|
574
|
+
readonly type: "address";
|
|
575
|
+
readonly name: "from";
|
|
576
|
+
readonly indexed: true;
|
|
577
|
+
}, {
|
|
578
|
+
readonly type: "address";
|
|
579
|
+
readonly name: "to";
|
|
580
|
+
readonly indexed: true;
|
|
581
|
+
}, {
|
|
582
|
+
readonly type: "uint256";
|
|
583
|
+
readonly name: "tokenId";
|
|
584
|
+
readonly indexed: true;
|
|
585
|
+
}];
|
|
586
|
+
}];
|
|
587
|
+
|
|
588
|
+
interface EvmIssuanceOptions {
|
|
589
|
+
chain: EvmChain;
|
|
590
|
+
publicClient: PublicClient;
|
|
591
|
+
/** Defaults to the chain registry's MIP registry (populated at deploy). */
|
|
592
|
+
registry?: `0x${string}`;
|
|
593
|
+
}
|
|
594
|
+
/** The Mediolano issuance adapter for EVM chains. */
|
|
595
|
+
declare class EvmIssuance implements IssuanceAdapter<WalletClient> {
|
|
596
|
+
readonly chain: Chain;
|
|
597
|
+
private readonly registry;
|
|
598
|
+
private readonly publicClient;
|
|
599
|
+
constructor(opts: EvmIssuanceOptions);
|
|
600
|
+
createCollection(signer: WalletClient, params: CreateCollectionInput): Promise<AdapterTxResult & {
|
|
601
|
+
collection: string;
|
|
602
|
+
}>;
|
|
603
|
+
mint(signer: WalletClient, params: MintInput): Promise<AdapterTxResult & {
|
|
604
|
+
tokenId: string;
|
|
605
|
+
}>;
|
|
606
|
+
batchMint(signer: WalletClient, params: {
|
|
607
|
+
collection: string;
|
|
608
|
+
recipients: string[];
|
|
609
|
+
tokenUris: string[];
|
|
610
|
+
}): Promise<AdapterTxResult>;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export { EVM_ORDER_TYPES, type EvmChain, type EvmConsiderationItem, EvmIssuance, type EvmIssuanceOptions, type EvmItemType, EvmMipCollectionABI, EvmMipRegistryABI, type EvmOfferItem, type EvmOrderParameters, EvmVenue, EvmVenue1155ABI, EvmVenueABI, type EvmVenueOptions, NATIVE_SENTINEL, evmOrderDigest, evmOrderDomain };
|