@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.
- package/.turbo/turbo-build.log +102 -97
- package/CHANGELOG.md +14 -0
- package/LICENSE +90 -21
- package/abis/BaseCoin.json +6 -1
- package/abis/BaseZoraV4CoinHook.json +119 -0
- package/abis/Coin.json +6 -1
- package/abis/CoinTest.json +14 -0
- package/abis/CoinV4.json +6 -1
- package/abis/ContentCoinHook.json +119 -0
- package/abis/CreatorCoin.json +6 -1
- package/abis/CreatorCoinHook.json +119 -0
- package/abis/ERC165.json +21 -0
- package/abis/ERC165Upgradeable.json +44 -0
- package/abis/FeeEstimatorHook.json +119 -0
- package/abis/ICoin.json +5 -0
- package/abis/ICoinV3.json +5 -0
- package/abis/ICoinV4.json +5 -0
- package/abis/ICreatorCoin.json +5 -0
- package/abis/LiquidityMigrationTest.json +7 -0
- package/abis/UpgradeHooks.json +35 -0
- package/abis/UpgradesTest.json +21 -0
- package/addresses/8453.json +11 -7
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +15 -3
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +6 -3
- package/package.json +1 -1
- package/script/DeployUpgradeGate.s.sol +1 -1
- package/script/PrintRegisterUpgradePath.s.sol +35 -0
- package/script/UpgradeCoinImpl.sol +1 -1
- package/script/UpgradeHooks.s.sol +23 -0
- package/src/BaseCoin.sol +32 -10
- package/src/Coin.sol +7 -1
- package/src/CoinV4.sol +9 -3
- package/src/CreatorCoin.sol +7 -1
- package/src/ZoraFactoryImpl.sol +7 -1
- package/src/deployment/CoinsDeployerBase.sol +29 -9
- package/src/hooks/BaseZoraV4CoinHook.sol +124 -4
- package/src/hooks/ContentCoinHook.sol +7 -1
- package/src/hooks/CreatorCoinHook.sol +7 -1
- package/src/hooks/HookUpgradeGate.sol +7 -1
- package/src/interfaces/ICoin.sol +3 -0
- package/src/libs/CoinCommon.sol +7 -1
- package/src/libs/CoinConfigurationVersions.sol +7 -1
- package/src/libs/CoinConstants.sol +7 -1
- package/src/libs/CoinDopplerMultiCurve.sol +7 -1
- package/src/libs/CoinRewards.sol +7 -1
- package/src/libs/CoinRewardsV4.sol +25 -5
- package/src/libs/CoinSetup.sol +7 -1
- package/src/libs/CreatorCoinConstants.sol +7 -1
- package/src/libs/CreatorCoinRewards.sol +7 -1
- package/src/libs/DopplerMath.sol +7 -1
- package/src/libs/HooksDeployment.sol +20 -1
- package/src/libs/PoolStateReader.sol +7 -1
- package/src/libs/UniV4SwapHelper.sol +7 -1
- package/src/libs/UniV4SwapToCurrency.sol +7 -1
- package/src/libs/V4Liquidity.sol +34 -1
- package/src/types/PoolConfiguration.sol +7 -1
- package/src/utils/AutoSwapper.sol +7 -1
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +23 -0
- package/test/LiquidityMigration.t.sol +27 -0
- package/test/Upgrades.t.sol +180 -1
- package/test/utils/BaseTest.sol +5 -1
- /package/script/{DeployHooks.s.sol → DeployPostDeploymentHooks.s.sol} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/coins@1.1.
|
|
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.
|
|
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
|
|
10
|
-
Solc 0.8.28 finished in
|
|
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:
|
|
28
|
+
--> src/deployment/CoinsDeployerBase.sol:290:84:
|
|
26
29
|
|
|
|
27
|
-
|
|
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:
|
|
52
|
+
--> test/LiquidityMigration.t.sol:186:9:
|
|
50
53
|
|
|
|
51
|
-
|
|
54
|
+
186 | address originalHook = address(contentCoinHook);
|
|
52
55
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
53
56
|
|
|
54
57
|
Warning (2072): Unused local variable.
|
|
55
|
-
--> test/LiquidityMigration.t.sol:
|
|
58
|
+
--> test/LiquidityMigration.t.sol:208:9:
|
|
56
59
|
|
|
|
57
|
-
|
|
60
|
+
208 | PoolKey memory poolKey = coinV4.getPoolKey();
|
|
58
61
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
59
62
|
|
|
60
63
|
[33m-[39m 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.
|
|
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.
|
|
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
|
|
81
|
-
src/Coin.sol
|
|
83
|
+
src/BaseCoin.sol 347ms (unchanged)
|
|
84
|
+
src/Coin.sol 156ms (unchanged)
|
|
82
85
|
src/CoinV4.sol 114ms (unchanged)
|
|
83
|
-
src/CreatorCoin.sol
|
|
84
|
-
src/deployment/CoinsDeployerBase.sol
|
|
85
|
-
src/hooks/BaseZoraV4CoinHook.sol
|
|
86
|
-
src/hooks/ContentCoinHook.sol
|
|
87
|
-
src/hooks/CreatorCoinHook.sol
|
|
88
|
-
src/hooks/deployment/BaseCoinDeployHook.sol
|
|
89
|
-
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol
|
|
90
|
-
src/hooks/HookUpgradeGate.sol
|
|
91
|
-
src/interfaces/IAirlock.sol
|
|
92
|
-
src/interfaces/ICoin.sol
|
|
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
|
|
96
|
-
src/interfaces/ICoinV4.sol
|
|
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
|
|
101
|
+
src/interfaces/ICreatorCoinHook.sol 1ms (unchanged)
|
|
99
102
|
src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
|
|
100
|
-
src/interfaces/IDopplerErrors.sol
|
|
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
|
|
104
|
-
src/interfaces/IMsgSender.sol
|
|
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
|
|
108
|
-
src/interfaces/ISwapPathRouter.sol
|
|
109
|
-
src/interfaces/ISwapRouter.sol
|
|
110
|
-
src/interfaces/IUniswapV3Factory.sol
|
|
111
|
-
src/interfaces/IUniswapV3Pool.sol
|
|
112
|
-
src/interfaces/IUniswapV3SwapCallback.sol
|
|
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
|
|
117
|
-
src/libs/CoinCommon.sol
|
|
118
|
-
src/libs/CoinConfigurationVersions.sol
|
|
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
|
|
121
|
-
src/libs/CoinDopplerUniV3.sol
|
|
122
|
-
src/libs/CoinRewards.sol
|
|
123
|
-
src/libs/CoinRewardsV4.sol
|
|
124
|
-
src/libs/CoinSetup.sol
|
|
125
|
-
src/libs/CoinSetupV3.sol
|
|
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
|
|
128
|
-
src/libs/DopplerMath.sol
|
|
129
|
-
src/libs/HooksDeployment.sol
|
|
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
|
|
132
|
-
src/libs/UniV3BuySell.sol
|
|
133
|
-
src/libs/UniV3Errors.sol
|
|
134
|
-
src/libs/UniV4SwapHelper.sol
|
|
135
|
-
src/libs/UniV4SwapToCurrency.sol
|
|
136
|
-
src/libs/V4Liquidity.sol
|
|
137
|
-
src/proxy/ZoraFactory.sol
|
|
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
|
|
140
|
-
src/types/PoolState.sol
|
|
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
|
|
143
|
-
src/utils/MultiOwnable.sol
|
|
144
|
-
src/utils/uniswap/BitMath.sol
|
|
145
|
-
src/utils/uniswap/BytesLib.sol
|
|
146
|
-
src/utils/uniswap/CustomRevert.sol
|
|
147
|
-
src/utils/uniswap/FixedPoint96.sol
|
|
148
|
-
src/utils/uniswap/FullMath.sol
|
|
149
|
-
src/utils/uniswap/LiquidityAmounts.sol
|
|
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
|
|
153
|
-
src/utils/uniswap/TickMath.sol
|
|
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
|
|
159
|
+
src/ZoraFactoryImpl.sol 162ms (unchanged)
|
|
157
160
|
test/AutoSwapper.t.sol 36ms (unchanged)
|
|
158
|
-
test/Coin.t.sol
|
|
159
|
-
test/CoinDopplerUniV3.t.sol
|
|
160
|
-
test/CoinUniV4.t.sol
|
|
161
|
-
test/CreatorCoin.t.sol
|
|
162
|
-
test/DeploymentHooks.t.sol
|
|
163
|
-
test/Factory.t.sol
|
|
164
|
-
test/HooksDeployment.t.sol
|
|
165
|
-
test/LiquidityMigration.t.sol
|
|
166
|
-
test/mocks/MockERC20.sol
|
|
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
|
|
169
|
-
test/utils/BaseTest.sol
|
|
170
|
-
test/utils/ContractAddresses.sol
|
|
171
|
-
test/utils/DeployedCoinVersionLookup.t.sol
|
|
172
|
-
test/utils/FeeEstimatorHook.sol
|
|
173
|
-
test/utils/ProtocolRewards.sol
|
|
174
|
-
test/utils/ProxyShim.sol
|
|
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
|
|
177
|
-
script/DeployDevFactory.s.sol
|
|
178
|
-
script/
|
|
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
|
|
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
|
|
183
|
-
script/TestBackingCoinSwap.s.sol
|
|
184
|
-
script/TestV4Swap.s.sol
|
|
185
|
-
script/UpgradeCoinImpl.sol
|
|
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
|
[34mCLI[39m Building entry: package/index.ts
|
|
188
193
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
189
194
|
[34mCLI[39m tsup v8.4.0
|
|
@@ -192,9 +197,9 @@ script/UpgradeFactoryImpl.s.sol 8ms (unchanged)
|
|
|
192
197
|
[34mCLI[39m Cleaning output folder
|
|
193
198
|
[34mCJS[39m Build start
|
|
194
199
|
[34mESM[39m Build start
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[32mESM[39m ⚡️ Build success in 43ms
|
|
198
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m130.17 KB[39m
|
|
199
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m230.84 KB[39m
|
|
200
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m130.34 KB[39m
|
|
201
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m231.16 KB[39m
|
|
200
202
|
[32mCJS[39m ⚡️ Build success in 43ms
|
|
203
|
+
[32mESM[39m [1mdist/index.js [22m[32m128.93 KB[39m
|
|
204
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m231.01 KB[39m
|
|
205
|
+
[32mESM[39m ⚡️ 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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
|
package/abis/BaseCoin.json
CHANGED
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
"internalType": "bool"
|
|
493
493
|
}
|
|
494
494
|
],
|
|
495
|
-
"stateMutability": "
|
|
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": "
|
|
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",
|
package/abis/CoinTest.json
CHANGED
|
@@ -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": "
|
|
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",
|