@zoralabs/coins 1.1.0 → 1.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.
Files changed (68) hide show
  1. package/.turbo/turbo-build.log +102 -97
  2. package/CHANGELOG.md +14 -0
  3. package/LICENSE +90 -21
  4. package/abis/BaseCoin.json +6 -1
  5. package/abis/BaseZoraV4CoinHook.json +119 -0
  6. package/abis/Coin.json +6 -1
  7. package/abis/CoinTest.json +14 -0
  8. package/abis/CoinV4.json +6 -1
  9. package/abis/ContentCoinHook.json +119 -0
  10. package/abis/CreatorCoin.json +6 -1
  11. package/abis/CreatorCoinHook.json +119 -0
  12. package/abis/ERC165.json +21 -0
  13. package/abis/ERC165Upgradeable.json +44 -0
  14. package/abis/FeeEstimatorHook.json +119 -0
  15. package/abis/ICoin.json +5 -0
  16. package/abis/ICoinV3.json +5 -0
  17. package/abis/ICoinV4.json +5 -0
  18. package/abis/ICreatorCoin.json +5 -0
  19. package/abis/LiquidityMigrationTest.json +7 -0
  20. package/abis/UpgradeHooks.json +35 -0
  21. package/abis/UpgradesTest.json +21 -0
  22. package/addresses/8453.json +11 -7
  23. package/dist/index.cjs +6 -3
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.js +6 -3
  26. package/dist/index.js.map +1 -1
  27. package/dist/wagmiGenerated.d.ts +15 -3
  28. package/dist/wagmiGenerated.d.ts.map +1 -1
  29. package/package/wagmiGenerated.ts +6 -3
  30. package/package.json +1 -1
  31. package/script/DeployUpgradeGate.s.sol +1 -1
  32. package/script/PrintRegisterUpgradePath.s.sol +35 -0
  33. package/script/UpgradeCoinImpl.sol +1 -1
  34. package/script/UpgradeHooks.s.sol +23 -0
  35. package/src/BaseCoin.sol +32 -10
  36. package/src/Coin.sol +7 -1
  37. package/src/CoinV4.sol +9 -3
  38. package/src/CreatorCoin.sol +7 -1
  39. package/src/ZoraFactoryImpl.sol +7 -1
  40. package/src/deployment/CoinsDeployerBase.sol +29 -9
  41. package/src/hooks/BaseZoraV4CoinHook.sol +124 -4
  42. package/src/hooks/ContentCoinHook.sol +7 -1
  43. package/src/hooks/CreatorCoinHook.sol +7 -1
  44. package/src/hooks/HookUpgradeGate.sol +7 -1
  45. package/src/interfaces/ICoin.sol +3 -0
  46. package/src/libs/CoinCommon.sol +7 -1
  47. package/src/libs/CoinConfigurationVersions.sol +7 -1
  48. package/src/libs/CoinConstants.sol +7 -1
  49. package/src/libs/CoinDopplerMultiCurve.sol +7 -1
  50. package/src/libs/CoinRewards.sol +7 -1
  51. package/src/libs/CoinRewardsV4.sol +25 -5
  52. package/src/libs/CoinSetup.sol +7 -1
  53. package/src/libs/CreatorCoinConstants.sol +7 -1
  54. package/src/libs/CreatorCoinRewards.sol +7 -1
  55. package/src/libs/DopplerMath.sol +7 -1
  56. package/src/libs/HooksDeployment.sol +20 -1
  57. package/src/libs/PoolStateReader.sol +7 -1
  58. package/src/libs/UniV4SwapHelper.sol +7 -1
  59. package/src/libs/UniV4SwapToCurrency.sol +7 -1
  60. package/src/libs/V4Liquidity.sol +34 -1
  61. package/src/types/PoolConfiguration.sol +7 -1
  62. package/src/utils/AutoSwapper.sol +7 -1
  63. package/src/version/ContractVersionBase.sol +1 -1
  64. package/test/Coin.t.sol +23 -0
  65. package/test/LiquidityMigration.t.sol +27 -0
  66. package/test/Upgrades.t.sol +180 -1
  67. package/test/utils/BaseTest.sol +5 -1
  68. /package/script/{DeployHooks.s.sol → DeployPostDeploymentHooks.s.sol} +0 -0
@@ -1,14 +1,17 @@
1
1
 
2
- > @zoralabs/coins@1.1.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
2
+ > @zoralabs/coins@1.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@1.1.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
6
+ > @zoralabs/coins@1.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
- Compiling 240 files with Solc 0.8.28
10
- Solc 0.8.28 finished in 226.49s
9
+ Compiling 244 files with Solc 0.8.28
10
+ Solc 0.8.28 finished in 253.65s
11
11
  Compiler run successful with warnings:
12
+ Warning (3420): Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.28;"
13
+ --> src/BaseCoin.sol
14
+
12
15
  Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
13
16
  --> src/deployment/CoinsDeployerBase.sol:117:31:
14
17
  |
@@ -22,9 +25,9 @@ Warning (5667): Unused function parameter. Remove or comment out the variable na
22
25
  | ^^^^^^^^^^^^^^^^^^^^^^^
23
26
 
24
27
  Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
25
- --> src/deployment/CoinsDeployerBase.sol:270:84:
28
+ --> src/deployment/CoinsDeployerBase.sol:290:84:
26
29
  |
27
- 270 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
30
+ 290 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
28
31
  | ^^^^^^^^^^^^^^^^^^^^^^
29
32
 
30
33
  Warning (2072): Unused local variable.
@@ -46,15 +49,15 @@ Warning (2072): Unused local variable.
46
49
  | ^^^^^^^^^^^^^^^^^^^^^^
47
50
 
48
51
  Warning (2072): Unused local variable.
49
- --> test/LiquidityMigration.t.sol:159:9:
52
+ --> test/LiquidityMigration.t.sol:186:9:
50
53
  |
51
- 159 | address originalHook = address(contentCoinHook);
54
+ 186 | address originalHook = address(contentCoinHook);
52
55
  | ^^^^^^^^^^^^^^^^^^^^
53
56
 
54
57
  Warning (2072): Unused local variable.
55
- --> test/LiquidityMigration.t.sol:181:9:
58
+ --> test/LiquidityMigration.t.sol:208:9:
56
59
  |
57
- 181 | PoolKey memory poolKey = coinV4.getPoolKey();
60
+ 208 | PoolKey memory poolKey = coinV4.getPoolKey();
58
61
  | ^^^^^^^^^^^^^^^^^^^^^^
59
62
 
60
63
  - Validating plugins
@@ -70,120 +73,122 @@ Warning (2072): Unused local variable.
70
73
  ✅ Updated ./package/wagmiGenerated.ts (10 replacements)
71
74
  ✨ All files processed successfully!
72
75
 
73
- > @zoralabs/coins@1.1.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
76
+ > @zoralabs/coins@1.1.2 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
74
77
  > pnpm exec bundle-abis
75
78
 
76
79
 
77
- > @zoralabs/coins@1.1.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
80
+ > @zoralabs/coins@1.1.2 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
78
81
  > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
79
82
 
80
- src/BaseCoin.sol 333ms (unchanged)
81
- src/Coin.sol 150ms (unchanged)
83
+ src/BaseCoin.sol 347ms (unchanged)
84
+ src/Coin.sol 156ms (unchanged)
82
85
  src/CoinV4.sol 114ms (unchanged)
83
- src/CreatorCoin.sol 53ms (unchanged)
84
- src/deployment/CoinsDeployerBase.sol 212ms (unchanged)
85
- src/hooks/BaseZoraV4CoinHook.sol 129ms (unchanged)
86
- src/hooks/ContentCoinHook.sol 12ms
87
- src/hooks/CreatorCoinHook.sol 7ms (unchanged)
88
- src/hooks/deployment/BaseCoinDeployHook.sol 24ms (unchanged)
89
- src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 116ms (unchanged)
90
- src/hooks/HookUpgradeGate.sol 27ms (unchanged)
91
- src/interfaces/IAirlock.sol 2ms (unchanged)
92
- src/interfaces/ICoin.sol 10ms (unchanged)
86
+ src/CreatorCoin.sol 51ms (unchanged)
87
+ src/deployment/CoinsDeployerBase.sol 211ms (unchanged)
88
+ src/hooks/BaseZoraV4CoinHook.sol 181ms (unchanged)
89
+ src/hooks/ContentCoinHook.sol 8ms (unchanged)
90
+ src/hooks/CreatorCoinHook.sol 6ms (unchanged)
91
+ src/hooks/deployment/BaseCoinDeployHook.sol 13ms (unchanged)
92
+ src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 131ms (unchanged)
93
+ src/hooks/HookUpgradeGate.sol 23ms (unchanged)
94
+ src/interfaces/IAirlock.sol 1ms (unchanged)
95
+ src/interfaces/ICoin.sol 9ms (unchanged)
93
96
  src/interfaces/ICoinComments.sol 1ms (unchanged)
94
97
  src/interfaces/ICoinDeployHook.sol 2ms (unchanged)
95
- src/interfaces/ICoinV3.sol 3ms (unchanged)
96
- src/interfaces/ICoinV4.sol 2ms (unchanged)
98
+ src/interfaces/ICoinV3.sol 4ms (unchanged)
99
+ src/interfaces/ICoinV4.sol 3ms (unchanged)
97
100
  src/interfaces/ICreatorCoin.sol 2ms (unchanged)
98
- src/interfaces/ICreatorCoinHook.sol 2ms (unchanged)
101
+ src/interfaces/ICreatorCoinHook.sol 1ms (unchanged)
99
102
  src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
100
- src/interfaces/IDopplerErrors.sol 2ms (unchanged)
103
+ src/interfaces/IDopplerErrors.sol 1ms (unchanged)
101
104
  src/interfaces/IERC7572.sol 1ms (unchanged)
102
105
  src/interfaces/IHasRewardsRecipients.sol 1ms (unchanged)
103
- src/interfaces/IHooksUpgradeGate.sol 1ms (unchanged)
104
- src/interfaces/IMsgSender.sol 1ms (unchanged)
106
+ src/interfaces/IHooksUpgradeGate.sol 2ms (unchanged)
107
+ src/interfaces/IMsgSender.sol 2ms (unchanged)
105
108
  src/interfaces/INonfungiblePositionManager.sol 5ms (unchanged)
106
109
  src/interfaces/IPoolConfigEncoding.sol 2ms (unchanged)
107
- src/interfaces/IProtocolRewards.sol 5ms (unchanged)
108
- src/interfaces/ISwapPathRouter.sol 1ms (unchanged)
109
- src/interfaces/ISwapRouter.sol 1ms (unchanged)
110
- src/interfaces/IUniswapV3Factory.sol 3ms (unchanged)
111
- src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
112
- src/interfaces/IUniswapV3SwapCallback.sol 1ms (unchanged)
110
+ src/interfaces/IProtocolRewards.sol 4ms (unchanged)
111
+ src/interfaces/ISwapPathRouter.sol 2ms (unchanged)
112
+ src/interfaces/ISwapRouter.sol 0ms (unchanged)
113
+ src/interfaces/IUniswapV3Factory.sol 4ms (unchanged)
114
+ src/interfaces/IUniswapV3Pool.sol 4ms (unchanged)
115
+ src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
113
116
  src/interfaces/IUpgradeableV4Hook.sol 2ms (unchanged)
114
117
  src/interfaces/IWETH.sol 2ms (unchanged)
115
118
  src/interfaces/IZoraFactory.sol 7ms (unchanged)
116
- src/interfaces/IZoraV4CoinHook.sol 5ms (unchanged)
117
- src/libs/CoinCommon.sol 5ms (unchanged)
118
- src/libs/CoinConfigurationVersions.sol 89ms (unchanged)
119
+ src/interfaces/IZoraV4CoinHook.sol 8ms (unchanged)
120
+ src/libs/CoinCommon.sol 4ms (unchanged)
121
+ src/libs/CoinConfigurationVersions.sol 83ms (unchanged)
119
122
  src/libs/CoinConstants.sol 4ms (unchanged)
120
- src/libs/CoinDopplerMultiCurve.sol 100ms (unchanged)
121
- src/libs/CoinDopplerUniV3.sol 28ms (unchanged)
122
- src/libs/CoinRewards.sol 101ms (unchanged)
123
- src/libs/CoinRewardsV4.sol 119ms (unchanged)
124
- src/libs/CoinSetup.sol 19ms (unchanged)
125
- src/libs/CoinSetupV3.sol 16ms (unchanged)
123
+ src/libs/CoinDopplerMultiCurve.sol 105ms (unchanged)
124
+ src/libs/CoinDopplerUniV3.sol 29ms (unchanged)
125
+ src/libs/CoinRewards.sol 118ms (unchanged)
126
+ src/libs/CoinRewardsV4.sol 99ms (unchanged)
127
+ src/libs/CoinSetup.sol 20ms (unchanged)
128
+ src/libs/CoinSetupV3.sol 17ms (unchanged)
126
129
  src/libs/CreatorCoinConstants.sol 2ms (unchanged)
127
- src/libs/CreatorCoinRewards.sol 10ms (unchanged)
128
- src/libs/DopplerMath.sol 78ms (unchanged)
129
- src/libs/HooksDeployment.sol 91ms (unchanged)
130
+ src/libs/CreatorCoinRewards.sol 11ms (unchanged)
131
+ src/libs/DopplerMath.sol 81ms (unchanged)
132
+ src/libs/HooksDeployment.sol 95ms (unchanged)
130
133
  src/libs/MarketConstants.sol 1ms (unchanged)
131
- src/libs/PoolStateReader.sol 8ms (unchanged)
132
- src/libs/UniV3BuySell.sol 73ms (unchanged)
133
- src/libs/UniV3Errors.sol 1ms (unchanged)
134
- src/libs/UniV4SwapHelper.sol 24ms (unchanged)
135
- src/libs/UniV4SwapToCurrency.sol 50ms (unchanged)
136
- src/libs/V4Liquidity.sol 126ms (unchanged)
137
- src/proxy/ZoraFactory.sol 7ms (unchanged)
134
+ src/libs/PoolStateReader.sol 6ms (unchanged)
135
+ src/libs/UniV3BuySell.sol 84ms (unchanged)
136
+ src/libs/UniV3Errors.sol 2ms (unchanged)
137
+ src/libs/UniV4SwapHelper.sol 28ms (unchanged)
138
+ src/libs/UniV4SwapToCurrency.sol 56ms (unchanged)
139
+ src/libs/V4Liquidity.sol 148ms (unchanged)
140
+ src/proxy/ZoraFactory.sol 6ms (unchanged)
138
141
  src/types/LpPosition.sol 1ms (unchanged)
139
- src/types/PoolConfiguration.sol 0ms (unchanged)
140
- src/types/PoolState.sol 1ms (unchanged)
142
+ src/types/PoolConfiguration.sol 1ms (unchanged)
143
+ src/types/PoolState.sol 2ms (unchanged)
141
144
  src/utils/AutoSwapper.sol 17ms (unchanged)
142
- src/utils/DeployedCoinVersionLookup.sol 8ms (unchanged)
143
- src/utils/MultiOwnable.sol 40ms (unchanged)
144
- src/utils/uniswap/BitMath.sol 11ms (unchanged)
145
- src/utils/uniswap/BytesLib.sol 13ms (unchanged)
146
- src/utils/uniswap/CustomRevert.sol 39ms (unchanged)
147
- src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
148
- src/utils/uniswap/FullMath.sol 22ms (unchanged)
149
- src/utils/uniswap/LiquidityAmounts.sol 44ms (unchanged)
145
+ src/utils/DeployedCoinVersionLookup.sol 9ms (unchanged)
146
+ src/utils/MultiOwnable.sol 41ms (unchanged)
147
+ src/utils/uniswap/BitMath.sol 12ms (unchanged)
148
+ src/utils/uniswap/BytesLib.sol 12ms (unchanged)
149
+ src/utils/uniswap/CustomRevert.sol 36ms (unchanged)
150
+ src/utils/uniswap/FixedPoint96.sol 2ms (unchanged)
151
+ src/utils/uniswap/FullMath.sol 21ms (unchanged)
152
+ src/utils/uniswap/LiquidityAmounts.sol 43ms (unchanged)
150
153
  src/utils/uniswap/Path.sol 5ms (unchanged)
151
154
  src/utils/uniswap/SafeCast.sol 11ms (unchanged)
152
- src/utils/uniswap/SqrtPriceMath.sol 61ms (unchanged)
153
- src/utils/uniswap/TickMath.sol 61ms (unchanged)
155
+ src/utils/uniswap/SqrtPriceMath.sol 66ms (unchanged)
156
+ src/utils/uniswap/TickMath.sol 67ms (unchanged)
154
157
  src/utils/uniswap/UnsafeMath.sol 2ms (unchanged)
155
158
  src/version/ContractVersionBase.sol 1ms (unchanged)
156
- src/ZoraFactoryImpl.sol 153ms (unchanged)
159
+ src/ZoraFactoryImpl.sol 162ms (unchanged)
157
160
  test/AutoSwapper.t.sol 36ms (unchanged)
158
- test/Coin.t.sol 312ms (unchanged)
159
- test/CoinDopplerUniV3.t.sol 116ms (unchanged)
160
- test/CoinUniV4.t.sol 329ms (unchanged)
161
- test/CreatorCoin.t.sol 145ms (unchanged)
162
- test/DeploymentHooks.t.sol 101ms (unchanged)
163
- test/Factory.t.sol 171ms (unchanged)
164
- test/HooksDeployment.t.sol 26ms (unchanged)
165
- test/LiquidityMigration.t.sol 81ms (unchanged)
166
- test/mocks/MockERC20.sol 3ms (unchanged)
161
+ test/Coin.t.sol 327ms (unchanged)
162
+ test/CoinDopplerUniV3.t.sol 122ms (unchanged)
163
+ test/CoinUniV4.t.sol 334ms (unchanged)
164
+ test/CreatorCoin.t.sol 149ms (unchanged)
165
+ test/DeploymentHooks.t.sol 102ms (unchanged)
166
+ test/Factory.t.sol 179ms (unchanged)
167
+ test/HooksDeployment.t.sol 28ms (unchanged)
168
+ test/LiquidityMigration.t.sol 91ms (unchanged)
169
+ test/mocks/MockERC20.sol 4ms (unchanged)
167
170
  test/MultiOwnable.t.sol 82ms (unchanged)
168
- test/Upgrades.t.sol 47ms (unchanged)
169
- test/utils/BaseTest.sol 173ms (unchanged)
170
- test/utils/ContractAddresses.sol 2ms (unchanged)
171
- test/utils/DeployedCoinVersionLookup.t.sol 37ms (unchanged)
172
- test/utils/FeeEstimatorHook.sol 31ms (unchanged)
173
- test/utils/ProtocolRewards.sol 307ms (unchanged)
174
- test/utils/ProxyShim.sol 7ms (unchanged)
171
+ test/Upgrades.t.sol 127ms (unchanged)
172
+ test/utils/BaseTest.sol 172ms (unchanged)
173
+ test/utils/ContractAddresses.sol 4ms (unchanged)
174
+ test/utils/DeployedCoinVersionLookup.t.sol 41ms (unchanged)
175
+ test/utils/FeeEstimatorHook.sol 27ms (unchanged)
176
+ test/utils/ProtocolRewards.sol 323ms (unchanged)
177
+ test/utils/ProxyShim.sol 6ms (unchanged)
175
178
  script/Deploy.s.sol 4ms (unchanged)
176
- script/DeployAutoSwapper.s.sol 10ms (unchanged)
177
- script/DeployDevFactory.s.sol 3ms (unchanged)
178
- script/DeployHooks.s.sol 4ms (unchanged)
179
+ script/DeployAutoSwapper.s.sol 8ms (unchanged)
180
+ script/DeployDevFactory.s.sol 5ms (unchanged)
181
+ script/DeployPostDeploymentHooks.s.sol 4ms (unchanged)
179
182
  script/DeployUpgradeGate.s.sol 6ms (unchanged)
180
- script/GenerateDeterministicParams.s.sol 16ms (unchanged)
183
+ script/GenerateDeterministicParams.s.sol 14ms (unchanged)
184
+ script/PrintRegisterUpgradePath.s.sol 13ms (unchanged)
181
185
  script/PrintUpgradeCommand.s.sol 2ms (unchanged)
182
- script/Simulate.s.sol 15ms (unchanged)
183
- script/TestBackingCoinSwap.s.sol 31ms (unchanged)
184
- script/TestV4Swap.s.sol 33ms (unchanged)
185
- script/UpgradeCoinImpl.sol 4ms (unchanged)
186
+ script/Simulate.s.sol 12ms (unchanged)
187
+ script/TestBackingCoinSwap.s.sol 38ms (unchanged)
188
+ script/TestV4Swap.s.sol 35ms (unchanged)
189
+ script/UpgradeCoinImpl.sol 5ms (unchanged)
186
190
  script/UpgradeFactoryImpl.s.sol 8ms (unchanged)
191
+ script/UpgradeHooks.s.sol 4ms (unchanged)
187
192
  CLI Building entry: package/index.ts
188
193
  CLI Using tsconfig: tsconfig.json
189
194
  CLI tsup v8.4.0
@@ -192,9 +197,9 @@ script/UpgradeFactoryImpl.s.sol 8ms (unchanged)
192
197
  CLI Cleaning output folder
193
198
  CJS Build start
194
199
  ESM Build start
195
- ESM dist/index.js 128.77 KB
196
- ESM dist/index.js.map 230.69 KB
197
- ESM ⚡️ Build success in 43ms
198
- CJS dist/index.cjs 130.17 KB
199
- CJS dist/index.cjs.map 230.84 KB
200
+ CJS dist/index.cjs 130.34 KB
201
+ CJS dist/index.cjs.map 231.16 KB
200
202
  CJS ⚡️ Build success in 43ms
203
+ ESM dist/index.js 128.93 KB
204
+ ESM dist/index.js.map 231.01 KB
205
+ ESM ⚡️ Build success in 42ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @zoralabs/coins
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 522a7c33: Update LICENSE for coins
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 604cd3ab: When migrating liquidity to a new hook, dont execute any after swap logic in the original hook
14
+ - 588da84e: Fix market supply calculation
15
+ - f6300031: Added ability for hooks to have liquidity be migrated to
16
+
3
17
  ## 1.1.0
4
18
 
5
19
  ### Minor Changes
package/LICENSE CHANGED
@@ -1,21 +1,90 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Zora Labs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ License
2
+
3
+ All source code specified as: SPDX-Identifier: ZORA-DELAYED-OSL-v1
4
+ follows this license.
5
+
6
+ Other licenses are specified on a file by file basis
7
+
8
+ Definitions:
9
+ "Licensed Work" means the software, code, or content distributed under this License,
10
+ including any copies or derivative works thereof.
11
+
12
+ "Licensor" means Zora Labs, Inc., a Delaware corporation.
13
+
14
+ "Commercial Purpose" means any use that generates, or is intended to generate, revenue,
15
+ monetary value, or other commercial benefit, whether through fees, subscriptions, token
16
+ issuance, staking incentives, or other monetization mechanisms.
17
+
18
+ "Competitive Product" means a Product provided for Commercial Purposes, and provides
19
+ functionality substantially similar to or substitutable for, in whole or in part, the
20
+ Licensed Work, and that is made available to third parties directly or indirectly,
21
+ whether operated independently or as part of a broader offering.
22
+
23
+ "Product" means any software application, protocol, service, or system that (i) makes
24
+ the Licensed Work (or any derivative work thereof) available for third-party
25
+ interaction, directly or indirectly, including but not limited to through interfaces,
26
+ middleware, aggregators, composable integrations, or smart contract deployment; (ii)
27
+ uses the Licensed Work (or any derivative work thereof) in a production environment or
28
+ mainnet context; (iii) integrates or incorporates the Licensed Work as part of a
29
+ broader software or financial service offering; or (iv) is operated for a Commercial
30
+ Purpose, whether or not publicly accessible.
31
+
32
+ "Open Date" means the earlier of: (i) the third anniversary of the first public
33
+ distribution of the Licensed Work, and (ii) the date specified by the Licensor as the
34
+ official date the Licensed Work shall become available under the MIT License.
35
+
36
+ Terms:
37
+
38
+ The Licensor hereby grants you a non-exclusive, non-transferable, worldwide,
39
+ royalty-free license to (i) use, copy, modify, and create derivative works of the
40
+ Licensed Work; (ii) distribute the Licensed Work (or any derivative works thereof), in
41
+ each of (i) and (ii), solely for purposes other than (a) Commercial Purposes, or (b) as
42
+ a Competitive Product. You are not granted rights to, and you may not exploit, the
43
+ Licensed Work for Commercial Purposes or as a Competitive Product. For the avoidance of
44
+ doubt, deploying modified versions of the Licensed Work that preserve the core
45
+ functionality or interface of the Licensed Work shall be considered a derivative work
46
+ and subject to this License. This License governs your use even if you receive the
47
+ Licensed Work from a third party, whether in its original form or in a derivative or
48
+ modified form.
49
+
50
+ You must retain, in all copies and substantial portions of the Licensed Work and in all
51
+ derivative works, (i) all copyright notices, author credits, and licensing notices
52
+ included by the Licensor, and (ii) a notice stating, "This software includes original
53
+ work licensed under the Delayed Open Source License by Zora Labs, Inc."
54
+
55
+ Your rights under this License terminate immediately for all versions of the Licensed
56
+ Work if you violate its terms.
57
+
58
+ THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
59
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR
60
+ A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
61
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
62
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE LICENSED
63
+ WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
64
+
65
+ Effective on the Open Date, the Licensed Work becomes available under the MIT License
66
+ (attached hereto as Appendix A).
67
+
68
+ Contact:
69
+
70
+ To request written consent for unlicensed uses, please contact: support@zora.co
71
+
72
+ Appendix A – MIT License
73
+
74
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
75
+ software and associated documentation files (the "Software"), to deal in the Software
76
+ without restriction, including without limitation the rights to use, copy, modify,
77
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
78
+ permit persons to whom the Software is furnished to do so, subject to the following
79
+ conditions:
80
+
81
+ The above copyright notice and this permission notice shall be included in all copies
82
+ or substantial portions of the Software.
83
+
84
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
85
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
86
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
87
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
88
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
89
+ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
90
+
@@ -492,7 +492,7 @@
492
492
  "internalType": "bool"
493
493
  }
494
494
  ],
495
- "stateMutability": "pure"
495
+ "stateMutability": "view"
496
496
  },
497
497
  {
498
498
  "type": "function",
@@ -1324,6 +1324,11 @@
1324
1324
  }
1325
1325
  ]
1326
1326
  },
1327
+ {
1328
+ "type": "error",
1329
+ "name": "NameIsRequired",
1330
+ "inputs": []
1331
+ },
1327
1332
  {
1328
1333
  "type": "error",
1329
1334
  "name": "NotInitializing",
@@ -786,6 +786,19 @@
786
786
  ],
787
787
  "stateMutability": "nonpayable"
788
788
  },
789
+ {
790
+ "type": "function",
791
+ "name": "contractVersion",
792
+ "inputs": [],
793
+ "outputs": [
794
+ {
795
+ "name": "",
796
+ "type": "string",
797
+ "internalType": "string"
798
+ }
799
+ ],
800
+ "stateMutability": "pure"
801
+ },
789
802
  {
790
803
  "type": "function",
791
804
  "name": "getHookPermissions",
@@ -994,6 +1007,88 @@
994
1007
  ],
995
1008
  "stateMutability": "view"
996
1009
  },
1010
+ {
1011
+ "type": "function",
1012
+ "name": "initializeFromMigration",
1013
+ "inputs": [
1014
+ {
1015
+ "name": "poolKey",
1016
+ "type": "tuple",
1017
+ "internalType": "struct PoolKey",
1018
+ "components": [
1019
+ {
1020
+ "name": "currency0",
1021
+ "type": "address",
1022
+ "internalType": "Currency"
1023
+ },
1024
+ {
1025
+ "name": "currency1",
1026
+ "type": "address",
1027
+ "internalType": "Currency"
1028
+ },
1029
+ {
1030
+ "name": "fee",
1031
+ "type": "uint24",
1032
+ "internalType": "uint24"
1033
+ },
1034
+ {
1035
+ "name": "tickSpacing",
1036
+ "type": "int24",
1037
+ "internalType": "int24"
1038
+ },
1039
+ {
1040
+ "name": "hooks",
1041
+ "type": "address",
1042
+ "internalType": "contract IHooks"
1043
+ }
1044
+ ]
1045
+ },
1046
+ {
1047
+ "name": "coin",
1048
+ "type": "address",
1049
+ "internalType": "address"
1050
+ },
1051
+ {
1052
+ "name": "sqrtPriceX96",
1053
+ "type": "uint160",
1054
+ "internalType": "uint160"
1055
+ },
1056
+ {
1057
+ "name": "migratedLiquidity",
1058
+ "type": "tuple[]",
1059
+ "internalType": "struct BurnedPosition[]",
1060
+ "components": [
1061
+ {
1062
+ "name": "tickLower",
1063
+ "type": "int24",
1064
+ "internalType": "int24"
1065
+ },
1066
+ {
1067
+ "name": "tickUpper",
1068
+ "type": "int24",
1069
+ "internalType": "int24"
1070
+ },
1071
+ {
1072
+ "name": "amount0Received",
1073
+ "type": "uint128",
1074
+ "internalType": "uint128"
1075
+ },
1076
+ {
1077
+ "name": "amount1Received",
1078
+ "type": "uint128",
1079
+ "internalType": "uint128"
1080
+ }
1081
+ ]
1082
+ },
1083
+ {
1084
+ "name": "",
1085
+ "type": "bytes",
1086
+ "internalType": "bytes"
1087
+ }
1088
+ ],
1089
+ "outputs": [],
1090
+ "stateMutability": "nonpayable"
1091
+ },
997
1092
  {
998
1093
  "type": "function",
999
1094
  "name": "isTrustedMessageSender",
@@ -1109,6 +1204,25 @@
1109
1204
  ],
1110
1205
  "stateMutability": "view"
1111
1206
  },
1207
+ {
1208
+ "type": "function",
1209
+ "name": "supportsInterface",
1210
+ "inputs": [
1211
+ {
1212
+ "name": "interfaceId",
1213
+ "type": "bytes4",
1214
+ "internalType": "bytes4"
1215
+ }
1216
+ ],
1217
+ "outputs": [
1218
+ {
1219
+ "name": "",
1220
+ "type": "bool",
1221
+ "internalType": "bool"
1222
+ }
1223
+ ],
1224
+ "stateMutability": "view"
1225
+ },
1112
1226
  {
1113
1227
  "type": "function",
1114
1228
  "name": "unlockCallback",
@@ -1517,6 +1631,11 @@
1517
1631
  "name": "PathMustHaveAtLeastOneStep",
1518
1632
  "inputs": []
1519
1633
  },
1634
+ {
1635
+ "type": "error",
1636
+ "name": "SafeCastOverflow",
1637
+ "inputs": []
1638
+ },
1520
1639
  {
1521
1640
  "type": "error",
1522
1641
  "name": "UpgradeGateCannotBeZeroAddress",
package/abis/Coin.json CHANGED
@@ -914,7 +914,7 @@
914
914
  "internalType": "bool"
915
915
  }
916
916
  ],
917
- "stateMutability": "pure"
917
+ "stateMutability": "view"
918
918
  },
919
919
  {
920
920
  "type": "function",
@@ -1827,6 +1827,11 @@
1827
1827
  }
1828
1828
  ]
1829
1829
  },
1830
+ {
1831
+ "type": "error",
1832
+ "name": "NameIsRequired",
1833
+ "inputs": []
1834
+ },
1830
1835
  {
1831
1836
  "type": "error",
1832
1837
  "name": "NotInitializing",
@@ -322,6 +322,13 @@
322
322
  "outputs": [],
323
323
  "stateMutability": "nonpayable"
324
324
  },
325
+ {
326
+ "type": "function",
327
+ "name": "test_contract_ierc165_support",
328
+ "inputs": [],
329
+ "outputs": [],
330
+ "stateMutability": "nonpayable"
331
+ },
325
332
  {
326
333
  "type": "function",
327
334
  "name": "test_contract_uri",
@@ -552,6 +559,13 @@
552
559
  "outputs": [],
553
560
  "stateMutability": "nonpayable"
554
561
  },
562
+ {
563
+ "type": "function",
564
+ "name": "test_update_metadata_reverts_if_name_is_blank",
565
+ "inputs": [],
566
+ "outputs": [],
567
+ "stateMutability": "nonpayable"
568
+ },
555
569
  {
556
570
  "type": "function",
557
571
  "name": "test_update_metadata_reverts_if_not_owner",
package/abis/CoinV4.json CHANGED
@@ -875,7 +875,7 @@
875
875
  "internalType": "bool"
876
876
  }
877
877
  ],
878
- "stateMutability": "pure"
878
+ "stateMutability": "view"
879
879
  },
880
880
  {
881
881
  "type": "function",
@@ -1792,6 +1792,11 @@
1792
1792
  }
1793
1793
  ]
1794
1794
  },
1795
+ {
1796
+ "type": "error",
1797
+ "name": "NameIsRequired",
1798
+ "inputs": []
1799
+ },
1795
1800
  {
1796
1801
  "type": "error",
1797
1802
  "name": "NotInitializing",