@zoralabs/coins 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.turbo/turbo-build.log +107 -114
  2. package/CHANGELOG.md +34 -0
  3. package/README.md +30 -109
  4. package/abis/BaseCoin.json +442 -0
  5. package/abis/CoinTest.json +3 -246
  6. package/abis/FactoryTest.json +5 -137
  7. package/abis/HooksTest.json +0 -26
  8. package/abis/ICoin.json +378 -0
  9. package/abis/ICoinV3.json +378 -0
  10. package/abis/IZoraFactory.json +0 -18
  11. package/abis/LiquidityMigrationTest.json +101 -0
  12. package/abis/MockBadFactory.json +15 -0
  13. package/abis/ZoraFactoryImpl.json +1 -67
  14. package/dist/index.cjs +236 -265
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.js +235 -264
  17. package/dist/index.js.map +1 -1
  18. package/dist/wagmiGenerated.d.ts +389 -493
  19. package/dist/wagmiGenerated.d.ts.map +1 -1
  20. package/foundry.toml +1 -3
  21. package/package/wagmiGenerated.ts +240 -269
  22. package/package.json +3 -3
  23. package/script/DeployPostDeploymentHooks.s.sol +2 -2
  24. package/script/TestBackingCoinSwap.s.sol +8 -8
  25. package/script/TestV4Swap.s.sol +8 -8
  26. package/script/UpgradeFactoryImpl.s.sol +0 -1
  27. package/src/BaseCoin.sol +111 -7
  28. package/src/ContentCoin.sol +4 -4
  29. package/src/CreatorCoin.sol +5 -5
  30. package/src/ZoraFactoryImpl.sol +10 -93
  31. package/src/deployment/CoinsDeployerBase.sol +10 -27
  32. package/src/hooks/BaseZoraV4CoinHook.sol +5 -5
  33. package/src/hooks/ContentCoinHook.sol +2 -2
  34. package/src/hooks/deployment/BuySupplyWithSwapRouterHook.sol +4 -5
  35. package/src/interfaces/ICoin.sol +67 -1
  36. package/src/interfaces/ICreatorCoin.sol +2 -2
  37. package/src/interfaces/IZoraFactory.sol +0 -5
  38. package/src/libs/CoinConfigurationVersions.sol +1 -39
  39. package/src/libs/CoinRewardsV4.sol +2 -2
  40. package/src/libs/CoinSetup.sol +1 -4
  41. package/src/libs/MarketConstants.sol +0 -4
  42. package/src/libs/UniV4SwapHelper.sol +1 -1
  43. package/src/libs/UniV4SwapToCurrency.sol +2 -2
  44. package/src/libs/V4Liquidity.sol +1 -1
  45. package/src/version/ContractVersionBase.sol +1 -1
  46. package/test/Coin.t.sol +112 -535
  47. package/test/CoinUniV4.t.sol +7 -7
  48. package/test/DeploymentHooks.t.sol +5 -102
  49. package/test/Factory.t.sol +23 -306
  50. package/test/LiquidityMigration.t.sol +160 -2
  51. package/test/MultiOwnable.t.sol +36 -36
  52. package/test/Upgrades.t.sol +16 -35
  53. package/test/utils/BaseTest.sol +16 -69
  54. package/test/utils/FeeEstimatorHook.sol +3 -3
  55. package/wagmi.config.ts +1 -1
  56. package/abis/BaseCoinV4.json +0 -1840
  57. package/abis/Coin.json +0 -1912
  58. package/abis/DopplerUniswapV3Test.json +0 -800
  59. package/abis/ICoinV4.json +0 -1048
  60. package/abis/Simulate.json +0 -29
  61. package/abis/UniV3BuySell.json +0 -12
  62. package/abis/UniV3Errors.json +0 -32
  63. package/script/Simulate.s.sol +0 -59
  64. package/src/BaseCoinV4.sol +0 -143
  65. package/src/Coin.sol +0 -236
  66. package/src/interfaces/ICoinV4.sol +0 -74
  67. package/src/libs/CoinDopplerUniV3.sol +0 -50
  68. package/src/libs/CoinRewards.sol +0 -201
  69. package/src/libs/CoinSetupV3.sol +0 -50
  70. package/src/libs/UniV3BuySell.sol +0 -231
  71. package/src/libs/UniV3Errors.sol +0 -11
  72. package/test/CoinDopplerUniV3.t.sol +0 -310
package/abis/ICoinV4.json DELETED
@@ -1,1048 +0,0 @@
1
- [
2
- {
3
- "type": "function",
4
- "name": "airlock",
5
- "inputs": [],
6
- "outputs": [
7
- {
8
- "name": "",
9
- "type": "address",
10
- "internalType": "address"
11
- }
12
- ],
13
- "stateMutability": "view"
14
- },
15
- {
16
- "type": "function",
17
- "name": "burn",
18
- "inputs": [
19
- {
20
- "name": "amount",
21
- "type": "uint256",
22
- "internalType": "uint256"
23
- }
24
- ],
25
- "outputs": [],
26
- "stateMutability": "nonpayable"
27
- },
28
- {
29
- "type": "function",
30
- "name": "contractURI",
31
- "inputs": [],
32
- "outputs": [
33
- {
34
- "name": "",
35
- "type": "string",
36
- "internalType": "string"
37
- }
38
- ],
39
- "stateMutability": "view"
40
- },
41
- {
42
- "type": "function",
43
- "name": "currency",
44
- "inputs": [],
45
- "outputs": [
46
- {
47
- "name": "",
48
- "type": "address",
49
- "internalType": "address"
50
- }
51
- ],
52
- "stateMutability": "view"
53
- },
54
- {
55
- "type": "function",
56
- "name": "dopplerFeeRecipient",
57
- "inputs": [],
58
- "outputs": [
59
- {
60
- "name": "",
61
- "type": "address",
62
- "internalType": "address"
63
- }
64
- ],
65
- "stateMutability": "view"
66
- },
67
- {
68
- "type": "function",
69
- "name": "getPayoutSwapPath",
70
- "inputs": [
71
- {
72
- "name": "coinVersionLookup",
73
- "type": "address",
74
- "internalType": "contract IDeployedCoinVersionLookup"
75
- }
76
- ],
77
- "outputs": [
78
- {
79
- "name": "",
80
- "type": "tuple",
81
- "internalType": "struct IHasSwapPath.PayoutSwapPath",
82
- "components": [
83
- {
84
- "name": "path",
85
- "type": "tuple[]",
86
- "internalType": "struct PathKey[]",
87
- "components": [
88
- {
89
- "name": "intermediateCurrency",
90
- "type": "address",
91
- "internalType": "Currency"
92
- },
93
- {
94
- "name": "fee",
95
- "type": "uint24",
96
- "internalType": "uint24"
97
- },
98
- {
99
- "name": "tickSpacing",
100
- "type": "int24",
101
- "internalType": "int24"
102
- },
103
- {
104
- "name": "hooks",
105
- "type": "address",
106
- "internalType": "contract IHooks"
107
- },
108
- {
109
- "name": "hookData",
110
- "type": "bytes",
111
- "internalType": "bytes"
112
- }
113
- ]
114
- },
115
- {
116
- "name": "currencyIn",
117
- "type": "address",
118
- "internalType": "Currency"
119
- }
120
- ]
121
- }
122
- ],
123
- "stateMutability": "view"
124
- },
125
- {
126
- "type": "function",
127
- "name": "getPoolConfiguration",
128
- "inputs": [],
129
- "outputs": [
130
- {
131
- "name": "",
132
- "type": "tuple",
133
- "internalType": "struct PoolConfiguration",
134
- "components": [
135
- {
136
- "name": "version",
137
- "type": "uint8",
138
- "internalType": "uint8"
139
- },
140
- {
141
- "name": "numPositions",
142
- "type": "uint16",
143
- "internalType": "uint16"
144
- },
145
- {
146
- "name": "fee",
147
- "type": "uint24",
148
- "internalType": "uint24"
149
- },
150
- {
151
- "name": "tickSpacing",
152
- "type": "int24",
153
- "internalType": "int24"
154
- },
155
- {
156
- "name": "numDiscoveryPositions",
157
- "type": "uint16[]",
158
- "internalType": "uint16[]"
159
- },
160
- {
161
- "name": "tickLower",
162
- "type": "int24[]",
163
- "internalType": "int24[]"
164
- },
165
- {
166
- "name": "tickUpper",
167
- "type": "int24[]",
168
- "internalType": "int24[]"
169
- },
170
- {
171
- "name": "maxDiscoverySupplyShare",
172
- "type": "uint256[]",
173
- "internalType": "uint256[]"
174
- }
175
- ]
176
- }
177
- ],
178
- "stateMutability": "view"
179
- },
180
- {
181
- "type": "function",
182
- "name": "getPoolKey",
183
- "inputs": [],
184
- "outputs": [
185
- {
186
- "name": "",
187
- "type": "tuple",
188
- "internalType": "struct PoolKey",
189
- "components": [
190
- {
191
- "name": "currency0",
192
- "type": "address",
193
- "internalType": "Currency"
194
- },
195
- {
196
- "name": "currency1",
197
- "type": "address",
198
- "internalType": "Currency"
199
- },
200
- {
201
- "name": "fee",
202
- "type": "uint24",
203
- "internalType": "uint24"
204
- },
205
- {
206
- "name": "tickSpacing",
207
- "type": "int24",
208
- "internalType": "int24"
209
- },
210
- {
211
- "name": "hooks",
212
- "type": "address",
213
- "internalType": "contract IHooks"
214
- }
215
- ]
216
- }
217
- ],
218
- "stateMutability": "view"
219
- },
220
- {
221
- "type": "function",
222
- "name": "hooks",
223
- "inputs": [],
224
- "outputs": [
225
- {
226
- "name": "",
227
- "type": "address",
228
- "internalType": "contract IHooks"
229
- }
230
- ],
231
- "stateMutability": "view"
232
- },
233
- {
234
- "type": "function",
235
- "name": "initialize",
236
- "inputs": [
237
- {
238
- "name": "payoutRecipient_",
239
- "type": "address",
240
- "internalType": "address"
241
- },
242
- {
243
- "name": "owners_",
244
- "type": "address[]",
245
- "internalType": "address[]"
246
- },
247
- {
248
- "name": "tokenURI_",
249
- "type": "string",
250
- "internalType": "string"
251
- },
252
- {
253
- "name": "name_",
254
- "type": "string",
255
- "internalType": "string"
256
- },
257
- {
258
- "name": "symbol_",
259
- "type": "string",
260
- "internalType": "string"
261
- },
262
- {
263
- "name": "platformReferrer_",
264
- "type": "address",
265
- "internalType": "address"
266
- },
267
- {
268
- "name": "currency_",
269
- "type": "address",
270
- "internalType": "address"
271
- },
272
- {
273
- "name": "poolKey_",
274
- "type": "tuple",
275
- "internalType": "struct PoolKey",
276
- "components": [
277
- {
278
- "name": "currency0",
279
- "type": "address",
280
- "internalType": "Currency"
281
- },
282
- {
283
- "name": "currency1",
284
- "type": "address",
285
- "internalType": "Currency"
286
- },
287
- {
288
- "name": "fee",
289
- "type": "uint24",
290
- "internalType": "uint24"
291
- },
292
- {
293
- "name": "tickSpacing",
294
- "type": "int24",
295
- "internalType": "int24"
296
- },
297
- {
298
- "name": "hooks",
299
- "type": "address",
300
- "internalType": "contract IHooks"
301
- }
302
- ]
303
- },
304
- {
305
- "name": "sqrtPriceX96",
306
- "type": "uint160",
307
- "internalType": "uint160"
308
- },
309
- {
310
- "name": "poolConfiguration_",
311
- "type": "tuple",
312
- "internalType": "struct PoolConfiguration",
313
- "components": [
314
- {
315
- "name": "version",
316
- "type": "uint8",
317
- "internalType": "uint8"
318
- },
319
- {
320
- "name": "numPositions",
321
- "type": "uint16",
322
- "internalType": "uint16"
323
- },
324
- {
325
- "name": "fee",
326
- "type": "uint24",
327
- "internalType": "uint24"
328
- },
329
- {
330
- "name": "tickSpacing",
331
- "type": "int24",
332
- "internalType": "int24"
333
- },
334
- {
335
- "name": "numDiscoveryPositions",
336
- "type": "uint16[]",
337
- "internalType": "uint16[]"
338
- },
339
- {
340
- "name": "tickLower",
341
- "type": "int24[]",
342
- "internalType": "int24[]"
343
- },
344
- {
345
- "name": "tickUpper",
346
- "type": "int24[]",
347
- "internalType": "int24[]"
348
- },
349
- {
350
- "name": "maxDiscoverySupplyShare",
351
- "type": "uint256[]",
352
- "internalType": "uint256[]"
353
- }
354
- ]
355
- }
356
- ],
357
- "outputs": [],
358
- "stateMutability": "nonpayable"
359
- },
360
- {
361
- "type": "function",
362
- "name": "payoutRecipient",
363
- "inputs": [],
364
- "outputs": [
365
- {
366
- "name": "",
367
- "type": "address",
368
- "internalType": "address"
369
- }
370
- ],
371
- "stateMutability": "view"
372
- },
373
- {
374
- "type": "function",
375
- "name": "platformReferrer",
376
- "inputs": [],
377
- "outputs": [
378
- {
379
- "name": "",
380
- "type": "address",
381
- "internalType": "address"
382
- }
383
- ],
384
- "stateMutability": "view"
385
- },
386
- {
387
- "type": "function",
388
- "name": "protocolRewardRecipient",
389
- "inputs": [],
390
- "outputs": [
391
- {
392
- "name": "",
393
- "type": "address",
394
- "internalType": "address"
395
- }
396
- ],
397
- "stateMutability": "view"
398
- },
399
- {
400
- "type": "function",
401
- "name": "setNameAndSymbol",
402
- "inputs": [
403
- {
404
- "name": "newName",
405
- "type": "string",
406
- "internalType": "string"
407
- },
408
- {
409
- "name": "newSymbol",
410
- "type": "string",
411
- "internalType": "string"
412
- }
413
- ],
414
- "outputs": [],
415
- "stateMutability": "nonpayable"
416
- },
417
- {
418
- "type": "function",
419
- "name": "supportsInterface",
420
- "inputs": [
421
- {
422
- "name": "interfaceId",
423
- "type": "bytes4",
424
- "internalType": "bytes4"
425
- }
426
- ],
427
- "outputs": [
428
- {
429
- "name": "",
430
- "type": "bool",
431
- "internalType": "bool"
432
- }
433
- ],
434
- "stateMutability": "view"
435
- },
436
- {
437
- "type": "function",
438
- "name": "tokenURI",
439
- "inputs": [],
440
- "outputs": [
441
- {
442
- "name": "",
443
- "type": "string",
444
- "internalType": "string"
445
- }
446
- ],
447
- "stateMutability": "view"
448
- },
449
- {
450
- "type": "event",
451
- "name": "CoinBuy",
452
- "inputs": [
453
- {
454
- "name": "buyer",
455
- "type": "address",
456
- "indexed": true,
457
- "internalType": "address"
458
- },
459
- {
460
- "name": "recipient",
461
- "type": "address",
462
- "indexed": true,
463
- "internalType": "address"
464
- },
465
- {
466
- "name": "tradeReferrer",
467
- "type": "address",
468
- "indexed": true,
469
- "internalType": "address"
470
- },
471
- {
472
- "name": "coinsPurchased",
473
- "type": "uint256",
474
- "indexed": false,
475
- "internalType": "uint256"
476
- },
477
- {
478
- "name": "currency",
479
- "type": "address",
480
- "indexed": false,
481
- "internalType": "address"
482
- },
483
- {
484
- "name": "amountFee",
485
- "type": "uint256",
486
- "indexed": false,
487
- "internalType": "uint256"
488
- },
489
- {
490
- "name": "amountSold",
491
- "type": "uint256",
492
- "indexed": false,
493
- "internalType": "uint256"
494
- }
495
- ],
496
- "anonymous": false
497
- },
498
- {
499
- "type": "event",
500
- "name": "CoinMarketRewards",
501
- "inputs": [
502
- {
503
- "name": "payoutRecipient",
504
- "type": "address",
505
- "indexed": true,
506
- "internalType": "address"
507
- },
508
- {
509
- "name": "platformReferrer",
510
- "type": "address",
511
- "indexed": true,
512
- "internalType": "address"
513
- },
514
- {
515
- "name": "protocolRewardRecipient",
516
- "type": "address",
517
- "indexed": false,
518
- "internalType": "address"
519
- },
520
- {
521
- "name": "currency",
522
- "type": "address",
523
- "indexed": false,
524
- "internalType": "address"
525
- },
526
- {
527
- "name": "marketRewards",
528
- "type": "tuple",
529
- "indexed": false,
530
- "internalType": "struct ICoin.MarketRewards",
531
- "components": [
532
- {
533
- "name": "totalAmountCurrency",
534
- "type": "uint256",
535
- "internalType": "uint256"
536
- },
537
- {
538
- "name": "totalAmountCoin",
539
- "type": "uint256",
540
- "internalType": "uint256"
541
- },
542
- {
543
- "name": "creatorPayoutAmountCurrency",
544
- "type": "uint256",
545
- "internalType": "uint256"
546
- },
547
- {
548
- "name": "creatorPayoutAmountCoin",
549
- "type": "uint256",
550
- "internalType": "uint256"
551
- },
552
- {
553
- "name": "platformReferrerAmountCurrency",
554
- "type": "uint256",
555
- "internalType": "uint256"
556
- },
557
- {
558
- "name": "platformReferrerAmountCoin",
559
- "type": "uint256",
560
- "internalType": "uint256"
561
- },
562
- {
563
- "name": "protocolAmountCurrency",
564
- "type": "uint256",
565
- "internalType": "uint256"
566
- },
567
- {
568
- "name": "protocolAmountCoin",
569
- "type": "uint256",
570
- "internalType": "uint256"
571
- }
572
- ]
573
- }
574
- ],
575
- "anonymous": false
576
- },
577
- {
578
- "type": "event",
579
- "name": "CoinPayoutRecipientUpdated",
580
- "inputs": [
581
- {
582
- "name": "caller",
583
- "type": "address",
584
- "indexed": true,
585
- "internalType": "address"
586
- },
587
- {
588
- "name": "prevRecipient",
589
- "type": "address",
590
- "indexed": true,
591
- "internalType": "address"
592
- },
593
- {
594
- "name": "newRecipient",
595
- "type": "address",
596
- "indexed": true,
597
- "internalType": "address"
598
- }
599
- ],
600
- "anonymous": false
601
- },
602
- {
603
- "type": "event",
604
- "name": "CoinSell",
605
- "inputs": [
606
- {
607
- "name": "seller",
608
- "type": "address",
609
- "indexed": true,
610
- "internalType": "address"
611
- },
612
- {
613
- "name": "recipient",
614
- "type": "address",
615
- "indexed": true,
616
- "internalType": "address"
617
- },
618
- {
619
- "name": "tradeReferrer",
620
- "type": "address",
621
- "indexed": true,
622
- "internalType": "address"
623
- },
624
- {
625
- "name": "coinsSold",
626
- "type": "uint256",
627
- "indexed": false,
628
- "internalType": "uint256"
629
- },
630
- {
631
- "name": "currency",
632
- "type": "address",
633
- "indexed": false,
634
- "internalType": "address"
635
- },
636
- {
637
- "name": "amountFee",
638
- "type": "uint256",
639
- "indexed": false,
640
- "internalType": "uint256"
641
- },
642
- {
643
- "name": "amountPurchased",
644
- "type": "uint256",
645
- "indexed": false,
646
- "internalType": "uint256"
647
- }
648
- ],
649
- "anonymous": false
650
- },
651
- {
652
- "type": "event",
653
- "name": "CoinTradeRewards",
654
- "inputs": [
655
- {
656
- "name": "payoutRecipient",
657
- "type": "address",
658
- "indexed": true,
659
- "internalType": "address"
660
- },
661
- {
662
- "name": "platformReferrer",
663
- "type": "address",
664
- "indexed": true,
665
- "internalType": "address"
666
- },
667
- {
668
- "name": "tradeReferrer",
669
- "type": "address",
670
- "indexed": true,
671
- "internalType": "address"
672
- },
673
- {
674
- "name": "protocolRewardRecipient",
675
- "type": "address",
676
- "indexed": false,
677
- "internalType": "address"
678
- },
679
- {
680
- "name": "creatorReward",
681
- "type": "uint256",
682
- "indexed": false,
683
- "internalType": "uint256"
684
- },
685
- {
686
- "name": "platformReferrerReward",
687
- "type": "uint256",
688
- "indexed": false,
689
- "internalType": "uint256"
690
- },
691
- {
692
- "name": "traderReferrerReward",
693
- "type": "uint256",
694
- "indexed": false,
695
- "internalType": "uint256"
696
- },
697
- {
698
- "name": "protocolReward",
699
- "type": "uint256",
700
- "indexed": false,
701
- "internalType": "uint256"
702
- },
703
- {
704
- "name": "currency",
705
- "type": "address",
706
- "indexed": false,
707
- "internalType": "address"
708
- }
709
- ],
710
- "anonymous": false
711
- },
712
- {
713
- "type": "event",
714
- "name": "CoinTransfer",
715
- "inputs": [
716
- {
717
- "name": "sender",
718
- "type": "address",
719
- "indexed": true,
720
- "internalType": "address"
721
- },
722
- {
723
- "name": "recipient",
724
- "type": "address",
725
- "indexed": true,
726
- "internalType": "address"
727
- },
728
- {
729
- "name": "amount",
730
- "type": "uint256",
731
- "indexed": false,
732
- "internalType": "uint256"
733
- },
734
- {
735
- "name": "senderBalance",
736
- "type": "uint256",
737
- "indexed": false,
738
- "internalType": "uint256"
739
- },
740
- {
741
- "name": "recipientBalance",
742
- "type": "uint256",
743
- "indexed": false,
744
- "internalType": "uint256"
745
- }
746
- ],
747
- "anonymous": false
748
- },
749
- {
750
- "type": "event",
751
- "name": "ContractMetadataUpdated",
752
- "inputs": [
753
- {
754
- "name": "caller",
755
- "type": "address",
756
- "indexed": true,
757
- "internalType": "address"
758
- },
759
- {
760
- "name": "newURI",
761
- "type": "string",
762
- "indexed": false,
763
- "internalType": "string"
764
- },
765
- {
766
- "name": "name",
767
- "type": "string",
768
- "indexed": false,
769
- "internalType": "string"
770
- }
771
- ],
772
- "anonymous": false
773
- },
774
- {
775
- "type": "event",
776
- "name": "ContractURIUpdated",
777
- "inputs": [],
778
- "anonymous": false
779
- },
780
- {
781
- "type": "event",
782
- "name": "LiquidityMigrated",
783
- "inputs": [
784
- {
785
- "name": "fromPoolKey",
786
- "type": "tuple",
787
- "indexed": false,
788
- "internalType": "struct PoolKey",
789
- "components": [
790
- {
791
- "name": "currency0",
792
- "type": "address",
793
- "internalType": "Currency"
794
- },
795
- {
796
- "name": "currency1",
797
- "type": "address",
798
- "internalType": "Currency"
799
- },
800
- {
801
- "name": "fee",
802
- "type": "uint24",
803
- "internalType": "uint24"
804
- },
805
- {
806
- "name": "tickSpacing",
807
- "type": "int24",
808
- "internalType": "int24"
809
- },
810
- {
811
- "name": "hooks",
812
- "type": "address",
813
- "internalType": "contract IHooks"
814
- }
815
- ]
816
- },
817
- {
818
- "name": "fromPoolKeyHash",
819
- "type": "bytes32",
820
- "indexed": false,
821
- "internalType": "bytes32"
822
- },
823
- {
824
- "name": "toPoolKey",
825
- "type": "tuple",
826
- "indexed": false,
827
- "internalType": "struct PoolKey",
828
- "components": [
829
- {
830
- "name": "currency0",
831
- "type": "address",
832
- "internalType": "Currency"
833
- },
834
- {
835
- "name": "currency1",
836
- "type": "address",
837
- "internalType": "Currency"
838
- },
839
- {
840
- "name": "fee",
841
- "type": "uint24",
842
- "internalType": "uint24"
843
- },
844
- {
845
- "name": "tickSpacing",
846
- "type": "int24",
847
- "internalType": "int24"
848
- },
849
- {
850
- "name": "hooks",
851
- "type": "address",
852
- "internalType": "contract IHooks"
853
- }
854
- ]
855
- },
856
- {
857
- "name": "toPoolKeyHash",
858
- "type": "bytes32",
859
- "indexed": false,
860
- "internalType": "bytes32"
861
- }
862
- ],
863
- "anonymous": false
864
- },
865
- {
866
- "type": "event",
867
- "name": "NameAndSymbolUpdated",
868
- "inputs": [
869
- {
870
- "name": "caller",
871
- "type": "address",
872
- "indexed": true,
873
- "internalType": "address"
874
- },
875
- {
876
- "name": "newName",
877
- "type": "string",
878
- "indexed": false,
879
- "internalType": "string"
880
- },
881
- {
882
- "name": "newSymbol",
883
- "type": "string",
884
- "indexed": false,
885
- "internalType": "string"
886
- }
887
- ],
888
- "anonymous": false
889
- },
890
- {
891
- "type": "error",
892
- "name": "AddressZero",
893
- "inputs": []
894
- },
895
- {
896
- "type": "error",
897
- "name": "CannotMintZeroLiquidity",
898
- "inputs": []
899
- },
900
- {
901
- "type": "error",
902
- "name": "DopplerPoolMustHaveMoreThan2DiscoveryPositions",
903
- "inputs": []
904
- },
905
- {
906
- "type": "error",
907
- "name": "ERC20TransferAmountMismatch",
908
- "inputs": []
909
- },
910
- {
911
- "type": "error",
912
- "name": "EthAmountMismatch",
913
- "inputs": []
914
- },
915
- {
916
- "type": "error",
917
- "name": "EthAmountTooSmall",
918
- "inputs": []
919
- },
920
- {
921
- "type": "error",
922
- "name": "EthTransferFailed",
923
- "inputs": []
924
- },
925
- {
926
- "type": "error",
927
- "name": "EthTransferInvalid",
928
- "inputs": []
929
- },
930
- {
931
- "type": "error",
932
- "name": "InitialOrderSizeTooLarge",
933
- "inputs": []
934
- },
935
- {
936
- "type": "error",
937
- "name": "InsufficientFunds",
938
- "inputs": []
939
- },
940
- {
941
- "type": "error",
942
- "name": "InsufficientLiquidity",
943
- "inputs": []
944
- },
945
- {
946
- "type": "error",
947
- "name": "InvalidCurrencyLowerTick",
948
- "inputs": []
949
- },
950
- {
951
- "type": "error",
952
- "name": "InvalidMarketType",
953
- "inputs": []
954
- },
955
- {
956
- "type": "error",
957
- "name": "InvalidPoolVersion",
958
- "inputs": []
959
- },
960
- {
961
- "type": "error",
962
- "name": "InvalidTickRangeMisordered",
963
- "inputs": [
964
- {
965
- "name": "tickLower",
966
- "type": "int24",
967
- "internalType": "int24"
968
- },
969
- {
970
- "name": "tickUpper",
971
- "type": "int24",
972
- "internalType": "int24"
973
- }
974
- ]
975
- },
976
- {
977
- "type": "error",
978
- "name": "InvalidWethLowerTick",
979
- "inputs": []
980
- },
981
- {
982
- "type": "error",
983
- "name": "LegacyPoolMustHaveOneDiscoveryPosition",
984
- "inputs": []
985
- },
986
- {
987
- "type": "error",
988
- "name": "MarketAlreadyGraduated",
989
- "inputs": []
990
- },
991
- {
992
- "type": "error",
993
- "name": "MarketNotGraduated",
994
- "inputs": []
995
- },
996
- {
997
- "type": "error",
998
- "name": "MaxShareToBeSoldExceeded",
999
- "inputs": [
1000
- {
1001
- "name": "value",
1002
- "type": "uint256",
1003
- "internalType": "uint256"
1004
- },
1005
- {
1006
- "name": "limit",
1007
- "type": "uint256",
1008
- "internalType": "uint256"
1009
- }
1010
- ]
1011
- },
1012
- {
1013
- "type": "error",
1014
- "name": "NameIsRequired",
1015
- "inputs": []
1016
- },
1017
- {
1018
- "type": "error",
1019
- "name": "NumDiscoveryPositionsOutOfRange",
1020
- "inputs": []
1021
- },
1022
- {
1023
- "type": "error",
1024
- "name": "OnlyPool",
1025
- "inputs": [
1026
- {
1027
- "name": "sender",
1028
- "type": "address",
1029
- "internalType": "address"
1030
- },
1031
- {
1032
- "name": "pool",
1033
- "type": "address",
1034
- "internalType": "address"
1035
- }
1036
- ]
1037
- },
1038
- {
1039
- "type": "error",
1040
- "name": "OnlyWeth",
1041
- "inputs": []
1042
- },
1043
- {
1044
- "type": "error",
1045
- "name": "SlippageBoundsExceeded",
1046
- "inputs": []
1047
- }
1048
- ]