@zoralabs/coins 0.6.1 → 0.7.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.
Files changed (66) hide show
  1. package/.turbo/turbo-build.log +69 -55
  2. package/CHANGELOG.md +12 -0
  3. package/abis/BaseTest.json +0 -23
  4. package/abis/Coin.json +186 -77
  5. package/abis/CoinConfigurationVersions.json +7 -0
  6. package/abis/CoinSetup.json +7 -0
  7. package/abis/CoinTest.json +5 -49
  8. package/abis/CustomRevert.json +28 -0
  9. package/abis/DopplerUniswapV3Test.json +891 -0
  10. package/abis/FactoryTest.json +7 -23
  11. package/abis/IAirlock.json +15 -0
  12. package/abis/ICoin.json +52 -34
  13. package/abis/IDopplerErrors.json +44 -0
  14. package/abis/INonfungiblePositionManager.json +13 -0
  15. package/abis/IUniswapV3Factory.json +198 -0
  16. package/abis/IUniswapV3Pool.json +135 -0
  17. package/abis/MultiOwnableTest.json +0 -23
  18. package/abis/SafeCast.json +7 -0
  19. package/abis/Simulate.json +120 -0
  20. package/abis/SqrtPriceMath.json +22 -0
  21. package/abis/TickMath.json +24 -0
  22. package/abis/ZoraFactoryImpl.json +59 -0
  23. package/addresses/8453.json +3 -3
  24. package/dist/index.cjs +160 -39
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +160 -39
  27. package/dist/index.js.map +1 -1
  28. package/dist/wagmiGenerated.d.ts +349 -67
  29. package/dist/wagmiGenerated.d.ts.map +1 -1
  30. package/package/wagmiGenerated.ts +161 -40
  31. package/package.json +3 -3
  32. package/script/CoinsDeployerBase.sol +1 -1
  33. package/script/Simulate.s.sol +67 -0
  34. package/src/Coin.sol +159 -90
  35. package/src/ZoraFactoryImpl.sol +47 -1
  36. package/src/interfaces/IAirlock.sol +6 -0
  37. package/src/interfaces/ICoin.sol +18 -2
  38. package/src/interfaces/IDopplerErrors.sol +14 -0
  39. package/src/interfaces/INonfungiblePositionManager.sol +2 -0
  40. package/src/interfaces/IUniswapV3Factory.sol +64 -0
  41. package/src/interfaces/IUniswapV3Pool.sol +48 -0
  42. package/src/libs/CoinConfigurationVersions.sol +9 -0
  43. package/src/libs/CoinDopplerUniV3.sol +202 -0
  44. package/src/libs/CoinLegacy.sol +48 -0
  45. package/src/libs/CoinSetup.sol +37 -0
  46. package/src/libs/MarketConstants.sol +25 -0
  47. package/src/types/LpPosition.sol +8 -0
  48. package/src/types/PoolState.sol +24 -0
  49. package/src/utils/CoinConstants.sol +5 -12
  50. package/src/utils/uniswap/BitMath.sol +55 -0
  51. package/src/utils/uniswap/CustomRevert.sol +111 -0
  52. package/src/utils/uniswap/FixedPoint96.sol +11 -0
  53. package/src/utils/uniswap/FullMath.sol +118 -0
  54. package/src/utils/uniswap/LiquidityAmounts.sol +117 -0
  55. package/src/utils/uniswap/SafeCast.sol +61 -0
  56. package/src/utils/uniswap/SqrtPriceMath.sol +249 -0
  57. package/src/utils/uniswap/TickMath.sol +244 -0
  58. package/src/utils/uniswap/UnsafeMath.sol +30 -0
  59. package/src/version/ContractVersionBase.sol +1 -1
  60. package/test/Coin.t.sol +65 -65
  61. package/test/CoinDopplerUniV3.t.sol +452 -0
  62. package/test/Factory.t.sol +49 -7
  63. package/test/utils/BaseTest.sol +26 -7
  64. package/wagmi.config.ts +1 -1
  65. package/abis/IERC721Receiver.json +0 -36
  66. package/src/utils/TickMath.sol +0 -210
@@ -1,37 +1,31 @@
1
1
 
2
- > @zoralabs/coins@0.6.1 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
2
+ > @zoralabs/coins@0.7.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
3
3
  > pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
4
4
 
5
5
 
6
- > @zoralabs/coins@0.6.1 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
6
+ > @zoralabs/coins@0.7.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
7
7
  > FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
8
8
 
9
- Compiling 94 files with Solc 0.8.28
10
- Solc 0.8.28 finished in 108.30s
9
+ Compiling 113 files with Solc 0.8.28
10
+ Solc 0.8.28 finished in 126.63s
11
11
  Compiler run successful with warnings:
12
- Warning (9302): Return value of low-level calls not used.
13
- --> test/Coin.t.sol:527:9:
14
- |
15
- 527 | address(coin).call{value: 1 ether}("");
16
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
-
18
12
  Warning (2072): Unused local variable.
19
- --> script/UpgradeCoinImpl.sol:14:9:
13
+ --> script/Simulate.s.sol:44:10:
20
14
  |
21
- 14 | DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
22
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
+ 44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
16
+ | ^^^^^^^^^^^^^^^^^^^
23
17
 
24
18
  Warning (2072): Unused local variable.
25
- --> test/Coin.t.sol:446:10:
26
- |
27
- 446 | (address newCoinAddr, ) = factory.deploy(
28
- | ^^^^^^^^^^^^^^^^^^^
19
+ --> script/Simulate.s.sol:44:31:
20
+ |
21
+ 44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
22
+ | ^^^^^^^^^^^^^^^^^^^^^^
29
23
 
30
24
  Warning (2072): Unused local variable.
31
- --> test/Coin.t.sol:464:10:
32
- |
33
- 464 | (address newCoinAddr, ) = factory.deploy(
34
- | ^^^^^^^^^^^^^^^^^^^
25
+ --> script/UpgradeCoinImpl.sol:14:9:
26
+ |
27
+ 14 | DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
28
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
29
 
36
30
  - Validating plugins
37
31
  ✔ Validating plugins
@@ -46,39 +40,59 @@ Warning (2072): Unused local variable.
46
40
  ✅ Updated ./package/wagmiGenerated.ts (4 replacements)
47
41
  ✨ All files processed successfully!
48
42
 
49
- > @zoralabs/coins@0.6.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
43
+ > @zoralabs/coins@0.7.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
50
44
  > pnpm exec bundle-abis
51
45
 
52
46
 
53
- > @zoralabs/coins@0.6.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
47
+ > @zoralabs/coins@0.7.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
54
48
  > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
55
49
 
56
- src/Coin.sol 1595ms (unchanged)
57
- src/interfaces/ICoin.sol 75ms (unchanged)
58
- src/interfaces/ICoinComments.sol 5ms (unchanged)
59
- src/interfaces/IERC7572.sol 4ms (unchanged)
60
- src/interfaces/INonfungiblePositionManager.sol 30ms (unchanged)
61
- src/interfaces/IProtocolRewards.sol 8ms (unchanged)
62
- src/interfaces/ISwapRouter.sol 6ms (unchanged)
63
- src/interfaces/IUniswapV3Pool.sol 8ms (unchanged)
64
- src/interfaces/IUniswapV3SwapCallback.sol 5ms (unchanged)
65
- src/interfaces/IWETH.sol 7ms (unchanged)
66
- src/interfaces/IZoraFactory.sol 11ms (unchanged)
67
- src/proxy/ZoraFactory.sol 23ms (unchanged)
68
- src/utils/CoinConstants.sol 8ms (unchanged)
69
- src/utils/MultiOwnable.sol 236ms (unchanged)
70
- src/utils/TickMath.sol 365ms (unchanged)
71
- src/version/ContractVersionBase.sol 6ms (unchanged)
72
- src/ZoraFactoryImpl.sol 190ms (unchanged)
73
- test/Coin.t.sol 950ms (unchanged)
74
- test/Factory.t.sol 395ms (unchanged)
75
- test/MultiOwnable.t.sol 429ms (unchanged)
76
- test/utils/BaseTest.sol 304ms (unchanged)
77
- test/utils/ProtocolRewards.sol 967ms (unchanged)
78
- script/CoinsDeployerBase.sol 134ms (unchanged)
79
- script/Deploy.s.sol 13ms (unchanged)
80
- script/GenerateDeterministicParams.s.sol 44ms (unchanged)
81
- script/UpgradeCoinImpl.sol 13ms (unchanged)
50
+ src/Coin.sol 1754ms (unchanged)
51
+ src/interfaces/IAirlock.sol 14ms (unchanged)
52
+ src/interfaces/ICoin.sol 70ms (unchanged)
53
+ src/interfaces/ICoinComments.sol 11ms (unchanged)
54
+ src/interfaces/IDopplerErrors.sol 2ms (unchanged)
55
+ src/interfaces/IERC7572.sol 2ms (unchanged)
56
+ src/interfaces/INonfungiblePositionManager.sol 28ms (unchanged)
57
+ src/interfaces/IProtocolRewards.sol 12ms (unchanged)
58
+ src/interfaces/ISwapRouter.sol 10ms (unchanged)
59
+ src/interfaces/IUniswapV3Factory.sol 16ms (unchanged)
60
+ src/interfaces/IUniswapV3Pool.sol 27ms (unchanged)
61
+ src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
62
+ src/interfaces/IWETH.sol 2ms (unchanged)
63
+ src/interfaces/IZoraFactory.sol 9ms (unchanged)
64
+ src/libs/CoinConfigurationVersions.sol 2ms (unchanged)
65
+ src/libs/CoinDopplerUniV3.sol 486ms (unchanged)
66
+ src/libs/CoinLegacy.sol 132ms (unchanged)
67
+ src/libs/CoinSetup.sol 48ms (unchanged)
68
+ src/libs/MarketConstants.sol 4ms (unchanged)
69
+ src/proxy/ZoraFactory.sol 17ms (unchanged)
70
+ src/types/LpPosition.sol 1ms (unchanged)
71
+ src/types/PoolState.sol 2ms (unchanged)
72
+ src/utils/CoinConstants.sol 6ms (unchanged)
73
+ src/utils/MultiOwnable.sol 103ms (unchanged)
74
+ src/utils/uniswap/BitMath.sol 49ms (unchanged)
75
+ src/utils/uniswap/CustomRevert.sol 83ms (unchanged)
76
+ src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
77
+ src/utils/uniswap/FullMath.sol 66ms (unchanged)
78
+ src/utils/uniswap/LiquidityAmounts.sol 148ms (unchanged)
79
+ src/utils/uniswap/SafeCast.sol 38ms (unchanged)
80
+ src/utils/uniswap/SqrtPriceMath.sol 190ms (unchanged)
81
+ src/utils/uniswap/TickMath.sol 181ms (unchanged)
82
+ src/utils/uniswap/UnsafeMath.sol 5ms (unchanged)
83
+ src/version/ContractVersionBase.sol 3ms (unchanged)
84
+ src/ZoraFactoryImpl.sol 186ms (unchanged)
85
+ test/Coin.t.sol 970ms (unchanged)
86
+ test/CoinDopplerUniV3.t.sol 525ms (unchanged)
87
+ test/Factory.t.sol 399ms (unchanged)
88
+ test/MultiOwnable.t.sol 268ms (unchanged)
89
+ test/utils/BaseTest.sol 249ms (unchanged)
90
+ test/utils/ProtocolRewards.sol 705ms (unchanged)
91
+ script/CoinsDeployerBase.sol 112ms (unchanged)
92
+ script/Deploy.s.sol 7ms (unchanged)
93
+ script/GenerateDeterministicParams.s.sol 37ms (unchanged)
94
+ script/Simulate.s.sol 40ms (unchanged)
95
+ script/UpgradeCoinImpl.sol 12ms (unchanged)
82
96
  CLI Building entry: package/index.ts
83
97
  CLI Using tsconfig: tsconfig.json
84
98
  CLI tsup v7.3.0
@@ -87,9 +101,9 @@ CLI Target: es2021
87
101
  CLI Cleaning output folder
88
102
  CJS Build start
89
103
  ESM Build start
90
- CJS dist/index.cjs 34.70 KB
91
- CJS dist/index.cjs.map 61.94 KB
92
- CJS ⚡️ Build success in 44ms
93
- ESM dist/index.js 33.49 KB
94
- ESM dist/index.js.map 61.82 KB
95
- ESM ⚡️ Build success in 44ms
104
+ CJS dist/index.cjs 38.93 KB
105
+ CJS dist/index.cjs.map 69.39 KB
106
+ CJS ⚡️ Build success in 55ms
107
+ ESM dist/index.js 37.72 KB
108
+ ESM dist/index.js.map 69.26 KB
109
+ ESM ⚡️ Build success in 54ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zoralabs/coins
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 23f723dd: Integrate doppler for liquidity management with uniswap v3
8
+
9
+ ## 0.7.0-doppler.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 96ab8907: Integrate doppler for liquidity management with uniswap v3
14
+
3
15
  ## 0.6.1
4
16
 
5
17
  ### Patch Changes
@@ -301,29 +301,6 @@
301
301
  ],
302
302
  "stateMutability": "view"
303
303
  },
304
- {
305
- "type": "function",
306
- "name": "uniswapV3SwapCallback",
307
- "inputs": [
308
- {
309
- "name": "amount0Delta",
310
- "type": "int256",
311
- "internalType": "int256"
312
- },
313
- {
314
- "name": "amount1Delta",
315
- "type": "int256",
316
- "internalType": "int256"
317
- },
318
- {
319
- "name": "data",
320
- "type": "bytes",
321
- "internalType": "bytes"
322
- }
323
- ],
324
- "outputs": [],
325
- "stateMutability": "nonpayable"
326
- },
327
304
  {
328
305
  "type": "event",
329
306
  "name": "log",
package/abis/Coin.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "internalType": "address"
19
19
  },
20
20
  {
21
- "name": "_nonfungiblePositionManager",
21
+ "name": "_v3Factory",
22
22
  "type": "address",
23
23
  "internalType": "address"
24
24
  },
@@ -26,6 +26,11 @@
26
26
  "name": "_swapRouter",
27
27
  "type": "address",
28
28
  "internalType": "address"
29
+ },
30
+ {
31
+ "name": "_airlock",
32
+ "type": "address",
33
+ "internalType": "address"
29
34
  }
30
35
  ],
31
36
  "stateMutability": "nonpayable"
@@ -177,6 +182,19 @@
177
182
  "outputs": [],
178
183
  "stateMutability": "nonpayable"
179
184
  },
185
+ {
186
+ "type": "function",
187
+ "name": "airlock",
188
+ "inputs": [],
189
+ "outputs": [
190
+ {
191
+ "name": "",
192
+ "type": "address",
193
+ "internalType": "address"
194
+ }
195
+ ],
196
+ "stateMutability": "view"
197
+ },
180
198
  {
181
199
  "type": "function",
182
200
  "name": "allowance",
@@ -439,19 +457,14 @@
439
457
  "internalType": "string"
440
458
  },
441
459
  {
442
- "name": "platformReferrer_",
443
- "type": "address",
444
- "internalType": "address"
460
+ "name": "poolConfig_",
461
+ "type": "bytes",
462
+ "internalType": "bytes"
445
463
  },
446
464
  {
447
- "name": "currency_",
465
+ "name": "platformReferrer_",
448
466
  "type": "address",
449
467
  "internalType": "address"
450
- },
451
- {
452
- "name": "tickLower_",
453
- "type": "int24",
454
- "internalType": "int24"
455
468
  }
456
469
  ],
457
470
  "outputs": [],
@@ -476,19 +489,6 @@
476
489
  ],
477
490
  "stateMutability": "view"
478
491
  },
479
- {
480
- "type": "function",
481
- "name": "lpTokenId",
482
- "inputs": [],
483
- "outputs": [
484
- {
485
- "name": "",
486
- "type": "uint256",
487
- "internalType": "uint256"
488
- }
489
- ],
490
- "stateMutability": "view"
491
- },
492
492
  {
493
493
  "type": "function",
494
494
  "name": "name",
@@ -521,53 +521,6 @@
521
521
  ],
522
522
  "stateMutability": "view"
523
523
  },
524
- {
525
- "type": "function",
526
- "name": "nonfungiblePositionManager",
527
- "inputs": [],
528
- "outputs": [
529
- {
530
- "name": "",
531
- "type": "address",
532
- "internalType": "address"
533
- }
534
- ],
535
- "stateMutability": "view"
536
- },
537
- {
538
- "type": "function",
539
- "name": "onERC721Received",
540
- "inputs": [
541
- {
542
- "name": "",
543
- "type": "address",
544
- "internalType": "address"
545
- },
546
- {
547
- "name": "",
548
- "type": "address",
549
- "internalType": "address"
550
- },
551
- {
552
- "name": "",
553
- "type": "uint256",
554
- "internalType": "uint256"
555
- },
556
- {
557
- "name": "",
558
- "type": "bytes",
559
- "internalType": "bytes"
560
- }
561
- ],
562
- "outputs": [
563
- {
564
- "name": "",
565
- "type": "bytes4",
566
- "internalType": "bytes4"
567
- }
568
- ],
569
- "stateMutability": "view"
570
- },
571
524
  {
572
525
  "type": "function",
573
526
  "name": "owners",
@@ -663,6 +616,92 @@
663
616
  ],
664
617
  "stateMutability": "view"
665
618
  },
619
+ {
620
+ "type": "function",
621
+ "name": "poolConfiguration",
622
+ "inputs": [],
623
+ "outputs": [
624
+ {
625
+ "name": "version",
626
+ "type": "uint8",
627
+ "internalType": "uint8"
628
+ },
629
+ {
630
+ "name": "tickLower",
631
+ "type": "int24",
632
+ "internalType": "int24"
633
+ },
634
+ {
635
+ "name": "tickUpper",
636
+ "type": "int24",
637
+ "internalType": "int24"
638
+ },
639
+ {
640
+ "name": "numPositions",
641
+ "type": "uint16",
642
+ "internalType": "uint16"
643
+ },
644
+ {
645
+ "name": "maxDiscoverySupplyShare",
646
+ "type": "uint256",
647
+ "internalType": "uint256"
648
+ }
649
+ ],
650
+ "stateMutability": "view"
651
+ },
652
+ {
653
+ "type": "function",
654
+ "name": "poolState",
655
+ "inputs": [],
656
+ "outputs": [
657
+ {
658
+ "name": "asset",
659
+ "type": "address",
660
+ "internalType": "address"
661
+ },
662
+ {
663
+ "name": "numeraire",
664
+ "type": "address",
665
+ "internalType": "address"
666
+ },
667
+ {
668
+ "name": "tickLower",
669
+ "type": "int24",
670
+ "internalType": "int24"
671
+ },
672
+ {
673
+ "name": "tickUpper",
674
+ "type": "int24",
675
+ "internalType": "int24"
676
+ },
677
+ {
678
+ "name": "numPositions",
679
+ "type": "uint16",
680
+ "internalType": "uint16"
681
+ },
682
+ {
683
+ "name": "isInitialized",
684
+ "type": "bool",
685
+ "internalType": "bool"
686
+ },
687
+ {
688
+ "name": "isExited",
689
+ "type": "bool",
690
+ "internalType": "bool"
691
+ },
692
+ {
693
+ "name": "maxShareToBeSold",
694
+ "type": "uint256",
695
+ "internalType": "uint256"
696
+ },
697
+ {
698
+ "name": "totalTokensOnBondingCurve",
699
+ "type": "uint256",
700
+ "internalType": "uint256"
701
+ }
702
+ ],
703
+ "stateMutability": "view"
704
+ },
666
705
  {
667
706
  "type": "function",
668
707
  "name": "protocolRewardRecipient",
@@ -918,17 +957,17 @@
918
957
  },
919
958
  {
920
959
  "type": "function",
921
- "name": "uniswapV3SwapCallback",
960
+ "name": "uniswapV3MintCallback",
922
961
  "inputs": [
923
962
  {
924
- "name": "amount0Delta",
925
- "type": "int256",
926
- "internalType": "int256"
963
+ "name": "amount0Owed",
964
+ "type": "uint256",
965
+ "internalType": "uint256"
927
966
  },
928
967
  {
929
- "name": "amount1Delta",
930
- "type": "int256",
931
- "internalType": "int256"
968
+ "name": "amount1Owed",
969
+ "type": "uint256",
970
+ "internalType": "uint256"
932
971
  },
933
972
  {
934
973
  "name": "",
@@ -939,6 +978,19 @@
939
978
  "outputs": [],
940
979
  "stateMutability": "nonpayable"
941
980
  },
981
+ {
982
+ "type": "function",
983
+ "name": "v3Factory",
984
+ "inputs": [],
985
+ "outputs": [
986
+ {
987
+ "name": "",
988
+ "type": "address",
989
+ "internalType": "address"
990
+ }
991
+ ],
992
+ "stateMutability": "view"
993
+ },
942
994
  {
943
995
  "type": "event",
944
996
  "name": "Approval",
@@ -1396,6 +1448,16 @@
1396
1448
  "name": "AlreadyOwner",
1397
1449
  "inputs": []
1398
1450
  },
1451
+ {
1452
+ "type": "error",
1453
+ "name": "CannotMintZeroLiquidity",
1454
+ "inputs": []
1455
+ },
1456
+ {
1457
+ "type": "error",
1458
+ "name": "DopplerPoolMustHaveMoreThan2DiscoveryPositions",
1459
+ "inputs": []
1460
+ },
1399
1461
  {
1400
1462
  "type": "error",
1401
1463
  "name": "ECDSAInvalidSignature",
@@ -1612,11 +1674,37 @@
1612
1674
  "name": "InvalidMarketType",
1613
1675
  "inputs": []
1614
1676
  },
1677
+ {
1678
+ "type": "error",
1679
+ "name": "InvalidPoolVersion",
1680
+ "inputs": []
1681
+ },
1682
+ {
1683
+ "type": "error",
1684
+ "name": "InvalidTickRangeMisordered",
1685
+ "inputs": [
1686
+ {
1687
+ "name": "tickLower",
1688
+ "type": "int24",
1689
+ "internalType": "int24"
1690
+ },
1691
+ {
1692
+ "name": "tickUpper",
1693
+ "type": "int24",
1694
+ "internalType": "int24"
1695
+ }
1696
+ ]
1697
+ },
1615
1698
  {
1616
1699
  "type": "error",
1617
1700
  "name": "InvalidWethLowerTick",
1618
1701
  "inputs": []
1619
1702
  },
1703
+ {
1704
+ "type": "error",
1705
+ "name": "LegacyPoolMustHaveOneDiscoveryPosition",
1706
+ "inputs": []
1707
+ },
1620
1708
  {
1621
1709
  "type": "error",
1622
1710
  "name": "MarketAlreadyGraduated",
@@ -1627,6 +1715,22 @@
1627
1715
  "name": "MarketNotGraduated",
1628
1716
  "inputs": []
1629
1717
  },
1718
+ {
1719
+ "type": "error",
1720
+ "name": "MaxShareToBeSoldExceeded",
1721
+ "inputs": [
1722
+ {
1723
+ "name": "value",
1724
+ "type": "uint256",
1725
+ "internalType": "uint256"
1726
+ },
1727
+ {
1728
+ "name": "limit",
1729
+ "type": "uint256",
1730
+ "internalType": "uint256"
1731
+ }
1732
+ ]
1733
+ },
1630
1734
  {
1631
1735
  "type": "error",
1632
1736
  "name": "NotInitializing",
@@ -1637,6 +1741,11 @@
1637
1741
  "name": "NotOwner",
1638
1742
  "inputs": []
1639
1743
  },
1744
+ {
1745
+ "type": "error",
1746
+ "name": "NumDiscoveryPositionsOutOfRange",
1747
+ "inputs": []
1748
+ },
1640
1749
  {
1641
1750
  "type": "error",
1642
1751
  "name": "OneOwnerRequired",
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InvalidPoolVersion",
5
+ "inputs": []
6
+ }
7
+ ]
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InvalidPoolVersion",
5
+ "inputs": []
6
+ }
7
+ ]
@@ -425,20 +425,6 @@
425
425
  "outputs": [],
426
426
  "stateMutability": "nonpayable"
427
427
  },
428
- {
429
- "type": "function",
430
- "name": "test_invalid_currency_tick",
431
- "inputs": [],
432
- "outputs": [],
433
- "stateMutability": "nonpayable"
434
- },
435
- {
436
- "type": "function",
437
- "name": "test_invalid_weth_tick",
438
- "inputs": [],
439
- "outputs": [],
440
- "stateMutability": "nonpayable"
441
- },
442
428
  {
443
429
  "type": "function",
444
430
  "name": "test_market_slippage",
@@ -448,35 +434,35 @@
448
434
  },
449
435
  {
450
436
  "type": "function",
451
- "name": "test_only_pool_callback",
437
+ "name": "test_receive_from_weth",
452
438
  "inputs": [],
453
439
  "outputs": [],
454
440
  "stateMutability": "nonpayable"
455
441
  },
456
442
  {
457
443
  "type": "function",
458
- "name": "test_receive_from_weth",
444
+ "name": "test_revert_already_initialized",
459
445
  "inputs": [],
460
446
  "outputs": [],
461
447
  "stateMutability": "nonpayable"
462
448
  },
463
449
  {
464
450
  "type": "function",
465
- "name": "test_revert_already_initialized",
451
+ "name": "test_revert_buy_zero_address_recipient",
466
452
  "inputs": [],
467
453
  "outputs": [],
468
454
  "stateMutability": "nonpayable"
469
455
  },
470
456
  {
471
457
  "type": "function",
472
- "name": "test_revert_buy_zero_address_recipient",
458
+ "name": "test_revert_buy_zero_address_recipient_legacy",
473
459
  "inputs": [],
474
460
  "outputs": [],
475
461
  "stateMutability": "nonpayable"
476
462
  },
477
463
  {
478
464
  "type": "function",
479
- "name": "test_revert_buy_zero_address_recipient_legacy",
465
+ "name": "test_revert_pool_exists",
480
466
  "inputs": [],
481
467
  "outputs": [],
482
468
  "stateMutability": "nonpayable"
@@ -599,36 +585,6 @@
599
585
  "outputs": [],
600
586
  "stateMutability": "view"
601
587
  },
602
- {
603
- "type": "function",
604
- "name": "test_uniswap_swap_callback",
605
- "inputs": [],
606
- "outputs": [],
607
- "stateMutability": "nonpayable"
608
- },
609
- {
610
- "type": "function",
611
- "name": "uniswapV3SwapCallback",
612
- "inputs": [
613
- {
614
- "name": "amount0Delta",
615
- "type": "int256",
616
- "internalType": "int256"
617
- },
618
- {
619
- "name": "amount1Delta",
620
- "type": "int256",
621
- "internalType": "int256"
622
- },
623
- {
624
- "name": "data",
625
- "type": "bytes",
626
- "internalType": "bytes"
627
- }
628
- ],
629
- "outputs": [],
630
- "stateMutability": "nonpayable"
631
- },
632
588
  {
633
589
  "type": "event",
634
590
  "name": "SlotFound",