@zoralabs/coins 0.9.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/.turbo/turbo-build.log +179 -114
  2. package/CHANGELOG.md +46 -0
  3. package/abis/BaseCoin.json +26 -118
  4. package/abis/BaseTest.json +47 -0
  5. package/abis/BuySupplyWithSwapRouterHook.json +40 -0
  6. package/abis/Coin.json +171 -63
  7. package/abis/CoinDopplerMultiCurve.json +38 -0
  8. package/abis/CoinRewardsV4.json +54 -0
  9. package/abis/CoinTest.json +53 -20
  10. package/abis/CoinUniV4Test.json +1091 -0
  11. package/abis/CoinV4.json +234 -211
  12. package/abis/DeployScript.json +47 -0
  13. package/abis/DeployedCoinVersionLookup.json +21 -0
  14. package/abis/DeployedCoinVersionLookupTest.json +716 -0
  15. package/abis/DifferentNamespaceVersionLookup.json +39 -0
  16. package/abis/DopplerUniswapV3Test.json +49 -93
  17. package/abis/ERC20.json +310 -0
  18. package/abis/FactoryTest.json +85 -7
  19. package/abis/FeeEstimatorHook.json +1515 -0
  20. package/abis/HooksDeployment.json +23 -0
  21. package/abis/HooksTest.json +60 -0
  22. package/abis/ICoin.json +40 -71
  23. package/abis/ICoinV3.json +879 -0
  24. package/abis/ICoinV4.json +915 -0
  25. package/abis/IDeployedCoinVersionLookup.json +21 -0
  26. package/abis/IERC721.json +36 -36
  27. package/abis/IHasPoolKey.json +42 -0
  28. package/abis/IHasRewardsRecipients.json +54 -0
  29. package/abis/IHasSwapPath.json +60 -0
  30. package/abis/IMsgSender.json +15 -0
  31. package/abis/IPoolConfigEncoding.json +46 -0
  32. package/abis/ISwapPathRouter.json +92 -0
  33. package/abis/IUniversalRouter.json +61 -0
  34. package/abis/IUnlockCallback.json +21 -0
  35. package/abis/IV4Quoter.json +310 -0
  36. package/abis/IZoraFactory.json +210 -11
  37. package/abis/IZoraV4CoinHook.json +348 -4
  38. package/abis/MockERC20.json +21 -0
  39. package/abis/MultiOwnableTest.json +47 -0
  40. package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
  41. package/abis/PrintUpgradeCommand.json +9 -0
  42. package/abis/ProxyShim.json +24 -0
  43. package/abis/StateLibrary.json +80 -0
  44. package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
  45. package/abis/TestV4Swap.json +9 -0
  46. package/abis/UpgradeCoinImpl.json +47 -0
  47. package/abis/UpgradesTest.json +81 -0
  48. package/abis/Vm.json +1482 -111
  49. package/abis/VmSafe.json +856 -32
  50. package/abis/ZoraFactoryImpl.json +339 -1
  51. package/abis/ZoraV4CoinHook.json +442 -5
  52. package/addresses/8453.json +7 -4
  53. package/addresses/84532.json +8 -5
  54. package/addresses/dev/8453.json +10 -0
  55. package/dist/index.cjs +1932 -167
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.js +1928 -167
  58. package/dist/index.js.map +1 -1
  59. package/dist/wagmiGenerated.d.ts +2606 -160
  60. package/dist/wagmiGenerated.d.ts.map +1 -1
  61. package/foundry.toml +1 -0
  62. package/package/wagmiGenerated.ts +1941 -164
  63. package/package.json +8 -3
  64. package/remappings.txt +6 -1
  65. package/script/Deploy.s.sol +1 -1
  66. package/script/DeployDevFactory.s.sol +21 -0
  67. package/script/DeployHooks.s.sol +1 -1
  68. package/script/PrintUpgradeCommand.s.sol +13 -0
  69. package/script/Simulate.s.sol +1 -10
  70. package/script/TestBackingCoinSwap.s.sol +147 -0
  71. package/script/TestV4Swap.s.sol +136 -0
  72. package/script/UpgradeCoinImpl.sol +2 -2
  73. package/script/UpgradeFactoryImpl.s.sol +2 -2
  74. package/src/BaseCoin.sol +190 -0
  75. package/src/Coin.sol +87 -202
  76. package/src/CoinV4.sol +121 -0
  77. package/src/ZoraFactoryImpl.sol +208 -36
  78. package/{script → src/deployment}/CoinsDeployerBase.sol +111 -17
  79. package/src/hooks/ZoraV4CoinHook.sol +212 -0
  80. package/src/hooks/{BaseCoinDeployHook.sol → deployment/BaseCoinDeployHook.sol} +3 -3
  81. package/src/hooks/deployment/BuySupplyWithSwapRouterHook.sol +140 -0
  82. package/src/interfaces/ICoin.sol +31 -39
  83. package/src/interfaces/ICoinV3.sol +71 -0
  84. package/src/interfaces/ICoinV4.sol +69 -0
  85. package/src/interfaces/IDeployedCoinVersionLookup.sol +11 -0
  86. package/src/interfaces/IMsgSender.sol +9 -0
  87. package/src/interfaces/IPoolConfigEncoding.sol +14 -0
  88. package/src/interfaces/ISwapPathRouter.sol +14 -0
  89. package/src/interfaces/IZoraFactory.sol +67 -28
  90. package/src/interfaces/IZoraV4CoinHook.sol +116 -0
  91. package/src/libs/CoinCommon.sol +15 -0
  92. package/src/libs/CoinConfigurationVersions.sol +116 -1
  93. package/src/libs/CoinConstants.sol +5 -0
  94. package/src/libs/CoinDopplerMultiCurve.sol +134 -0
  95. package/src/libs/CoinDopplerUniV3.sol +19 -171
  96. package/src/libs/CoinRewards.sol +195 -0
  97. package/src/libs/CoinRewardsV4.sol +179 -0
  98. package/src/libs/CoinSetup.sol +57 -0
  99. package/src/libs/CoinSetupV3.sol +6 -67
  100. package/src/libs/DopplerMath.sol +156 -0
  101. package/src/libs/HooksDeployment.sol +128 -0
  102. package/src/libs/MarketConstants.sol +4 -0
  103. package/src/libs/PoolStateReader.sol +22 -0
  104. package/src/libs/UniV3BuySell.sol +74 -292
  105. package/src/libs/UniV4SwapHelper.sol +65 -0
  106. package/src/libs/UniV4SwapToCurrency.sol +109 -0
  107. package/src/libs/V4Liquidity.sol +122 -0
  108. package/src/types/PoolConfiguration.sol +15 -0
  109. package/src/utils/DeployedCoinVersionLookup.sol +52 -0
  110. package/src/version/ContractVersionBase.sol +1 -1
  111. package/test/Coin.t.sol +78 -88
  112. package/test/CoinDopplerUniV3.t.sol +32 -171
  113. package/test/CoinUniV4.t.sol +777 -0
  114. package/test/{Hooks.t.sol → DeploymentHooks.t.sol} +53 -16
  115. package/test/Factory.t.sol +80 -47
  116. package/test/MultiOwnable.t.sol +6 -3
  117. package/test/Upgrades.t.sol +97 -5
  118. package/test/mocks/MockERC20.sol +12 -0
  119. package/test/utils/BaseTest.sol +162 -57
  120. package/test/utils/DeployedCoinVersionLookup.t.sol +127 -0
  121. package/test/utils/FeeEstimatorHook.sol +84 -0
  122. package/test/utils/ProxyShim.sol +17 -0
  123. package/wagmi.config.ts +4 -0
  124. package/.env +0 -1
  125. package/.turbo/turbo-update-contract-version.log +0 -22
  126. package/abis/CoinSetupV3.json +0 -7
  127. package/abis/HookDeployer.json +0 -68
  128. package/abis/IHookDeployer.json +0 -42
  129. package/src/hooks/BuySupplyWithSwapRouterHook.sol +0 -78
  130. package/src/libs/CoinLegacy.sol +0 -48
  131. package/src/libs/CoinLegacyMarket.sol +0 -182
@@ -0,0 +1,915 @@
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": "supportsInterface",
402
+ "inputs": [
403
+ {
404
+ "name": "interfaceId",
405
+ "type": "bytes4",
406
+ "internalType": "bytes4"
407
+ }
408
+ ],
409
+ "outputs": [
410
+ {
411
+ "name": "",
412
+ "type": "bool",
413
+ "internalType": "bool"
414
+ }
415
+ ],
416
+ "stateMutability": "view"
417
+ },
418
+ {
419
+ "type": "function",
420
+ "name": "tokenURI",
421
+ "inputs": [],
422
+ "outputs": [
423
+ {
424
+ "name": "",
425
+ "type": "string",
426
+ "internalType": "string"
427
+ }
428
+ ],
429
+ "stateMutability": "view"
430
+ },
431
+ {
432
+ "type": "event",
433
+ "name": "CoinBuy",
434
+ "inputs": [
435
+ {
436
+ "name": "buyer",
437
+ "type": "address",
438
+ "indexed": true,
439
+ "internalType": "address"
440
+ },
441
+ {
442
+ "name": "recipient",
443
+ "type": "address",
444
+ "indexed": true,
445
+ "internalType": "address"
446
+ },
447
+ {
448
+ "name": "tradeReferrer",
449
+ "type": "address",
450
+ "indexed": true,
451
+ "internalType": "address"
452
+ },
453
+ {
454
+ "name": "coinsPurchased",
455
+ "type": "uint256",
456
+ "indexed": false,
457
+ "internalType": "uint256"
458
+ },
459
+ {
460
+ "name": "currency",
461
+ "type": "address",
462
+ "indexed": false,
463
+ "internalType": "address"
464
+ },
465
+ {
466
+ "name": "amountFee",
467
+ "type": "uint256",
468
+ "indexed": false,
469
+ "internalType": "uint256"
470
+ },
471
+ {
472
+ "name": "amountSold",
473
+ "type": "uint256",
474
+ "indexed": false,
475
+ "internalType": "uint256"
476
+ }
477
+ ],
478
+ "anonymous": false
479
+ },
480
+ {
481
+ "type": "event",
482
+ "name": "CoinMarketRewards",
483
+ "inputs": [
484
+ {
485
+ "name": "payoutRecipient",
486
+ "type": "address",
487
+ "indexed": true,
488
+ "internalType": "address"
489
+ },
490
+ {
491
+ "name": "platformReferrer",
492
+ "type": "address",
493
+ "indexed": true,
494
+ "internalType": "address"
495
+ },
496
+ {
497
+ "name": "protocolRewardRecipient",
498
+ "type": "address",
499
+ "indexed": false,
500
+ "internalType": "address"
501
+ },
502
+ {
503
+ "name": "currency",
504
+ "type": "address",
505
+ "indexed": false,
506
+ "internalType": "address"
507
+ },
508
+ {
509
+ "name": "marketRewards",
510
+ "type": "tuple",
511
+ "indexed": false,
512
+ "internalType": "struct ICoin.MarketRewards",
513
+ "components": [
514
+ {
515
+ "name": "totalAmountCurrency",
516
+ "type": "uint256",
517
+ "internalType": "uint256"
518
+ },
519
+ {
520
+ "name": "totalAmountCoin",
521
+ "type": "uint256",
522
+ "internalType": "uint256"
523
+ },
524
+ {
525
+ "name": "creatorPayoutAmountCurrency",
526
+ "type": "uint256",
527
+ "internalType": "uint256"
528
+ },
529
+ {
530
+ "name": "creatorPayoutAmountCoin",
531
+ "type": "uint256",
532
+ "internalType": "uint256"
533
+ },
534
+ {
535
+ "name": "platformReferrerAmountCurrency",
536
+ "type": "uint256",
537
+ "internalType": "uint256"
538
+ },
539
+ {
540
+ "name": "platformReferrerAmountCoin",
541
+ "type": "uint256",
542
+ "internalType": "uint256"
543
+ },
544
+ {
545
+ "name": "protocolAmountCurrency",
546
+ "type": "uint256",
547
+ "internalType": "uint256"
548
+ },
549
+ {
550
+ "name": "protocolAmountCoin",
551
+ "type": "uint256",
552
+ "internalType": "uint256"
553
+ }
554
+ ]
555
+ }
556
+ ],
557
+ "anonymous": false
558
+ },
559
+ {
560
+ "type": "event",
561
+ "name": "CoinPayoutRecipientUpdated",
562
+ "inputs": [
563
+ {
564
+ "name": "caller",
565
+ "type": "address",
566
+ "indexed": true,
567
+ "internalType": "address"
568
+ },
569
+ {
570
+ "name": "prevRecipient",
571
+ "type": "address",
572
+ "indexed": true,
573
+ "internalType": "address"
574
+ },
575
+ {
576
+ "name": "newRecipient",
577
+ "type": "address",
578
+ "indexed": true,
579
+ "internalType": "address"
580
+ }
581
+ ],
582
+ "anonymous": false
583
+ },
584
+ {
585
+ "type": "event",
586
+ "name": "CoinSell",
587
+ "inputs": [
588
+ {
589
+ "name": "seller",
590
+ "type": "address",
591
+ "indexed": true,
592
+ "internalType": "address"
593
+ },
594
+ {
595
+ "name": "recipient",
596
+ "type": "address",
597
+ "indexed": true,
598
+ "internalType": "address"
599
+ },
600
+ {
601
+ "name": "tradeReferrer",
602
+ "type": "address",
603
+ "indexed": true,
604
+ "internalType": "address"
605
+ },
606
+ {
607
+ "name": "coinsSold",
608
+ "type": "uint256",
609
+ "indexed": false,
610
+ "internalType": "uint256"
611
+ },
612
+ {
613
+ "name": "currency",
614
+ "type": "address",
615
+ "indexed": false,
616
+ "internalType": "address"
617
+ },
618
+ {
619
+ "name": "amountFee",
620
+ "type": "uint256",
621
+ "indexed": false,
622
+ "internalType": "uint256"
623
+ },
624
+ {
625
+ "name": "amountPurchased",
626
+ "type": "uint256",
627
+ "indexed": false,
628
+ "internalType": "uint256"
629
+ }
630
+ ],
631
+ "anonymous": false
632
+ },
633
+ {
634
+ "type": "event",
635
+ "name": "CoinTradeRewards",
636
+ "inputs": [
637
+ {
638
+ "name": "payoutRecipient",
639
+ "type": "address",
640
+ "indexed": true,
641
+ "internalType": "address"
642
+ },
643
+ {
644
+ "name": "platformReferrer",
645
+ "type": "address",
646
+ "indexed": true,
647
+ "internalType": "address"
648
+ },
649
+ {
650
+ "name": "tradeReferrer",
651
+ "type": "address",
652
+ "indexed": true,
653
+ "internalType": "address"
654
+ },
655
+ {
656
+ "name": "protocolRewardRecipient",
657
+ "type": "address",
658
+ "indexed": false,
659
+ "internalType": "address"
660
+ },
661
+ {
662
+ "name": "creatorReward",
663
+ "type": "uint256",
664
+ "indexed": false,
665
+ "internalType": "uint256"
666
+ },
667
+ {
668
+ "name": "platformReferrerReward",
669
+ "type": "uint256",
670
+ "indexed": false,
671
+ "internalType": "uint256"
672
+ },
673
+ {
674
+ "name": "traderReferrerReward",
675
+ "type": "uint256",
676
+ "indexed": false,
677
+ "internalType": "uint256"
678
+ },
679
+ {
680
+ "name": "protocolReward",
681
+ "type": "uint256",
682
+ "indexed": false,
683
+ "internalType": "uint256"
684
+ },
685
+ {
686
+ "name": "currency",
687
+ "type": "address",
688
+ "indexed": false,
689
+ "internalType": "address"
690
+ }
691
+ ],
692
+ "anonymous": false
693
+ },
694
+ {
695
+ "type": "event",
696
+ "name": "CoinTransfer",
697
+ "inputs": [
698
+ {
699
+ "name": "sender",
700
+ "type": "address",
701
+ "indexed": true,
702
+ "internalType": "address"
703
+ },
704
+ {
705
+ "name": "recipient",
706
+ "type": "address",
707
+ "indexed": true,
708
+ "internalType": "address"
709
+ },
710
+ {
711
+ "name": "amount",
712
+ "type": "uint256",
713
+ "indexed": false,
714
+ "internalType": "uint256"
715
+ },
716
+ {
717
+ "name": "senderBalance",
718
+ "type": "uint256",
719
+ "indexed": false,
720
+ "internalType": "uint256"
721
+ },
722
+ {
723
+ "name": "recipientBalance",
724
+ "type": "uint256",
725
+ "indexed": false,
726
+ "internalType": "uint256"
727
+ }
728
+ ],
729
+ "anonymous": false
730
+ },
731
+ {
732
+ "type": "event",
733
+ "name": "ContractMetadataUpdated",
734
+ "inputs": [
735
+ {
736
+ "name": "caller",
737
+ "type": "address",
738
+ "indexed": true,
739
+ "internalType": "address"
740
+ },
741
+ {
742
+ "name": "newURI",
743
+ "type": "string",
744
+ "indexed": false,
745
+ "internalType": "string"
746
+ },
747
+ {
748
+ "name": "name",
749
+ "type": "string",
750
+ "indexed": false,
751
+ "internalType": "string"
752
+ }
753
+ ],
754
+ "anonymous": false
755
+ },
756
+ {
757
+ "type": "event",
758
+ "name": "ContractURIUpdated",
759
+ "inputs": [],
760
+ "anonymous": false
761
+ },
762
+ {
763
+ "type": "error",
764
+ "name": "AddressZero",
765
+ "inputs": []
766
+ },
767
+ {
768
+ "type": "error",
769
+ "name": "CannotMintZeroLiquidity",
770
+ "inputs": []
771
+ },
772
+ {
773
+ "type": "error",
774
+ "name": "DopplerPoolMustHaveMoreThan2DiscoveryPositions",
775
+ "inputs": []
776
+ },
777
+ {
778
+ "type": "error",
779
+ "name": "ERC20TransferAmountMismatch",
780
+ "inputs": []
781
+ },
782
+ {
783
+ "type": "error",
784
+ "name": "EthAmountMismatch",
785
+ "inputs": []
786
+ },
787
+ {
788
+ "type": "error",
789
+ "name": "EthAmountTooSmall",
790
+ "inputs": []
791
+ },
792
+ {
793
+ "type": "error",
794
+ "name": "EthTransferFailed",
795
+ "inputs": []
796
+ },
797
+ {
798
+ "type": "error",
799
+ "name": "EthTransferInvalid",
800
+ "inputs": []
801
+ },
802
+ {
803
+ "type": "error",
804
+ "name": "InitialOrderSizeTooLarge",
805
+ "inputs": []
806
+ },
807
+ {
808
+ "type": "error",
809
+ "name": "InsufficientFunds",
810
+ "inputs": []
811
+ },
812
+ {
813
+ "type": "error",
814
+ "name": "InsufficientLiquidity",
815
+ "inputs": []
816
+ },
817
+ {
818
+ "type": "error",
819
+ "name": "InvalidCurrencyLowerTick",
820
+ "inputs": []
821
+ },
822
+ {
823
+ "type": "error",
824
+ "name": "InvalidMarketType",
825
+ "inputs": []
826
+ },
827
+ {
828
+ "type": "error",
829
+ "name": "InvalidPoolVersion",
830
+ "inputs": []
831
+ },
832
+ {
833
+ "type": "error",
834
+ "name": "InvalidTickRangeMisordered",
835
+ "inputs": [
836
+ {
837
+ "name": "tickLower",
838
+ "type": "int24",
839
+ "internalType": "int24"
840
+ },
841
+ {
842
+ "name": "tickUpper",
843
+ "type": "int24",
844
+ "internalType": "int24"
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ "type": "error",
850
+ "name": "InvalidWethLowerTick",
851
+ "inputs": []
852
+ },
853
+ {
854
+ "type": "error",
855
+ "name": "LegacyPoolMustHaveOneDiscoveryPosition",
856
+ "inputs": []
857
+ },
858
+ {
859
+ "type": "error",
860
+ "name": "MarketAlreadyGraduated",
861
+ "inputs": []
862
+ },
863
+ {
864
+ "type": "error",
865
+ "name": "MarketNotGraduated",
866
+ "inputs": []
867
+ },
868
+ {
869
+ "type": "error",
870
+ "name": "MaxShareToBeSoldExceeded",
871
+ "inputs": [
872
+ {
873
+ "name": "value",
874
+ "type": "uint256",
875
+ "internalType": "uint256"
876
+ },
877
+ {
878
+ "name": "limit",
879
+ "type": "uint256",
880
+ "internalType": "uint256"
881
+ }
882
+ ]
883
+ },
884
+ {
885
+ "type": "error",
886
+ "name": "NumDiscoveryPositionsOutOfRange",
887
+ "inputs": []
888
+ },
889
+ {
890
+ "type": "error",
891
+ "name": "OnlyPool",
892
+ "inputs": [
893
+ {
894
+ "name": "sender",
895
+ "type": "address",
896
+ "internalType": "address"
897
+ },
898
+ {
899
+ "name": "pool",
900
+ "type": "address",
901
+ "internalType": "address"
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ "type": "error",
907
+ "name": "OnlyWeth",
908
+ "inputs": []
909
+ },
910
+ {
911
+ "type": "error",
912
+ "name": "SlippageBoundsExceeded",
913
+ "inputs": []
914
+ }
915
+ ]