@rareprotocol/rare-cli 0.3.0 → 1.0.0

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