@zoralabs/coins 0.7.0-doppler.0 → 0.7.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 (38) hide show
  1. package/.turbo/turbo-build.log +62 -42
  2. package/CHANGELOG.md +12 -0
  3. package/abis/Coin.json +53 -0
  4. package/abis/CoinConfigurationVersions.json +7 -0
  5. package/abis/CoinSetup.json +7 -0
  6. package/abis/CoinTest.json +9 -2
  7. package/abis/DopplerUniswapV3Test.json +21 -16
  8. package/abis/ICoin.json +52 -0
  9. package/abis/{DopplerUniswapV3.json → IDopplerErrors.json} +5 -0
  10. package/abis/Simulate.json +120 -0
  11. package/addresses/8453.json +4 -4
  12. package/dist/index.cjs +26 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +26 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/wagmiGenerated.d.ts +47 -5
  17. package/dist/wagmiGenerated.d.ts.map +1 -1
  18. package/package/wagmiGenerated.ts +29 -4
  19. package/package.json +2 -2
  20. package/script/Simulate.s.sol +67 -0
  21. package/src/Coin.sol +81 -122
  22. package/src/ZoraFactoryImpl.sol +3 -2
  23. package/src/interfaces/ICoin.sol +18 -1
  24. package/src/interfaces/IDopplerErrors.sol +14 -0
  25. package/src/libs/CoinConfigurationVersions.sol +9 -0
  26. package/src/{doppler/DopplerUniswapV3.sol → libs/CoinDopplerUniV3.sol} +76 -36
  27. package/src/libs/CoinLegacy.sol +48 -0
  28. package/src/libs/CoinSetup.sol +37 -0
  29. package/src/libs/MarketConstants.sol +25 -0
  30. package/src/types/LpPosition.sol +8 -0
  31. package/src/types/PoolState.sol +24 -0
  32. package/src/utils/CoinConstants.sol +0 -14
  33. package/src/version/ContractVersionBase.sol +1 -1
  34. package/test/Coin.t.sol +54 -33
  35. package/test/{DopplerUniswapV3.t.sol → CoinDopplerUniV3.t.sol} +85 -38
  36. package/test/Factory.t.sol +16 -7
  37. package/test/utils/BaseTest.sol +2 -2
  38. package/wagmi.config.ts +1 -1
@@ -1,14 +1,26 @@
1
1
 
2
- > @zoralabs/coins@0.7.0-doppler.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
2
+ > @zoralabs/coins@0.7.1 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.7.0-doppler.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
6
+ > @zoralabs/coins@0.7.1 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 105 files with Solc 0.8.28
10
- Solc 0.8.28 finished in 125.06s
9
+ Compiling 113 files with Solc 0.8.28
10
+ Solc 0.8.28 finished in 124.27s
11
11
  Compiler run successful with warnings:
12
+ Warning (2072): Unused local variable.
13
+ --> script/Simulate.s.sol:44:10:
14
+ |
15
+ 44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
16
+ | ^^^^^^^^^^^^^^^^^^^
17
+
18
+ Warning (2072): Unused local variable.
19
+ --> script/Simulate.s.sol:44:31:
20
+ |
21
+ 44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
22
+ | ^^^^^^^^^^^^^^^^^^^^^^
23
+
12
24
  Warning (2072): Unused local variable.
13
25
  --> script/UpgradeCoinImpl.sol:14:9:
14
26
  |
@@ -28,51 +40,59 @@ Warning (2072): Unused local variable.
28
40
  ✅ Updated ./package/wagmiGenerated.ts (4 replacements)
29
41
  ✨ All files processed successfully!
30
42
 
31
- > @zoralabs/coins@0.7.0-doppler.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
43
+ > @zoralabs/coins@0.7.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
32
44
  > pnpm exec bundle-abis
33
45
 
34
46
 
35
- > @zoralabs/coins@0.7.0-doppler.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
47
+ > @zoralabs/coins@0.7.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
36
48
  > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
37
49
 
38
- src/Coin.sol 1850ms (unchanged)
39
- src/doppler/DopplerUniswapV3.sol 283ms (unchanged)
40
- src/interfaces/IAirlock.sol 2ms (unchanged)
41
- src/interfaces/ICoin.sol 36ms (unchanged)
50
+ src/Coin.sol 1754ms (unchanged)
51
+ src/interfaces/IAirlock.sol 14ms (unchanged)
52
+ src/interfaces/ICoin.sol 56ms (unchanged)
42
53
  src/interfaces/ICoinComments.sol 3ms (unchanged)
43
- src/interfaces/IERC7572.sol 5ms (unchanged)
44
- src/interfaces/INonfungiblePositionManager.sol 29ms (unchanged)
54
+ src/interfaces/IDopplerErrors.sol 6ms (unchanged)
55
+ src/interfaces/IERC7572.sol 2ms (unchanged)
56
+ src/interfaces/INonfungiblePositionManager.sol 21ms (unchanged)
45
57
  src/interfaces/IProtocolRewards.sol 9ms (unchanged)
46
- src/interfaces/ISwapRouter.sol 8ms (unchanged)
47
- src/interfaces/IUniswapV3Factory.sol 9ms (unchanged)
48
- src/interfaces/IUniswapV3Pool.sol 14ms (unchanged)
58
+ src/interfaces/ISwapRouter.sol 12ms (unchanged)
59
+ src/interfaces/IUniswapV3Factory.sol 12ms (unchanged)
60
+ src/interfaces/IUniswapV3Pool.sol 13ms (unchanged)
49
61
  src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
50
- src/interfaces/IWETH.sol 3ms (unchanged)
62
+ src/interfaces/IWETH.sol 5ms (unchanged)
51
63
  src/interfaces/IZoraFactory.sol 9ms (unchanged)
64
+ src/libs/CoinConfigurationVersions.sol 4ms (unchanged)
65
+ src/libs/CoinDopplerUniV3.sol 333ms (unchanged)
66
+ src/libs/CoinLegacy.sol 81ms (unchanged)
67
+ src/libs/CoinSetup.sol 48ms (unchanged)
68
+ src/libs/MarketConstants.sol 4ms (unchanged)
52
69
  src/proxy/ZoraFactory.sol 17ms (unchanged)
70
+ src/types/LpPosition.sol 1ms (unchanged)
71
+ src/types/PoolState.sol 2ms (unchanged)
53
72
  src/utils/CoinConstants.sol 6ms (unchanged)
54
- src/utils/MultiOwnable.sol 96ms (unchanged)
55
- src/utils/uniswap/BitMath.sol 47ms (unchanged)
56
- src/utils/uniswap/CustomRevert.sol 95ms (unchanged)
57
- src/utils/uniswap/FixedPoint96.sol 2ms (unchanged)
58
- src/utils/uniswap/FullMath.sol 86ms (unchanged)
59
- src/utils/uniswap/LiquidityAmounts.sol 160ms (unchanged)
60
- src/utils/uniswap/SafeCast.sol 43ms (unchanged)
61
- src/utils/uniswap/SqrtPriceMath.sol 169ms (unchanged)
62
- src/utils/uniswap/TickMath.sol 210ms (unchanged)
73
+ src/utils/MultiOwnable.sol 152ms (unchanged)
74
+ src/utils/uniswap/BitMath.sol 39ms (unchanged)
75
+ src/utils/uniswap/CustomRevert.sol 94ms (unchanged)
76
+ src/utils/uniswap/FixedPoint96.sol 3ms (unchanged)
77
+ src/utils/uniswap/FullMath.sol 76ms (unchanged)
78
+ src/utils/uniswap/LiquidityAmounts.sol 163ms (unchanged)
79
+ src/utils/uniswap/SafeCast.sol 34ms (unchanged)
80
+ src/utils/uniswap/SqrtPriceMath.sol 147ms (unchanged)
81
+ src/utils/uniswap/TickMath.sol 160ms (unchanged)
63
82
  src/utils/uniswap/UnsafeMath.sol 5ms (unchanged)
64
83
  src/version/ContractVersionBase.sol 2ms (unchanged)
65
- src/ZoraFactoryImpl.sol 184ms (unchanged)
66
- test/Coin.t.sol 1103ms (unchanged)
67
- test/DopplerUniswapV3.t.sol 542ms (unchanged)
68
- test/Factory.t.sol 389ms (unchanged)
69
- test/MultiOwnable.t.sol 270ms (unchanged)
70
- test/utils/BaseTest.sol 246ms (unchanged)
71
- test/utils/ProtocolRewards.sol 829ms (unchanged)
72
- script/CoinsDeployerBase.sol 123ms (unchanged)
73
- script/Deploy.s.sol 12ms (unchanged)
74
- script/GenerateDeterministicParams.s.sol 36ms (unchanged)
75
- script/UpgradeCoinImpl.sol 13ms (unchanged)
84
+ src/ZoraFactoryImpl.sol 205ms (unchanged)
85
+ test/Coin.t.sol 684ms (unchanged)
86
+ test/CoinDopplerUniV3.t.sol 523ms (unchanged)
87
+ test/Factory.t.sol 504ms (unchanged)
88
+ test/MultiOwnable.t.sol 242ms (unchanged)
89
+ test/utils/BaseTest.sol 170ms (unchanged)
90
+ test/utils/ProtocolRewards.sol 690ms (unchanged)
91
+ script/CoinsDeployerBase.sol 106ms (unchanged)
92
+ script/Deploy.s.sol 9ms (unchanged)
93
+ script/GenerateDeterministicParams.s.sol 40ms (unchanged)
94
+ script/Simulate.s.sol 41ms (unchanged)
95
+ script/UpgradeCoinImpl.sol 12ms (unchanged)
76
96
  CLI Building entry: package/index.ts
77
97
  CLI Using tsconfig: tsconfig.json
78
98
  CLI tsup v7.3.0
@@ -81,9 +101,9 @@ CLI Target: es2021
81
101
  CLI Cleaning output folder
82
102
  CJS Build start
83
103
  ESM Build start
84
- CJS dist/index.cjs 38.12 KB
85
- CJS dist/index.cjs.map 67.97 KB
86
- CJS ⚡️ Build success in 42ms
87
- ESM dist/index.js 36.91 KB
88
- ESM dist/index.js.map 67.84 KB
89
- ESM ⚡️ Build success in 46ms
104
+ CJS dist/index.cjs 38.93 KB
105
+ CJS dist/index.cjs.map 69.39 KB
106
+ CJS ⚡️ Build success in 45ms
107
+ ESM dist/index.js 37.72 KB
108
+ ESM dist/index.js.map 69.26 KB
109
+ ESM ⚡️ Build success in 47ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zoralabs/coins
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 265dcbeb: Fixed factory address for wagmi
8
+
9
+ ## 0.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 23f723dd: Integrate doppler for liquidity management with uniswap v3
14
+
3
15
  ## 0.7.0-doppler.0
4
16
 
5
17
  ### Minor Changes
package/abis/Coin.json CHANGED
@@ -616,6 +616,39 @@
616
616
  ],
617
617
  "stateMutability": "view"
618
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
+ },
619
652
  {
620
653
  "type": "function",
621
654
  "name": "poolState",
@@ -1420,6 +1453,11 @@
1420
1453
  "name": "CannotMintZeroLiquidity",
1421
1454
  "inputs": []
1422
1455
  },
1456
+ {
1457
+ "type": "error",
1458
+ "name": "DopplerPoolMustHaveMoreThan2DiscoveryPositions",
1459
+ "inputs": []
1460
+ },
1423
1461
  {
1424
1462
  "type": "error",
1425
1463
  "name": "ECDSAInvalidSignature",
@@ -1636,6 +1674,11 @@
1636
1674
  "name": "InvalidMarketType",
1637
1675
  "inputs": []
1638
1676
  },
1677
+ {
1678
+ "type": "error",
1679
+ "name": "InvalidPoolVersion",
1680
+ "inputs": []
1681
+ },
1639
1682
  {
1640
1683
  "type": "error",
1641
1684
  "name": "InvalidTickRangeMisordered",
@@ -1657,6 +1700,11 @@
1657
1700
  "name": "InvalidWethLowerTick",
1658
1701
  "inputs": []
1659
1702
  },
1703
+ {
1704
+ "type": "error",
1705
+ "name": "LegacyPoolMustHaveOneDiscoveryPosition",
1706
+ "inputs": []
1707
+ },
1660
1708
  {
1661
1709
  "type": "error",
1662
1710
  "name": "MarketAlreadyGraduated",
@@ -1693,6 +1741,11 @@
1693
1741
  "name": "NotOwner",
1694
1742
  "inputs": []
1695
1743
  },
1744
+ {
1745
+ "type": "error",
1746
+ "name": "NumDiscoveryPositionsOutOfRange",
1747
+ "inputs": []
1748
+ },
1696
1749
  {
1697
1750
  "type": "error",
1698
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
+ ]
@@ -427,14 +427,14 @@
427
427
  },
428
428
  {
429
429
  "type": "function",
430
- "name": "test_invalid_currency_tick",
430
+ "name": "test_invalid_pool_config_currency",
431
431
  "inputs": [],
432
432
  "outputs": [],
433
433
  "stateMutability": "nonpayable"
434
434
  },
435
435
  {
436
436
  "type": "function",
437
- "name": "test_invalid_weth_tick",
437
+ "name": "test_invalid_pool_config_version",
438
438
  "inputs": [],
439
439
  "outputs": [],
440
440
  "stateMutability": "nonpayable"
@@ -474,6 +474,13 @@
474
474
  "outputs": [],
475
475
  "stateMutability": "nonpayable"
476
476
  },
477
+ {
478
+ "type": "function",
479
+ "name": "test_revert_pool_exists",
480
+ "inputs": [],
481
+ "outputs": [],
482
+ "stateMutability": "nonpayable"
483
+ },
477
484
  {
478
485
  "type": "function",
479
486
  "name": "test_revert_receive_only_weth",
@@ -432,6 +432,27 @@
432
432
  "outputs": [],
433
433
  "stateMutability": "nonpayable"
434
434
  },
435
+ {
436
+ "type": "function",
437
+ "name": "test_invalid_pool_config",
438
+ "inputs": [],
439
+ "outputs": [],
440
+ "stateMutability": "nonpayable"
441
+ },
442
+ {
443
+ "type": "function",
444
+ "name": "test_invalid_tick_range",
445
+ "inputs": [],
446
+ "outputs": [],
447
+ "stateMutability": "nonpayable"
448
+ },
449
+ {
450
+ "type": "function",
451
+ "name": "test_inverted_tick_range_revert",
452
+ "inputs": [],
453
+ "outputs": [],
454
+ "stateMutability": "nonpayable"
455
+ },
435
456
  {
436
457
  "type": "function",
437
458
  "name": "test_revert_deploy_invalid_discovery_supply_share",
@@ -873,21 +894,5 @@
873
894
  "internalType": "int24"
874
895
  }
875
896
  ]
876
- },
877
- {
878
- "type": "error",
879
- "name": "MaxShareToBeSoldExceeded",
880
- "inputs": [
881
- {
882
- "name": "value",
883
- "type": "uint256",
884
- "internalType": "uint256"
885
- },
886
- {
887
- "name": "limit",
888
- "type": "uint256",
889
- "internalType": "uint256"
890
- }
891
- ]
892
897
  }
893
898
  ]
package/abis/ICoin.json CHANGED
@@ -494,6 +494,16 @@
494
494
  "name": "AddressZero",
495
495
  "inputs": []
496
496
  },
497
+ {
498
+ "type": "error",
499
+ "name": "CannotMintZeroLiquidity",
500
+ "inputs": []
501
+ },
502
+ {
503
+ "type": "error",
504
+ "name": "DopplerPoolMustHaveMoreThan2DiscoveryPositions",
505
+ "inputs": []
506
+ },
497
507
  {
498
508
  "type": "error",
499
509
  "name": "ERC20TransferAmountMismatch",
@@ -544,11 +554,32 @@
544
554
  "name": "InvalidMarketType",
545
555
  "inputs": []
546
556
  },
557
+ {
558
+ "type": "error",
559
+ "name": "InvalidTickRangeMisordered",
560
+ "inputs": [
561
+ {
562
+ "name": "tickLower",
563
+ "type": "int24",
564
+ "internalType": "int24"
565
+ },
566
+ {
567
+ "name": "tickUpper",
568
+ "type": "int24",
569
+ "internalType": "int24"
570
+ }
571
+ ]
572
+ },
547
573
  {
548
574
  "type": "error",
549
575
  "name": "InvalidWethLowerTick",
550
576
  "inputs": []
551
577
  },
578
+ {
579
+ "type": "error",
580
+ "name": "LegacyPoolMustHaveOneDiscoveryPosition",
581
+ "inputs": []
582
+ },
552
583
  {
553
584
  "type": "error",
554
585
  "name": "MarketAlreadyGraduated",
@@ -559,6 +590,27 @@
559
590
  "name": "MarketNotGraduated",
560
591
  "inputs": []
561
592
  },
593
+ {
594
+ "type": "error",
595
+ "name": "MaxShareToBeSoldExceeded",
596
+ "inputs": [
597
+ {
598
+ "name": "value",
599
+ "type": "uint256",
600
+ "internalType": "uint256"
601
+ },
602
+ {
603
+ "name": "limit",
604
+ "type": "uint256",
605
+ "internalType": "uint256"
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "type": "error",
611
+ "name": "NumDiscoveryPositionsOutOfRange",
612
+ "inputs": []
613
+ },
562
614
  {
563
615
  "type": "error",
564
616
  "name": "OnlyPool",
@@ -35,5 +35,10 @@
35
35
  "internalType": "uint256"
36
36
  }
37
37
  ]
38
+ },
39
+ {
40
+ "type": "error",
41
+ "name": "NumDiscoveryPositionsOutOfRange",
42
+ "inputs": []
38
43
  }
39
44
  ]
@@ -0,0 +1,120 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "IS_SCRIPT",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "bool",
10
+ "internalType": "bool"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "MAX_TOTAL_SUPPLY",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "MIN_ORDER_SIZE",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "PLATFORM_REFERRER_FEE_BPS",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "PROTOCOL_FEE_BPS",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "uint256",
62
+ "internalType": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "TOKEN_CREATOR_FEE_BPS",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "TOTAL_FEE_BPS",
83
+ "inputs": [],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "uint256",
88
+ "internalType": "uint256"
89
+ }
90
+ ],
91
+ "stateMutability": "view"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "TRADE_REFERRER_FEE_BPS",
96
+ "inputs": [],
97
+ "outputs": [
98
+ {
99
+ "name": "",
100
+ "type": "uint256",
101
+ "internalType": "uint256"
102
+ }
103
+ ],
104
+ "stateMutability": "view"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "run",
109
+ "inputs": [],
110
+ "outputs": [],
111
+ "stateMutability": "nonpayable"
112
+ },
113
+ {
114
+ "type": "function",
115
+ "name": "setUp",
116
+ "inputs": [],
117
+ "outputs": [],
118
+ "stateMutability": "nonpayable"
119
+ }
120
+ ]
@@ -1,6 +1,6 @@
1
1
  {
2
- "COIN_IMPL": "0xFDfD1A05a22bd5Ee57a97Af4A2ADb7B3D74385E8",
3
- "COIN_VERSION": "0.6.0",
4
- "ZORA_FACTORY": "0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc",
5
- "ZORA_FACTORY_IMPL": "0x914f448760938Ba34aBf9bC992B7Fb7553B309eA"
2
+ "COIN_IMPL": "0xbECAe78D441FBa11017bB7A8798D018b0977F76d",
3
+ "COIN_VERSION": "0.7.0",
4
+ "ZORA_FACTORY": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
5
+ "ZORA_FACTORY_IMPL": "0x5Fd1a258917eBcbb3163c7BB006C58A557dAf837"
6
6
  }
package/dist/index.cjs CHANGED
@@ -312,6 +312,23 @@ var coinABI = [
312
312
  outputs: [{ name: "", internalType: "address", type: "address" }],
313
313
  stateMutability: "view"
314
314
  },
315
+ {
316
+ type: "function",
317
+ inputs: [],
318
+ name: "poolConfiguration",
319
+ outputs: [
320
+ { name: "version", internalType: "uint8", type: "uint8" },
321
+ { name: "tickLower", internalType: "int24", type: "int24" },
322
+ { name: "tickUpper", internalType: "int24", type: "int24" },
323
+ { name: "numPositions", internalType: "uint16", type: "uint16" },
324
+ {
325
+ name: "maxDiscoverySupplyShare",
326
+ internalType: "uint256",
327
+ type: "uint256"
328
+ }
329
+ ],
330
+ stateMutability: "view"
331
+ },
315
332
  {
316
333
  type: "function",
317
334
  inputs: [],
@@ -885,6 +902,11 @@ var coinABI = [
885
902
  { type: "error", inputs: [], name: "AddressZero" },
886
903
  { type: "error", inputs: [], name: "AlreadyOwner" },
887
904
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
905
+ {
906
+ type: "error",
907
+ inputs: [],
908
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
909
+ },
888
910
  { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
889
911
  {
890
912
  type: "error",
@@ -967,6 +989,7 @@ var coinABI = [
967
989
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
968
990
  { type: "error", inputs: [], name: "InvalidInitialization" },
969
991
  { type: "error", inputs: [], name: "InvalidMarketType" },
992
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
970
993
  {
971
994
  type: "error",
972
995
  inputs: [
@@ -976,6 +999,7 @@ var coinABI = [
976
999
  name: "InvalidTickRangeMisordered"
977
1000
  },
978
1001
  { type: "error", inputs: [], name: "InvalidWethLowerTick" },
1002
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
979
1003
  { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
980
1004
  { type: "error", inputs: [], name: "MarketNotGraduated" },
981
1005
  {
@@ -988,6 +1012,7 @@ var coinABI = [
988
1012
  },
989
1013
  { type: "error", inputs: [], name: "NotInitializing" },
990
1014
  { type: "error", inputs: [], name: "NotOwner" },
1015
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
991
1016
  { type: "error", inputs: [], name: "OneOwnerRequired" },
992
1017
  { type: "error", inputs: [], name: "OnlyOwner" },
993
1018
  { type: "error", inputs: [], name: "OnlyPool" },
@@ -1396,7 +1421,7 @@ var zoraFactoryImplABI = [
1396
1421
  }
1397
1422
  ];
1398
1423
  var zoraFactoryImplAddress = {
1399
- 8453: "0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc",
1424
+ 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
1400
1425
  84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3"
1401
1426
  };
1402
1427
  var zoraFactoryImplConfig = {