@zoralabs/coins 0.7.0-doppler.0 → 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.
- package/.turbo/turbo-build.log +65 -45
- package/CHANGELOG.md +6 -0
- package/abis/Coin.json +53 -0
- package/abis/CoinConfigurationVersions.json +7 -0
- package/abis/CoinSetup.json +7 -0
- package/abis/CoinTest.json +6 -13
- package/abis/DopplerUniswapV3Test.json +14 -16
- package/abis/ICoin.json +52 -0
- package/abis/{DopplerUniswapV3.json → IDopplerErrors.json} +5 -0
- package/abis/Simulate.json +120 -0
- package/addresses/8453.json +4 -4
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +42 -0
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +25 -0
- package/package.json +2 -2
- package/script/Simulate.s.sol +67 -0
- package/src/Coin.sol +81 -122
- package/src/ZoraFactoryImpl.sol +3 -2
- package/src/interfaces/ICoin.sol +18 -1
- package/src/interfaces/IDopplerErrors.sol +14 -0
- package/src/libs/CoinConfigurationVersions.sol +9 -0
- package/src/{doppler/DopplerUniswapV3.sol → libs/CoinDopplerUniV3.sol} +76 -36
- package/src/libs/CoinLegacy.sol +48 -0
- package/src/libs/CoinSetup.sol +37 -0
- package/src/libs/MarketConstants.sol +25 -0
- package/src/types/LpPosition.sol +8 -0
- package/src/types/PoolState.sol +24 -0
- package/src/utils/CoinConstants.sol +0 -14
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +39 -33
- package/test/{DopplerUniswapV3.t.sol → CoinDopplerUniV3.t.sol} +78 -38
- package/test/Factory.t.sol +16 -7
- package/test/utils/BaseTest.sol +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/coins@0.7.0
|
|
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.7.0
|
|
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
|
|
10
|
-
Solc 0.8.28 finished in
|
|
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 (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
|
|
43
|
+
> @zoralabs/coins@0.7.0 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
|
|
47
|
+
> @zoralabs/coins@0.7.0 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
|
|
39
|
-
src/
|
|
40
|
-
src/interfaces/
|
|
41
|
-
src/interfaces/
|
|
42
|
-
src/interfaces/
|
|
43
|
-
src/interfaces/IERC7572.sol
|
|
44
|
-
src/interfaces/INonfungiblePositionManager.sol
|
|
45
|
-
src/interfaces/IProtocolRewards.sol
|
|
46
|
-
src/interfaces/ISwapRouter.sol
|
|
47
|
-
src/interfaces/IUniswapV3Factory.sol
|
|
48
|
-
src/interfaces/IUniswapV3Pool.sol
|
|
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)
|
|
49
61
|
src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
|
|
50
|
-
src/interfaces/IWETH.sol
|
|
62
|
+
src/interfaces/IWETH.sol 2ms (unchanged)
|
|
51
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)
|
|
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
|
|
55
|
-
src/utils/uniswap/BitMath.sol
|
|
56
|
-
src/utils/uniswap/CustomRevert.sol
|
|
57
|
-
src/utils/uniswap/FixedPoint96.sol
|
|
58
|
-
src/utils/uniswap/FullMath.sol
|
|
59
|
-
src/utils/uniswap/LiquidityAmounts.sol
|
|
60
|
-
src/utils/uniswap/SafeCast.sol
|
|
61
|
-
src/utils/uniswap/SqrtPriceMath.sol
|
|
62
|
-
src/utils/uniswap/TickMath.sol
|
|
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)
|
|
63
82
|
src/utils/uniswap/UnsafeMath.sol 5ms (unchanged)
|
|
64
|
-
src/version/ContractVersionBase.sol
|
|
65
|
-
src/ZoraFactoryImpl.sol
|
|
66
|
-
test/Coin.t.sol
|
|
67
|
-
test/
|
|
68
|
-
test/Factory.t.sol
|
|
69
|
-
test/MultiOwnable.t.sol
|
|
70
|
-
test/utils/BaseTest.sol
|
|
71
|
-
test/utils/ProtocolRewards.sol
|
|
72
|
-
script/CoinsDeployerBase.sol
|
|
73
|
-
script/Deploy.s.sol
|
|
74
|
-
script/GenerateDeterministicParams.s.sol
|
|
75
|
-
script/
|
|
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)
|
|
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.
|
|
85
|
-
CJS dist/index.cjs.map
|
|
86
|
-
CJS ⚡️ Build success in
|
|
87
|
-
ESM dist/index.js
|
|
88
|
-
ESM dist/index.js.map
|
|
89
|
-
ESM ⚡️ Build success in
|
|
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
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",
|
package/abis/CoinTest.json
CHANGED
|
@@ -427,49 +427,42 @@
|
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
"type": "function",
|
|
430
|
-
"name": "
|
|
431
|
-
"inputs": [],
|
|
432
|
-
"outputs": [],
|
|
433
|
-
"stateMutability": "nonpayable"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"type": "function",
|
|
437
|
-
"name": "test_invalid_weth_tick",
|
|
430
|
+
"name": "test_market_slippage",
|
|
438
431
|
"inputs": [],
|
|
439
432
|
"outputs": [],
|
|
440
433
|
"stateMutability": "nonpayable"
|
|
441
434
|
},
|
|
442
435
|
{
|
|
443
436
|
"type": "function",
|
|
444
|
-
"name": "
|
|
437
|
+
"name": "test_receive_from_weth",
|
|
445
438
|
"inputs": [],
|
|
446
439
|
"outputs": [],
|
|
447
440
|
"stateMutability": "nonpayable"
|
|
448
441
|
},
|
|
449
442
|
{
|
|
450
443
|
"type": "function",
|
|
451
|
-
"name": "
|
|
444
|
+
"name": "test_revert_already_initialized",
|
|
452
445
|
"inputs": [],
|
|
453
446
|
"outputs": [],
|
|
454
447
|
"stateMutability": "nonpayable"
|
|
455
448
|
},
|
|
456
449
|
{
|
|
457
450
|
"type": "function",
|
|
458
|
-
"name": "
|
|
451
|
+
"name": "test_revert_buy_zero_address_recipient",
|
|
459
452
|
"inputs": [],
|
|
460
453
|
"outputs": [],
|
|
461
454
|
"stateMutability": "nonpayable"
|
|
462
455
|
},
|
|
463
456
|
{
|
|
464
457
|
"type": "function",
|
|
465
|
-
"name": "
|
|
458
|
+
"name": "test_revert_buy_zero_address_recipient_legacy",
|
|
466
459
|
"inputs": [],
|
|
467
460
|
"outputs": [],
|
|
468
461
|
"stateMutability": "nonpayable"
|
|
469
462
|
},
|
|
470
463
|
{
|
|
471
464
|
"type": "function",
|
|
472
|
-
"name": "
|
|
465
|
+
"name": "test_revert_pool_exists",
|
|
473
466
|
"inputs": [],
|
|
474
467
|
"outputs": [],
|
|
475
468
|
"stateMutability": "nonpayable"
|
|
@@ -432,6 +432,20 @@
|
|
|
432
432
|
"outputs": [],
|
|
433
433
|
"stateMutability": "nonpayable"
|
|
434
434
|
},
|
|
435
|
+
{
|
|
436
|
+
"type": "function",
|
|
437
|
+
"name": "test_invalid_tick_range",
|
|
438
|
+
"inputs": [],
|
|
439
|
+
"outputs": [],
|
|
440
|
+
"stateMutability": "nonpayable"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "function",
|
|
444
|
+
"name": "test_inverted_tick_range_revert",
|
|
445
|
+
"inputs": [],
|
|
446
|
+
"outputs": [],
|
|
447
|
+
"stateMutability": "nonpayable"
|
|
448
|
+
},
|
|
435
449
|
{
|
|
436
450
|
"type": "function",
|
|
437
451
|
"name": "test_revert_deploy_invalid_discovery_supply_share",
|
|
@@ -873,21 +887,5 @@
|
|
|
873
887
|
"internalType": "int24"
|
|
874
888
|
}
|
|
875
889
|
]
|
|
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
890
|
}
|
|
893
891
|
]
|
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",
|
|
@@ -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
|
+
]
|
package/addresses/8453.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"COIN_IMPL": "
|
|
3
|
-
"COIN_VERSION": "0.
|
|
4
|
-
"ZORA_FACTORY": "
|
|
5
|
-
"ZORA_FACTORY_IMPL": "
|
|
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" },
|