@zoralabs/coins 2.1.2 → 2.3.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$colon$js.log +152 -0
- package/CHANGELOG.md +93 -0
- package/README.md +4 -0
- package/abis/BaseCoin.json +26 -5
- package/abis/BaseTest.json +2 -7
- package/abis/ContentCoin.json +26 -5
- package/abis/CreatorCoin.json +30 -9
- package/abis/FeeEstimatorHook.json +94 -6
- package/abis/ICoin.json +26 -0
- package/abis/ICoinV3.json +26 -0
- package/abis/ICreatorCoin.json +39 -0
- package/abis/IERC721.json +36 -36
- package/abis/IHasCoinType.json +15 -0
- package/abis/IHasTotalSupplyForPositions.json +15 -0
- package/abis/{LiquidityMigrationReceiver.json → IUpgradeableDestinationV4HookWithUpdateableFee.json} +10 -18
- package/abis/IZoraFactory.json +121 -0
- package/abis/IZoraHookRegistry.json +188 -0
- package/abis/VmContractHelper226.json +233 -0
- package/abis/ZoraFactoryImpl.json +101 -6
- package/abis/ZoraHookRegistry.json +375 -0
- package/abis/{CreatorCoinHook.json → ZoraV4CoinHook.json} +95 -2
- package/addresses/8453.json +6 -5
- package/audits/report-cantinacode-zora-0827.pdf +3498 -4
- package/dist/index.cjs +93 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +93 -13
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +144 -22
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +4 -1
- package/package/wagmiGenerated.ts +93 -13
- package/package.json +6 -4
- package/script/PrintRegisterUpgradePath.s.sol +0 -7
- package/script/TestBackingCoinSwap.s.sol +0 -3
- package/script/TestV4Swap.s.sol +0 -3
- package/script/UpgradeFactoryImpl.s.sol +1 -1
- package/src/BaseCoin.sol +19 -24
- package/src/ContentCoin.sol +11 -2
- package/src/CreatorCoin.sol +34 -15
- package/src/ZoraFactoryImpl.sol +163 -92
- package/src/deployment/CoinsDeployerBase.sol +24 -58
- package/src/hook-registry/ZoraHookRegistry.sol +97 -0
- package/src/hooks/{BaseZoraV4CoinHook.sol → ZoraV4CoinHook.sol} +77 -15
- package/src/interfaces/ICoin.sol +19 -1
- package/src/interfaces/ICreatorCoin.sol +4 -0
- package/src/interfaces/IUpgradeableV4Hook.sol +18 -0
- package/src/interfaces/IZoraFactory.sol +51 -10
- package/src/interfaces/IZoraHookRegistry.sol +47 -0
- package/src/libs/CoinConstants.sol +43 -32
- package/src/libs/CoinDopplerMultiCurve.sol +11 -11
- package/src/libs/CoinRewardsV4.sol +68 -37
- package/src/libs/CoinSetup.sol +2 -9
- package/src/libs/DopplerMath.sol +2 -2
- package/src/libs/HooksDeployment.sol +13 -65
- package/src/libs/V4Liquidity.sol +109 -15
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +5 -5
- package/test/CoinRewardsV4.t.sol +33 -0
- package/test/CoinUniV4.t.sol +32 -30
- package/test/ContentCoinRewards.t.sol +363 -0
- package/test/CreatorCoin.t.sol +53 -29
- package/test/CreatorCoinRewards.t.sol +375 -0
- package/test/DeploymentHooks.t.sol +64 -12
- package/test/Factory.t.sol +24 -7
- package/test/HooksDeployment.t.sol +4 -4
- package/test/LiquidityMigration.t.sol +149 -16
- package/test/Upgrades.t.sol +44 -48
- package/test/V4Liquidity.t.sol +178 -0
- package/test/ZoraHookRegistry.t.sol +266 -0
- package/test/utils/BaseTest.sol +25 -43
- package/test/utils/FeeEstimatorHook.sol +4 -6
- package/test/utils/RewardTestHelpers.sol +106 -0
- package/.turbo/turbo-build.log +0 -199
- package/abis/AutoSwapperTest.json +0 -618
- package/abis/BadImpl.json +0 -15
- package/abis/BaseZoraV4CoinHook.json +0 -1664
- package/abis/CoinConstants.json +0 -158
- package/abis/CoinRewardsV4.json +0 -67
- package/abis/CoinTest.json +0 -819
- package/abis/CoinUniV4Test.json +0 -1128
- package/abis/ContentCoinHook.json +0 -1733
- package/abis/CreatorCoinTest.json +0 -887
- package/abis/Deploy.json +0 -9
- package/abis/DeployHooks.json +0 -9
- package/abis/DeployScript.json +0 -35
- package/abis/DeployedCoinVersionLookupTest.json +0 -740
- package/abis/DifferentNamespaceVersionLookup.json +0 -39
- package/abis/FactoryTest.json +0 -748
- package/abis/FakeHookNoInterface.json +0 -21
- package/abis/GenerateDeterministicParams.json +0 -9
- package/abis/HooksDeploymentTest.json +0 -645
- package/abis/HooksTest.json +0 -709
- package/abis/InvalidLiquidityMigrationReceiver.json +0 -21
- package/abis/LiquidityMigrationTest.json +0 -889
- package/abis/MockBadFactory.json +0 -15
- package/abis/MultiOwnableTest.json +0 -766
- package/abis/PrintUpgradeCommand.json +0 -9
- package/abis/TestDeployedCoinVersionLookupImplementation.json +0 -39
- package/abis/TestV4Swap.json +0 -9
- package/abis/UpgradeFactoryImpl.json +0 -9
- package/abis/UpgradeHooks.json +0 -35
- package/abis/UpgradesTest.json +0 -723
- package/src/hooks/ContentCoinHook.sol +0 -27
- package/src/hooks/CreatorCoinHook.sol +0 -27
- package/src/libs/CreatorCoinConstants.sol +0 -16
- package/src/libs/CreatorCoinRewards.sol +0 -34
- package/src/libs/MarketConstants.sol +0 -15
package/.turbo/turbo-build.log
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @zoralabs/coins@2.1.2 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
3
|
-
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @zoralabs/coins@2.1.2 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
7
|
-
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
|
-
|
|
9
|
-
Compiling 236 files with Solc 0.8.28
|
|
10
|
-
Solc 0.8.28 finished in 195.15s
|
|
11
|
-
Compiler run successful with warnings:
|
|
12
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
13
|
-
--> src/ZoraFactoryImpl.sol:214:9:
|
|
14
|
-
|
|
|
15
|
-
214 | uint256 orderSize
|
|
16
|
-
| ^^^^^^^^^^^^^^^^^
|
|
17
|
-
|
|
18
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
19
|
-
--> src/deployment/CoinsDeployerBase.sol:104:31:
|
|
20
|
-
|
|
|
21
|
-
104 | function deployCoinV4Impl(address zoraV4CoinHook) internal returns (ContentCoin) {
|
|
22
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
23
|
-
|
|
24
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
25
|
-
--> src/deployment/CoinsDeployerBase.sol:114:36:
|
|
26
|
-
|
|
|
27
|
-
114 | function deployCreatorCoinImpl(address creatorCoinHook) internal returns (CreatorCoin) {
|
|
28
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
29
|
-
|
|
30
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
31
|
-
--> src/deployment/CoinsDeployerBase.sol:273:84:
|
|
32
|
-
|
|
|
33
|
-
273 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
|
|
34
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
35
|
-
|
|
36
|
-
Warning (2072): Unused local variable.
|
|
37
|
-
--> script/TestBackingCoinSwap.s.sol:107:9:
|
|
38
|
-
|
|
|
39
|
-
107 | address tradeReferral = 0xC077e4cC02fa01A5b7fAca1acE9BBe9f5ac5Af9F;
|
|
40
|
-
| ^^^^^^^^^^^^^^^^^^^^^
|
|
41
|
-
|
|
42
|
-
Warning (2072): Unused local variable.
|
|
43
|
-
--> script/TestV4Swap.s.sol:99:9:
|
|
44
|
-
|
|
|
45
|
-
99 | address createReferral = 0xC077e4cC02fa01A5b7fAca1acE9BBe9f5ac5Af9F;
|
|
46
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
47
|
-
|
|
48
|
-
Warning (2072): Unused local variable.
|
|
49
|
-
--> test/CoinUniV4.t.sol:164:9:
|
|
50
|
-
|
|
|
51
|
-
164 | uint128 newFeeCurrency = isCoinToken0 ? newFeeState.fees1 : newFeeState.fees0;
|
|
52
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
53
|
-
|
|
54
|
-
Warning (2072): Unused local variable.
|
|
55
|
-
--> test/LiquidityMigration.t.sol:188:9:
|
|
56
|
-
|
|
|
57
|
-
188 | address originalHook = address(contentCoinHook);
|
|
58
|
-
| ^^^^^^^^^^^^^^^^^^^^
|
|
59
|
-
|
|
60
|
-
Warning (2072): Unused local variable.
|
|
61
|
-
--> test/LiquidityMigration.t.sol:210:9:
|
|
62
|
-
|
|
|
63
|
-
210 | PoolKey memory poolKey = coinV4.getPoolKey();
|
|
64
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
65
|
-
|
|
66
|
-
[33m-[39m Validating plugins
|
|
67
|
-
[32m✔[39m Validating plugins
|
|
68
|
-
[33m-[39m Resolving contracts
|
|
69
|
-
[32m✔[39m Resolving contracts
|
|
70
|
-
[33m-[39m Running plugins
|
|
71
|
-
[32m✔[39m Running plugins
|
|
72
|
-
[33m-[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
73
|
-
[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
74
|
-
🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
|
|
75
|
-
📝 Processing ./package/wagmiGenerated.ts...
|
|
76
|
-
✅ Updated ./package/wagmiGenerated.ts (10 replacements)
|
|
77
|
-
✨ All files processed successfully!
|
|
78
|
-
|
|
79
|
-
> @zoralabs/coins@2.1.2 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
80
|
-
> pnpm exec bundle-abis
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
> @zoralabs/coins@2.1.2 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
84
|
-
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
85
|
-
|
|
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
|
-
src/hooks/deployment/BaseCoinDeployHook.sol 16ms (unchanged)
|
|
94
|
-
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 130ms (unchanged)
|
|
95
|
-
src/hooks/HookUpgradeGate.sol 25ms (unchanged)
|
|
96
|
-
src/interfaces/IAirlock.sol 1ms (unchanged)
|
|
97
|
-
src/interfaces/ICoin.sol 16ms (unchanged)
|
|
98
|
-
src/interfaces/ICoinComments.sol 1ms (unchanged)
|
|
99
|
-
src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
|
|
100
|
-
src/interfaces/ICoinV3.sol 2ms (unchanged)
|
|
101
|
-
src/interfaces/ICreatorCoin.sol 1ms (unchanged)
|
|
102
|
-
src/interfaces/ICreatorCoinHook.sol 1ms (unchanged)
|
|
103
|
-
src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
|
|
104
|
-
src/interfaces/IDopplerErrors.sol 0ms (unchanged)
|
|
105
|
-
src/interfaces/IERC7572.sol 1ms (unchanged)
|
|
106
|
-
src/interfaces/IHasRewardsRecipients.sol 1ms (unchanged)
|
|
107
|
-
src/interfaces/IHooksUpgradeGate.sol 2ms (unchanged)
|
|
108
|
-
src/interfaces/IMsgSender.sol 1ms (unchanged)
|
|
109
|
-
src/interfaces/INonfungiblePositionManager.sol 5ms (unchanged)
|
|
110
|
-
src/interfaces/IPoolConfigEncoding.sol 1ms (unchanged)
|
|
111
|
-
src/interfaces/IProtocolRewards.sol 2ms (unchanged)
|
|
112
|
-
src/interfaces/ISwapPathRouter.sol 2ms (unchanged)
|
|
113
|
-
src/interfaces/ISwapRouter.sol 1ms (unchanged)
|
|
114
|
-
src/interfaces/IUniswapV3Factory.sol 5ms (unchanged)
|
|
115
|
-
src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
|
|
116
|
-
src/interfaces/IUniswapV3SwapCallback.sol 1ms (unchanged)
|
|
117
|
-
src/interfaces/IUpgradeableV4Hook.sol 2ms (unchanged)
|
|
118
|
-
src/interfaces/IWETH.sol 2ms (unchanged)
|
|
119
|
-
src/interfaces/IZoraFactory.sol 11ms (unchanged)
|
|
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
|
-
src/libs/PoolStateReader.sol 6ms (unchanged)
|
|
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
|
-
src/types/LpPosition.sol 1ms (unchanged)
|
|
138
|
-
src/types/PoolConfiguration.sol 1ms (unchanged)
|
|
139
|
-
src/types/PoolState.sol 2ms (unchanged)
|
|
140
|
-
src/utils/AutoSwapper.sol 20ms (unchanged)
|
|
141
|
-
src/utils/DeployedCoinVersionLookup.sol 5ms (unchanged)
|
|
142
|
-
src/utils/MultiOwnable.sol 46ms (unchanged)
|
|
143
|
-
src/utils/uniswap/BitMath.sol 10ms (unchanged)
|
|
144
|
-
src/utils/uniswap/BytesLib.sol 12ms (unchanged)
|
|
145
|
-
src/utils/uniswap/CustomRevert.sol 43ms (unchanged)
|
|
146
|
-
src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
|
|
147
|
-
src/utils/uniswap/FullMath.sol 20ms (unchanged)
|
|
148
|
-
src/utils/uniswap/LiquidityAmounts.sol 47ms (unchanged)
|
|
149
|
-
src/utils/uniswap/Path.sol 5ms (unchanged)
|
|
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
|
-
src/utils/uniswap/UnsafeMath.sol 3ms (unchanged)
|
|
154
|
-
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
155
|
-
src/ZoraFactoryImpl.sol 109ms (unchanged)
|
|
156
|
-
test/AutoSwapper.t.sol 35ms (unchanged)
|
|
157
|
-
test/Coin.t.sol 114ms (unchanged)
|
|
158
|
-
test/CoinUniV4.t.sol 354ms (unchanged)
|
|
159
|
-
test/CreatorCoin.t.sol 133ms (unchanged)
|
|
160
|
-
test/DeploymentHooks.t.sol 68ms (unchanged)
|
|
161
|
-
test/Factory.t.sol 80ms (unchanged)
|
|
162
|
-
test/HooksDeployment.t.sol 27ms (unchanged)
|
|
163
|
-
test/LiquidityMigration.t.sol 162ms (unchanged)
|
|
164
|
-
test/mocks/MockERC20.sol 3ms (unchanged)
|
|
165
|
-
test/MultiOwnable.t.sol 84ms (unchanged)
|
|
166
|
-
test/Upgrades.t.sol 110ms (unchanged)
|
|
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
|
-
test/utils/ProxyShim.sol 4ms (unchanged)
|
|
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
|
-
[34mCLI[39m Building entry: package/index.ts
|
|
187
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
188
|
-
[34mCLI[39m tsup v8.4.0
|
|
189
|
-
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins/tsup.config.ts
|
|
190
|
-
[34mCLI[39m Target: es2021
|
|
191
|
-
[34mCLI[39m Cleaning output folder
|
|
192
|
-
[34mCJS[39m Build start
|
|
193
|
-
[34mESM[39m Build start
|
|
194
|
-
[32mESM[39m [1mdist/index.js [22m[32m128.58 KB[39m
|
|
195
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m229.86 KB[39m
|
|
196
|
-
[32mESM[39m ⚡️ Build success in 41ms
|
|
197
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m130.00 KB[39m
|
|
198
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m230.01 KB[39m
|
|
199
|
-
[32mCJS[39m ⚡️ Build success in 41ms
|