@zoralabs/coins 2.1.1 → 2.1.2
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
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/coins@2.1.
|
|
2
|
+
> @zoralabs/coins@2.1.2 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@2.1.
|
|
6
|
+
> @zoralabs/coins@2.1.2 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
9
|
Compiling 236 files with Solc 0.8.28
|
|
10
|
-
Solc 0.8.28 finished in
|
|
10
|
+
Solc 0.8.28 finished in 195.15s
|
|
11
11
|
Compiler run successful with warnings:
|
|
12
12
|
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
13
13
|
--> src/ZoraFactoryImpl.sol:214:9:
|
|
@@ -76,64 +76,64 @@ Warning (2072): Unused local variable.
|
|
|
76
76
|
✅ Updated ./package/wagmiGenerated.ts (10 replacements)
|
|
77
77
|
✨ All files processed successfully!
|
|
78
78
|
|
|
79
|
-
> @zoralabs/coins@2.1.
|
|
79
|
+
> @zoralabs/coins@2.1.2 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
80
80
|
> pnpm exec bundle-abis
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
> @zoralabs/coins@2.1.
|
|
83
|
+
> @zoralabs/coins@2.1.2 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
84
84
|
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
85
85
|
|
|
86
|
-
src/BaseCoin.sol
|
|
87
|
-
src/ContentCoin.sol
|
|
88
|
-
src/CreatorCoin.sol
|
|
89
|
-
src/deployment/CoinsDeployerBase.sol
|
|
90
|
-
src/hooks/BaseZoraV4CoinHook.sol
|
|
91
|
-
src/hooks/ContentCoinHook.sol
|
|
92
|
-
src/hooks/CreatorCoinHook.sol
|
|
86
|
+
src/BaseCoin.sol 440ms (unchanged)
|
|
87
|
+
src/ContentCoin.sol 31ms (unchanged)
|
|
88
|
+
src/CreatorCoin.sol 61ms (unchanged)
|
|
89
|
+
src/deployment/CoinsDeployerBase.sol 222ms (unchanged)
|
|
90
|
+
src/hooks/BaseZoraV4CoinHook.sol 179ms (unchanged)
|
|
91
|
+
src/hooks/ContentCoinHook.sol 7ms (unchanged)
|
|
92
|
+
src/hooks/CreatorCoinHook.sol 8ms (unchanged)
|
|
93
93
|
src/hooks/deployment/BaseCoinDeployHook.sol 16ms (unchanged)
|
|
94
|
-
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol
|
|
95
|
-
src/hooks/HookUpgradeGate.sol
|
|
94
|
+
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 130ms (unchanged)
|
|
95
|
+
src/hooks/HookUpgradeGate.sol 25ms (unchanged)
|
|
96
96
|
src/interfaces/IAirlock.sol 1ms (unchanged)
|
|
97
97
|
src/interfaces/ICoin.sol 16ms (unchanged)
|
|
98
|
-
src/interfaces/ICoinComments.sol
|
|
98
|
+
src/interfaces/ICoinComments.sol 1ms (unchanged)
|
|
99
99
|
src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
|
|
100
|
-
src/interfaces/ICoinV3.sol
|
|
100
|
+
src/interfaces/ICoinV3.sol 2ms (unchanged)
|
|
101
101
|
src/interfaces/ICreatorCoin.sol 1ms (unchanged)
|
|
102
102
|
src/interfaces/ICreatorCoinHook.sol 1ms (unchanged)
|
|
103
|
-
src/interfaces/IDeployedCoinVersionLookup.sol
|
|
104
|
-
src/interfaces/IDopplerErrors.sol
|
|
105
|
-
src/interfaces/IERC7572.sol
|
|
103
|
+
src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
|
|
104
|
+
src/interfaces/IDopplerErrors.sol 0ms (unchanged)
|
|
105
|
+
src/interfaces/IERC7572.sol 1ms (unchanged)
|
|
106
106
|
src/interfaces/IHasRewardsRecipients.sol 1ms (unchanged)
|
|
107
|
-
src/interfaces/IHooksUpgradeGate.sol
|
|
107
|
+
src/interfaces/IHooksUpgradeGate.sol 2ms (unchanged)
|
|
108
108
|
src/interfaces/IMsgSender.sol 1ms (unchanged)
|
|
109
109
|
src/interfaces/INonfungiblePositionManager.sol 5ms (unchanged)
|
|
110
|
-
src/interfaces/IPoolConfigEncoding.sol
|
|
111
|
-
src/interfaces/IProtocolRewards.sol
|
|
110
|
+
src/interfaces/IPoolConfigEncoding.sol 1ms (unchanged)
|
|
111
|
+
src/interfaces/IProtocolRewards.sol 2ms (unchanged)
|
|
112
112
|
src/interfaces/ISwapPathRouter.sol 2ms (unchanged)
|
|
113
113
|
src/interfaces/ISwapRouter.sol 1ms (unchanged)
|
|
114
|
-
src/interfaces/IUniswapV3Factory.sol
|
|
114
|
+
src/interfaces/IUniswapV3Factory.sol 5ms (unchanged)
|
|
115
115
|
src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
|
|
116
116
|
src/interfaces/IUniswapV3SwapCallback.sol 1ms (unchanged)
|
|
117
117
|
src/interfaces/IUpgradeableV4Hook.sol 2ms (unchanged)
|
|
118
|
-
src/interfaces/IWETH.sol
|
|
118
|
+
src/interfaces/IWETH.sol 2ms (unchanged)
|
|
119
119
|
src/interfaces/IZoraFactory.sol 11ms (unchanged)
|
|
120
|
-
src/interfaces/IZoraV4CoinHook.sol
|
|
121
|
-
src/libs/CoinCommon.sol
|
|
122
|
-
src/libs/CoinConfigurationVersions.sol
|
|
123
|
-
src/libs/CoinConstants.sol
|
|
124
|
-
src/libs/CoinDopplerMultiCurve.sol
|
|
125
|
-
src/libs/CoinRewardsV4.sol
|
|
126
|
-
src/libs/CoinSetup.sol
|
|
127
|
-
src/libs/CreatorCoinConstants.sol
|
|
128
|
-
src/libs/CreatorCoinRewards.sol
|
|
129
|
-
src/libs/DopplerMath.sol
|
|
130
|
-
src/libs/HooksDeployment.sol
|
|
131
|
-
src/libs/MarketConstants.sol
|
|
120
|
+
src/interfaces/IZoraV4CoinHook.sol 11ms (unchanged)
|
|
121
|
+
src/libs/CoinCommon.sol 5ms (unchanged)
|
|
122
|
+
src/libs/CoinConfigurationVersions.sol 48ms (unchanged)
|
|
123
|
+
src/libs/CoinConstants.sol 5ms (unchanged)
|
|
124
|
+
src/libs/CoinDopplerMultiCurve.sol 110ms (unchanged)
|
|
125
|
+
src/libs/CoinRewardsV4.sol 103ms (unchanged)
|
|
126
|
+
src/libs/CoinSetup.sol 29ms (unchanged)
|
|
127
|
+
src/libs/CreatorCoinConstants.sol 3ms (unchanged)
|
|
128
|
+
src/libs/CreatorCoinRewards.sol 22ms (unchanged)
|
|
129
|
+
src/libs/DopplerMath.sol 93ms (unchanged)
|
|
130
|
+
src/libs/HooksDeployment.sol 86ms (unchanged)
|
|
131
|
+
src/libs/MarketConstants.sol 1ms (unchanged)
|
|
132
132
|
src/libs/PoolStateReader.sol 6ms (unchanged)
|
|
133
|
-
src/libs/UniV4SwapHelper.sol
|
|
134
|
-
src/libs/UniV4SwapToCurrency.sol
|
|
135
|
-
src/libs/V4Liquidity.sol
|
|
136
|
-
src/proxy/ZoraFactory.sol
|
|
133
|
+
src/libs/UniV4SwapHelper.sol 29ms (unchanged)
|
|
134
|
+
src/libs/UniV4SwapToCurrency.sol 50ms (unchanged)
|
|
135
|
+
src/libs/V4Liquidity.sol 138ms (unchanged)
|
|
136
|
+
src/proxy/ZoraFactory.sol 6ms (unchanged)
|
|
137
137
|
src/types/LpPosition.sol 1ms (unchanged)
|
|
138
138
|
src/types/PoolConfiguration.sol 1ms (unchanged)
|
|
139
139
|
src/types/PoolState.sol 2ms (unchanged)
|
|
@@ -141,48 +141,48 @@ src/utils/AutoSwapper.sol 20ms (unchanged)
|
|
|
141
141
|
src/utils/DeployedCoinVersionLookup.sol 5ms (unchanged)
|
|
142
142
|
src/utils/MultiOwnable.sol 46ms (unchanged)
|
|
143
143
|
src/utils/uniswap/BitMath.sol 10ms (unchanged)
|
|
144
|
-
src/utils/uniswap/BytesLib.sol
|
|
145
|
-
src/utils/uniswap/CustomRevert.sol
|
|
144
|
+
src/utils/uniswap/BytesLib.sol 12ms (unchanged)
|
|
145
|
+
src/utils/uniswap/CustomRevert.sol 43ms (unchanged)
|
|
146
146
|
src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
|
|
147
|
-
src/utils/uniswap/FullMath.sol
|
|
147
|
+
src/utils/uniswap/FullMath.sol 20ms (unchanged)
|
|
148
148
|
src/utils/uniswap/LiquidityAmounts.sol 47ms (unchanged)
|
|
149
149
|
src/utils/uniswap/Path.sol 5ms (unchanged)
|
|
150
|
-
src/utils/uniswap/SafeCast.sol
|
|
151
|
-
src/utils/uniswap/SqrtPriceMath.sol
|
|
152
|
-
src/utils/uniswap/TickMath.sol
|
|
150
|
+
src/utils/uniswap/SafeCast.sol 11ms (unchanged)
|
|
151
|
+
src/utils/uniswap/SqrtPriceMath.sol 67ms (unchanged)
|
|
152
|
+
src/utils/uniswap/TickMath.sol 66ms (unchanged)
|
|
153
153
|
src/utils/uniswap/UnsafeMath.sol 3ms (unchanged)
|
|
154
154
|
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
155
|
-
src/ZoraFactoryImpl.sol
|
|
155
|
+
src/ZoraFactoryImpl.sol 109ms (unchanged)
|
|
156
156
|
test/AutoSwapper.t.sol 35ms (unchanged)
|
|
157
157
|
test/Coin.t.sol 114ms (unchanged)
|
|
158
|
-
test/CoinUniV4.t.sol
|
|
159
|
-
test/CreatorCoin.t.sol
|
|
160
|
-
test/DeploymentHooks.t.sol
|
|
158
|
+
test/CoinUniV4.t.sol 354ms (unchanged)
|
|
159
|
+
test/CreatorCoin.t.sol 133ms (unchanged)
|
|
160
|
+
test/DeploymentHooks.t.sol 68ms (unchanged)
|
|
161
161
|
test/Factory.t.sol 80ms (unchanged)
|
|
162
|
-
test/HooksDeployment.t.sol
|
|
162
|
+
test/HooksDeployment.t.sol 27ms (unchanged)
|
|
163
163
|
test/LiquidityMigration.t.sol 162ms (unchanged)
|
|
164
164
|
test/mocks/MockERC20.sol 3ms (unchanged)
|
|
165
|
-
test/MultiOwnable.t.sol
|
|
165
|
+
test/MultiOwnable.t.sol 84ms (unchanged)
|
|
166
166
|
test/Upgrades.t.sol 110ms (unchanged)
|
|
167
|
-
test/utils/BaseTest.sol
|
|
168
|
-
test/utils/ContractAddresses.sol
|
|
169
|
-
test/utils/DeployedCoinVersionLookup.t.sol
|
|
170
|
-
test/utils/FeeEstimatorHook.sol
|
|
171
|
-
test/utils/ProtocolRewards.sol
|
|
167
|
+
test/utils/BaseTest.sol 159ms (unchanged)
|
|
168
|
+
test/utils/ContractAddresses.sol 3ms (unchanged)
|
|
169
|
+
test/utils/DeployedCoinVersionLookup.t.sol 48ms (unchanged)
|
|
170
|
+
test/utils/FeeEstimatorHook.sol 28ms (unchanged)
|
|
171
|
+
test/utils/ProtocolRewards.sol 319ms (unchanged)
|
|
172
172
|
test/utils/ProxyShim.sol 4ms (unchanged)
|
|
173
|
-
script/Deploy.s.sol
|
|
174
|
-
script/DeployAutoSwapper.s.sol
|
|
175
|
-
script/DeployDevFactory.s.sol
|
|
176
|
-
script/DeployPostDeploymentHooks.s.sol
|
|
177
|
-
script/DeployUpgradeGate.s.sol
|
|
178
|
-
script/GenerateDeterministicParams.s.sol
|
|
179
|
-
script/PrintRegisterUpgradePath.s.sol
|
|
180
|
-
script/PrintUpgradeCommand.s.sol
|
|
181
|
-
script/TestBackingCoinSwap.s.sol
|
|
182
|
-
script/TestV4Swap.s.sol
|
|
183
|
-
script/UpgradeCoinImpl.sol
|
|
184
|
-
script/UpgradeFactoryImpl.s.sol
|
|
185
|
-
script/UpgradeHooks.s.sol
|
|
173
|
+
script/Deploy.s.sol 3ms (unchanged)
|
|
174
|
+
script/DeployAutoSwapper.s.sol 12ms (unchanged)
|
|
175
|
+
script/DeployDevFactory.s.sol 2ms (unchanged)
|
|
176
|
+
script/DeployPostDeploymentHooks.s.sol 2ms (unchanged)
|
|
177
|
+
script/DeployUpgradeGate.s.sol 3ms (unchanged)
|
|
178
|
+
script/GenerateDeterministicParams.s.sol 11ms (unchanged)
|
|
179
|
+
script/PrintRegisterUpgradePath.s.sol 9ms (unchanged)
|
|
180
|
+
script/PrintUpgradeCommand.s.sol 2ms (unchanged)
|
|
181
|
+
script/TestBackingCoinSwap.s.sol 30ms (unchanged)
|
|
182
|
+
script/TestV4Swap.s.sol 29ms (unchanged)
|
|
183
|
+
script/UpgradeCoinImpl.sol 6ms (unchanged)
|
|
184
|
+
script/UpgradeFactoryImpl.s.sol 5ms (unchanged)
|
|
185
|
+
script/UpgradeHooks.s.sol 7ms (unchanged)
|
|
186
186
|
[34mCLI[39m Building entry: package/index.ts
|
|
187
187
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
188
188
|
[34mCLI[39m tsup v8.4.0
|
|
@@ -193,7 +193,7 @@ script/UpgradeHooks.s.sol 6ms (unchanged)
|
|
|
193
193
|
[34mESM[39m Build start
|
|
194
194
|
[32mESM[39m [1mdist/index.js [22m[32m128.58 KB[39m
|
|
195
195
|
[32mESM[39m [1mdist/index.js.map [22m[32m229.86 KB[39m
|
|
196
|
-
[32mESM[39m ⚡️ Build success in
|
|
196
|
+
[32mESM[39m ⚡️ Build success in 41ms
|
|
197
197
|
[32mCJS[39m [1mdist/index.cjs [22m[32m130.00 KB[39m
|
|
198
198
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m230.01 KB[39m
|
|
199
|
-
[32mCJS[39m ⚡️ Build success in
|
|
199
|
+
[32mCJS[39m ⚡️ Build success in 41ms
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/coins",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"tsx": "^3.13.0",
|
|
36
36
|
"typescript": "^5.2.2",
|
|
37
37
|
"viem": "^2.21.18",
|
|
38
|
-
"@zoralabs/
|
|
38
|
+
"@zoralabs/shared-scripts": "^0.0.0",
|
|
39
39
|
"@zoralabs/shared-contracts": "^0.0.5",
|
|
40
|
-
"@zoralabs/
|
|
40
|
+
"@zoralabs/tsconfig": "^0.0.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup",
|
|
@@ -5,10 +5,6 @@ library MarketConstants {
|
|
|
5
5
|
/// @dev Constant used to increase precision during calculations
|
|
6
6
|
uint256 constant WAD = 1e18;
|
|
7
7
|
|
|
8
|
-
/// @notice The LP fee
|
|
9
|
-
/// @dev 10000 basis points = 1%
|
|
10
|
-
uint24 internal constant LP_FEE = 10000;
|
|
11
|
-
|
|
12
8
|
/// @notice The LP fee
|
|
13
9
|
/// @dev 30000 basis points = 3%
|
|
14
10
|
uint24 internal constant LP_FEE_V4 = 30000;
|
|
@@ -16,10 +12,4 @@ library MarketConstants {
|
|
|
16
12
|
/// @notice The spacing for 1% pools
|
|
17
13
|
/// @dev 200 ticks
|
|
18
14
|
int24 internal constant TICK_SPACING = 200;
|
|
19
|
-
|
|
20
|
-
/// @notice The minimum lower tick for legacy single LP WETH pools
|
|
21
|
-
int24 internal constant LP_TICK_LOWER_WETH = -208200;
|
|
22
|
-
|
|
23
|
-
/// @notice The upper tick for legacy single LP WETH pools
|
|
24
|
-
int24 internal constant LP_TICK_UPPER = 887200;
|
|
25
15
|
}
|
|
@@ -9,6 +9,6 @@ import {IVersionedContract} from "@zoralabs/shared-contracts/interfaces/IVersion
|
|
|
9
9
|
contract ContractVersionBase is IVersionedContract {
|
|
10
10
|
/// @notice The version of the contract
|
|
11
11
|
function contractVersion() external pure override returns (string memory) {
|
|
12
|
-
return "2.1.
|
|
12
|
+
return "2.1.2";
|
|
13
13
|
}
|
|
14
14
|
}
|