@rareprotocol/rare-cli 0.4.1 → 1.0.1

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.
@@ -0,0 +1,4348 @@
1
+ // src/contracts/addresses.ts
2
+ import { getAddress, isAddress, isAddressEqual, zeroAddress } from "viem";
3
+ import { sepolia, mainnet, base, baseSepolia } from "viem/chains";
4
+ var supportedChains = [
5
+ "mainnet",
6
+ "sepolia",
7
+ "base",
8
+ "base-sepolia"
9
+ ];
10
+ var viemChains = {
11
+ mainnet,
12
+ sepolia,
13
+ base,
14
+ "base-sepolia": baseSepolia
15
+ };
16
+ var chainIds = {
17
+ mainnet: 1,
18
+ sepolia: 11155111,
19
+ base: 8453,
20
+ "base-sepolia": 84532
21
+ };
22
+ var defaultRpcUrls = {
23
+ mainnet: "https://ethereum-rpc.publicnode.com",
24
+ sepolia: "https://rpc.sepolia.org",
25
+ base: "https://mainnet.base.org",
26
+ "base-sepolia": "https://sepolia.base.org"
27
+ };
28
+ var contractAddresses = {
29
+ sepolia: {
30
+ factory: getAddress("0x3c7526a0975156299ceef369b8ff3c01cc670523"),
31
+ auction: getAddress("0xC8Edc7049b233641ad3723D6C60019D1c8771612"),
32
+ sovereignFactory: getAddress("0x46B2850ba7787734F648A6848b5eDE0815C1F8Bf"),
33
+ lazySovereignFactory: getAddress("0xc5B8Ad9003673a23d005A6448C74d8955a1a38fA"),
34
+ rareMinter: getAddress("0xd28Dc0B89104d7BBd902F338a0193fF063617ccE"),
35
+ lazyBatchMintFactory: getAddress("0xE5efBA88D556aDA98124654fE505465b8d494858"),
36
+ batchListing: getAddress("0xF2bE72d4343beD375Cb6d0E799a3c003163860e0"),
37
+ batchOfferCreator: getAddress("0x371cca54ef859bb0c7b910581a528ee47773fd56"),
38
+ batchAuctionHouse: getAddress("0x293AE7701A7830B1d38A7608EdF86A106d9E2645"),
39
+ marketplaceSettings: getAddress("0x972dEe8fa339ad2D9c6cbDA31b67f98Fac242d13"),
40
+ erc20ApprovalManager: getAddress("0x4619eB29e84392CE91C27FC936A5c94d1D14b93f"),
41
+ erc721ApprovalManager: getAddress("0x5fa0a461d3a2Ea3bFDf03e8BD37CAbB4ae84205E"),
42
+ liquidFactory: getAddress("0xb1777091C953fa2aC1fD67f2b3e2f61343F5Ce5e"),
43
+ swapRouter: getAddress("0x429c3Ee66E7f6CDA12C5BadE4104aF3277aA2305"),
44
+ v4Quoter: getAddress("0x61B3f2011A92d183C7dbaDBdA940a7555Ccf9227")
45
+ },
46
+ mainnet: {
47
+ factory: getAddress("0xAe8E375a268Ed6442bEaC66C6254d6De5AeD4aB1"),
48
+ auction: getAddress("0x6D7c44773C52D396F43c2D511B81aa168E9a7a42"),
49
+ sovereignFactory: getAddress("0xe980ec62378529d95ba446433f4deb6324129c59"),
50
+ lazySovereignFactory: getAddress("0xba798BD606d86D207ca2751510173532899117a1"),
51
+ rareMinter: getAddress("0x5fa112EFeD8297bec0010b312208d223E0cE891E"),
52
+ lazyBatchMintFactory: getAddress("0x40F9E4b420D5A8fF5aED32B5F72A37013c0739B6"),
53
+ batchListing: getAddress("0x6a190885A806D39A0A8C348bfA1ac762D72E608d"),
54
+ batchOfferCreator: getAddress("0xe15cf80b25272ade261532efdb7912f9104851d4"),
55
+ batchAuctionHouse: getAddress("0x71742c7196f1c334C4c038ce6dcDcEE98097F9Da"),
56
+ marketplaceSettings: getAddress("0x61DBF87164d33FD3695256DC8Ba74D3B1d304170"),
57
+ erc20ApprovalManager: getAddress("0xa837a7eAff154Ab837617Cf7250648D3Ec0A4436"),
58
+ erc721ApprovalManager: getAddress("0x4bb0Deea6d1A30C601338aAB776d394C2AE5c0F8"),
59
+ liquidFactory: getAddress("0xbb4341CFd588a098e9aCE1D224178836426c4a8E"),
60
+ swapRouter: getAddress("0xEBd58EdA8408d9EA409f2c2bE8898BD9738f3583"),
61
+ v4Quoter: getAddress("0x52F0E24D1c21C8A0cB1e5a5dD6198556BD9E1203")
62
+ },
63
+ base: {
64
+ factory: getAddress("0xf776204233bfb52ba0ddff24810cbdbf3dbf94dd"),
65
+ auction: getAddress("0x51c36ffb05e17ed80ee5c02fa83d7677c5613de2")
66
+ },
67
+ "base-sepolia": {
68
+ factory: getAddress("0x2b181ae0f1aea6fed75591b04991b1a3f9868d51"),
69
+ auction: getAddress("0x1f0c946f0ee87acb268d50ede6c9b4d010af65d2")
70
+ }
71
+ };
72
+ var canonicalV4Pools = {
73
+ sepolia: {
74
+ rareEthPool: {
75
+ currency0: zeroAddress,
76
+ currency1: getAddress("0x197FaeF3f59eC80113e773Bb6206a17d183F97CB"),
77
+ fee: 3e3,
78
+ tickSpacing: 60,
79
+ hooks: zeroAddress,
80
+ poolId: "0x781d2707a6eb9cd3bdbea356a0ba90f9c5ef274927f5e72b0060bba5abd94f03"
81
+ },
82
+ usdcEthPool: {
83
+ currency0: zeroAddress,
84
+ currency1: getAddress("0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"),
85
+ fee: 3e3,
86
+ tickSpacing: 60,
87
+ hooks: zeroAddress,
88
+ poolId: "0x3390c733d8252e864d4ce769398dd3fb8680d1f626719e8d7736d062665f0987"
89
+ }
90
+ },
91
+ mainnet: {
92
+ rareEthPool: {
93
+ currency0: zeroAddress,
94
+ currency1: getAddress("0xba5BDe662c17e2aDFF1075610382B9B691296350"),
95
+ fee: 3e3,
96
+ tickSpacing: 60,
97
+ hooks: zeroAddress,
98
+ poolId: "0xc5e82ff54924a7232a3e91ca252d505f4e4417afa2b6a8507dfb691182cd0b16"
99
+ },
100
+ usdcEthPool: {
101
+ currency0: zeroAddress,
102
+ currency1: getAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"),
103
+ fee: 3e3,
104
+ tickSpacing: 60,
105
+ hooks: zeroAddress,
106
+ poolId: "0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d"
107
+ }
108
+ }
109
+ };
110
+ var currencyNames = ["eth", "rare", "usdc"];
111
+ var ETH_ADDRESS = zeroAddress;
112
+ var PUBLIC_LISTING_TARGET = zeroAddress;
113
+ var currencyAddresses = {
114
+ eth: {
115
+ mainnet: ETH_ADDRESS,
116
+ sepolia: ETH_ADDRESS,
117
+ base: ETH_ADDRESS,
118
+ "base-sepolia": ETH_ADDRESS
119
+ },
120
+ rare: {
121
+ mainnet: getAddress("0xba5BDe662c17e2aDFF1075610382B9B691296350"),
122
+ sepolia: getAddress("0x197FaeF3f59eC80113e773Bb6206a17d183F97CB"),
123
+ base: getAddress("0x691077c8e8de54ea84efd454630439f99bd8c92f"),
124
+ "base-sepolia": getAddress("0x8b21bC8571d11F7AdB705ad8F6f6BD1deb79cE01")
125
+ },
126
+ usdc: {
127
+ mainnet: getAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"),
128
+ sepolia: getAddress("0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"),
129
+ base: getAddress("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"),
130
+ "base-sepolia": getAddress("0x036CbD53842c5426634e7929541eC2318f3dCF7e")
131
+ }
132
+ };
133
+ var currencyDecimals = {
134
+ eth: 18,
135
+ rare: 18,
136
+ usdc: 6
137
+ };
138
+ var currencySymbols = {
139
+ eth: "ETH",
140
+ rare: "RARE",
141
+ usdc: "USDC"
142
+ };
143
+ function isCurrencyName(value) {
144
+ return currencyNames.some((currencyName) => currencyName === value);
145
+ }
146
+ function listCurrencies(chain) {
147
+ return currencyNames.flatMap((name) => {
148
+ const address = currencyAddresses[name][chain];
149
+ if (!address) return [];
150
+ return [{
151
+ name,
152
+ symbol: currencySymbols[name],
153
+ chain,
154
+ chainId: chainIds[chain],
155
+ address,
156
+ decimals: currencyDecimals[name],
157
+ isNative: name === "eth"
158
+ }];
159
+ });
160
+ }
161
+ function resolveCurrencyInfo(input, chain) {
162
+ const lower = input.toLowerCase();
163
+ if (isCurrencyName(lower)) {
164
+ const currency = listCurrencies(chain).find((entry) => entry.name === lower);
165
+ if (currency === void 0) {
166
+ return {
167
+ isValid: false,
168
+ error: "unavailable_currency",
169
+ errorMessage: `Currency "${lower}" is not available on "${chain}".`
170
+ };
171
+ }
172
+ return { isValid: true, currency };
173
+ }
174
+ if (isAddress(input)) {
175
+ const address = getAddress(input);
176
+ const known = listCurrencies(chain).find((entry) => isAddressEqual(entry.address, address));
177
+ return {
178
+ isValid: true,
179
+ currency: known ?? {
180
+ name: null,
181
+ symbol: null,
182
+ chain,
183
+ chainId: chainIds[chain],
184
+ address,
185
+ decimals: null,
186
+ isNative: false
187
+ }
188
+ };
189
+ }
190
+ return {
191
+ isValid: false,
192
+ error: "unknown_currency",
193
+ errorMessage: `Unknown currency "${input}". Supported: ${currencyNames.join(", ")} or a 0x address.`
194
+ };
195
+ }
196
+ function resolveCurrency(input, chain) {
197
+ const resolved = resolveCurrencyInfo(input, chain);
198
+ if (!resolved.isValid) {
199
+ throw new Error(resolved.errorMessage);
200
+ }
201
+ return resolved.currency.address;
202
+ }
203
+ function getContractAddresses(chain) {
204
+ const addresses = contractAddresses[chain];
205
+ if (!addresses) {
206
+ throw new Error(
207
+ `RARE Protocol contracts are not deployed on "${chain}". Supported chains: ${Object.keys(contractAddresses).join(", ")}`
208
+ );
209
+ }
210
+ return addresses;
211
+ }
212
+ function getBatchListingAddress(chain) {
213
+ const addresses = getContractAddresses(chain);
214
+ if (!addresses.batchListing) {
215
+ const deployed = Object.entries(contractAddresses).filter(([, set]) => set.batchListing !== void 0).map(([name]) => name);
216
+ throw new Error(
217
+ `Batch listing marketplace is not deployed on "${chain}". Available on: ${deployed.join(", ")}`
218
+ );
219
+ }
220
+ return addresses.batchListing;
221
+ }
222
+ function getErc721ApprovalManagerAddress(chain) {
223
+ const addresses = getContractAddresses(chain);
224
+ if (!addresses.erc721ApprovalManager) {
225
+ const deployed = Object.entries(contractAddresses).filter(([, set]) => set.erc721ApprovalManager !== void 0).map(([name]) => name);
226
+ throw new Error(
227
+ `ERC721 approval manager is not deployed on "${chain}". Available on: ${deployed.join(", ")}`
228
+ );
229
+ }
230
+ return addresses.erc721ApprovalManager;
231
+ }
232
+ function getCanonicalV4Pools(chain) {
233
+ const pools = canonicalV4Pools[chain];
234
+ if (!pools) {
235
+ throw new Error(
236
+ `Canonical V4 pools are not configured for "${chain}". Supported chains: ${Object.keys(canonicalV4Pools).join(", ")}`
237
+ );
238
+ }
239
+ return pools;
240
+ }
241
+ function getRareMinterAddress(chain) {
242
+ const rareMinter = getContractAddresses(chain).rareMinter;
243
+ if (!rareMinter) {
244
+ throw new Error(
245
+ `RareMinter is not configured on "${chain}". Supported RareMinter chains: mainnet, sepolia.`
246
+ );
247
+ }
248
+ return rareMinter;
249
+ }
250
+ function isSupportedChain(value) {
251
+ return supportedChains.some((chain) => chain === value);
252
+ }
253
+ function getLiquidFactoryAddress(chain) {
254
+ const address = getContractAddresses(chain).liquidFactory;
255
+ if (!address) {
256
+ throw new Error(`Liquid Editions factory is not configured for "${chain}". Supported chains: mainnet, sepolia`);
257
+ }
258
+ return address;
259
+ }
260
+ function getSwapRouterAddress(chain) {
261
+ const address = getContractAddresses(chain).swapRouter;
262
+ if (!address) {
263
+ throw new Error(`Liquid router is not configured for "${chain}". Supported chains: mainnet, sepolia`);
264
+ }
265
+ return address;
266
+ }
267
+ function getV4QuoterAddress(chain) {
268
+ const address = getContractAddresses(chain).v4Quoter;
269
+ if (!address) {
270
+ throw new Error(`Uniswap V4 quoter is not configured for "${chain}". Supported chains: mainnet, sepolia`);
271
+ }
272
+ return address;
273
+ }
274
+ function getCanonicalRareEthPool(chain) {
275
+ const pool = getCanonicalV4Pools(chain).rareEthPool;
276
+ if (!pool) {
277
+ throw new Error(`Canonical RARE/ETH pool is not configured for "${chain}". Supported chains: mainnet, sepolia`);
278
+ }
279
+ return pool;
280
+ }
281
+ function getCanonicalUsdcEthPool(chain) {
282
+ const pool = getCanonicalV4Pools(chain).usdcEthPool;
283
+ if (!pool) {
284
+ throw new Error(`Canonical USDC/ETH pool is not configured for "${chain}". Supported chains: mainnet, sepolia`);
285
+ }
286
+ return pool;
287
+ }
288
+ function requireContractAddress(chain, contractName) {
289
+ const address = getContractAddresses(chain)[contractName];
290
+ if (!address) {
291
+ throw new Error(`RARE Protocol ${contractName} contract is not configured on "${chain}".`);
292
+ }
293
+ return address;
294
+ }
295
+
296
+ // src/contracts/abis/auction.ts
297
+ var auctionAbi = [
298
+ {
299
+ "type": "function",
300
+ "name": "COLDIE_AUCTION",
301
+ "inputs": [],
302
+ "outputs": [
303
+ {
304
+ "name": "",
305
+ "type": "bytes32",
306
+ "internalType": "bytes32"
307
+ }
308
+ ],
309
+ "stateMutability": "view"
310
+ },
311
+ {
312
+ "type": "function",
313
+ "name": "NO_AUCTION",
314
+ "inputs": [],
315
+ "outputs": [
316
+ {
317
+ "name": "",
318
+ "type": "bytes32",
319
+ "internalType": "bytes32"
320
+ }
321
+ ],
322
+ "stateMutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "SCHEDULED_AUCTION",
327
+ "inputs": [],
328
+ "outputs": [
329
+ {
330
+ "name": "",
331
+ "type": "bytes32",
332
+ "internalType": "bytes32"
333
+ }
334
+ ],
335
+ "stateMutability": "view"
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "acceptOffer",
340
+ "inputs": [
341
+ {
342
+ "name": "_originContract",
343
+ "type": "address",
344
+ "internalType": "address"
345
+ },
346
+ {
347
+ "name": "_tokenId",
348
+ "type": "uint256",
349
+ "internalType": "uint256"
350
+ },
351
+ {
352
+ "name": "_currencyAddress",
353
+ "type": "address",
354
+ "internalType": "address"
355
+ },
356
+ {
357
+ "name": "_amount",
358
+ "type": "uint256",
359
+ "internalType": "uint256"
360
+ },
361
+ {
362
+ "name": "_splitAddresses",
363
+ "type": "address[]",
364
+ "internalType": "address payable[]"
365
+ },
366
+ {
367
+ "name": "_splitRatios",
368
+ "type": "uint8[]",
369
+ "internalType": "uint8[]"
370
+ }
371
+ ],
372
+ "outputs": [],
373
+ "stateMutability": "nonpayable"
374
+ },
375
+ {
376
+ "type": "function",
377
+ "name": "approvedTokenRegistry",
378
+ "inputs": [],
379
+ "outputs": [
380
+ {
381
+ "name": "",
382
+ "type": "address",
383
+ "internalType": "contract IApprovedTokenRegistry"
384
+ }
385
+ ],
386
+ "stateMutability": "view"
387
+ },
388
+ {
389
+ "type": "function",
390
+ "name": "auctionBids",
391
+ "inputs": [
392
+ {
393
+ "name": "",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ },
397
+ {
398
+ "name": "",
399
+ "type": "uint256",
400
+ "internalType": "uint256"
401
+ }
402
+ ],
403
+ "outputs": [
404
+ {
405
+ "name": "bidder",
406
+ "type": "address",
407
+ "internalType": "address payable"
408
+ },
409
+ {
410
+ "name": "currencyAddress",
411
+ "type": "address",
412
+ "internalType": "address"
413
+ },
414
+ {
415
+ "name": "amount",
416
+ "type": "uint256",
417
+ "internalType": "uint256"
418
+ },
419
+ {
420
+ "name": "marketplaceFee",
421
+ "type": "uint8",
422
+ "internalType": "uint8"
423
+ }
424
+ ],
425
+ "stateMutability": "view"
426
+ },
427
+ {
428
+ "type": "function",
429
+ "name": "auctionLengthExtension",
430
+ "inputs": [],
431
+ "outputs": [
432
+ {
433
+ "name": "",
434
+ "type": "uint256",
435
+ "internalType": "uint256"
436
+ }
437
+ ],
438
+ "stateMutability": "view"
439
+ },
440
+ {
441
+ "type": "function",
442
+ "name": "bid",
443
+ "inputs": [
444
+ {
445
+ "name": "_originContract",
446
+ "type": "address",
447
+ "internalType": "address"
448
+ },
449
+ {
450
+ "name": "_tokenId",
451
+ "type": "uint256",
452
+ "internalType": "uint256"
453
+ },
454
+ {
455
+ "name": "_currencyAddress",
456
+ "type": "address",
457
+ "internalType": "address"
458
+ },
459
+ {
460
+ "name": "_amount",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ }
464
+ ],
465
+ "outputs": [],
466
+ "stateMutability": "payable"
467
+ },
468
+ {
469
+ "type": "function",
470
+ "name": "buy",
471
+ "inputs": [
472
+ {
473
+ "name": "_originContract",
474
+ "type": "address",
475
+ "internalType": "address"
476
+ },
477
+ {
478
+ "name": "_tokenId",
479
+ "type": "uint256",
480
+ "internalType": "uint256"
481
+ },
482
+ {
483
+ "name": "_currencyAddress",
484
+ "type": "address",
485
+ "internalType": "address"
486
+ },
487
+ {
488
+ "name": "_amount",
489
+ "type": "uint256",
490
+ "internalType": "uint256"
491
+ }
492
+ ],
493
+ "outputs": [],
494
+ "stateMutability": "payable"
495
+ },
496
+ {
497
+ "type": "function",
498
+ "name": "cancelAuction",
499
+ "inputs": [
500
+ {
501
+ "name": "_originContract",
502
+ "type": "address",
503
+ "internalType": "address"
504
+ },
505
+ {
506
+ "name": "_tokenId",
507
+ "type": "uint256",
508
+ "internalType": "uint256"
509
+ }
510
+ ],
511
+ "outputs": [],
512
+ "stateMutability": "nonpayable"
513
+ },
514
+ {
515
+ "type": "function",
516
+ "name": "cancelOffer",
517
+ "inputs": [
518
+ {
519
+ "name": "_originContract",
520
+ "type": "address",
521
+ "internalType": "address"
522
+ },
523
+ {
524
+ "name": "_tokenId",
525
+ "type": "uint256",
526
+ "internalType": "uint256"
527
+ },
528
+ {
529
+ "name": "_currencyAddress",
530
+ "type": "address",
531
+ "internalType": "address"
532
+ }
533
+ ],
534
+ "outputs": [],
535
+ "stateMutability": "nonpayable"
536
+ },
537
+ {
538
+ "type": "function",
539
+ "name": "configureAuction",
540
+ "inputs": [
541
+ {
542
+ "name": "_auctionType",
543
+ "type": "bytes32",
544
+ "internalType": "bytes32"
545
+ },
546
+ {
547
+ "name": "_originContract",
548
+ "type": "address",
549
+ "internalType": "address"
550
+ },
551
+ {
552
+ "name": "_tokenId",
553
+ "type": "uint256",
554
+ "internalType": "uint256"
555
+ },
556
+ {
557
+ "name": "_startingAmount",
558
+ "type": "uint256",
559
+ "internalType": "uint256"
560
+ },
561
+ {
562
+ "name": "_currencyAddress",
563
+ "type": "address",
564
+ "internalType": "address"
565
+ },
566
+ {
567
+ "name": "_lengthOfAuction",
568
+ "type": "uint256",
569
+ "internalType": "uint256"
570
+ },
571
+ {
572
+ "name": "_startTime",
573
+ "type": "uint256",
574
+ "internalType": "uint256"
575
+ },
576
+ {
577
+ "name": "_splitAddresses",
578
+ "type": "address[]",
579
+ "internalType": "address payable[]"
580
+ },
581
+ {
582
+ "name": "_splitRatios",
583
+ "type": "uint8[]",
584
+ "internalType": "uint8[]"
585
+ }
586
+ ],
587
+ "outputs": [],
588
+ "stateMutability": "nonpayable"
589
+ },
590
+ {
591
+ "type": "function",
592
+ "name": "convertOfferToAuction",
593
+ "inputs": [
594
+ {
595
+ "name": "_originContract",
596
+ "type": "address",
597
+ "internalType": "address"
598
+ },
599
+ {
600
+ "name": "_tokenId",
601
+ "type": "uint256",
602
+ "internalType": "uint256"
603
+ },
604
+ {
605
+ "name": "_currencyAddress",
606
+ "type": "address",
607
+ "internalType": "address"
608
+ },
609
+ {
610
+ "name": "_amount",
611
+ "type": "uint256",
612
+ "internalType": "uint256"
613
+ },
614
+ {
615
+ "name": "_lengthOfAuction",
616
+ "type": "uint256",
617
+ "internalType": "uint256"
618
+ },
619
+ {
620
+ "name": "_splitAddresses",
621
+ "type": "address[]",
622
+ "internalType": "address payable[]"
623
+ },
624
+ {
625
+ "name": "_splitRatios",
626
+ "type": "uint8[]",
627
+ "internalType": "uint8[]"
628
+ }
629
+ ],
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable"
632
+ },
633
+ {
634
+ "type": "function",
635
+ "name": "getAuctionDetails",
636
+ "inputs": [
637
+ {
638
+ "name": "_originContract",
639
+ "type": "address",
640
+ "internalType": "address"
641
+ },
642
+ {
643
+ "name": "_tokenId",
644
+ "type": "uint256",
645
+ "internalType": "uint256"
646
+ }
647
+ ],
648
+ "outputs": [
649
+ {
650
+ "name": "",
651
+ "type": "address",
652
+ "internalType": "address"
653
+ },
654
+ {
655
+ "name": "",
656
+ "type": "uint256",
657
+ "internalType": "uint256"
658
+ },
659
+ {
660
+ "name": "",
661
+ "type": "uint256",
662
+ "internalType": "uint256"
663
+ },
664
+ {
665
+ "name": "",
666
+ "type": "uint256",
667
+ "internalType": "uint256"
668
+ },
669
+ {
670
+ "name": "",
671
+ "type": "address",
672
+ "internalType": "address"
673
+ },
674
+ {
675
+ "name": "",
676
+ "type": "uint256",
677
+ "internalType": "uint256"
678
+ },
679
+ {
680
+ "name": "",
681
+ "type": "bytes32",
682
+ "internalType": "bytes32"
683
+ },
684
+ {
685
+ "name": "",
686
+ "type": "address[]",
687
+ "internalType": "address payable[]"
688
+ },
689
+ {
690
+ "name": "",
691
+ "type": "uint8[]",
692
+ "internalType": "uint8[]"
693
+ }
694
+ ],
695
+ "stateMutability": "view"
696
+ },
697
+ {
698
+ "type": "function",
699
+ "name": "getSalePrice",
700
+ "inputs": [
701
+ {
702
+ "name": "_originContract",
703
+ "type": "address",
704
+ "internalType": "address"
705
+ },
706
+ {
707
+ "name": "_tokenId",
708
+ "type": "uint256",
709
+ "internalType": "uint256"
710
+ },
711
+ {
712
+ "name": "_target",
713
+ "type": "address",
714
+ "internalType": "address"
715
+ }
716
+ ],
717
+ "outputs": [
718
+ {
719
+ "name": "",
720
+ "type": "address",
721
+ "internalType": "address"
722
+ },
723
+ {
724
+ "name": "",
725
+ "type": "address",
726
+ "internalType": "address"
727
+ },
728
+ {
729
+ "name": "",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ },
733
+ {
734
+ "name": "",
735
+ "type": "address[]",
736
+ "internalType": "address payable[]"
737
+ },
738
+ {
739
+ "name": "",
740
+ "type": "uint8[]",
741
+ "internalType": "uint8[]"
742
+ }
743
+ ],
744
+ "stateMutability": "view"
745
+ },
746
+ {
747
+ "type": "function",
748
+ "name": "initialize",
749
+ "inputs": [
750
+ {
751
+ "name": "_marketplaceSettings",
752
+ "type": "address",
753
+ "internalType": "address"
754
+ },
755
+ {
756
+ "name": "_royaltyRegistry",
757
+ "type": "address",
758
+ "internalType": "address"
759
+ },
760
+ {
761
+ "name": "_royaltyEngine",
762
+ "type": "address",
763
+ "internalType": "address"
764
+ },
765
+ {
766
+ "name": "_superRareMarketplace",
767
+ "type": "address",
768
+ "internalType": "address"
769
+ },
770
+ {
771
+ "name": "_superRareAuctionHouse",
772
+ "type": "address",
773
+ "internalType": "address"
774
+ },
775
+ {
776
+ "name": "_spaceOperatorRegistry",
777
+ "type": "address",
778
+ "internalType": "address"
779
+ },
780
+ {
781
+ "name": "_approvedTokenRegistry",
782
+ "type": "address",
783
+ "internalType": "address"
784
+ },
785
+ {
786
+ "name": "_payments",
787
+ "type": "address",
788
+ "internalType": "address"
789
+ },
790
+ {
791
+ "name": "_stakingRegistry",
792
+ "type": "address",
793
+ "internalType": "address"
794
+ },
795
+ {
796
+ "name": "_networkBeneficiary",
797
+ "type": "address",
798
+ "internalType": "address"
799
+ }
800
+ ],
801
+ "outputs": [],
802
+ "stateMutability": "nonpayable"
803
+ },
804
+ {
805
+ "type": "function",
806
+ "name": "marketplaceSettings",
807
+ "inputs": [],
808
+ "outputs": [
809
+ {
810
+ "name": "",
811
+ "type": "address",
812
+ "internalType": "contract IMarketplaceSettings"
813
+ }
814
+ ],
815
+ "stateMutability": "view"
816
+ },
817
+ {
818
+ "type": "function",
819
+ "name": "maxAuctionLength",
820
+ "inputs": [],
821
+ "outputs": [
822
+ {
823
+ "name": "",
824
+ "type": "uint256",
825
+ "internalType": "uint256"
826
+ }
827
+ ],
828
+ "stateMutability": "view"
829
+ },
830
+ {
831
+ "type": "function",
832
+ "name": "minimumBidIncreasePercentage",
833
+ "inputs": [],
834
+ "outputs": [
835
+ {
836
+ "name": "",
837
+ "type": "uint8",
838
+ "internalType": "uint8"
839
+ }
840
+ ],
841
+ "stateMutability": "view"
842
+ },
843
+ {
844
+ "type": "function",
845
+ "name": "networkBeneficiary",
846
+ "inputs": [],
847
+ "outputs": [
848
+ {
849
+ "name": "",
850
+ "type": "address",
851
+ "internalType": "address"
852
+ }
853
+ ],
854
+ "stateMutability": "view"
855
+ },
856
+ {
857
+ "type": "function",
858
+ "name": "offer",
859
+ "inputs": [
860
+ {
861
+ "name": "_originContract",
862
+ "type": "address",
863
+ "internalType": "address"
864
+ },
865
+ {
866
+ "name": "_tokenId",
867
+ "type": "uint256",
868
+ "internalType": "uint256"
869
+ },
870
+ {
871
+ "name": "_currencyAddress",
872
+ "type": "address",
873
+ "internalType": "address"
874
+ },
875
+ {
876
+ "name": "_amount",
877
+ "type": "uint256",
878
+ "internalType": "uint256"
879
+ },
880
+ {
881
+ "name": "_convertible",
882
+ "type": "bool",
883
+ "internalType": "bool"
884
+ }
885
+ ],
886
+ "outputs": [],
887
+ "stateMutability": "payable"
888
+ },
889
+ {
890
+ "type": "function",
891
+ "name": "offerCancelationDelay",
892
+ "inputs": [],
893
+ "outputs": [
894
+ {
895
+ "name": "",
896
+ "type": "uint256",
897
+ "internalType": "uint256"
898
+ }
899
+ ],
900
+ "stateMutability": "view"
901
+ },
902
+ {
903
+ "type": "function",
904
+ "name": "owner",
905
+ "inputs": [],
906
+ "outputs": [
907
+ {
908
+ "name": "",
909
+ "type": "address",
910
+ "internalType": "address"
911
+ }
912
+ ],
913
+ "stateMutability": "view"
914
+ },
915
+ {
916
+ "type": "function",
917
+ "name": "payments",
918
+ "inputs": [],
919
+ "outputs": [
920
+ {
921
+ "name": "",
922
+ "type": "address",
923
+ "internalType": "contract IPayments"
924
+ }
925
+ ],
926
+ "stateMutability": "view"
927
+ },
928
+ {
929
+ "type": "function",
930
+ "name": "removeSalePrice",
931
+ "inputs": [
932
+ {
933
+ "name": "_originContract",
934
+ "type": "address",
935
+ "internalType": "address"
936
+ },
937
+ {
938
+ "name": "_tokenId",
939
+ "type": "uint256",
940
+ "internalType": "uint256"
941
+ },
942
+ {
943
+ "name": "_target",
944
+ "type": "address",
945
+ "internalType": "address"
946
+ }
947
+ ],
948
+ "outputs": [],
949
+ "stateMutability": "nonpayable"
950
+ },
951
+ {
952
+ "type": "function",
953
+ "name": "renounceOwnership",
954
+ "inputs": [],
955
+ "outputs": [],
956
+ "stateMutability": "nonpayable"
957
+ },
958
+ {
959
+ "type": "function",
960
+ "name": "royaltyEngine",
961
+ "inputs": [],
962
+ "outputs": [
963
+ {
964
+ "name": "",
965
+ "type": "address",
966
+ "internalType": "contract IRoyaltyEngineV1"
967
+ }
968
+ ],
969
+ "stateMutability": "view"
970
+ },
971
+ {
972
+ "type": "function",
973
+ "name": "royaltyRegistry",
974
+ "inputs": [],
975
+ "outputs": [
976
+ {
977
+ "name": "",
978
+ "type": "address",
979
+ "internalType": "contract IRoyaltyRegistry"
980
+ }
981
+ ],
982
+ "stateMutability": "view"
983
+ },
984
+ {
985
+ "type": "function",
986
+ "name": "setApprovedTokenRegistry",
987
+ "inputs": [
988
+ {
989
+ "name": "_approvedTokenRegistry",
990
+ "type": "address",
991
+ "internalType": "address"
992
+ }
993
+ ],
994
+ "outputs": [],
995
+ "stateMutability": "nonpayable"
996
+ },
997
+ {
998
+ "type": "function",
999
+ "name": "setAuctionLengthExtension",
1000
+ "inputs": [
1001
+ {
1002
+ "name": "_auctionLengthExtension",
1003
+ "type": "uint256",
1004
+ "internalType": "uint256"
1005
+ }
1006
+ ],
1007
+ "outputs": [],
1008
+ "stateMutability": "nonpayable"
1009
+ },
1010
+ {
1011
+ "type": "function",
1012
+ "name": "setMarketplaceSettings",
1013
+ "inputs": [
1014
+ {
1015
+ "name": "_marketplaceSettings",
1016
+ "type": "address",
1017
+ "internalType": "address"
1018
+ }
1019
+ ],
1020
+ "outputs": [],
1021
+ "stateMutability": "nonpayable"
1022
+ },
1023
+ {
1024
+ "type": "function",
1025
+ "name": "setMaxAuctionLength",
1026
+ "inputs": [
1027
+ {
1028
+ "name": "_maxAuctionLength",
1029
+ "type": "uint8",
1030
+ "internalType": "uint8"
1031
+ }
1032
+ ],
1033
+ "outputs": [],
1034
+ "stateMutability": "nonpayable"
1035
+ },
1036
+ {
1037
+ "type": "function",
1038
+ "name": "setMinimumBidIncreasePercentage",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "_minimumBidIncreasePercentage",
1042
+ "type": "uint8",
1043
+ "internalType": "uint8"
1044
+ }
1045
+ ],
1046
+ "outputs": [],
1047
+ "stateMutability": "nonpayable"
1048
+ },
1049
+ {
1050
+ "type": "function",
1051
+ "name": "setNetworkBeneficiary",
1052
+ "inputs": [
1053
+ {
1054
+ "name": "_networkBeneficiary",
1055
+ "type": "address",
1056
+ "internalType": "address"
1057
+ }
1058
+ ],
1059
+ "outputs": [],
1060
+ "stateMutability": "nonpayable"
1061
+ },
1062
+ {
1063
+ "type": "function",
1064
+ "name": "setOfferCancelationDelay",
1065
+ "inputs": [
1066
+ {
1067
+ "name": "_offerCancelationDelay",
1068
+ "type": "uint256",
1069
+ "internalType": "uint256"
1070
+ }
1071
+ ],
1072
+ "outputs": [],
1073
+ "stateMutability": "nonpayable"
1074
+ },
1075
+ {
1076
+ "type": "function",
1077
+ "name": "setPayments",
1078
+ "inputs": [
1079
+ {
1080
+ "name": "_payments",
1081
+ "type": "address",
1082
+ "internalType": "address"
1083
+ }
1084
+ ],
1085
+ "outputs": [],
1086
+ "stateMutability": "nonpayable"
1087
+ },
1088
+ {
1089
+ "type": "function",
1090
+ "name": "setRoyaltyEngine",
1091
+ "inputs": [
1092
+ {
1093
+ "name": "_royaltyEngine",
1094
+ "type": "address",
1095
+ "internalType": "address"
1096
+ }
1097
+ ],
1098
+ "outputs": [],
1099
+ "stateMutability": "nonpayable"
1100
+ },
1101
+ {
1102
+ "type": "function",
1103
+ "name": "setRoyaltyRegistry",
1104
+ "inputs": [
1105
+ {
1106
+ "name": "_royaltyRegistry",
1107
+ "type": "address",
1108
+ "internalType": "address"
1109
+ }
1110
+ ],
1111
+ "outputs": [],
1112
+ "stateMutability": "nonpayable"
1113
+ },
1114
+ {
1115
+ "type": "function",
1116
+ "name": "setSalePrice",
1117
+ "inputs": [
1118
+ {
1119
+ "name": "_originContract",
1120
+ "type": "address",
1121
+ "internalType": "address"
1122
+ },
1123
+ {
1124
+ "name": "_tokenId",
1125
+ "type": "uint256",
1126
+ "internalType": "uint256"
1127
+ },
1128
+ {
1129
+ "name": "_currencyAddress",
1130
+ "type": "address",
1131
+ "internalType": "address"
1132
+ },
1133
+ {
1134
+ "name": "_listPrice",
1135
+ "type": "uint256",
1136
+ "internalType": "uint256"
1137
+ },
1138
+ {
1139
+ "name": "_target",
1140
+ "type": "address",
1141
+ "internalType": "address"
1142
+ },
1143
+ {
1144
+ "name": "_splitAddresses",
1145
+ "type": "address[]",
1146
+ "internalType": "address payable[]"
1147
+ },
1148
+ {
1149
+ "name": "_splitRatios",
1150
+ "type": "uint8[]",
1151
+ "internalType": "uint8[]"
1152
+ }
1153
+ ],
1154
+ "outputs": [],
1155
+ "stateMutability": "nonpayable"
1156
+ },
1157
+ {
1158
+ "type": "function",
1159
+ "name": "setSpaceOperatorRegistry",
1160
+ "inputs": [
1161
+ {
1162
+ "name": "_spaceOperatorRegistry",
1163
+ "type": "address",
1164
+ "internalType": "address"
1165
+ }
1166
+ ],
1167
+ "outputs": [],
1168
+ "stateMutability": "nonpayable"
1169
+ },
1170
+ {
1171
+ "type": "function",
1172
+ "name": "setStakingRegistry",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "_stakingRegistry",
1176
+ "type": "address",
1177
+ "internalType": "address"
1178
+ }
1179
+ ],
1180
+ "outputs": [],
1181
+ "stateMutability": "nonpayable"
1182
+ },
1183
+ {
1184
+ "type": "function",
1185
+ "name": "setSuperRareAuctionHouse",
1186
+ "inputs": [
1187
+ {
1188
+ "name": "_superRareAuctionHouse",
1189
+ "type": "address",
1190
+ "internalType": "address"
1191
+ }
1192
+ ],
1193
+ "outputs": [],
1194
+ "stateMutability": "nonpayable"
1195
+ },
1196
+ {
1197
+ "type": "function",
1198
+ "name": "setSuperRareMarketplace",
1199
+ "inputs": [
1200
+ {
1201
+ "name": "_superRareMarketplace",
1202
+ "type": "address",
1203
+ "internalType": "address"
1204
+ }
1205
+ ],
1206
+ "outputs": [],
1207
+ "stateMutability": "nonpayable"
1208
+ },
1209
+ {
1210
+ "type": "function",
1211
+ "name": "settleAuction",
1212
+ "inputs": [
1213
+ {
1214
+ "name": "_originContract",
1215
+ "type": "address",
1216
+ "internalType": "address"
1217
+ },
1218
+ {
1219
+ "name": "_tokenId",
1220
+ "type": "uint256",
1221
+ "internalType": "uint256"
1222
+ }
1223
+ ],
1224
+ "outputs": [],
1225
+ "stateMutability": "nonpayable"
1226
+ },
1227
+ {
1228
+ "type": "function",
1229
+ "name": "spaceOperatorRegistry",
1230
+ "inputs": [],
1231
+ "outputs": [
1232
+ {
1233
+ "name": "",
1234
+ "type": "address",
1235
+ "internalType": "contract ISpaceOperatorRegistry"
1236
+ }
1237
+ ],
1238
+ "stateMutability": "view"
1239
+ },
1240
+ {
1241
+ "type": "function",
1242
+ "name": "stakingRegistry",
1243
+ "inputs": [],
1244
+ "outputs": [
1245
+ {
1246
+ "name": "",
1247
+ "type": "address",
1248
+ "internalType": "address"
1249
+ }
1250
+ ],
1251
+ "stateMutability": "view"
1252
+ },
1253
+ {
1254
+ "type": "function",
1255
+ "name": "superRareAuctionHouse",
1256
+ "inputs": [],
1257
+ "outputs": [
1258
+ {
1259
+ "name": "",
1260
+ "type": "address",
1261
+ "internalType": "address"
1262
+ }
1263
+ ],
1264
+ "stateMutability": "view"
1265
+ },
1266
+ {
1267
+ "type": "function",
1268
+ "name": "superRareMarketplace",
1269
+ "inputs": [],
1270
+ "outputs": [
1271
+ {
1272
+ "name": "",
1273
+ "type": "address",
1274
+ "internalType": "address"
1275
+ }
1276
+ ],
1277
+ "stateMutability": "view"
1278
+ },
1279
+ {
1280
+ "type": "function",
1281
+ "name": "tokenAuctions",
1282
+ "inputs": [
1283
+ {
1284
+ "name": "",
1285
+ "type": "address",
1286
+ "internalType": "address"
1287
+ },
1288
+ {
1289
+ "name": "",
1290
+ "type": "uint256",
1291
+ "internalType": "uint256"
1292
+ }
1293
+ ],
1294
+ "outputs": [
1295
+ {
1296
+ "name": "auctionCreator",
1297
+ "type": "address",
1298
+ "internalType": "address payable"
1299
+ },
1300
+ {
1301
+ "name": "creationBlock",
1302
+ "type": "uint256",
1303
+ "internalType": "uint256"
1304
+ },
1305
+ {
1306
+ "name": "startingTime",
1307
+ "type": "uint256",
1308
+ "internalType": "uint256"
1309
+ },
1310
+ {
1311
+ "name": "lengthOfAuction",
1312
+ "type": "uint256",
1313
+ "internalType": "uint256"
1314
+ },
1315
+ {
1316
+ "name": "currencyAddress",
1317
+ "type": "address",
1318
+ "internalType": "address"
1319
+ },
1320
+ {
1321
+ "name": "minimumBid",
1322
+ "type": "uint256",
1323
+ "internalType": "uint256"
1324
+ },
1325
+ {
1326
+ "name": "auctionType",
1327
+ "type": "bytes32",
1328
+ "internalType": "bytes32"
1329
+ }
1330
+ ],
1331
+ "stateMutability": "view"
1332
+ },
1333
+ {
1334
+ "type": "function",
1335
+ "name": "tokenCurrentOffers",
1336
+ "inputs": [
1337
+ {
1338
+ "name": "",
1339
+ "type": "address",
1340
+ "internalType": "address"
1341
+ },
1342
+ {
1343
+ "name": "",
1344
+ "type": "uint256",
1345
+ "internalType": "uint256"
1346
+ },
1347
+ {
1348
+ "name": "",
1349
+ "type": "address",
1350
+ "internalType": "address"
1351
+ }
1352
+ ],
1353
+ "outputs": [
1354
+ {
1355
+ "name": "buyer",
1356
+ "type": "address",
1357
+ "internalType": "address payable"
1358
+ },
1359
+ {
1360
+ "name": "amount",
1361
+ "type": "uint256",
1362
+ "internalType": "uint256"
1363
+ },
1364
+ {
1365
+ "name": "timestamp",
1366
+ "type": "uint256",
1367
+ "internalType": "uint256"
1368
+ },
1369
+ {
1370
+ "name": "marketplaceFee",
1371
+ "type": "uint8",
1372
+ "internalType": "uint8"
1373
+ },
1374
+ {
1375
+ "name": "convertible",
1376
+ "type": "bool",
1377
+ "internalType": "bool"
1378
+ }
1379
+ ],
1380
+ "stateMutability": "view"
1381
+ },
1382
+ {
1383
+ "type": "function",
1384
+ "name": "tokenSalePrices",
1385
+ "inputs": [
1386
+ {
1387
+ "name": "",
1388
+ "type": "address",
1389
+ "internalType": "address"
1390
+ },
1391
+ {
1392
+ "name": "",
1393
+ "type": "uint256",
1394
+ "internalType": "uint256"
1395
+ },
1396
+ {
1397
+ "name": "",
1398
+ "type": "address",
1399
+ "internalType": "address"
1400
+ }
1401
+ ],
1402
+ "outputs": [
1403
+ {
1404
+ "name": "seller",
1405
+ "type": "address",
1406
+ "internalType": "address payable"
1407
+ },
1408
+ {
1409
+ "name": "currencyAddress",
1410
+ "type": "address",
1411
+ "internalType": "address"
1412
+ },
1413
+ {
1414
+ "name": "amount",
1415
+ "type": "uint256",
1416
+ "internalType": "uint256"
1417
+ }
1418
+ ],
1419
+ "stateMutability": "view"
1420
+ },
1421
+ {
1422
+ "type": "function",
1423
+ "name": "transferOwnership",
1424
+ "inputs": [
1425
+ {
1426
+ "name": "newOwner",
1427
+ "type": "address",
1428
+ "internalType": "address"
1429
+ }
1430
+ ],
1431
+ "outputs": [],
1432
+ "stateMutability": "nonpayable"
1433
+ },
1434
+ {
1435
+ "type": "event",
1436
+ "name": "AcceptOffer",
1437
+ "inputs": [
1438
+ {
1439
+ "name": "_originContract",
1440
+ "type": "address",
1441
+ "indexed": true,
1442
+ "internalType": "address"
1443
+ },
1444
+ {
1445
+ "name": "_bidder",
1446
+ "type": "address",
1447
+ "indexed": true,
1448
+ "internalType": "address"
1449
+ },
1450
+ {
1451
+ "name": "_seller",
1452
+ "type": "address",
1453
+ "indexed": true,
1454
+ "internalType": "address"
1455
+ },
1456
+ {
1457
+ "name": "_currencyAddress",
1458
+ "type": "address",
1459
+ "indexed": false,
1460
+ "internalType": "address"
1461
+ },
1462
+ {
1463
+ "name": "_amount",
1464
+ "type": "uint256",
1465
+ "indexed": false,
1466
+ "internalType": "uint256"
1467
+ },
1468
+ {
1469
+ "name": "_tokenId",
1470
+ "type": "uint256",
1471
+ "indexed": false,
1472
+ "internalType": "uint256"
1473
+ },
1474
+ {
1475
+ "name": "_splitAddresses",
1476
+ "type": "address[]",
1477
+ "indexed": false,
1478
+ "internalType": "address payable[]"
1479
+ },
1480
+ {
1481
+ "name": "_splitRatios",
1482
+ "type": "uint8[]",
1483
+ "indexed": false,
1484
+ "internalType": "uint8[]"
1485
+ }
1486
+ ],
1487
+ "anonymous": false
1488
+ },
1489
+ {
1490
+ "type": "event",
1491
+ "name": "AuctionBid",
1492
+ "inputs": [
1493
+ {
1494
+ "name": "_contractAddress",
1495
+ "type": "address",
1496
+ "indexed": true,
1497
+ "internalType": "address"
1498
+ },
1499
+ {
1500
+ "name": "_bidder",
1501
+ "type": "address",
1502
+ "indexed": true,
1503
+ "internalType": "address"
1504
+ },
1505
+ {
1506
+ "name": "_tokenId",
1507
+ "type": "uint256",
1508
+ "indexed": true,
1509
+ "internalType": "uint256"
1510
+ },
1511
+ {
1512
+ "name": "_currencyAddress",
1513
+ "type": "address",
1514
+ "indexed": false,
1515
+ "internalType": "address"
1516
+ },
1517
+ {
1518
+ "name": "_amount",
1519
+ "type": "uint256",
1520
+ "indexed": false,
1521
+ "internalType": "uint256"
1522
+ },
1523
+ {
1524
+ "name": "_startedAuction",
1525
+ "type": "bool",
1526
+ "indexed": false,
1527
+ "internalType": "bool"
1528
+ },
1529
+ {
1530
+ "name": "_newAuctionLength",
1531
+ "type": "uint256",
1532
+ "indexed": false,
1533
+ "internalType": "uint256"
1534
+ },
1535
+ {
1536
+ "name": "_previousBidder",
1537
+ "type": "address",
1538
+ "indexed": false,
1539
+ "internalType": "address"
1540
+ }
1541
+ ],
1542
+ "anonymous": false
1543
+ },
1544
+ {
1545
+ "type": "event",
1546
+ "name": "AuctionSettled",
1547
+ "inputs": [
1548
+ {
1549
+ "name": "_contractAddress",
1550
+ "type": "address",
1551
+ "indexed": true,
1552
+ "internalType": "address"
1553
+ },
1554
+ {
1555
+ "name": "_bidder",
1556
+ "type": "address",
1557
+ "indexed": true,
1558
+ "internalType": "address"
1559
+ },
1560
+ {
1561
+ "name": "_seller",
1562
+ "type": "address",
1563
+ "indexed": false,
1564
+ "internalType": "address"
1565
+ },
1566
+ {
1567
+ "name": "_tokenId",
1568
+ "type": "uint256",
1569
+ "indexed": true,
1570
+ "internalType": "uint256"
1571
+ },
1572
+ {
1573
+ "name": "_currencyAddress",
1574
+ "type": "address",
1575
+ "indexed": false,
1576
+ "internalType": "address"
1577
+ },
1578
+ {
1579
+ "name": "_amount",
1580
+ "type": "uint256",
1581
+ "indexed": false,
1582
+ "internalType": "uint256"
1583
+ }
1584
+ ],
1585
+ "anonymous": false
1586
+ },
1587
+ {
1588
+ "type": "event",
1589
+ "name": "CancelAuction",
1590
+ "inputs": [
1591
+ {
1592
+ "name": "_contractAddress",
1593
+ "type": "address",
1594
+ "indexed": true,
1595
+ "internalType": "address"
1596
+ },
1597
+ {
1598
+ "name": "_tokenId",
1599
+ "type": "uint256",
1600
+ "indexed": true,
1601
+ "internalType": "uint256"
1602
+ },
1603
+ {
1604
+ "name": "_auctionCreator",
1605
+ "type": "address",
1606
+ "indexed": true,
1607
+ "internalType": "address"
1608
+ }
1609
+ ],
1610
+ "anonymous": false
1611
+ },
1612
+ {
1613
+ "type": "event",
1614
+ "name": "CancelOffer",
1615
+ "inputs": [
1616
+ {
1617
+ "name": "_originContract",
1618
+ "type": "address",
1619
+ "indexed": true,
1620
+ "internalType": "address"
1621
+ },
1622
+ {
1623
+ "name": "_bidder",
1624
+ "type": "address",
1625
+ "indexed": true,
1626
+ "internalType": "address"
1627
+ },
1628
+ {
1629
+ "name": "_currencyAddress",
1630
+ "type": "address",
1631
+ "indexed": true,
1632
+ "internalType": "address"
1633
+ },
1634
+ {
1635
+ "name": "_amount",
1636
+ "type": "uint256",
1637
+ "indexed": false,
1638
+ "internalType": "uint256"
1639
+ },
1640
+ {
1641
+ "name": "_tokenId",
1642
+ "type": "uint256",
1643
+ "indexed": false,
1644
+ "internalType": "uint256"
1645
+ }
1646
+ ],
1647
+ "anonymous": false
1648
+ },
1649
+ {
1650
+ "type": "event",
1651
+ "name": "Initialized",
1652
+ "inputs": [
1653
+ {
1654
+ "name": "version",
1655
+ "type": "uint8",
1656
+ "indexed": false,
1657
+ "internalType": "uint8"
1658
+ }
1659
+ ],
1660
+ "anonymous": false
1661
+ },
1662
+ {
1663
+ "type": "event",
1664
+ "name": "NewAuction",
1665
+ "inputs": [
1666
+ {
1667
+ "name": "_contractAddress",
1668
+ "type": "address",
1669
+ "indexed": true,
1670
+ "internalType": "address"
1671
+ },
1672
+ {
1673
+ "name": "_tokenId",
1674
+ "type": "uint256",
1675
+ "indexed": true,
1676
+ "internalType": "uint256"
1677
+ },
1678
+ {
1679
+ "name": "_auctionCreator",
1680
+ "type": "address",
1681
+ "indexed": true,
1682
+ "internalType": "address"
1683
+ },
1684
+ {
1685
+ "name": "_currencyAddress",
1686
+ "type": "address",
1687
+ "indexed": false,
1688
+ "internalType": "address"
1689
+ },
1690
+ {
1691
+ "name": "_startingTime",
1692
+ "type": "uint256",
1693
+ "indexed": false,
1694
+ "internalType": "uint256"
1695
+ },
1696
+ {
1697
+ "name": "_minimumBid",
1698
+ "type": "uint256",
1699
+ "indexed": false,
1700
+ "internalType": "uint256"
1701
+ },
1702
+ {
1703
+ "name": "_lengthOfAuction",
1704
+ "type": "uint256",
1705
+ "indexed": false,
1706
+ "internalType": "uint256"
1707
+ }
1708
+ ],
1709
+ "anonymous": false
1710
+ },
1711
+ {
1712
+ "type": "event",
1713
+ "name": "OfferPlaced",
1714
+ "inputs": [
1715
+ {
1716
+ "name": "_originContract",
1717
+ "type": "address",
1718
+ "indexed": true,
1719
+ "internalType": "address"
1720
+ },
1721
+ {
1722
+ "name": "_bidder",
1723
+ "type": "address",
1724
+ "indexed": true,
1725
+ "internalType": "address"
1726
+ },
1727
+ {
1728
+ "name": "_currencyAddress",
1729
+ "type": "address",
1730
+ "indexed": true,
1731
+ "internalType": "address"
1732
+ },
1733
+ {
1734
+ "name": "_amount",
1735
+ "type": "uint256",
1736
+ "indexed": false,
1737
+ "internalType": "uint256"
1738
+ },
1739
+ {
1740
+ "name": "_tokenId",
1741
+ "type": "uint256",
1742
+ "indexed": false,
1743
+ "internalType": "uint256"
1744
+ },
1745
+ {
1746
+ "name": "_convertible",
1747
+ "type": "bool",
1748
+ "indexed": false,
1749
+ "internalType": "bool"
1750
+ }
1751
+ ],
1752
+ "anonymous": false
1753
+ },
1754
+ {
1755
+ "type": "event",
1756
+ "name": "OwnershipTransferred",
1757
+ "inputs": [
1758
+ {
1759
+ "name": "previousOwner",
1760
+ "type": "address",
1761
+ "indexed": true,
1762
+ "internalType": "address"
1763
+ },
1764
+ {
1765
+ "name": "newOwner",
1766
+ "type": "address",
1767
+ "indexed": true,
1768
+ "internalType": "address"
1769
+ }
1770
+ ],
1771
+ "anonymous": false
1772
+ },
1773
+ {
1774
+ "type": "event",
1775
+ "name": "SetSalePrice",
1776
+ "inputs": [
1777
+ {
1778
+ "name": "_originContract",
1779
+ "type": "address",
1780
+ "indexed": true,
1781
+ "internalType": "address"
1782
+ },
1783
+ {
1784
+ "name": "_currencyAddress",
1785
+ "type": "address",
1786
+ "indexed": true,
1787
+ "internalType": "address"
1788
+ },
1789
+ {
1790
+ "name": "_target",
1791
+ "type": "address",
1792
+ "indexed": false,
1793
+ "internalType": "address"
1794
+ },
1795
+ {
1796
+ "name": "_amount",
1797
+ "type": "uint256",
1798
+ "indexed": false,
1799
+ "internalType": "uint256"
1800
+ },
1801
+ {
1802
+ "name": "_tokenId",
1803
+ "type": "uint256",
1804
+ "indexed": false,
1805
+ "internalType": "uint256"
1806
+ },
1807
+ {
1808
+ "name": "_splitRecipients",
1809
+ "type": "address[]",
1810
+ "indexed": false,
1811
+ "internalType": "address payable[]"
1812
+ },
1813
+ {
1814
+ "name": "_splitRatios",
1815
+ "type": "uint8[]",
1816
+ "indexed": false,
1817
+ "internalType": "uint8[]"
1818
+ }
1819
+ ],
1820
+ "anonymous": false
1821
+ },
1822
+ {
1823
+ "type": "event",
1824
+ "name": "Sold",
1825
+ "inputs": [
1826
+ {
1827
+ "name": "_originContract",
1828
+ "type": "address",
1829
+ "indexed": true,
1830
+ "internalType": "address"
1831
+ },
1832
+ {
1833
+ "name": "_buyer",
1834
+ "type": "address",
1835
+ "indexed": true,
1836
+ "internalType": "address"
1837
+ },
1838
+ {
1839
+ "name": "_seller",
1840
+ "type": "address",
1841
+ "indexed": true,
1842
+ "internalType": "address"
1843
+ },
1844
+ {
1845
+ "name": "_currencyAddress",
1846
+ "type": "address",
1847
+ "indexed": false,
1848
+ "internalType": "address"
1849
+ },
1850
+ {
1851
+ "name": "_amount",
1852
+ "type": "uint256",
1853
+ "indexed": false,
1854
+ "internalType": "uint256"
1855
+ },
1856
+ {
1857
+ "name": "_tokenId",
1858
+ "type": "uint256",
1859
+ "indexed": false,
1860
+ "internalType": "uint256"
1861
+ }
1862
+ ],
1863
+ "anonymous": false
1864
+ }
1865
+ ];
1866
+
1867
+ // src/contracts/abis/batch-auctionhouse.ts
1868
+ var batchAuctionHouseAbi = [
1869
+ {
1870
+ type: "function",
1871
+ name: "bid",
1872
+ inputs: [
1873
+ { name: "_originContract", type: "address", internalType: "address" },
1874
+ { name: "_tokenId", type: "uint256", internalType: "uint256" },
1875
+ { name: "_currencyAddress", type: "address", internalType: "address" },
1876
+ { name: "_amount", type: "uint128", internalType: "uint128" }
1877
+ ],
1878
+ outputs: [],
1879
+ stateMutability: "payable"
1880
+ },
1881
+ {
1882
+ type: "function",
1883
+ name: "bidWithAuctionMerkleProof",
1884
+ inputs: [
1885
+ { name: "_currencyAddress", type: "address", internalType: "address" },
1886
+ { name: "_originContract", type: "address", internalType: "address" },
1887
+ { name: "_tokenId", type: "uint256", internalType: "uint256" },
1888
+ { name: "_creator", type: "address", internalType: "address" },
1889
+ { name: "_merkleRoot", type: "bytes32", internalType: "bytes32" },
1890
+ { name: "_bidAmount", type: "uint128", internalType: "uint128" },
1891
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
1892
+ ],
1893
+ outputs: [],
1894
+ stateMutability: "payable"
1895
+ },
1896
+ {
1897
+ type: "function",
1898
+ name: "cancelAuctionMerkleRoot",
1899
+ inputs: [{ name: "_root", type: "bytes32", internalType: "bytes32" }],
1900
+ outputs: [],
1901
+ stateMutability: "nonpayable"
1902
+ },
1903
+ {
1904
+ type: "function",
1905
+ name: "getAuctionDetails",
1906
+ inputs: [
1907
+ { name: "_originContract", type: "address", internalType: "address" },
1908
+ { name: "_tokenId", type: "uint256", internalType: "uint256" }
1909
+ ],
1910
+ outputs: [
1911
+ { name: "", type: "address", internalType: "address" },
1912
+ { name: "", type: "uint32", internalType: "uint32" },
1913
+ { name: "", type: "uint64", internalType: "uint64" },
1914
+ { name: "", type: "uint64", internalType: "uint64" },
1915
+ { name: "", type: "address", internalType: "address" },
1916
+ { name: "", type: "uint128", internalType: "uint128" },
1917
+ { name: "", type: "address[]", internalType: "address payable[]" },
1918
+ { name: "", type: "uint8[]", internalType: "uint8[]" }
1919
+ ],
1920
+ stateMutability: "view"
1921
+ },
1922
+ {
1923
+ type: "function",
1924
+ name: "getCreatorAuctionMerkleRootNonce",
1925
+ inputs: [
1926
+ { name: "_user", type: "address", internalType: "address" },
1927
+ { name: "_root", type: "bytes32", internalType: "bytes32" }
1928
+ ],
1929
+ outputs: [{ name: "", type: "uint32", internalType: "uint32" }],
1930
+ stateMutability: "view"
1931
+ },
1932
+ {
1933
+ type: "function",
1934
+ name: "getCurrentBid",
1935
+ inputs: [
1936
+ { name: "_originContract", type: "address", internalType: "address" },
1937
+ { name: "_tokenId", type: "uint256", internalType: "uint256" }
1938
+ ],
1939
+ outputs: [
1940
+ { name: "bidder", type: "address", internalType: "address" },
1941
+ { name: "currencyAddress", type: "address", internalType: "address" },
1942
+ { name: "amount", type: "uint128", internalType: "uint128" },
1943
+ { name: "marketplaceFeeAtTime", type: "uint8", internalType: "uint8" }
1944
+ ],
1945
+ stateMutability: "view"
1946
+ },
1947
+ {
1948
+ type: "function",
1949
+ name: "getMerkleAuctionConfig",
1950
+ inputs: [
1951
+ { name: "_creator", type: "address", internalType: "address" },
1952
+ { name: "_root", type: "bytes32", internalType: "bytes32" }
1953
+ ],
1954
+ outputs: [
1955
+ {
1956
+ name: "",
1957
+ type: "tuple",
1958
+ internalType: "struct IRareBatchAuctionHouse.MerkleAuctionConfig",
1959
+ components: [
1960
+ { name: "currency", type: "address", internalType: "address" },
1961
+ { name: "startingAmount", type: "uint128", internalType: "uint128" },
1962
+ { name: "duration", type: "uint64", internalType: "uint64" },
1963
+ { name: "nonce", type: "uint32", internalType: "uint32" },
1964
+ { name: "splitAddresses", type: "address[]", internalType: "address payable[]" },
1965
+ { name: "splitRatios", type: "uint8[]", internalType: "uint8[]" }
1966
+ ]
1967
+ }
1968
+ ],
1969
+ stateMutability: "view"
1970
+ },
1971
+ {
1972
+ type: "function",
1973
+ name: "getTokenAuctionNonce",
1974
+ inputs: [
1975
+ { name: "_creator", type: "address", internalType: "address" },
1976
+ { name: "_root", type: "bytes32", internalType: "bytes32" },
1977
+ { name: "_tokenContract", type: "address", internalType: "address" },
1978
+ { name: "_tokenId", type: "uint256", internalType: "uint256" }
1979
+ ],
1980
+ outputs: [{ name: "", type: "uint32", internalType: "uint32" }],
1981
+ stateMutability: "view"
1982
+ },
1983
+ {
1984
+ type: "function",
1985
+ name: "getUserAuctionMerkleRoots",
1986
+ inputs: [{ name: "_user", type: "address", internalType: "address" }],
1987
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
1988
+ stateMutability: "view"
1989
+ },
1990
+ {
1991
+ type: "function",
1992
+ name: "isTokenInRoot",
1993
+ inputs: [
1994
+ { name: "_root", type: "bytes32", internalType: "bytes32" },
1995
+ { name: "_origin", type: "address", internalType: "address" },
1996
+ { name: "_tokenId", type: "uint256", internalType: "uint256" },
1997
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
1998
+ ],
1999
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
2000
+ stateMutability: "pure"
2001
+ },
2002
+ {
2003
+ type: "function",
2004
+ name: "registerAuctionMerkleRoot",
2005
+ inputs: [
2006
+ { name: "_merkleRoot", type: "bytes32", internalType: "bytes32" },
2007
+ { name: "_currency", type: "address", internalType: "address" },
2008
+ { name: "_startingAmount", type: "uint128", internalType: "uint128" },
2009
+ { name: "_duration", type: "uint64", internalType: "uint64" },
2010
+ { name: "_splitAddresses", type: "address[]", internalType: "address payable[]" },
2011
+ { name: "_splitRatios", type: "uint8[]", internalType: "uint8[]" }
2012
+ ],
2013
+ outputs: [],
2014
+ stateMutability: "nonpayable"
2015
+ },
2016
+ {
2017
+ type: "function",
2018
+ name: "settleAuction",
2019
+ inputs: [
2020
+ { name: "_originContract", type: "address", internalType: "address" },
2021
+ { name: "_tokenId", type: "uint256", internalType: "uint256" }
2022
+ ],
2023
+ outputs: [],
2024
+ stateMutability: "nonpayable"
2025
+ },
2026
+ {
2027
+ type: "event",
2028
+ name: "AuctionBid",
2029
+ inputs: [
2030
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2031
+ { name: "bidder", type: "address", indexed: true, internalType: "address" },
2032
+ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" },
2033
+ { name: "currencyAddress", type: "address", indexed: false, internalType: "address" },
2034
+ { name: "amount", type: "uint128", indexed: false, internalType: "uint128" },
2035
+ { name: "marketplaceFee", type: "uint8", indexed: false, internalType: "uint8" },
2036
+ { name: "previousBidder", type: "address", indexed: false, internalType: "address" }
2037
+ ],
2038
+ anonymous: false
2039
+ },
2040
+ {
2041
+ type: "event",
2042
+ name: "AuctionMerkleBid",
2043
+ inputs: [
2044
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2045
+ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" },
2046
+ { name: "bidder", type: "address", indexed: true, internalType: "address" },
2047
+ { name: "creator", type: "address", indexed: false, internalType: "address" },
2048
+ { name: "currencyAddress", type: "address", indexed: false, internalType: "address" },
2049
+ { name: "merkleRoot", type: "bytes32", indexed: false, internalType: "bytes32" },
2050
+ { name: "amount", type: "uint128", indexed: false, internalType: "uint128" },
2051
+ { name: "nonce", type: "uint32", indexed: false, internalType: "uint32" }
2052
+ ],
2053
+ anonymous: false
2054
+ },
2055
+ {
2056
+ type: "event",
2057
+ name: "AuctionMerkleRootCancelled",
2058
+ inputs: [
2059
+ { name: "creator", type: "address", indexed: true, internalType: "address" },
2060
+ { name: "merkleRoot", type: "bytes32", indexed: true, internalType: "bytes32" }
2061
+ ],
2062
+ anonymous: false
2063
+ },
2064
+ {
2065
+ type: "event",
2066
+ name: "AuctionMerkleRootRegistered",
2067
+ inputs: [
2068
+ { name: "creator", type: "address", indexed: true, internalType: "address" },
2069
+ { name: "merkleRoot", type: "bytes32", indexed: true, internalType: "bytes32" },
2070
+ { name: "currencyAddress", type: "address", indexed: false, internalType: "address" },
2071
+ { name: "startingAmount", type: "uint128", indexed: false, internalType: "uint128" },
2072
+ { name: "duration", type: "uint64", indexed: false, internalType: "uint64" },
2073
+ { name: "nonce", type: "uint32", indexed: false, internalType: "uint32" }
2074
+ ],
2075
+ anonymous: false
2076
+ },
2077
+ {
2078
+ type: "event",
2079
+ name: "AuctionSettled",
2080
+ inputs: [
2081
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2082
+ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" },
2083
+ { name: "seller", type: "address", indexed: false, internalType: "address" },
2084
+ { name: "bidder", type: "address", indexed: false, internalType: "address" },
2085
+ { name: "amount", type: "uint128", indexed: false, internalType: "uint128" },
2086
+ { name: "currencyAddress", type: "address", indexed: false, internalType: "address" },
2087
+ { name: "marketplaceFee", type: "uint8", indexed: false, internalType: "uint8" }
2088
+ ],
2089
+ anonymous: false
2090
+ }
2091
+ ];
2092
+
2093
+ // src/contracts/abis/batch-listing.ts
2094
+ var batchListingAbi = [
2095
+ {
2096
+ "type": "function",
2097
+ "name": "registerSalePriceMerkleRoot",
2098
+ "inputs": [
2099
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" },
2100
+ { "name": "_currency", "type": "address", "internalType": "address" },
2101
+ { "name": "_amount", "type": "uint256", "internalType": "uint256" },
2102
+ { "name": "_splitAddresses", "type": "address[]", "internalType": "address payable[]" },
2103
+ { "name": "_splitRatios", "type": "uint8[]", "internalType": "uint8[]" }
2104
+ ],
2105
+ "outputs": [],
2106
+ "stateMutability": "nonpayable"
2107
+ },
2108
+ {
2109
+ "type": "function",
2110
+ "name": "cancelSalePriceMerkleRoot",
2111
+ "inputs": [
2112
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" }
2113
+ ],
2114
+ "outputs": [],
2115
+ "stateMutability": "nonpayable"
2116
+ },
2117
+ {
2118
+ "type": "function",
2119
+ "name": "buyWithMerkleProof",
2120
+ "inputs": [
2121
+ { "name": "_originContract", "type": "address", "internalType": "address" },
2122
+ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" },
2123
+ { "name": "_currency", "type": "address", "internalType": "address" },
2124
+ { "name": "_amount", "type": "uint256", "internalType": "uint256" },
2125
+ { "name": "_creator", "type": "address", "internalType": "address" },
2126
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" },
2127
+ { "name": "_proof", "type": "bytes32[]", "internalType": "bytes32[]" },
2128
+ { "name": "_allowListProof", "type": "bytes32[]", "internalType": "bytes32[]" }
2129
+ ],
2130
+ "outputs": [],
2131
+ "stateMutability": "payable"
2132
+ },
2133
+ {
2134
+ "type": "function",
2135
+ "name": "setAllowListConfig",
2136
+ "inputs": [
2137
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" },
2138
+ { "name": "_allowListRoot", "type": "bytes32", "internalType": "bytes32" },
2139
+ { "name": "_endTimestamp", "type": "uint256", "internalType": "uint256" }
2140
+ ],
2141
+ "outputs": [],
2142
+ "stateMutability": "nonpayable"
2143
+ },
2144
+ {
2145
+ "type": "function",
2146
+ "name": "getMerkleSalePriceConfig",
2147
+ "inputs": [
2148
+ { "name": "_creator", "type": "address", "internalType": "address" },
2149
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" }
2150
+ ],
2151
+ "outputs": [
2152
+ {
2153
+ "name": "",
2154
+ "type": "tuple",
2155
+ "internalType": "struct IRareBatchListingsMarketplace.SalePriceConfig",
2156
+ "components": [
2157
+ { "name": "currency", "type": "address", "internalType": "address" },
2158
+ { "name": "amount", "type": "uint256", "internalType": "uint256" },
2159
+ { "name": "splitRecipients", "type": "address[]", "internalType": "address payable[]" },
2160
+ { "name": "splitRatios", "type": "uint8[]", "internalType": "uint8[]" },
2161
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" }
2162
+ ]
2163
+ }
2164
+ ],
2165
+ "stateMutability": "view"
2166
+ },
2167
+ {
2168
+ "type": "function",
2169
+ "name": "getAllowListConfig",
2170
+ "inputs": [
2171
+ { "name": "_creator", "type": "address", "internalType": "address" },
2172
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" }
2173
+ ],
2174
+ "outputs": [
2175
+ {
2176
+ "name": "",
2177
+ "type": "tuple",
2178
+ "internalType": "struct IRareBatchListingsMarketplace.AllowListConfig",
2179
+ "components": [
2180
+ { "name": "root", "type": "bytes32", "internalType": "bytes32" },
2181
+ { "name": "endTimestamp", "type": "uint256", "internalType": "uint256" }
2182
+ ]
2183
+ }
2184
+ ],
2185
+ "stateMutability": "view"
2186
+ },
2187
+ {
2188
+ "type": "function",
2189
+ "name": "getCreatorSalePriceMerkleRootNonce",
2190
+ "inputs": [
2191
+ { "name": "_user", "type": "address", "internalType": "address" },
2192
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" }
2193
+ ],
2194
+ "outputs": [
2195
+ { "name": "", "type": "uint256", "internalType": "uint256" }
2196
+ ],
2197
+ "stateMutability": "view"
2198
+ },
2199
+ {
2200
+ "type": "function",
2201
+ "name": "getTokenSalePriceNonce",
2202
+ "inputs": [
2203
+ { "name": "_creator", "type": "address", "internalType": "address" },
2204
+ { "name": "_merkleRoot", "type": "bytes32", "internalType": "bytes32" },
2205
+ { "name": "_tokenContract", "type": "address", "internalType": "address" },
2206
+ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" }
2207
+ ],
2208
+ "outputs": [
2209
+ { "name": "", "type": "uint256", "internalType": "uint256" }
2210
+ ],
2211
+ "stateMutability": "view"
2212
+ },
2213
+ {
2214
+ "type": "function",
2215
+ "name": "getUserSalePriceMerkleRoots",
2216
+ "inputs": [
2217
+ { "name": "_user", "type": "address", "internalType": "address" }
2218
+ ],
2219
+ "outputs": [
2220
+ { "name": "", "type": "bytes32[]", "internalType": "bytes32[]" }
2221
+ ],
2222
+ "stateMutability": "view"
2223
+ },
2224
+ {
2225
+ "type": "function",
2226
+ "name": "isTokenInRoot",
2227
+ "inputs": [
2228
+ { "name": "_root", "type": "bytes32", "internalType": "bytes32" },
2229
+ { "name": "_origin", "type": "address", "internalType": "address" },
2230
+ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" },
2231
+ { "name": "_proof", "type": "bytes32[]", "internalType": "bytes32[]" }
2232
+ ],
2233
+ "outputs": [
2234
+ { "name": "", "type": "bool", "internalType": "bool" }
2235
+ ],
2236
+ "stateMutability": "pure"
2237
+ },
2238
+ {
2239
+ "type": "event",
2240
+ "name": "SalePriceMerkleRootRegistered",
2241
+ "inputs": [
2242
+ { "name": "creator", "type": "address", "indexed": true, "internalType": "address" },
2243
+ { "name": "merkleRoot", "type": "bytes32", "indexed": true, "internalType": "bytes32" },
2244
+ { "name": "currency", "type": "address", "indexed": false, "internalType": "address" },
2245
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" },
2246
+ { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }
2247
+ ],
2248
+ "anonymous": false
2249
+ },
2250
+ {
2251
+ "type": "event",
2252
+ "name": "SalePriceMerkleRootCancelled",
2253
+ "inputs": [
2254
+ { "name": "creator", "type": "address", "indexed": true, "internalType": "address" },
2255
+ { "name": "merkleRoot", "type": "bytes32", "indexed": true, "internalType": "bytes32" }
2256
+ ],
2257
+ "anonymous": false
2258
+ },
2259
+ {
2260
+ "type": "event",
2261
+ "name": "MerkleSalePriceExecuted",
2262
+ "inputs": [
2263
+ { "name": "contractAddress", "type": "address", "indexed": true, "internalType": "address" },
2264
+ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
2265
+ { "name": "buyer", "type": "address", "indexed": true, "internalType": "address" },
2266
+ { "name": "seller", "type": "address", "indexed": false, "internalType": "address" },
2267
+ { "name": "currency", "type": "address", "indexed": false, "internalType": "address" },
2268
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" },
2269
+ { "name": "merkleRoot", "type": "bytes32", "indexed": false, "internalType": "bytes32" },
2270
+ { "name": "nonce", "type": "uint256", "indexed": false, "internalType": "uint256" }
2271
+ ],
2272
+ "anonymous": false
2273
+ },
2274
+ {
2275
+ "type": "event",
2276
+ "name": "AllowListConfigSet",
2277
+ "inputs": [
2278
+ { "name": "creator", "type": "address", "indexed": true, "internalType": "address" },
2279
+ { "name": "merkleRoot", "type": "bytes32", "indexed": true, "internalType": "bytes32" },
2280
+ { "name": "allowListRoot", "type": "bytes32", "indexed": true, "internalType": "bytes32" },
2281
+ { "name": "endTimestamp", "type": "uint256", "indexed": false, "internalType": "uint256" }
2282
+ ],
2283
+ "anonymous": false
2284
+ }
2285
+ ];
2286
+
2287
+ // src/contracts/abis/batch-offer.ts
2288
+ var batchOfferAbi = [
2289
+ {
2290
+ type: "function",
2291
+ name: "acceptBatchOffer",
2292
+ inputs: [
2293
+ { name: "_creator", type: "address", internalType: "address" },
2294
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" },
2295
+ { name: "_rootHash", type: "bytes32", internalType: "bytes32" },
2296
+ { name: "_contractAddress", type: "address", internalType: "address" },
2297
+ { name: "_tokenId", type: "uint256", internalType: "uint256" },
2298
+ { name: "_splitRecipients", type: "address[]", internalType: "address payable[]" },
2299
+ { name: "_splitRatios", type: "uint8[]", internalType: "uint8[]" }
2300
+ ],
2301
+ outputs: [],
2302
+ stateMutability: "payable"
2303
+ },
2304
+ {
2305
+ type: "function",
2306
+ name: "createBatchOffer",
2307
+ inputs: [
2308
+ { name: "_rootHash", type: "bytes32", internalType: "bytes32" },
2309
+ { name: "_amount", type: "uint256", internalType: "uint256" },
2310
+ { name: "_currency", type: "address", internalType: "address" },
2311
+ { name: "_expiry", type: "uint256", internalType: "uint256" }
2312
+ ],
2313
+ outputs: [],
2314
+ stateMutability: "payable"
2315
+ },
2316
+ {
2317
+ type: "function",
2318
+ name: "getBatchOffer",
2319
+ inputs: [
2320
+ { name: "creator", type: "address", internalType: "address" },
2321
+ { name: "rootHash", type: "bytes32", internalType: "bytes32" }
2322
+ ],
2323
+ outputs: [
2324
+ {
2325
+ name: "",
2326
+ type: "tuple",
2327
+ internalType: "struct IBatchOffer.BatchOffer",
2328
+ components: [
2329
+ { name: "creator", type: "address", internalType: "address" },
2330
+ { name: "rootHash", type: "bytes32", internalType: "bytes32" },
2331
+ { name: "amount", type: "uint256", internalType: "uint256" },
2332
+ { name: "currency", type: "address", internalType: "address" },
2333
+ { name: "expiry", type: "uint256", internalType: "uint256" },
2334
+ { name: "feePercentage", type: "uint256", internalType: "uint256" }
2335
+ ]
2336
+ }
2337
+ ],
2338
+ stateMutability: "view"
2339
+ },
2340
+ {
2341
+ type: "function",
2342
+ name: "revokeBatchOffer",
2343
+ inputs: [
2344
+ { name: "_rootHash", type: "bytes32", internalType: "bytes32" }
2345
+ ],
2346
+ outputs: [],
2347
+ stateMutability: "nonpayable"
2348
+ },
2349
+ {
2350
+ type: "event",
2351
+ name: "BatchOfferAccepted",
2352
+ inputs: [
2353
+ { name: "seller", type: "address", indexed: true, internalType: "address" },
2354
+ { name: "buyer", type: "address", indexed: true, internalType: "address" },
2355
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2356
+ { name: "tokenId", type: "uint256", indexed: false, internalType: "uint256" },
2357
+ { name: "rootHash", type: "bytes32", indexed: false, internalType: "bytes32" },
2358
+ { name: "currency", type: "address", indexed: false, internalType: "address" },
2359
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
2360
+ ],
2361
+ anonymous: false
2362
+ },
2363
+ {
2364
+ type: "event",
2365
+ name: "BatchOfferCreated",
2366
+ inputs: [
2367
+ { name: "creator", type: "address", indexed: true, internalType: "address" },
2368
+ { name: "rootHash", type: "bytes32", indexed: false, internalType: "bytes32" },
2369
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" },
2370
+ { name: "currency", type: "address", indexed: false, internalType: "address" },
2371
+ { name: "expiry", type: "uint256", indexed: false, internalType: "uint256" }
2372
+ ],
2373
+ anonymous: false
2374
+ },
2375
+ {
2376
+ type: "event",
2377
+ name: "BatchOfferRevoked",
2378
+ inputs: [
2379
+ { name: "creator", type: "address", indexed: true, internalType: "address" },
2380
+ { name: "rootHash", type: "bytes32", indexed: false, internalType: "bytes32" },
2381
+ { name: "currency", type: "address", indexed: false, internalType: "address" },
2382
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
2383
+ ],
2384
+ anonymous: false
2385
+ }
2386
+ ];
2387
+
2388
+ // src/contracts/abis/collection-mint.ts
2389
+ var collectionMintAbi = [
2390
+ {
2391
+ inputs: [
2392
+ { internalType: "string", name: "_baseURI", type: "string" },
2393
+ { internalType: "uint256", name: "_numberOfTokens", type: "uint256" }
2394
+ ],
2395
+ name: "batchMint",
2396
+ outputs: [],
2397
+ stateMutability: "nonpayable",
2398
+ type: "function"
2399
+ },
2400
+ {
2401
+ inputs: [
2402
+ { internalType: "string", name: "_baseURI", type: "string" },
2403
+ { internalType: "uint256", name: "_numberOfTokens", type: "uint256" }
2404
+ ],
2405
+ name: "prepareMint",
2406
+ outputs: [],
2407
+ stateMutability: "nonpayable",
2408
+ type: "function"
2409
+ },
2410
+ {
2411
+ inputs: [
2412
+ { internalType: "string", name: "_baseURI", type: "string" },
2413
+ { internalType: "uint256", name: "_numberOfTokens", type: "uint256" },
2414
+ { internalType: "address", name: "_minter", type: "address" }
2415
+ ],
2416
+ name: "prepareMintWithMinter",
2417
+ outputs: [],
2418
+ stateMutability: "nonpayable",
2419
+ type: "function"
2420
+ },
2421
+ {
2422
+ anonymous: false,
2423
+ inputs: [
2424
+ { indexed: true, internalType: "uint256", name: "fromTokenId", type: "uint256" },
2425
+ { indexed: false, internalType: "uint256", name: "toTokenId", type: "uint256" },
2426
+ { indexed: true, internalType: "address", name: "fromAddress", type: "address" },
2427
+ { indexed: true, internalType: "address", name: "toAddress", type: "address" }
2428
+ ],
2429
+ name: "ConsecutiveTransfer",
2430
+ type: "event"
2431
+ },
2432
+ {
2433
+ anonymous: false,
2434
+ inputs: [
2435
+ { indexed: true, internalType: "uint256", name: "numberOfTokens", type: "uint256" },
2436
+ { indexed: false, internalType: "string", name: "baseURI", type: "string" }
2437
+ ],
2438
+ name: "PrepareMint",
2439
+ type: "event"
2440
+ },
2441
+ {
2442
+ anonymous: false,
2443
+ inputs: [
2444
+ { indexed: true, internalType: "uint256", name: "startTokenId", type: "uint256" },
2445
+ { indexed: true, internalType: "uint256", name: "endTokenId", type: "uint256" },
2446
+ { indexed: false, internalType: "string", name: "baseURI", type: "string" }
2447
+ ],
2448
+ name: "PrepareMint",
2449
+ type: "event"
2450
+ }
2451
+ ];
2452
+
2453
+ // src/contracts/abis/collection-owner.ts
2454
+ var collectionOwnerAbi = [
2455
+ {
2456
+ inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
2457
+ name: "tokenCreator",
2458
+ outputs: [{ internalType: "address payable", name: "", type: "address" }],
2459
+ stateMutability: "view",
2460
+ type: "function"
2461
+ },
2462
+ {
2463
+ inputs: [
2464
+ { internalType: "uint256", name: "_tokenId", type: "uint256" },
2465
+ { internalType: "uint256", name: "_salePrice", type: "uint256" }
2466
+ ],
2467
+ name: "royaltyInfo",
2468
+ outputs: [
2469
+ { internalType: "address", name: "receiver", type: "address" },
2470
+ { internalType: "uint256", name: "royaltyAmount", type: "uint256" }
2471
+ ],
2472
+ stateMutability: "view",
2473
+ type: "function"
2474
+ },
2475
+ {
2476
+ inputs: [],
2477
+ name: "getDefaultRoyaltyReceiver",
2478
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2479
+ stateMutability: "view",
2480
+ type: "function"
2481
+ },
2482
+ {
2483
+ inputs: [],
2484
+ name: "getDefaultRoyaltyPercentage",
2485
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2486
+ stateMutability: "view",
2487
+ type: "function"
2488
+ },
2489
+ {
2490
+ inputs: [{ internalType: "address", name: "_receiver", type: "address" }],
2491
+ name: "setDefaultRoyaltyReceiver",
2492
+ outputs: [],
2493
+ stateMutability: "nonpayable",
2494
+ type: "function"
2495
+ },
2496
+ {
2497
+ inputs: [{ internalType: "uint256", name: "_percentage", type: "uint256" }],
2498
+ name: "setDefaultRoyaltyPercentage",
2499
+ outputs: [],
2500
+ stateMutability: "nonpayable",
2501
+ type: "function"
2502
+ },
2503
+ {
2504
+ inputs: [
2505
+ { internalType: "address", name: "_receiver", type: "address" },
2506
+ { internalType: "uint256", name: "_tokenId", type: "uint256" }
2507
+ ],
2508
+ name: "setRoyaltyReceiverForToken",
2509
+ outputs: [],
2510
+ stateMutability: "nonpayable",
2511
+ type: "function"
2512
+ },
2513
+ {
2514
+ inputs: [],
2515
+ name: "getMintConfig",
2516
+ outputs: [
2517
+ {
2518
+ components: [
2519
+ { internalType: "uint256", name: "numberOfTokens", type: "uint256" },
2520
+ { internalType: "string", name: "baseURI", type: "string" },
2521
+ { internalType: "bool", name: "lockedMetadata", type: "bool" }
2522
+ ],
2523
+ internalType: "struct LazySovereignNFT.MintConfig",
2524
+ name: "mintConfig",
2525
+ type: "tuple"
2526
+ }
2527
+ ],
2528
+ stateMutability: "view",
2529
+ type: "function"
2530
+ },
2531
+ {
2532
+ inputs: [{ internalType: "address", name: "_address", type: "address" }],
2533
+ name: "isApprovedMinter",
2534
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2535
+ stateMutability: "view",
2536
+ type: "function"
2537
+ },
2538
+ {
2539
+ inputs: [
2540
+ { internalType: "address", name: "_minter", type: "address" },
2541
+ { internalType: "bool", name: "_isMinter", type: "bool" }
2542
+ ],
2543
+ name: "setMinterApproval",
2544
+ outputs: [],
2545
+ stateMutability: "nonpayable",
2546
+ type: "function"
2547
+ },
2548
+ {
2549
+ inputs: [{ internalType: "string", name: "_baseURI", type: "string" }],
2550
+ name: "updateBaseURI",
2551
+ outputs: [],
2552
+ stateMutability: "nonpayable",
2553
+ type: "function"
2554
+ },
2555
+ {
2556
+ inputs: [
2557
+ { internalType: "uint256", name: "_tokenId", type: "uint256" },
2558
+ { internalType: "string", name: "_metadataUri", type: "string" }
2559
+ ],
2560
+ name: "updateTokenURI",
2561
+ outputs: [],
2562
+ stateMutability: "nonpayable",
2563
+ type: "function"
2564
+ },
2565
+ {
2566
+ inputs: [],
2567
+ name: "lockBaseURI",
2568
+ outputs: [],
2569
+ stateMutability: "nonpayable",
2570
+ type: "function"
2571
+ },
2572
+ {
2573
+ anonymous: false,
2574
+ inputs: [{ indexed: false, internalType: "string", name: "baseURI", type: "string" }],
2575
+ name: "MetadataUpdated",
2576
+ type: "event"
2577
+ },
2578
+ {
2579
+ anonymous: false,
2580
+ inputs: [
2581
+ { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" },
2582
+ { indexed: false, internalType: "string", name: "metadataUri", type: "string" }
2583
+ ],
2584
+ name: "TokenURIUpdated",
2585
+ type: "event"
2586
+ },
2587
+ {
2588
+ anonymous: false,
2589
+ inputs: [{ indexed: false, internalType: "string", name: "baseURI", type: "string" }],
2590
+ name: "MetadataLocked",
2591
+ type: "event"
2592
+ }
2593
+ ];
2594
+
2595
+ // src/contracts/abis/factory.ts
2596
+ var factoryAbi = [
2597
+ {
2598
+ "type": "constructor",
2599
+ "inputs": [
2600
+ {
2601
+ "name": "_sovereignBatchMintImplementation",
2602
+ "type": "address",
2603
+ "internalType": "address"
2604
+ }
2605
+ ],
2606
+ "stateMutability": "nonpayable"
2607
+ },
2608
+ {
2609
+ "type": "function",
2610
+ "name": "createSovereignBatchMint",
2611
+ "inputs": [
2612
+ {
2613
+ "name": "_name",
2614
+ "type": "string",
2615
+ "internalType": "string"
2616
+ },
2617
+ {
2618
+ "name": "_symbol",
2619
+ "type": "string",
2620
+ "internalType": "string"
2621
+ }
2622
+ ],
2623
+ "outputs": [
2624
+ {
2625
+ "name": "",
2626
+ "type": "address",
2627
+ "internalType": "address"
2628
+ }
2629
+ ],
2630
+ "stateMutability": "nonpayable"
2631
+ },
2632
+ {
2633
+ "type": "function",
2634
+ "name": "createSovereignBatchMint",
2635
+ "inputs": [
2636
+ {
2637
+ "name": "_name",
2638
+ "type": "string",
2639
+ "internalType": "string"
2640
+ },
2641
+ {
2642
+ "name": "_symbol",
2643
+ "type": "string",
2644
+ "internalType": "string"
2645
+ },
2646
+ {
2647
+ "name": "_maxTokens",
2648
+ "type": "uint256",
2649
+ "internalType": "uint256"
2650
+ }
2651
+ ],
2652
+ "outputs": [
2653
+ {
2654
+ "name": "",
2655
+ "type": "address",
2656
+ "internalType": "address"
2657
+ }
2658
+ ],
2659
+ "stateMutability": "nonpayable"
2660
+ },
2661
+ {
2662
+ "type": "function",
2663
+ "name": "owner",
2664
+ "inputs": [],
2665
+ "outputs": [
2666
+ {
2667
+ "name": "",
2668
+ "type": "address",
2669
+ "internalType": "address"
2670
+ }
2671
+ ],
2672
+ "stateMutability": "view"
2673
+ },
2674
+ {
2675
+ "type": "function",
2676
+ "name": "renounceOwnership",
2677
+ "inputs": [],
2678
+ "outputs": [],
2679
+ "stateMutability": "nonpayable"
2680
+ },
2681
+ {
2682
+ "type": "function",
2683
+ "name": "setSovereignBatchMint",
2684
+ "inputs": [
2685
+ {
2686
+ "name": "_sovereignNFT",
2687
+ "type": "address",
2688
+ "internalType": "address"
2689
+ }
2690
+ ],
2691
+ "outputs": [],
2692
+ "stateMutability": "nonpayable"
2693
+ },
2694
+ {
2695
+ "type": "function",
2696
+ "name": "sovereignNFT",
2697
+ "inputs": [],
2698
+ "outputs": [
2699
+ {
2700
+ "name": "",
2701
+ "type": "address",
2702
+ "internalType": "address"
2703
+ }
2704
+ ],
2705
+ "stateMutability": "view"
2706
+ },
2707
+ {
2708
+ "type": "function",
2709
+ "name": "transferOwnership",
2710
+ "inputs": [
2711
+ {
2712
+ "name": "newOwner",
2713
+ "type": "address",
2714
+ "internalType": "address"
2715
+ }
2716
+ ],
2717
+ "outputs": [],
2718
+ "stateMutability": "nonpayable"
2719
+ },
2720
+ {
2721
+ "type": "event",
2722
+ "name": "OwnershipTransferred",
2723
+ "inputs": [
2724
+ {
2725
+ "name": "previousOwner",
2726
+ "type": "address",
2727
+ "indexed": true,
2728
+ "internalType": "address"
2729
+ },
2730
+ {
2731
+ "name": "newOwner",
2732
+ "type": "address",
2733
+ "indexed": true,
2734
+ "internalType": "address"
2735
+ }
2736
+ ],
2737
+ "anonymous": false
2738
+ },
2739
+ {
2740
+ "type": "event",
2741
+ "name": "SovereignBatchMintCreated",
2742
+ "inputs": [
2743
+ {
2744
+ "name": "contractAddress",
2745
+ "type": "address",
2746
+ "indexed": true,
2747
+ "internalType": "address"
2748
+ },
2749
+ {
2750
+ "name": "owner",
2751
+ "type": "address",
2752
+ "indexed": true,
2753
+ "internalType": "address"
2754
+ }
2755
+ ],
2756
+ "anonymous": false
2757
+ }
2758
+ ];
2759
+
2760
+ // src/contracts/abis/lazy-batch-mint-factory.ts
2761
+ var lazyBatchMintFactoryAbi = [
2762
+ {
2763
+ type: "function",
2764
+ name: "createLazySovereignBatchMint",
2765
+ inputs: [
2766
+ { name: "_name", type: "string", internalType: "string" },
2767
+ { name: "_symbol", type: "string", internalType: "string" }
2768
+ ],
2769
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2770
+ stateMutability: "nonpayable"
2771
+ },
2772
+ {
2773
+ type: "function",
2774
+ name: "createLazySovereignBatchMint",
2775
+ inputs: [
2776
+ { name: "_name", type: "string", internalType: "string" },
2777
+ { name: "_symbol", type: "string", internalType: "string" },
2778
+ { name: "_maxTokens", type: "uint256", internalType: "uint256" }
2779
+ ],
2780
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2781
+ stateMutability: "nonpayable"
2782
+ },
2783
+ {
2784
+ type: "event",
2785
+ name: "LazySovereignBatchMintCreated",
2786
+ inputs: [
2787
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2788
+ { name: "owner", type: "address", indexed: true, internalType: "address" }
2789
+ ],
2790
+ anonymous: false
2791
+ }
2792
+ ];
2793
+
2794
+ // src/contracts/abis/lazy-sovereign-factory.ts
2795
+ var lazySovereignFactoryAbi = [
2796
+ {
2797
+ type: "function",
2798
+ name: "LAZY_SOVEREIGN_NFT",
2799
+ inputs: [],
2800
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
2801
+ stateMutability: "view"
2802
+ },
2803
+ {
2804
+ type: "function",
2805
+ name: "LAZY_ROYALTY_GUARD",
2806
+ inputs: [],
2807
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
2808
+ stateMutability: "view"
2809
+ },
2810
+ {
2811
+ type: "function",
2812
+ name: "LAZY_ROYALTY_GUARD_DEADMAN",
2813
+ inputs: [],
2814
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
2815
+ stateMutability: "view"
2816
+ },
2817
+ {
2818
+ type: "function",
2819
+ name: "createSovereignNFTContract",
2820
+ inputs: [
2821
+ { name: "_name", type: "string", internalType: "string" },
2822
+ { name: "_symbol", type: "string", internalType: "string" },
2823
+ { name: "_maxTokens", type: "uint256", internalType: "uint256" },
2824
+ { name: "_contractType", type: "bytes32", internalType: "bytes32" }
2825
+ ],
2826
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2827
+ stateMutability: "nonpayable"
2828
+ },
2829
+ {
2830
+ type: "event",
2831
+ name: "SovereignNFTContractCreated",
2832
+ inputs: [
2833
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2834
+ { name: "owner", type: "address", indexed: true, internalType: "address" }
2835
+ ],
2836
+ anonymous: false
2837
+ },
2838
+ {
2839
+ type: "event",
2840
+ name: "SovereignNFTContractCreated",
2841
+ inputs: [
2842
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
2843
+ { name: "owner", type: "address", indexed: true, internalType: "address" },
2844
+ { name: "contractType", type: "bytes32", indexed: true, internalType: "bytes32" }
2845
+ ],
2846
+ anonymous: false
2847
+ }
2848
+ ];
2849
+
2850
+ // src/contracts/abis/liquid-edition.ts
2851
+ var liquidEditionAbi = [
2852
+ {
2853
+ type: "function",
2854
+ name: "baseToken",
2855
+ inputs: [],
2856
+ outputs: [{ name: "", type: "address" }],
2857
+ stateMutability: "view"
2858
+ },
2859
+ {
2860
+ type: "function",
2861
+ name: "creatorLaunchReward",
2862
+ inputs: [],
2863
+ outputs: [{ name: "", type: "uint256" }],
2864
+ stateMutability: "view"
2865
+ },
2866
+ {
2867
+ type: "function",
2868
+ name: "getCurrentPrice",
2869
+ inputs: [],
2870
+ outputs: [
2871
+ { name: "rarePerToken", type: "uint256" },
2872
+ { name: "tokenPerRare", type: "uint256" }
2873
+ ],
2874
+ stateMutability: "view"
2875
+ },
2876
+ {
2877
+ type: "function",
2878
+ name: "getMarketState",
2879
+ inputs: [],
2880
+ outputs: [
2881
+ { name: "rarePerToken", type: "uint256" },
2882
+ { name: "tokenPerRare", type: "uint256" },
2883
+ { name: "sqrtPriceX96", type: "uint160" },
2884
+ { name: "currentTick", type: "int24" },
2885
+ { name: "liquidity", type: "uint128" },
2886
+ { name: "currentSupply", type: "uint256" }
2887
+ ],
2888
+ stateMutability: "view"
2889
+ },
2890
+ {
2891
+ type: "function",
2892
+ name: "initialTokenUri",
2893
+ inputs: [],
2894
+ outputs: [{ name: "", type: "string" }],
2895
+ stateMutability: "view"
2896
+ },
2897
+ {
2898
+ type: "function",
2899
+ name: "lpLiquidity",
2900
+ inputs: [],
2901
+ outputs: [{ name: "", type: "uint128" }],
2902
+ stateMutability: "view"
2903
+ },
2904
+ {
2905
+ type: "function",
2906
+ name: "lpTickLower",
2907
+ inputs: [],
2908
+ outputs: [{ name: "", type: "int24" }],
2909
+ stateMutability: "view"
2910
+ },
2911
+ {
2912
+ type: "function",
2913
+ name: "lpTickUpper",
2914
+ inputs: [],
2915
+ outputs: [{ name: "", type: "int24" }],
2916
+ stateMutability: "view"
2917
+ },
2918
+ {
2919
+ type: "function",
2920
+ name: "maxTotalSupply",
2921
+ inputs: [],
2922
+ outputs: [{ name: "", type: "uint256" }],
2923
+ stateMutability: "view"
2924
+ },
2925
+ {
2926
+ type: "function",
2927
+ name: "name",
2928
+ inputs: [],
2929
+ outputs: [{ name: "", type: "string" }],
2930
+ stateMutability: "view"
2931
+ },
2932
+ {
2933
+ type: "function",
2934
+ name: "poolId",
2935
+ inputs: [],
2936
+ outputs: [{ name: "", type: "bytes32" }],
2937
+ stateMutability: "view"
2938
+ },
2939
+ {
2940
+ type: "function",
2941
+ name: "poolKey",
2942
+ inputs: [],
2943
+ outputs: [
2944
+ { name: "currency0", type: "address" },
2945
+ { name: "currency1", type: "address" },
2946
+ { name: "fee", type: "uint24" },
2947
+ { name: "tickSpacing", type: "int24" },
2948
+ { name: "hooks", type: "address" }
2949
+ ],
2950
+ stateMutability: "view"
2951
+ },
2952
+ {
2953
+ type: "function",
2954
+ name: "poolLaunchSupply",
2955
+ inputs: [],
2956
+ outputs: [{ name: "", type: "uint256" }],
2957
+ stateMutability: "view"
2958
+ },
2959
+ {
2960
+ type: "function",
2961
+ name: "poolManager",
2962
+ inputs: [],
2963
+ outputs: [{ name: "", type: "address" }],
2964
+ stateMutability: "view"
2965
+ },
2966
+ {
2967
+ type: "function",
2968
+ name: "renderContract",
2969
+ inputs: [],
2970
+ outputs: [{ name: "", type: "address" }],
2971
+ stateMutability: "view"
2972
+ },
2973
+ {
2974
+ type: "function",
2975
+ name: "setRenderContract",
2976
+ inputs: [{ name: "_renderContract", type: "address" }],
2977
+ outputs: [],
2978
+ stateMutability: "nonpayable"
2979
+ },
2980
+ {
2981
+ type: "function",
2982
+ name: "symbol",
2983
+ inputs: [],
2984
+ outputs: [{ name: "", type: "string" }],
2985
+ stateMutability: "view"
2986
+ },
2987
+ {
2988
+ type: "function",
2989
+ name: "tokenCreator",
2990
+ inputs: [],
2991
+ outputs: [{ name: "", type: "address" }],
2992
+ stateMutability: "view"
2993
+ },
2994
+ {
2995
+ type: "function",
2996
+ name: "tokenURI",
2997
+ inputs: [],
2998
+ outputs: [{ name: "", type: "string" }],
2999
+ stateMutability: "view"
3000
+ },
3001
+ {
3002
+ type: "function",
3003
+ name: "totalLiquidity",
3004
+ inputs: [],
3005
+ outputs: [{ name: "", type: "uint128" }],
3006
+ stateMutability: "view"
3007
+ },
3008
+ {
3009
+ type: "function",
3010
+ name: "totalSupply",
3011
+ inputs: [],
3012
+ outputs: [{ name: "", type: "uint256" }],
3013
+ stateMutability: "view"
3014
+ },
3015
+ {
3016
+ type: "function",
3017
+ name: "decimals",
3018
+ inputs: [],
3019
+ outputs: [{ name: "", type: "uint8" }],
3020
+ stateMutability: "view"
3021
+ }
3022
+ ];
3023
+
3024
+ // src/contracts/abis/liquid-factory.ts
3025
+ var liquidFactoryAbi = [
3026
+ {
3027
+ type: "error",
3028
+ name: "EnforcedPause",
3029
+ inputs: []
3030
+ },
3031
+ {
3032
+ type: "error",
3033
+ name: "ImplementationNotSet",
3034
+ inputs: []
3035
+ },
3036
+ {
3037
+ type: "error",
3038
+ name: "InvalidAmount",
3039
+ inputs: []
3040
+ },
3041
+ {
3042
+ type: "error",
3043
+ name: "InvalidName",
3044
+ inputs: []
3045
+ },
3046
+ {
3047
+ type: "error",
3048
+ name: "InvalidPoolHook",
3049
+ inputs: [{ name: "poolHooks", type: "address" }]
3050
+ },
3051
+ {
3052
+ type: "error",
3053
+ name: "InvalidSymbol",
3054
+ inputs: []
3055
+ },
3056
+ {
3057
+ type: "error",
3058
+ name: "InvalidTickRange",
3059
+ inputs: []
3060
+ },
3061
+ {
3062
+ type: "error",
3063
+ name: "InvalidTickSpacing",
3064
+ inputs: []
3065
+ },
3066
+ {
3067
+ type: "error",
3068
+ name: "InvalidTokenURI",
3069
+ inputs: []
3070
+ },
3071
+ {
3072
+ type: "error",
3073
+ name: "PoolHookMissingFlags",
3074
+ inputs: [
3075
+ { name: "poolHooks", type: "address" },
3076
+ { name: "actualFlags", type: "uint160" },
3077
+ { name: "requiredFlags", type: "uint160" }
3078
+ ]
3079
+ },
3080
+ {
3081
+ type: "error",
3082
+ name: "PoolHookNotGuard",
3083
+ inputs: [{ name: "poolHooks", type: "address" }]
3084
+ },
3085
+ {
3086
+ type: "error",
3087
+ name: "PoolHooksNotSet",
3088
+ inputs: []
3089
+ },
3090
+ {
3091
+ type: "error",
3092
+ name: "SafeERC20FailedOperation",
3093
+ inputs: [{ name: "token", type: "address" }]
3094
+ },
3095
+ {
3096
+ type: "error",
3097
+ name: "SwapGuardFactoryMismatch",
3098
+ inputs: [
3099
+ { name: "poolHooks", type: "address" },
3100
+ { name: "configuredFactory", type: "address" },
3101
+ { name: "expectedFactory", type: "address" }
3102
+ ]
3103
+ },
3104
+ {
3105
+ type: "error",
3106
+ name: "Unauthorized",
3107
+ inputs: []
3108
+ },
3109
+ {
3110
+ type: "function",
3111
+ name: "baseToken",
3112
+ inputs: [],
3113
+ outputs: [{ name: "", type: "address" }],
3114
+ stateMutability: "view"
3115
+ },
3116
+ {
3117
+ type: "function",
3118
+ name: "maxTotalSupply",
3119
+ inputs: [],
3120
+ outputs: [{ name: "", type: "uint256" }],
3121
+ stateMutability: "view"
3122
+ },
3123
+ {
3124
+ type: "function",
3125
+ name: "creatorLaunchReward",
3126
+ inputs: [],
3127
+ outputs: [{ name: "", type: "uint256" }],
3128
+ stateMutability: "view"
3129
+ },
3130
+ {
3131
+ type: "function",
3132
+ name: "minRareLiquidityWei",
3133
+ inputs: [],
3134
+ outputs: [{ name: "", type: "uint256" }],
3135
+ stateMutability: "view"
3136
+ },
3137
+ {
3138
+ type: "function",
3139
+ name: "lpTickLower",
3140
+ inputs: [],
3141
+ outputs: [{ name: "", type: "int24" }],
3142
+ stateMutability: "view"
3143
+ },
3144
+ {
3145
+ type: "function",
3146
+ name: "lpTickUpper",
3147
+ inputs: [],
3148
+ outputs: [{ name: "", type: "int24" }],
3149
+ stateMutability: "view"
3150
+ },
3151
+ {
3152
+ type: "function",
3153
+ name: "poolTickSpacing",
3154
+ inputs: [],
3155
+ outputs: [{ name: "", type: "int24" }],
3156
+ stateMutability: "view"
3157
+ },
3158
+ {
3159
+ type: "function",
3160
+ name: "poolHooks",
3161
+ inputs: [],
3162
+ outputs: [{ name: "", type: "address" }],
3163
+ stateMutability: "view"
3164
+ },
3165
+ {
3166
+ type: "function",
3167
+ name: "createLiquidTokenMultiCurve",
3168
+ inputs: [
3169
+ { name: "_creator", type: "address" },
3170
+ { name: "_tokenUri", type: "string" },
3171
+ { name: "_name", type: "string" },
3172
+ { name: "_symbol", type: "string" },
3173
+ { name: "_initialRareLiquidity", type: "uint256" },
3174
+ {
3175
+ name: "_curves",
3176
+ type: "tuple[]",
3177
+ components: [
3178
+ { name: "tickLower", type: "int24" },
3179
+ { name: "tickUpper", type: "int24" },
3180
+ { name: "numPositions", type: "uint16" },
3181
+ { name: "shares", type: "uint256" }
3182
+ ]
3183
+ }
3184
+ ],
3185
+ outputs: [{ name: "token", type: "address" }],
3186
+ stateMutability: "nonpayable"
3187
+ },
3188
+ {
3189
+ type: "function",
3190
+ name: "createLiquidTokenMultiCurveWithSupply",
3191
+ inputs: [
3192
+ { name: "_creator", type: "address" },
3193
+ { name: "_tokenUri", type: "string" },
3194
+ { name: "_name", type: "string" },
3195
+ { name: "_symbol", type: "string" },
3196
+ { name: "_initialRareLiquidity", type: "uint256" },
3197
+ {
3198
+ name: "_curves",
3199
+ type: "tuple[]",
3200
+ components: [
3201
+ { name: "tickLower", type: "int24" },
3202
+ { name: "tickUpper", type: "int24" },
3203
+ { name: "numPositions", type: "uint16" },
3204
+ { name: "shares", type: "uint256" }
3205
+ ]
3206
+ },
3207
+ { name: "_customMaxTotalSupply", type: "uint256" }
3208
+ ],
3209
+ outputs: [{ name: "token", type: "address" }],
3210
+ stateMutability: "nonpayable"
3211
+ },
3212
+ {
3213
+ type: "event",
3214
+ name: "LiquidTokenCreated",
3215
+ inputs: [
3216
+ { name: "token", type: "address", indexed: true },
3217
+ { name: "creator", type: "address", indexed: true },
3218
+ { name: "tokenUri", type: "string", indexed: false }
3219
+ ],
3220
+ anonymous: false
3221
+ }
3222
+ ];
3223
+
3224
+ // src/contracts/abis/liquid-router.ts
3225
+ var liquidRouterAbi = [
3226
+ {
3227
+ type: "function",
3228
+ name: "buy",
3229
+ inputs: [
3230
+ { name: "token", type: "address" },
3231
+ { name: "recipient", type: "address" },
3232
+ { name: "minTokensOut", type: "uint256" },
3233
+ { name: "commands", type: "bytes" },
3234
+ { name: "inputs", type: "bytes[]" },
3235
+ { name: "deadline", type: "uint256" }
3236
+ ],
3237
+ outputs: [{ name: "tokensReceived", type: "uint256" }],
3238
+ stateMutability: "payable"
3239
+ },
3240
+ {
3241
+ type: "function",
3242
+ name: "sell",
3243
+ inputs: [
3244
+ { name: "token", type: "address" },
3245
+ { name: "tokenAmount", type: "uint256" },
3246
+ { name: "recipient", type: "address" },
3247
+ { name: "minEthOut", type: "uint256" },
3248
+ { name: "commands", type: "bytes" },
3249
+ { name: "inputs", type: "bytes[]" },
3250
+ { name: "deadline", type: "uint256" }
3251
+ ],
3252
+ outputs: [{ name: "ethReceived", type: "uint256" }],
3253
+ stateMutability: "nonpayable"
3254
+ },
3255
+ {
3256
+ type: "function",
3257
+ name: "swap",
3258
+ inputs: [
3259
+ { name: "tokenIn", type: "address" },
3260
+ { name: "amountIn", type: "uint256" },
3261
+ { name: "tokenOut", type: "address" },
3262
+ { name: "recipient", type: "address" },
3263
+ { name: "minAmountOut", type: "uint256" },
3264
+ { name: "commands", type: "bytes" },
3265
+ { name: "inputs", type: "bytes[]" },
3266
+ { name: "deadline", type: "uint256" }
3267
+ ],
3268
+ outputs: [{ name: "amountOut", type: "uint256" }],
3269
+ stateMutability: "payable"
3270
+ }
3271
+ ];
3272
+
3273
+ // src/contracts/abis/rare-minter.ts
3274
+ var rareMinterAbi = [
3275
+ {
3276
+ inputs: [{ name: "_contractAddress", type: "address" }],
3277
+ name: "getContractAllowListConfig",
3278
+ outputs: [
3279
+ {
3280
+ components: [
3281
+ { name: "root", type: "bytes32" },
3282
+ { name: "endTimestamp", type: "uint256" }
3283
+ ],
3284
+ name: "",
3285
+ type: "tuple"
3286
+ }
3287
+ ],
3288
+ stateMutability: "view",
3289
+ type: "function"
3290
+ },
3291
+ {
3292
+ inputs: [{ name: "_contractAddress", type: "address" }],
3293
+ name: "getContractMintLimit",
3294
+ outputs: [{ name: "", type: "uint256" }],
3295
+ stateMutability: "view",
3296
+ type: "function"
3297
+ },
3298
+ {
3299
+ inputs: [
3300
+ { name: "_contractAddress", type: "address" },
3301
+ { name: "_address", type: "address" }
3302
+ ],
3303
+ name: "getContractMintsPerAddress",
3304
+ outputs: [{ name: "", type: "uint256" }],
3305
+ stateMutability: "view",
3306
+ type: "function"
3307
+ },
3308
+ {
3309
+ inputs: [{ name: "_contractAddress", type: "address" }],
3310
+ name: "getContractSellerStakingMinimum",
3311
+ outputs: [
3312
+ {
3313
+ components: [
3314
+ { name: "amount", type: "uint256" },
3315
+ { name: "endTimestamp", type: "uint256" }
3316
+ ],
3317
+ name: "",
3318
+ type: "tuple"
3319
+ }
3320
+ ],
3321
+ stateMutability: "view",
3322
+ type: "function"
3323
+ },
3324
+ {
3325
+ inputs: [{ name: "_contractAddress", type: "address" }],
3326
+ name: "getContractTxLimit",
3327
+ outputs: [{ name: "", type: "uint256" }],
3328
+ stateMutability: "view",
3329
+ type: "function"
3330
+ },
3331
+ {
3332
+ inputs: [
3333
+ { name: "_contractAddress", type: "address" },
3334
+ { name: "_address", type: "address" }
3335
+ ],
3336
+ name: "getContractTxsPerAddress",
3337
+ outputs: [{ name: "", type: "uint256" }],
3338
+ stateMutability: "view",
3339
+ type: "function"
3340
+ },
3341
+ {
3342
+ inputs: [{ name: "_contractAddress", type: "address" }],
3343
+ name: "getDirectSaleConfig",
3344
+ outputs: [
3345
+ {
3346
+ components: [
3347
+ { name: "seller", type: "address" },
3348
+ { name: "currencyAddress", type: "address" },
3349
+ { name: "price", type: "uint256" },
3350
+ { name: "startTime", type: "uint256" },
3351
+ { name: "maxMints", type: "uint256" },
3352
+ { name: "splitRecipients", type: "address[]" },
3353
+ { name: "splitRatios", type: "uint8[]" }
3354
+ ],
3355
+ name: "",
3356
+ type: "tuple"
3357
+ }
3358
+ ],
3359
+ stateMutability: "view",
3360
+ type: "function"
3361
+ },
3362
+ {
3363
+ inputs: [
3364
+ { name: "_contractAddress", type: "address" },
3365
+ { name: "_currencyAddress", type: "address" },
3366
+ { name: "_price", type: "uint256" },
3367
+ { name: "_startTime", type: "uint256" },
3368
+ { name: "_maxMints", type: "uint256" },
3369
+ { name: "_splitRecipients", type: "address[]" },
3370
+ { name: "_splitRatios", type: "uint8[]" }
3371
+ ],
3372
+ name: "prepareMintDirectSale",
3373
+ outputs: [],
3374
+ stateMutability: "nonpayable",
3375
+ type: "function"
3376
+ },
3377
+ {
3378
+ inputs: [
3379
+ { name: "_contractAddress", type: "address" },
3380
+ { name: "_currencyAddress", type: "address" },
3381
+ { name: "_price", type: "uint256" },
3382
+ { name: "_numMints", type: "uint8" },
3383
+ { name: "_proof", type: "bytes32[]" }
3384
+ ],
3385
+ name: "mintDirectSale",
3386
+ outputs: [],
3387
+ stateMutability: "payable",
3388
+ type: "function"
3389
+ },
3390
+ {
3391
+ anonymous: false,
3392
+ inputs: [
3393
+ { indexed: true, name: "_contractAddress", type: "address" },
3394
+ { indexed: true, name: "_seller", type: "address" },
3395
+ { indexed: true, name: "_buyer", type: "address" },
3396
+ { indexed: false, name: "_tokenIdStart", type: "uint256" },
3397
+ { indexed: false, name: "_tokenIdEnd", type: "uint256" },
3398
+ { indexed: false, name: "_currency", type: "address" },
3399
+ { indexed: false, name: "_price", type: "uint256" }
3400
+ ],
3401
+ name: "MintDirectSale",
3402
+ type: "event"
3403
+ },
3404
+ {
3405
+ inputs: [
3406
+ { name: "_root", type: "bytes32" },
3407
+ { name: "_endTimestamp", type: "uint256" },
3408
+ { name: "_contractAddress", type: "address" }
3409
+ ],
3410
+ name: "setContractAllowListConfig",
3411
+ outputs: [],
3412
+ stateMutability: "nonpayable",
3413
+ type: "function"
3414
+ },
3415
+ {
3416
+ inputs: [
3417
+ { name: "_contractAddress", type: "address" },
3418
+ { name: "_limit", type: "uint256" }
3419
+ ],
3420
+ name: "setContractMintLimit",
3421
+ outputs: [],
3422
+ stateMutability: "nonpayable",
3423
+ type: "function"
3424
+ },
3425
+ {
3426
+ inputs: [
3427
+ { name: "_contractAddress", type: "address" },
3428
+ { name: "_minimum", type: "uint256" },
3429
+ { name: "_endTimestamp", type: "uint256" }
3430
+ ],
3431
+ name: "setContractSellerStakingMinimum",
3432
+ outputs: [],
3433
+ stateMutability: "nonpayable",
3434
+ type: "function"
3435
+ },
3436
+ {
3437
+ inputs: [
3438
+ { name: "_contractAddress", type: "address" },
3439
+ { name: "_limit", type: "uint256" }
3440
+ ],
3441
+ name: "setContractTxLimit",
3442
+ outputs: [],
3443
+ stateMutability: "nonpayable",
3444
+ type: "function"
3445
+ }
3446
+ ];
3447
+
3448
+ // src/contracts/abis/sovereign-factory.ts
3449
+ var sovereignFactoryAbi = [
3450
+ {
3451
+ type: "function",
3452
+ name: "SOVEREIGN_NFT",
3453
+ inputs: [],
3454
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3455
+ stateMutability: "view"
3456
+ },
3457
+ {
3458
+ type: "function",
3459
+ name: "ROYALTY_GUARD",
3460
+ inputs: [],
3461
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3462
+ stateMutability: "view"
3463
+ },
3464
+ {
3465
+ type: "function",
3466
+ name: "ROYALTY_GUARD_DEADMAN",
3467
+ inputs: [],
3468
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3469
+ stateMutability: "view"
3470
+ },
3471
+ {
3472
+ type: "function",
3473
+ name: "createSovereignNFTContract",
3474
+ inputs: [
3475
+ { name: "_name", type: "string", internalType: "string" },
3476
+ { name: "_symbol", type: "string", internalType: "string" }
3477
+ ],
3478
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3479
+ stateMutability: "nonpayable"
3480
+ },
3481
+ {
3482
+ type: "function",
3483
+ name: "createSovereignNFTContract",
3484
+ inputs: [
3485
+ { name: "_name", type: "string", internalType: "string" },
3486
+ { name: "_symbol", type: "string", internalType: "string" },
3487
+ { name: "_maxTokens", type: "uint256", internalType: "uint256" }
3488
+ ],
3489
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3490
+ stateMutability: "nonpayable"
3491
+ },
3492
+ {
3493
+ type: "function",
3494
+ name: "createSovereignNFTContract",
3495
+ inputs: [
3496
+ { name: "_name", type: "string", internalType: "string" },
3497
+ { name: "_symbol", type: "string", internalType: "string" },
3498
+ { name: "_maxTokens", type: "uint256", internalType: "uint256" },
3499
+ { name: "_contractType", type: "bytes32", internalType: "bytes32" }
3500
+ ],
3501
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3502
+ stateMutability: "nonpayable"
3503
+ },
3504
+ {
3505
+ type: "event",
3506
+ name: "SovereignNFTContractCreated",
3507
+ inputs: [
3508
+ { name: "contractAddress", type: "address", indexed: true, internalType: "address" },
3509
+ { name: "owner", type: "address", indexed: true, internalType: "address" }
3510
+ ],
3511
+ anonymous: false
3512
+ }
3513
+ ];
3514
+
3515
+ // src/contracts/abis/token.ts
3516
+ var tokenAbi = [
3517
+ {
3518
+ "anonymous": false,
3519
+ "inputs": [
3520
+ {
3521
+ "indexed": true,
3522
+ "internalType": "address",
3523
+ "name": "owner",
3524
+ "type": "address"
3525
+ },
3526
+ {
3527
+ "indexed": true,
3528
+ "internalType": "address",
3529
+ "name": "approved",
3530
+ "type": "address"
3531
+ },
3532
+ {
3533
+ "indexed": true,
3534
+ "internalType": "uint256",
3535
+ "name": "tokenId",
3536
+ "type": "uint256"
3537
+ }
3538
+ ],
3539
+ "name": "Approval",
3540
+ "type": "event"
3541
+ },
3542
+ {
3543
+ "anonymous": false,
3544
+ "inputs": [
3545
+ {
3546
+ "indexed": true,
3547
+ "internalType": "address",
3548
+ "name": "owner",
3549
+ "type": "address"
3550
+ },
3551
+ {
3552
+ "indexed": true,
3553
+ "internalType": "address",
3554
+ "name": "operator",
3555
+ "type": "address"
3556
+ },
3557
+ {
3558
+ "indexed": false,
3559
+ "internalType": "bool",
3560
+ "name": "approved",
3561
+ "type": "bool"
3562
+ }
3563
+ ],
3564
+ "name": "ApprovalForAll",
3565
+ "type": "event"
3566
+ },
3567
+ {
3568
+ "anonymous": false,
3569
+ "inputs": [
3570
+ {
3571
+ "indexed": true,
3572
+ "internalType": "uint256",
3573
+ "name": "fromTokenId",
3574
+ "type": "uint256"
3575
+ },
3576
+ {
3577
+ "indexed": false,
3578
+ "internalType": "uint256",
3579
+ "name": "toTokenId",
3580
+ "type": "uint256"
3581
+ },
3582
+ {
3583
+ "indexed": true,
3584
+ "internalType": "address",
3585
+ "name": "fromAddress",
3586
+ "type": "address"
3587
+ },
3588
+ {
3589
+ "indexed": true,
3590
+ "internalType": "address",
3591
+ "name": "toAddress",
3592
+ "type": "address"
3593
+ }
3594
+ ],
3595
+ "name": "ConsecutiveTransfer",
3596
+ "type": "event"
3597
+ },
3598
+ {
3599
+ "anonymous": false,
3600
+ "inputs": [
3601
+ {
3602
+ "indexed": true,
3603
+ "internalType": "address",
3604
+ "name": "user",
3605
+ "type": "address"
3606
+ }
3607
+ ],
3608
+ "name": "ContractDisabled",
3609
+ "type": "event"
3610
+ },
3611
+ {
3612
+ "anonymous": false,
3613
+ "inputs": [
3614
+ {
3615
+ "indexed": true,
3616
+ "internalType": "address",
3617
+ "name": "previousOwner",
3618
+ "type": "address"
3619
+ },
3620
+ {
3621
+ "indexed": true,
3622
+ "internalType": "address",
3623
+ "name": "newOwner",
3624
+ "type": "address"
3625
+ }
3626
+ ],
3627
+ "name": "OwnershipTransferred",
3628
+ "type": "event"
3629
+ },
3630
+ {
3631
+ "anonymous": false,
3632
+ "inputs": [
3633
+ {
3634
+ "indexed": true,
3635
+ "internalType": "address",
3636
+ "name": "from",
3637
+ "type": "address"
3638
+ },
3639
+ {
3640
+ "indexed": true,
3641
+ "internalType": "address",
3642
+ "name": "to",
3643
+ "type": "address"
3644
+ },
3645
+ {
3646
+ "indexed": true,
3647
+ "internalType": "uint256",
3648
+ "name": "tokenId",
3649
+ "type": "uint256"
3650
+ }
3651
+ ],
3652
+ "name": "Transfer",
3653
+ "type": "event"
3654
+ },
3655
+ {
3656
+ "inputs": [
3657
+ {
3658
+ "internalType": "string",
3659
+ "name": "_uri",
3660
+ "type": "string"
3661
+ }
3662
+ ],
3663
+ "name": "addNewToken",
3664
+ "outputs": [],
3665
+ "stateMutability": "nonpayable",
3666
+ "type": "function"
3667
+ },
3668
+ {
3669
+ "inputs": [
3670
+ {
3671
+ "internalType": "address",
3672
+ "name": "to",
3673
+ "type": "address"
3674
+ },
3675
+ {
3676
+ "internalType": "uint256",
3677
+ "name": "tokenId",
3678
+ "type": "uint256"
3679
+ }
3680
+ ],
3681
+ "name": "approve",
3682
+ "outputs": [],
3683
+ "stateMutability": "nonpayable",
3684
+ "type": "function"
3685
+ },
3686
+ {
3687
+ "inputs": [
3688
+ {
3689
+ "internalType": "address",
3690
+ "name": "owner",
3691
+ "type": "address"
3692
+ }
3693
+ ],
3694
+ "name": "balanceOf",
3695
+ "outputs": [
3696
+ {
3697
+ "internalType": "uint256",
3698
+ "name": "",
3699
+ "type": "uint256"
3700
+ }
3701
+ ],
3702
+ "stateMutability": "view",
3703
+ "type": "function"
3704
+ },
3705
+ {
3706
+ "inputs": [],
3707
+ "name": "baseURI",
3708
+ "outputs": [
3709
+ {
3710
+ "internalType": "string",
3711
+ "name": "",
3712
+ "type": "string"
3713
+ }
3714
+ ],
3715
+ "stateMutability": "view",
3716
+ "type": "function"
3717
+ },
3718
+ {
3719
+ "inputs": [
3720
+ {
3721
+ "internalType": "string",
3722
+ "name": "_baseURI",
3723
+ "type": "string"
3724
+ },
3725
+ {
3726
+ "internalType": "uint256",
3727
+ "name": "_numberOfTokens",
3728
+ "type": "uint256"
3729
+ }
3730
+ ],
3731
+ "name": "batchMint",
3732
+ "outputs": [],
3733
+ "stateMutability": "nonpayable",
3734
+ "type": "function"
3735
+ },
3736
+ {
3737
+ "inputs": [
3738
+ {
3739
+ "internalType": "uint256",
3740
+ "name": "_tokenId",
3741
+ "type": "uint256"
3742
+ }
3743
+ ],
3744
+ "name": "burn",
3745
+ "outputs": [],
3746
+ "stateMutability": "nonpayable",
3747
+ "type": "function"
3748
+ },
3749
+ {
3750
+ "inputs": [],
3751
+ "name": "calcIERC721CreatorInterfaceId",
3752
+ "outputs": [
3753
+ {
3754
+ "internalType": "bytes4",
3755
+ "name": "",
3756
+ "type": "bytes4"
3757
+ }
3758
+ ],
3759
+ "stateMutability": "pure",
3760
+ "type": "function"
3761
+ },
3762
+ {
3763
+ "inputs": [],
3764
+ "name": "getDefaultRoyaltyPercentage",
3765
+ "outputs": [
3766
+ {
3767
+ "internalType": "uint256",
3768
+ "name": "",
3769
+ "type": "uint256"
3770
+ }
3771
+ ],
3772
+ "stateMutability": "view",
3773
+ "type": "function"
3774
+ },
3775
+ {
3776
+ "inputs": [],
3777
+ "name": "getDefaultRoyaltyReceiver",
3778
+ "outputs": [
3779
+ {
3780
+ "internalType": "address",
3781
+ "name": "",
3782
+ "type": "address"
3783
+ }
3784
+ ],
3785
+ "stateMutability": "view",
3786
+ "type": "function"
3787
+ },
3788
+ {
3789
+ "inputs": [
3790
+ {
3791
+ "internalType": "uint256",
3792
+ "name": "_tokenId",
3793
+ "type": "uint256"
3794
+ }
3795
+ ],
3796
+ "name": "deleteToken",
3797
+ "outputs": [],
3798
+ "stateMutability": "nonpayable",
3799
+ "type": "function"
3800
+ },
3801
+ {
3802
+ "inputs": [],
3803
+ "name": "disableContract",
3804
+ "outputs": [],
3805
+ "stateMutability": "nonpayable",
3806
+ "type": "function"
3807
+ },
3808
+ {
3809
+ "inputs": [],
3810
+ "name": "disabled",
3811
+ "outputs": [
3812
+ {
3813
+ "internalType": "bool",
3814
+ "name": "",
3815
+ "type": "bool"
3816
+ }
3817
+ ],
3818
+ "stateMutability": "view",
3819
+ "type": "function"
3820
+ },
3821
+ {
3822
+ "inputs": [
3823
+ {
3824
+ "internalType": "uint256",
3825
+ "name": "_tokenId",
3826
+ "type": "uint256"
3827
+ }
3828
+ ],
3829
+ "name": "getApproved",
3830
+ "outputs": [
3831
+ {
3832
+ "internalType": "address",
3833
+ "name": "",
3834
+ "type": "address"
3835
+ }
3836
+ ],
3837
+ "stateMutability": "view",
3838
+ "type": "function"
3839
+ },
3840
+ {
3841
+ "inputs": [
3842
+ {
3843
+ "internalType": "string",
3844
+ "name": "_name",
3845
+ "type": "string"
3846
+ },
3847
+ {
3848
+ "internalType": "string",
3849
+ "name": "_symbol",
3850
+ "type": "string"
3851
+ },
3852
+ {
3853
+ "internalType": "address",
3854
+ "name": "_creator",
3855
+ "type": "address"
3856
+ },
3857
+ {
3858
+ "internalType": "uint256",
3859
+ "name": "_maxTokens",
3860
+ "type": "uint256"
3861
+ }
3862
+ ],
3863
+ "name": "init",
3864
+ "outputs": [],
3865
+ "stateMutability": "nonpayable",
3866
+ "type": "function"
3867
+ },
3868
+ {
3869
+ "inputs": [
3870
+ {
3871
+ "internalType": "address",
3872
+ "name": "owner",
3873
+ "type": "address"
3874
+ },
3875
+ {
3876
+ "internalType": "address",
3877
+ "name": "operator",
3878
+ "type": "address"
3879
+ }
3880
+ ],
3881
+ "name": "isApprovedForAll",
3882
+ "outputs": [
3883
+ {
3884
+ "internalType": "bool",
3885
+ "name": "",
3886
+ "type": "bool"
3887
+ }
3888
+ ],
3889
+ "stateMutability": "view",
3890
+ "type": "function"
3891
+ },
3892
+ {
3893
+ "inputs": [],
3894
+ "name": "maxTokens",
3895
+ "outputs": [
3896
+ {
3897
+ "internalType": "uint256",
3898
+ "name": "",
3899
+ "type": "uint256"
3900
+ }
3901
+ ],
3902
+ "stateMutability": "view",
3903
+ "type": "function"
3904
+ },
3905
+ {
3906
+ "inputs": [
3907
+ {
3908
+ "internalType": "string",
3909
+ "name": "_uri",
3910
+ "type": "string"
3911
+ },
3912
+ {
3913
+ "internalType": "address",
3914
+ "name": "_receiver",
3915
+ "type": "address"
3916
+ },
3917
+ {
3918
+ "internalType": "address",
3919
+ "name": "_royaltyReceiver",
3920
+ "type": "address"
3921
+ }
3922
+ ],
3923
+ "name": "mintTo",
3924
+ "outputs": [],
3925
+ "stateMutability": "nonpayable",
3926
+ "type": "function"
3927
+ },
3928
+ {
3929
+ "inputs": [],
3930
+ "name": "name",
3931
+ "outputs": [
3932
+ {
3933
+ "internalType": "string",
3934
+ "name": "",
3935
+ "type": "string"
3936
+ }
3937
+ ],
3938
+ "stateMutability": "view",
3939
+ "type": "function"
3940
+ },
3941
+ {
3942
+ "inputs": [],
3943
+ "name": "owner",
3944
+ "outputs": [
3945
+ {
3946
+ "internalType": "address",
3947
+ "name": "",
3948
+ "type": "address"
3949
+ }
3950
+ ],
3951
+ "stateMutability": "view",
3952
+ "type": "function"
3953
+ },
3954
+ {
3955
+ "inputs": [
3956
+ {
3957
+ "internalType": "uint256",
3958
+ "name": "_tokenId",
3959
+ "type": "uint256"
3960
+ }
3961
+ ],
3962
+ "name": "ownerOf",
3963
+ "outputs": [
3964
+ {
3965
+ "internalType": "address",
3966
+ "name": "",
3967
+ "type": "address"
3968
+ }
3969
+ ],
3970
+ "stateMutability": "view",
3971
+ "type": "function"
3972
+ },
3973
+ {
3974
+ "inputs": [],
3975
+ "name": "renounceOwnership",
3976
+ "outputs": [],
3977
+ "stateMutability": "nonpayable",
3978
+ "type": "function"
3979
+ },
3980
+ {
3981
+ "inputs": [
3982
+ {
3983
+ "internalType": "uint256",
3984
+ "name": "_tokenId",
3985
+ "type": "uint256"
3986
+ },
3987
+ {
3988
+ "internalType": "uint256",
3989
+ "name": "_salePrice",
3990
+ "type": "uint256"
3991
+ }
3992
+ ],
3993
+ "name": "royaltyInfo",
3994
+ "outputs": [
3995
+ {
3996
+ "internalType": "address",
3997
+ "name": "receiver",
3998
+ "type": "address"
3999
+ },
4000
+ {
4001
+ "internalType": "uint256",
4002
+ "name": "royaltyAmount",
4003
+ "type": "uint256"
4004
+ }
4005
+ ],
4006
+ "stateMutability": "view",
4007
+ "type": "function"
4008
+ },
4009
+ {
4010
+ "inputs": [
4011
+ {
4012
+ "internalType": "address",
4013
+ "name": "from",
4014
+ "type": "address"
4015
+ },
4016
+ {
4017
+ "internalType": "address",
4018
+ "name": "to",
4019
+ "type": "address"
4020
+ },
4021
+ {
4022
+ "internalType": "uint256",
4023
+ "name": "tokenId",
4024
+ "type": "uint256"
4025
+ }
4026
+ ],
4027
+ "name": "safeTransferFrom",
4028
+ "outputs": [],
4029
+ "stateMutability": "nonpayable",
4030
+ "type": "function"
4031
+ },
4032
+ {
4033
+ "inputs": [
4034
+ {
4035
+ "internalType": "address",
4036
+ "name": "from",
4037
+ "type": "address"
4038
+ },
4039
+ {
4040
+ "internalType": "address",
4041
+ "name": "to",
4042
+ "type": "address"
4043
+ },
4044
+ {
4045
+ "internalType": "uint256",
4046
+ "name": "tokenId",
4047
+ "type": "uint256"
4048
+ },
4049
+ {
4050
+ "internalType": "bytes",
4051
+ "name": "_data",
4052
+ "type": "bytes"
4053
+ }
4054
+ ],
4055
+ "name": "safeTransferFrom",
4056
+ "outputs": [],
4057
+ "stateMutability": "nonpayable",
4058
+ "type": "function"
4059
+ },
4060
+ {
4061
+ "inputs": [
4062
+ {
4063
+ "internalType": "address",
4064
+ "name": "operator",
4065
+ "type": "address"
4066
+ },
4067
+ {
4068
+ "internalType": "bool",
4069
+ "name": "approved",
4070
+ "type": "bool"
4071
+ }
4072
+ ],
4073
+ "name": "setApprovalForAll",
4074
+ "outputs": [],
4075
+ "stateMutability": "nonpayable",
4076
+ "type": "function"
4077
+ },
4078
+ {
4079
+ "inputs": [
4080
+ {
4081
+ "internalType": "address",
4082
+ "name": "_receiver",
4083
+ "type": "address"
4084
+ }
4085
+ ],
4086
+ "name": "setDefaultRoyaltyReceiver",
4087
+ "outputs": [],
4088
+ "stateMutability": "nonpayable",
4089
+ "type": "function"
4090
+ },
4091
+ {
4092
+ "inputs": [
4093
+ {
4094
+ "internalType": "address",
4095
+ "name": "_receiver",
4096
+ "type": "address"
4097
+ },
4098
+ {
4099
+ "internalType": "uint256",
4100
+ "name": "_tokenId",
4101
+ "type": "uint256"
4102
+ }
4103
+ ],
4104
+ "name": "setRoyaltyReceiverForToken",
4105
+ "outputs": [],
4106
+ "stateMutability": "nonpayable",
4107
+ "type": "function"
4108
+ },
4109
+ {
4110
+ "inputs": [
4111
+ {
4112
+ "internalType": "bytes4",
4113
+ "name": "interfaceId",
4114
+ "type": "bytes4"
4115
+ }
4116
+ ],
4117
+ "name": "supportsInterface",
4118
+ "outputs": [
4119
+ {
4120
+ "internalType": "bool",
4121
+ "name": "",
4122
+ "type": "bool"
4123
+ }
4124
+ ],
4125
+ "stateMutability": "view",
4126
+ "type": "function"
4127
+ },
4128
+ {
4129
+ "inputs": [],
4130
+ "name": "symbol",
4131
+ "outputs": [
4132
+ {
4133
+ "internalType": "string",
4134
+ "name": "",
4135
+ "type": "string"
4136
+ }
4137
+ ],
4138
+ "stateMutability": "view",
4139
+ "type": "function"
4140
+ },
4141
+ {
4142
+ "inputs": [
4143
+ {
4144
+ "internalType": "uint256",
4145
+ "name": "index",
4146
+ "type": "uint256"
4147
+ }
4148
+ ],
4149
+ "name": "tokenByIndex",
4150
+ "outputs": [
4151
+ {
4152
+ "internalType": "uint256",
4153
+ "name": "",
4154
+ "type": "uint256"
4155
+ }
4156
+ ],
4157
+ "stateMutability": "view",
4158
+ "type": "function"
4159
+ },
4160
+ {
4161
+ "inputs": [
4162
+ {
4163
+ "internalType": "uint256",
4164
+ "name": "",
4165
+ "type": "uint256"
4166
+ }
4167
+ ],
4168
+ "name": "tokenCreator",
4169
+ "outputs": [
4170
+ {
4171
+ "internalType": "address payable",
4172
+ "name": "",
4173
+ "type": "address"
4174
+ }
4175
+ ],
4176
+ "stateMutability": "view",
4177
+ "type": "function"
4178
+ },
4179
+ {
4180
+ "inputs": [
4181
+ {
4182
+ "internalType": "address",
4183
+ "name": "owner",
4184
+ "type": "address"
4185
+ },
4186
+ {
4187
+ "internalType": "uint256",
4188
+ "name": "index",
4189
+ "type": "uint256"
4190
+ }
4191
+ ],
4192
+ "name": "tokenOfOwnerByIndex",
4193
+ "outputs": [
4194
+ {
4195
+ "internalType": "uint256",
4196
+ "name": "",
4197
+ "type": "uint256"
4198
+ }
4199
+ ],
4200
+ "stateMutability": "view",
4201
+ "type": "function"
4202
+ },
4203
+ {
4204
+ "inputs": [
4205
+ {
4206
+ "internalType": "uint256",
4207
+ "name": "_tokenId",
4208
+ "type": "uint256"
4209
+ }
4210
+ ],
4211
+ "name": "tokenURI",
4212
+ "outputs": [
4213
+ {
4214
+ "internalType": "string",
4215
+ "name": "",
4216
+ "type": "string"
4217
+ }
4218
+ ],
4219
+ "stateMutability": "view",
4220
+ "type": "function"
4221
+ },
4222
+ {
4223
+ "inputs": [],
4224
+ "name": "totalSupply",
4225
+ "outputs": [
4226
+ {
4227
+ "internalType": "uint256",
4228
+ "name": "",
4229
+ "type": "uint256"
4230
+ }
4231
+ ],
4232
+ "stateMutability": "view",
4233
+ "type": "function"
4234
+ },
4235
+ {
4236
+ "inputs": [
4237
+ {
4238
+ "internalType": "address",
4239
+ "name": "from",
4240
+ "type": "address"
4241
+ },
4242
+ {
4243
+ "internalType": "address",
4244
+ "name": "to",
4245
+ "type": "address"
4246
+ },
4247
+ {
4248
+ "internalType": "uint256",
4249
+ "name": "tokenId",
4250
+ "type": "uint256"
4251
+ }
4252
+ ],
4253
+ "name": "transferFrom",
4254
+ "outputs": [],
4255
+ "stateMutability": "nonpayable",
4256
+ "type": "function"
4257
+ },
4258
+ {
4259
+ "inputs": [
4260
+ {
4261
+ "internalType": "address",
4262
+ "name": "",
4263
+ "type": "address"
4264
+ }
4265
+ ],
4266
+ "name": "transferOwnership",
4267
+ "outputs": [],
4268
+ "stateMutability": "nonpayable",
4269
+ "type": "function"
4270
+ }
4271
+ ];
4272
+
4273
+ // src/contracts/abis/uniswap-v4-quoter.ts
4274
+ var uniswapV4QuoterAbi = [
4275
+ {
4276
+ type: "function",
4277
+ name: "quoteExactInputSingle",
4278
+ inputs: [
4279
+ {
4280
+ name: "params",
4281
+ type: "tuple",
4282
+ components: [
4283
+ {
4284
+ name: "poolKey",
4285
+ type: "tuple",
4286
+ components: [
4287
+ { name: "currency0", type: "address" },
4288
+ { name: "currency1", type: "address" },
4289
+ { name: "fee", type: "uint24" },
4290
+ { name: "tickSpacing", type: "int24" },
4291
+ { name: "hooks", type: "address" }
4292
+ ]
4293
+ },
4294
+ { name: "zeroForOne", type: "bool" },
4295
+ { name: "exactAmount", type: "uint128" },
4296
+ { name: "hookData", type: "bytes" }
4297
+ ]
4298
+ }
4299
+ ],
4300
+ outputs: [
4301
+ { name: "amountOut", type: "uint256" },
4302
+ { name: "gasEstimate", type: "uint256" }
4303
+ ],
4304
+ stateMutability: "nonpayable"
4305
+ }
4306
+ ];
4307
+ export {
4308
+ ETH_ADDRESS,
4309
+ PUBLIC_LISTING_TARGET,
4310
+ auctionAbi,
4311
+ batchAuctionHouseAbi,
4312
+ batchListingAbi,
4313
+ batchOfferAbi,
4314
+ canonicalV4Pools,
4315
+ chainIds,
4316
+ collectionMintAbi,
4317
+ collectionOwnerAbi,
4318
+ contractAddresses,
4319
+ currencyNames,
4320
+ defaultRpcUrls,
4321
+ factoryAbi,
4322
+ getBatchListingAddress,
4323
+ getCanonicalRareEthPool,
4324
+ getCanonicalUsdcEthPool,
4325
+ getCanonicalV4Pools,
4326
+ getContractAddresses,
4327
+ getErc721ApprovalManagerAddress,
4328
+ getLiquidFactoryAddress,
4329
+ getRareMinterAddress,
4330
+ getSwapRouterAddress,
4331
+ getV4QuoterAddress,
4332
+ isSupportedChain,
4333
+ lazyBatchMintFactoryAbi,
4334
+ lazySovereignFactoryAbi,
4335
+ liquidEditionAbi,
4336
+ liquidFactoryAbi,
4337
+ liquidRouterAbi,
4338
+ listCurrencies,
4339
+ rareMinterAbi,
4340
+ requireContractAddress,
4341
+ resolveCurrency,
4342
+ resolveCurrencyInfo,
4343
+ sovereignFactoryAbi,
4344
+ supportedChains,
4345
+ tokenAbi,
4346
+ uniswapV4QuoterAbi,
4347
+ viemChains
4348
+ };