@zoralabs/coins 1.1.0 → 1.1.1

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 (47) hide show
  1. package/.turbo/turbo-build.log +97 -95
  2. package/CHANGELOG.md +8 -0
  3. package/abis/BaseCoin.json +6 -1
  4. package/abis/BaseZoraV4CoinHook.json +119 -0
  5. package/abis/Coin.json +6 -1
  6. package/abis/CoinTest.json +14 -0
  7. package/abis/CoinV4.json +6 -1
  8. package/abis/ContentCoinHook.json +119 -0
  9. package/abis/CreatorCoin.json +6 -1
  10. package/abis/CreatorCoinHook.json +119 -0
  11. package/abis/ERC165.json +21 -0
  12. package/abis/ERC165Upgradeable.json +44 -0
  13. package/abis/FeeEstimatorHook.json +119 -0
  14. package/abis/ICoin.json +5 -0
  15. package/abis/ICoinV3.json +5 -0
  16. package/abis/ICoinV4.json +5 -0
  17. package/abis/ICreatorCoin.json +5 -0
  18. package/abis/LiquidityMigrationTest.json +7 -0
  19. package/abis/UpgradeHooks.json +35 -0
  20. package/abis/UpgradesTest.json +21 -0
  21. package/addresses/8453.json +11 -7
  22. package/dist/index.cjs +6 -3
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.js +6 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/wagmiGenerated.d.ts +15 -3
  27. package/dist/wagmiGenerated.d.ts.map +1 -1
  28. package/package/wagmiGenerated.ts +6 -3
  29. package/package.json +1 -1
  30. package/script/DeployUpgradeGate.s.sol +1 -1
  31. package/script/PrintRegisterUpgradePath.s.sol +35 -0
  32. package/script/UpgradeCoinImpl.sol +1 -1
  33. package/script/UpgradeHooks.s.sol +23 -0
  34. package/src/BaseCoin.sol +25 -8
  35. package/src/CoinV4.sol +2 -2
  36. package/src/deployment/CoinsDeployerBase.sol +29 -9
  37. package/src/hooks/BaseZoraV4CoinHook.sol +117 -3
  38. package/src/interfaces/ICoin.sol +3 -0
  39. package/src/libs/CoinRewardsV4.sol +18 -4
  40. package/src/libs/HooksDeployment.sol +13 -0
  41. package/src/libs/V4Liquidity.sol +27 -0
  42. package/src/version/ContractVersionBase.sol +1 -1
  43. package/test/Coin.t.sol +23 -0
  44. package/test/LiquidityMigration.t.sol +27 -0
  45. package/test/Upgrades.t.sol +180 -1
  46. package/test/utils/BaseTest.sol +5 -1
  47. /package/script/{DeployHooks.s.sol → DeployPostDeploymentHooks.s.sol} +0 -0
@@ -1,13 +1,13 @@
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.1 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.1 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 219.49s
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/deployment/CoinsDeployerBase.sol:117:31:
@@ -22,9 +22,9 @@ Warning (5667): Unused function parameter. Remove or comment out the variable na
22
22
  | ^^^^^^^^^^^^^^^^^^^^^^^
23
23
 
24
24
  Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
25
- --> src/deployment/CoinsDeployerBase.sol:270:84:
25
+ --> src/deployment/CoinsDeployerBase.sol:290:84:
26
26
  |
27
- 270 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
27
+ 290 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
28
28
  | ^^^^^^^^^^^^^^^^^^^^^^
29
29
 
30
30
  Warning (2072): Unused local variable.
@@ -46,15 +46,15 @@ Warning (2072): Unused local variable.
46
46
  | ^^^^^^^^^^^^^^^^^^^^^^
47
47
 
48
48
  Warning (2072): Unused local variable.
49
- --> test/LiquidityMigration.t.sol:159:9:
49
+ --> test/LiquidityMigration.t.sol:186:9:
50
50
  |
51
- 159 | address originalHook = address(contentCoinHook);
51
+ 186 | address originalHook = address(contentCoinHook);
52
52
  | ^^^^^^^^^^^^^^^^^^^^
53
53
 
54
54
  Warning (2072): Unused local variable.
55
- --> test/LiquidityMigration.t.sol:181:9:
55
+ --> test/LiquidityMigration.t.sol:208:9:
56
56
  |
57
- 181 | PoolKey memory poolKey = coinV4.getPoolKey();
57
+ 208 | PoolKey memory poolKey = coinV4.getPoolKey();
58
58
  | ^^^^^^^^^^^^^^^^^^^^^^
59
59
 
60
60
  - Validating plugins
@@ -70,120 +70,122 @@ Warning (2072): Unused local variable.
70
70
  ✅ Updated ./package/wagmiGenerated.ts (10 replacements)
71
71
  ✨ All files processed successfully!
72
72
 
73
- > @zoralabs/coins@1.1.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
73
+ > @zoralabs/coins@1.1.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
74
74
  > pnpm exec bundle-abis
75
75
 
76
76
 
77
- > @zoralabs/coins@1.1.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
77
+ > @zoralabs/coins@1.1.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
78
78
  > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
79
79
 
80
- src/BaseCoin.sol 333ms (unchanged)
81
- src/Coin.sol 150ms (unchanged)
82
- 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)
80
+ src/BaseCoin.sol 323ms (unchanged)
81
+ src/Coin.sol 140ms (unchanged)
82
+ src/CoinV4.sol 117ms (unchanged)
83
+ src/CreatorCoin.sol 50ms (unchanged)
84
+ src/deployment/CoinsDeployerBase.sol 196ms (unchanged)
85
+ src/hooks/BaseZoraV4CoinHook.sol 179ms (unchanged)
86
+ src/hooks/ContentCoinHook.sol 7ms
87
+ src/hooks/CreatorCoinHook.sol 5ms (unchanged)
88
+ src/hooks/deployment/BaseCoinDeployHook.sol 13ms (unchanged)
89
+ src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 127ms (unchanged)
90
+ src/hooks/HookUpgradeGate.sol 23ms (unchanged)
91
+ src/interfaces/IAirlock.sol 1ms (unchanged)
92
+ src/interfaces/ICoin.sol 13ms (unchanged)
93
93
  src/interfaces/ICoinComments.sol 1ms (unchanged)
94
- src/interfaces/ICoinDeployHook.sol 2ms (unchanged)
95
- src/interfaces/ICoinV3.sol 3ms (unchanged)
94
+ src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
95
+ src/interfaces/ICoinV3.sol 2ms (unchanged)
96
96
  src/interfaces/ICoinV4.sol 2ms (unchanged)
97
- src/interfaces/ICreatorCoin.sol 2ms (unchanged)
97
+ src/interfaces/ICreatorCoin.sol 1ms (unchanged)
98
98
  src/interfaces/ICreatorCoinHook.sol 2ms (unchanged)
99
- src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
100
- src/interfaces/IDopplerErrors.sol 2ms (unchanged)
99
+ src/interfaces/IDeployedCoinVersionLookup.sol 3ms (unchanged)
100
+ src/interfaces/IDopplerErrors.sol 1ms (unchanged)
101
101
  src/interfaces/IERC7572.sol 1ms (unchanged)
102
102
  src/interfaces/IHasRewardsRecipients.sol 1ms (unchanged)
103
- src/interfaces/IHooksUpgradeGate.sol 1ms (unchanged)
103
+ src/interfaces/IHooksUpgradeGate.sol 2ms (unchanged)
104
104
  src/interfaces/IMsgSender.sol 1ms (unchanged)
105
105
  src/interfaces/INonfungiblePositionManager.sol 5ms (unchanged)
106
106
  src/interfaces/IPoolConfigEncoding.sol 2ms (unchanged)
107
- src/interfaces/IProtocolRewards.sol 5ms (unchanged)
108
- src/interfaces/ISwapPathRouter.sol 1ms (unchanged)
107
+ src/interfaces/IProtocolRewards.sol 7ms (unchanged)
108
+ src/interfaces/ISwapPathRouter.sol 2ms (unchanged)
109
109
  src/interfaces/ISwapRouter.sol 1ms (unchanged)
110
110
  src/interfaces/IUniswapV3Factory.sol 3ms (unchanged)
111
- src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
111
+ src/interfaces/IUniswapV3Pool.sol 4ms (unchanged)
112
112
  src/interfaces/IUniswapV3SwapCallback.sol 1ms (unchanged)
113
- src/interfaces/IUpgradeableV4Hook.sol 2ms (unchanged)
113
+ src/interfaces/IUpgradeableV4Hook.sol 4ms (unchanged)
114
114
  src/interfaces/IWETH.sol 2ms (unchanged)
115
115
  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)
116
+ src/interfaces/IZoraV4CoinHook.sol 6ms (unchanged)
117
+ src/libs/CoinCommon.sol 4ms (unchanged)
118
+ src/libs/CoinConfigurationVersions.sol 61ms (unchanged)
119
119
  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)
120
+ src/libs/CoinDopplerMultiCurve.sol 106ms (unchanged)
121
+ src/libs/CoinDopplerUniV3.sol 29ms (unchanged)
122
+ src/libs/CoinRewards.sol 112ms (unchanged)
123
+ src/libs/CoinRewardsV4.sol 98ms (unchanged)
124
124
  src/libs/CoinSetup.sol 19ms (unchanged)
125
- src/libs/CoinSetupV3.sol 16ms (unchanged)
125
+ src/libs/CoinSetupV3.sol 17ms (unchanged)
126
126
  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)
127
+ src/libs/CreatorCoinRewards.sol 11ms (unchanged)
128
+ src/libs/DopplerMath.sol 77ms (unchanged)
129
+ src/libs/HooksDeployment.sol 94ms (unchanged)
130
130
  src/libs/MarketConstants.sol 1ms (unchanged)
131
- src/libs/PoolStateReader.sol 8ms (unchanged)
132
- src/libs/UniV3BuySell.sol 73ms (unchanged)
131
+ src/libs/PoolStateReader.sol 5ms (unchanged)
132
+ src/libs/UniV3BuySell.sol 77ms (unchanged)
133
133
  src/libs/UniV3Errors.sol 1ms (unchanged)
134
134
  src/libs/UniV4SwapHelper.sol 24ms (unchanged)
135
135
  src/libs/UniV4SwapToCurrency.sol 50ms (unchanged)
136
- src/libs/V4Liquidity.sol 126ms (unchanged)
137
- src/proxy/ZoraFactory.sol 7ms (unchanged)
138
- src/types/LpPosition.sol 1ms (unchanged)
139
- src/types/PoolConfiguration.sol 0ms (unchanged)
136
+ src/libs/V4Liquidity.sol 133ms (unchanged)
137
+ src/proxy/ZoraFactory.sol 6ms (unchanged)
138
+ src/types/LpPosition.sol 0ms (unchanged)
139
+ src/types/PoolConfiguration.sol 1ms (unchanged)
140
140
  src/types/PoolState.sol 1ms (unchanged)
141
- 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)
141
+ src/utils/AutoSwapper.sol 16ms (unchanged)
142
+ src/utils/DeployedCoinVersionLookup.sol 7ms (unchanged)
143
+ src/utils/MultiOwnable.sol 37ms (unchanged)
144
+ src/utils/uniswap/BitMath.sol 10ms (unchanged)
145
+ src/utils/uniswap/BytesLib.sol 11ms (unchanged)
146
+ src/utils/uniswap/CustomRevert.sol 37ms (unchanged)
147
147
  src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
148
- src/utils/uniswap/FullMath.sol 22ms (unchanged)
149
- src/utils/uniswap/LiquidityAmounts.sol 44ms (unchanged)
150
- src/utils/uniswap/Path.sol 5ms (unchanged)
148
+ src/utils/uniswap/FullMath.sol 21ms (unchanged)
149
+ src/utils/uniswap/LiquidityAmounts.sol 46ms (unchanged)
150
+ src/utils/uniswap/Path.sol 8ms (unchanged)
151
151
  src/utils/uniswap/SafeCast.sol 11ms (unchanged)
152
- src/utils/uniswap/SqrtPriceMath.sol 61ms (unchanged)
153
- src/utils/uniswap/TickMath.sol 61ms (unchanged)
152
+ src/utils/uniswap/SqrtPriceMath.sol 58ms (unchanged)
153
+ src/utils/uniswap/TickMath.sol 58ms (unchanged)
154
154
  src/utils/uniswap/UnsafeMath.sol 2ms (unchanged)
155
155
  src/version/ContractVersionBase.sol 1ms (unchanged)
156
- src/ZoraFactoryImpl.sol 153ms (unchanged)
157
- 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)
156
+ src/ZoraFactoryImpl.sol 150ms (unchanged)
157
+ test/AutoSwapper.t.sol 35ms (unchanged)
158
+ test/Coin.t.sol 313ms (unchanged)
159
+ test/CoinDopplerUniV3.t.sol 115ms (unchanged)
160
+ test/CoinUniV4.t.sol 315ms (unchanged)
161
+ test/CreatorCoin.t.sol 140ms (unchanged)
162
+ test/DeploymentHooks.t.sol 126ms (unchanged)
163
+ test/Factory.t.sol 162ms (unchanged)
164
164
  test/HooksDeployment.t.sol 26ms (unchanged)
165
- test/LiquidityMigration.t.sol 81ms (unchanged)
165
+ test/LiquidityMigration.t.sol 86ms (unchanged)
166
166
  test/mocks/MockERC20.sol 3ms (unchanged)
167
- test/MultiOwnable.t.sol 82ms (unchanged)
168
- test/Upgrades.t.sol 47ms (unchanged)
169
- test/utils/BaseTest.sol 173ms (unchanged)
167
+ test/MultiOwnable.t.sol 79ms (unchanged)
168
+ test/Upgrades.t.sol 120ms (unchanged)
169
+ test/utils/BaseTest.sol 167ms (unchanged)
170
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)
175
- 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/DeployUpgradeGate.s.sol 6ms (unchanged)
180
- script/GenerateDeterministicParams.s.sol 16ms (unchanged)
171
+ test/utils/DeployedCoinVersionLookup.t.sol 40ms (unchanged)
172
+ test/utils/FeeEstimatorHook.sol 24ms (unchanged)
173
+ test/utils/ProtocolRewards.sol 287ms (unchanged)
174
+ test/utils/ProxyShim.sol 3ms (unchanged)
175
+ script/Deploy.s.sol 3ms (unchanged)
176
+ script/DeployAutoSwapper.s.sol 9ms (unchanged)
177
+ script/DeployDevFactory.s.sol 4ms (unchanged)
178
+ script/DeployPostDeploymentHooks.s.sol 3ms (unchanged)
179
+ script/DeployUpgradeGate.s.sol 5ms (unchanged)
180
+ script/GenerateDeterministicParams.s.sol 14ms (unchanged)
181
+ script/PrintRegisterUpgradePath.s.sol 10ms (unchanged)
181
182
  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/UpgradeFactoryImpl.s.sol 8ms (unchanged)
183
+ script/Simulate.s.sol 10ms (unchanged)
184
+ script/TestBackingCoinSwap.s.sol 34ms (unchanged)
185
+ script/TestV4Swap.s.sol 28ms (unchanged)
186
+ script/UpgradeCoinImpl.sol 7ms (unchanged)
187
+ script/UpgradeFactoryImpl.s.sol 6ms (unchanged)
188
+ script/UpgradeHooks.s.sol 3ms (unchanged)
187
189
  CLI Building entry: package/index.ts
188
190
  CLI Using tsconfig: tsconfig.json
189
191
  CLI tsup v8.4.0
@@ -192,9 +194,9 @@ script/UpgradeFactoryImpl.s.sol 8ms (unchanged)
192
194
  CLI Cleaning output folder
193
195
  CJS Build start
194
196
  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
197
+ ESM dist/index.js 128.93 KB
198
+ ESM dist/index.js.map 231.01 KB
199
+ ESM ⚡️ Build success in 42ms
200
+ CJS dist/index.cjs 130.34 KB
201
+ CJS dist/index.cjs.map 231.16 KB
200
202
  CJS ⚡️ Build success in 43ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @zoralabs/coins
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 604cd3ab: When migrating liquidity to a new hook, dont execute any after swap logic in the original hook
8
+ - 588da84e: Fix market supply calculation
9
+ - f6300031: Added ability for hooks to have liquidity be migrated to
10
+
3
11
  ## 1.1.0
4
12
 
5
13
  ### Minor Changes
@@ -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",
@@ -812,6 +812,19 @@
812
812
  ],
813
813
  "stateMutability": "nonpayable"
814
814
  },
815
+ {
816
+ "type": "function",
817
+ "name": "contractVersion",
818
+ "inputs": [],
819
+ "outputs": [
820
+ {
821
+ "name": "",
822
+ "type": "string",
823
+ "internalType": "string"
824
+ }
825
+ ],
826
+ "stateMutability": "pure"
827
+ },
815
828
  {
816
829
  "type": "function",
817
830
  "name": "getHookPermissions",
@@ -1020,6 +1033,88 @@
1020
1033
  ],
1021
1034
  "stateMutability": "view"
1022
1035
  },
1036
+ {
1037
+ "type": "function",
1038
+ "name": "initializeFromMigration",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "poolKey",
1042
+ "type": "tuple",
1043
+ "internalType": "struct PoolKey",
1044
+ "components": [
1045
+ {
1046
+ "name": "currency0",
1047
+ "type": "address",
1048
+ "internalType": "Currency"
1049
+ },
1050
+ {
1051
+ "name": "currency1",
1052
+ "type": "address",
1053
+ "internalType": "Currency"
1054
+ },
1055
+ {
1056
+ "name": "fee",
1057
+ "type": "uint24",
1058
+ "internalType": "uint24"
1059
+ },
1060
+ {
1061
+ "name": "tickSpacing",
1062
+ "type": "int24",
1063
+ "internalType": "int24"
1064
+ },
1065
+ {
1066
+ "name": "hooks",
1067
+ "type": "address",
1068
+ "internalType": "contract IHooks"
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ "name": "coin",
1074
+ "type": "address",
1075
+ "internalType": "address"
1076
+ },
1077
+ {
1078
+ "name": "sqrtPriceX96",
1079
+ "type": "uint160",
1080
+ "internalType": "uint160"
1081
+ },
1082
+ {
1083
+ "name": "migratedLiquidity",
1084
+ "type": "tuple[]",
1085
+ "internalType": "struct BurnedPosition[]",
1086
+ "components": [
1087
+ {
1088
+ "name": "tickLower",
1089
+ "type": "int24",
1090
+ "internalType": "int24"
1091
+ },
1092
+ {
1093
+ "name": "tickUpper",
1094
+ "type": "int24",
1095
+ "internalType": "int24"
1096
+ },
1097
+ {
1098
+ "name": "amount0Received",
1099
+ "type": "uint128",
1100
+ "internalType": "uint128"
1101
+ },
1102
+ {
1103
+ "name": "amount1Received",
1104
+ "type": "uint128",
1105
+ "internalType": "uint128"
1106
+ }
1107
+ ]
1108
+ },
1109
+ {
1110
+ "name": "",
1111
+ "type": "bytes",
1112
+ "internalType": "bytes"
1113
+ }
1114
+ ],
1115
+ "outputs": [],
1116
+ "stateMutability": "nonpayable"
1117
+ },
1023
1118
  {
1024
1119
  "type": "function",
1025
1120
  "name": "isTrustedMessageSender",
@@ -1135,6 +1230,25 @@
1135
1230
  ],
1136
1231
  "stateMutability": "view"
1137
1232
  },
1233
+ {
1234
+ "type": "function",
1235
+ "name": "supportsInterface",
1236
+ "inputs": [
1237
+ {
1238
+ "name": "interfaceId",
1239
+ "type": "bytes4",
1240
+ "internalType": "bytes4"
1241
+ }
1242
+ ],
1243
+ "outputs": [
1244
+ {
1245
+ "name": "",
1246
+ "type": "bool",
1247
+ "internalType": "bool"
1248
+ }
1249
+ ],
1250
+ "stateMutability": "view"
1251
+ },
1138
1252
  {
1139
1253
  "type": "function",
1140
1254
  "name": "unlockCallback",
@@ -1575,6 +1689,11 @@
1575
1689
  "name": "PathMustHaveAtLeastOneStep",
1576
1690
  "inputs": []
1577
1691
  },
1692
+ {
1693
+ "type": "error",
1694
+ "name": "SafeCastOverflow",
1695
+ "inputs": []
1696
+ },
1578
1697
  {
1579
1698
  "type": "error",
1580
1699
  "name": "SafeERC20FailedOperation",