@zoralabs/coins 0.9.0 → 1.0.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.
Files changed (124) hide show
  1. package/.turbo/turbo-build.log +131 -114
  2. package/CHANGELOG.md +40 -0
  3. package/abis/BaseCoin.json +26 -118
  4. package/abis/BaseTest.json +47 -0
  5. package/abis/Coin.json +171 -63
  6. package/abis/CoinDopplerMultiCurve.json +38 -0
  7. package/abis/CoinRewardsV4.json +54 -0
  8. package/abis/CoinTest.json +53 -20
  9. package/abis/CoinUniV4Test.json +1053 -0
  10. package/abis/CoinV4.json +234 -211
  11. package/abis/DeployScript.json +47 -0
  12. package/abis/DeployedCoinVersionLookup.json +21 -0
  13. package/abis/DeployedCoinVersionLookupTest.json +716 -0
  14. package/abis/DifferentNamespaceVersionLookup.json +39 -0
  15. package/abis/DopplerUniswapV3Test.json +49 -93
  16. package/abis/ERC20.json +310 -0
  17. package/abis/FactoryTest.json +85 -7
  18. package/abis/FeeEstimatorHook.json +1528 -0
  19. package/abis/HooksDeployment.json +23 -0
  20. package/abis/HooksTest.json +47 -0
  21. package/abis/ICoin.json +40 -71
  22. package/abis/ICoinV3.json +879 -0
  23. package/abis/ICoinV4.json +915 -0
  24. package/abis/IDeployedCoinVersionLookup.json +21 -0
  25. package/abis/IERC721.json +36 -36
  26. package/abis/IHasPoolKey.json +42 -0
  27. package/abis/IHasRewardsRecipients.json +54 -0
  28. package/abis/IHasSwapPath.json +60 -0
  29. package/abis/IMsgSender.json +15 -0
  30. package/abis/IPoolConfigEncoding.json +46 -0
  31. package/abis/ISwapPathRouter.json +92 -0
  32. package/abis/IUniversalRouter.json +61 -0
  33. package/abis/IUnlockCallback.json +21 -0
  34. package/abis/IV4Quoter.json +310 -0
  35. package/abis/IZoraFactory.json +191 -11
  36. package/abis/IZoraV4CoinHook.json +348 -4
  37. package/abis/MockERC20.json +21 -0
  38. package/abis/MultiOwnableTest.json +47 -0
  39. package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
  40. package/abis/PrintUpgradeCommand.json +9 -0
  41. package/abis/ProxyShim.json +24 -0
  42. package/abis/StateLibrary.json +80 -0
  43. package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
  44. package/abis/TestV4Swap.json +9 -0
  45. package/abis/UpgradeCoinImpl.json +47 -0
  46. package/abis/UpgradesTest.json +67 -0
  47. package/abis/Vm.json +1482 -111
  48. package/abis/VmSafe.json +856 -32
  49. package/abis/ZoraFactoryImpl.json +339 -1
  50. package/abis/ZoraV4CoinHook.json +455 -5
  51. package/addresses/8453.json +8 -4
  52. package/addresses/84532.json +8 -4
  53. package/dist/index.cjs +1920 -169
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.js +1916 -169
  56. package/dist/index.js.map +1 -1
  57. package/dist/wagmiGenerated.d.ts +2599 -183
  58. package/dist/wagmiGenerated.d.ts.map +1 -1
  59. package/package/wagmiGenerated.ts +1928 -165
  60. package/package.json +8 -3
  61. package/remappings.txt +6 -1
  62. package/script/CoinsDeployerBase.sol +74 -11
  63. package/script/DeployDevFactory.s.sol +21 -0
  64. package/script/PrintUpgradeCommand.s.sol +13 -0
  65. package/script/Simulate.s.sol +1 -10
  66. package/script/TestBackingCoinSwap.s.sol +146 -0
  67. package/script/TestV4Swap.s.sol +136 -0
  68. package/script/UpgradeFactoryImpl.s.sol +1 -1
  69. package/src/BaseCoin.sol +176 -0
  70. package/src/Coin.sol +87 -202
  71. package/src/CoinV4.sol +121 -0
  72. package/src/ZoraFactoryImpl.sol +208 -36
  73. package/src/hooks/ZoraV4CoinHook.sol +195 -0
  74. package/src/hooks/{BaseCoinDeployHook.sol → deployment/BaseCoinDeployHook.sol} +3 -3
  75. package/src/hooks/{BuySupplyWithSwapRouterHook.sol → deployment/BuySupplyWithSwapRouterHook.sol} +7 -5
  76. package/src/interfaces/ICoin.sol +31 -39
  77. package/src/interfaces/ICoinV3.sol +71 -0
  78. package/src/interfaces/ICoinV4.sol +69 -0
  79. package/src/interfaces/IDeployedCoinVersionLookup.sol +11 -0
  80. package/src/interfaces/IMsgSender.sol +9 -0
  81. package/src/interfaces/IPoolConfigEncoding.sol +14 -0
  82. package/src/interfaces/ISwapPathRouter.sol +14 -0
  83. package/src/interfaces/IZoraFactory.sol +65 -27
  84. package/src/interfaces/IZoraV4CoinHook.sol +116 -0
  85. package/src/libs/CoinCommon.sol +15 -0
  86. package/src/libs/CoinConfigurationVersions.sol +116 -1
  87. package/src/libs/CoinConstants.sol +5 -0
  88. package/src/libs/CoinDopplerMultiCurve.sol +134 -0
  89. package/src/libs/CoinDopplerUniV3.sol +19 -171
  90. package/src/libs/CoinRewards.sol +195 -0
  91. package/src/libs/CoinRewardsV4.sol +180 -0
  92. package/src/libs/CoinSetup.sol +57 -0
  93. package/src/libs/CoinSetupV3.sol +6 -67
  94. package/src/libs/DopplerMath.sol +156 -0
  95. package/src/libs/HooksDeployment.sol +84 -0
  96. package/src/libs/MarketConstants.sol +4 -0
  97. package/src/libs/PoolStateReader.sol +22 -0
  98. package/src/libs/UniV3BuySell.sol +74 -292
  99. package/src/libs/UniV4SwapHelper.sol +65 -0
  100. package/src/libs/UniV4SwapToCurrency.sol +109 -0
  101. package/src/libs/V4Liquidity.sol +129 -0
  102. package/src/types/PoolConfiguration.sol +15 -0
  103. package/src/utils/DeployedCoinVersionLookup.sol +52 -0
  104. package/src/version/ContractVersionBase.sol +1 -1
  105. package/test/Coin.t.sol +78 -88
  106. package/test/CoinDopplerUniV3.t.sol +32 -171
  107. package/test/CoinUniV4.t.sol +752 -0
  108. package/test/{Hooks.t.sol → DeploymentHooks.t.sol} +2 -6
  109. package/test/Factory.t.sol +80 -47
  110. package/test/MultiOwnable.t.sol +6 -3
  111. package/test/Upgrades.t.sol +6 -5
  112. package/test/mocks/MockERC20.sol +12 -0
  113. package/test/utils/BaseTest.sol +106 -56
  114. package/test/utils/DeployedCoinVersionLookup.t.sol +127 -0
  115. package/test/utils/FeeEstimatorHook.sol +84 -0
  116. package/test/utils/ProxyShim.sol +17 -0
  117. package/wagmi.config.ts +4 -0
  118. package/.env +0 -1
  119. package/.turbo/turbo-update-contract-version.log +0 -22
  120. package/abis/CoinSetupV3.json +0 -7
  121. package/abis/HookDeployer.json +0 -68
  122. package/abis/IHookDeployer.json +0 -42
  123. package/src/libs/CoinLegacy.sol +0 -48
  124. package/src/libs/CoinLegacyMarket.sol +0 -182
@@ -1,4 +1,253 @@
1
1
  [
2
+ {
3
+ "type": "function",
4
+ "name": "getPoolCoin",
5
+ "inputs": [
6
+ {
7
+ "name": "key",
8
+ "type": "tuple",
9
+ "internalType": "struct PoolKey",
10
+ "components": [
11
+ {
12
+ "name": "currency0",
13
+ "type": "address",
14
+ "internalType": "Currency"
15
+ },
16
+ {
17
+ "name": "currency1",
18
+ "type": "address",
19
+ "internalType": "Currency"
20
+ },
21
+ {
22
+ "name": "fee",
23
+ "type": "uint24",
24
+ "internalType": "uint24"
25
+ },
26
+ {
27
+ "name": "tickSpacing",
28
+ "type": "int24",
29
+ "internalType": "int24"
30
+ },
31
+ {
32
+ "name": "hooks",
33
+ "type": "address",
34
+ "internalType": "contract IHooks"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "tuple",
43
+ "internalType": "struct IZoraV4CoinHook.PoolCoin",
44
+ "components": [
45
+ {
46
+ "name": "coin",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "positions",
52
+ "type": "tuple[]",
53
+ "internalType": "struct LpPosition[]",
54
+ "components": [
55
+ {
56
+ "name": "tickLower",
57
+ "type": "int24",
58
+ "internalType": "int24"
59
+ },
60
+ {
61
+ "name": "tickUpper",
62
+ "type": "int24",
63
+ "internalType": "int24"
64
+ },
65
+ {
66
+ "name": "liquidity",
67
+ "type": "uint128",
68
+ "internalType": "uint128"
69
+ }
70
+ ]
71
+ }
72
+ ]
73
+ }
74
+ ],
75
+ "stateMutability": "view"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "getPoolCoinByHash",
80
+ "inputs": [
81
+ {
82
+ "name": "poolKeyHash",
83
+ "type": "bytes23",
84
+ "internalType": "bytes23"
85
+ }
86
+ ],
87
+ "outputs": [
88
+ {
89
+ "name": "",
90
+ "type": "tuple",
91
+ "internalType": "struct IZoraV4CoinHook.PoolCoin",
92
+ "components": [
93
+ {
94
+ "name": "coin",
95
+ "type": "address",
96
+ "internalType": "address"
97
+ },
98
+ {
99
+ "name": "positions",
100
+ "type": "tuple[]",
101
+ "internalType": "struct LpPosition[]",
102
+ "components": [
103
+ {
104
+ "name": "tickLower",
105
+ "type": "int24",
106
+ "internalType": "int24"
107
+ },
108
+ {
109
+ "name": "tickUpper",
110
+ "type": "int24",
111
+ "internalType": "int24"
112
+ },
113
+ {
114
+ "name": "liquidity",
115
+ "type": "uint128",
116
+ "internalType": "uint128"
117
+ }
118
+ ]
119
+ }
120
+ ]
121
+ }
122
+ ],
123
+ "stateMutability": "view"
124
+ },
125
+ {
126
+ "type": "function",
127
+ "name": "isTrustedMessageSender",
128
+ "inputs": [
129
+ {
130
+ "name": "sender",
131
+ "type": "address",
132
+ "internalType": "address"
133
+ }
134
+ ],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "bool",
139
+ "internalType": "bool"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "event",
146
+ "name": "CoinMarketRewardsV4",
147
+ "inputs": [
148
+ {
149
+ "name": "coin",
150
+ "type": "address",
151
+ "indexed": false,
152
+ "internalType": "address"
153
+ },
154
+ {
155
+ "name": "currency",
156
+ "type": "address",
157
+ "indexed": false,
158
+ "internalType": "address"
159
+ },
160
+ {
161
+ "name": "payoutRecipient",
162
+ "type": "address",
163
+ "indexed": false,
164
+ "internalType": "address"
165
+ },
166
+ {
167
+ "name": "platformReferrer",
168
+ "type": "address",
169
+ "indexed": false,
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "tradeReferrer",
174
+ "type": "address",
175
+ "indexed": false,
176
+ "internalType": "address"
177
+ },
178
+ {
179
+ "name": "protocolRewardRecipient",
180
+ "type": "address",
181
+ "indexed": false,
182
+ "internalType": "address"
183
+ },
184
+ {
185
+ "name": "dopplerRecipient",
186
+ "type": "address",
187
+ "indexed": false,
188
+ "internalType": "address"
189
+ },
190
+ {
191
+ "name": "marketRewards",
192
+ "type": "tuple",
193
+ "indexed": false,
194
+ "internalType": "struct IZoraV4CoinHook.MarketRewardsV4",
195
+ "components": [
196
+ {
197
+ "name": "creatorPayoutAmountCurrency",
198
+ "type": "uint256",
199
+ "internalType": "uint256"
200
+ },
201
+ {
202
+ "name": "creatorPayoutAmountCoin",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ },
206
+ {
207
+ "name": "platformReferrerAmountCurrency",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ },
211
+ {
212
+ "name": "platformReferrerAmountCoin",
213
+ "type": "uint256",
214
+ "internalType": "uint256"
215
+ },
216
+ {
217
+ "name": "tradeReferrerAmountCurrency",
218
+ "type": "uint256",
219
+ "internalType": "uint256"
220
+ },
221
+ {
222
+ "name": "tradeReferrerAmountCoin",
223
+ "type": "uint256",
224
+ "internalType": "uint256"
225
+ },
226
+ {
227
+ "name": "protocolAmountCurrency",
228
+ "type": "uint256",
229
+ "internalType": "uint256"
230
+ },
231
+ {
232
+ "name": "protocolAmountCoin",
233
+ "type": "uint256",
234
+ "internalType": "uint256"
235
+ },
236
+ {
237
+ "name": "dopplerAmountCurrency",
238
+ "type": "uint256",
239
+ "internalType": "uint256"
240
+ },
241
+ {
242
+ "name": "dopplerAmountCoin",
243
+ "type": "uint256",
244
+ "internalType": "uint256"
245
+ }
246
+ ]
247
+ }
248
+ ],
249
+ "anonymous": false
250
+ },
2
251
  {
3
252
  "type": "event",
4
253
  "name": "Swapped",
@@ -6,9 +255,21 @@
6
255
  {
7
256
  "name": "sender",
8
257
  "type": "address",
9
- "indexed": false,
258
+ "indexed": true,
259
+ "internalType": "address"
260
+ },
261
+ {
262
+ "name": "swapSender",
263
+ "type": "address",
264
+ "indexed": true,
10
265
  "internalType": "address"
11
266
  },
267
+ {
268
+ "name": "isTrustedSwapSenderAddress",
269
+ "type": "bool",
270
+ "indexed": false,
271
+ "internalType": "bool"
272
+ },
12
273
  {
13
274
  "name": "key",
14
275
  "type": "tuple",
@@ -42,6 +303,12 @@
42
303
  }
43
304
  ]
44
305
  },
306
+ {
307
+ "name": "poolKeyHash",
308
+ "type": "bytes32",
309
+ "indexed": true,
310
+ "internalType": "bytes32"
311
+ },
45
312
  {
46
313
  "name": "params",
47
314
  "type": "tuple",
@@ -66,18 +333,95 @@
66
333
  ]
67
334
  },
68
335
  {
69
- "name": "delta",
70
- "type": "int256",
336
+ "name": "amount0",
337
+ "type": "int128",
338
+ "indexed": false,
339
+ "internalType": "int128"
340
+ },
341
+ {
342
+ "name": "amount1",
343
+ "type": "int128",
71
344
  "indexed": false,
72
- "internalType": "BalanceDelta"
345
+ "internalType": "int128"
346
+ },
347
+ {
348
+ "name": "isCoinBuy",
349
+ "type": "bool",
350
+ "indexed": false,
351
+ "internalType": "bool"
73
352
  },
74
353
  {
75
354
  "name": "hookData",
76
355
  "type": "bytes",
77
356
  "indexed": false,
78
357
  "internalType": "bytes"
358
+ },
359
+ {
360
+ "name": "sqrtPriceX96",
361
+ "type": "uint160",
362
+ "indexed": false,
363
+ "internalType": "uint160"
79
364
  }
80
365
  ],
81
366
  "anonymous": false
367
+ },
368
+ {
369
+ "type": "error",
370
+ "name": "CoinVersionLookupCannotBeZeroAddress",
371
+ "inputs": []
372
+ },
373
+ {
374
+ "type": "error",
375
+ "name": "NoCoinForHook",
376
+ "inputs": [
377
+ {
378
+ "name": "key",
379
+ "type": "tuple",
380
+ "internalType": "struct PoolKey",
381
+ "components": [
382
+ {
383
+ "name": "currency0",
384
+ "type": "address",
385
+ "internalType": "Currency"
386
+ },
387
+ {
388
+ "name": "currency1",
389
+ "type": "address",
390
+ "internalType": "Currency"
391
+ },
392
+ {
393
+ "name": "fee",
394
+ "type": "uint24",
395
+ "internalType": "uint24"
396
+ },
397
+ {
398
+ "name": "tickSpacing",
399
+ "type": "int24",
400
+ "internalType": "int24"
401
+ },
402
+ {
403
+ "name": "hooks",
404
+ "type": "address",
405
+ "internalType": "contract IHooks"
406
+ }
407
+ ]
408
+ }
409
+ ]
410
+ },
411
+ {
412
+ "type": "error",
413
+ "name": "NotACoin",
414
+ "inputs": [
415
+ {
416
+ "name": "coin",
417
+ "type": "address",
418
+ "internalType": "address"
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "type": "error",
424
+ "name": "PathMustHaveAtLeastOneStep",
425
+ "inputs": []
82
426
  }
83
427
  ]
@@ -319,4 +319,25 @@
319
319
  ],
320
320
  "anonymous": false
321
321
  }
322
+ ]error",
323
+ "name": "ERC20InvalidSender",
324
+ "inputs": [
325
+ {
326
+ "name": "sender",
327
+ "type": "address",
328
+ "internalType": "address"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "type": "error",
334
+ "name": "ERC20InvalidSpender",
335
+ "inputs": [
336
+ {
337
+ "name": "spender",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ }
341
+ ]
342
+ }
322
343
  ]
@@ -691,5 +691,52 @@
691
691
  }
692
692
  ],
693
693
  "anonymous": false
694
+ },
695
+ {
696
+ "type": "error",
697
+ "name": "Create2EmptyBytecode",
698
+ "inputs": []
699
+ },
700
+ {
701
+ "type": "error",
702
+ "name": "Create2FailedDeployment",
703
+ "inputs": []
704
+ },
705
+ {
706
+ "type": "error",
707
+ "name": "Create2InsufficientBalance",
708
+ "inputs": [
709
+ {
710
+ "name": "balance",
711
+ "type": "uint256",
712
+ "internalType": "uint256"
713
+ },
714
+ {
715
+ "name": "needed",
716
+ "type": "uint256",
717
+ "internalType": "uint256"
718
+ }
719
+ ]
720
+ },
721
+ {
722
+ "type": "error",
723
+ "name": "HookNotDeployed",
724
+ "inputs": []
725
+ },
726
+ {
727
+ "type": "error",
728
+ "name": "InvalidHookAddress",
729
+ "inputs": [
730
+ {
731
+ "name": "expected",
732
+ "type": "address",
733
+ "internalType": "address"
734
+ },
735
+ {
736
+ "name": "actual",
737
+ "type": "address",
738
+ "internalType": "address"
739
+ }
740
+ ]
694
741
  }
695
742
  ]
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
3
  "type": "error",
4
- "name": "InvalidPoolVersion",
4
+ "name": "CannotUpdateEmptyPosition",
5
5
  "inputs": []
6
6
  }
7
7
  ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "run",
5
+ "inputs": [],
6
+ "outputs": [],
7
+ "stateMutability": "nonpayable"
8
+ }
9
+ ]
@@ -109,4 +109,28 @@
109
109
  }
110
110
  ]
111
111
  }
112
+ ]ion",
113
+ "inputs": []
114
+ },
115
+ {
116
+ "type": "error",
117
+ "name": "NotInitializing",
118
+ "inputs": []
119
+ },
120
+ {
121
+ "type": "error",
122
+ "name": "UUPSUnauthorizedCallContext",
123
+ "inputs": []
124
+ },
125
+ {
126
+ "type": "error",
127
+ "name": "UUPSUnsupportedProxiableUUID",
128
+ "inputs": [
129
+ {
130
+ "name": "slot",
131
+ "type": "bytes32",
132
+ "internalType": "bytes32"
133
+ }
134
+ ]
135
+ }
112
136
  ]
@@ -0,0 +1,80 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "FEE_GROWTH_GLOBAL0_OFFSET",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "uint256",
10
+ "internalType": "uint256"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "LIQUIDITY_OFFSET",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "POOLS_SLOT",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "bytes32",
36
+ "internalType": "bytes32"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "POSITIONS_OFFSET",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "TICKS_OFFSET",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "uint256",
62
+ "internalType": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "TICK_BITMAP_OFFSET",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ }
80
+ ]
@@ -0,0 +1,39 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "getVersionForDeployedCoin",
5
+ "inputs": [
6
+ {
7
+ "name": "coin",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ],
12
+ "outputs": [
13
+ {
14
+ "name": "",
15
+ "type": "uint8",
16
+ "internalType": "uint8"
17
+ }
18
+ ],
19
+ "stateMutability": "view"
20
+ },
21
+ {
22
+ "type": "function",
23
+ "name": "setVersionForTesting",
24
+ "inputs": [
25
+ {
26
+ "name": "coin",
27
+ "type": "address",
28
+ "internalType": "address"
29
+ },
30
+ {
31
+ "name": "version",
32
+ "type": "uint8",
33
+ "internalType": "uint8"
34
+ }
35
+ ],
36
+ "outputs": [],
37
+ "stateMutability": "nonpayable"
38
+ }
39
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "run",
5
+ "inputs": [],
6
+ "outputs": [],
7
+ "stateMutability": "nonpayable"
8
+ }
9
+ ]
@@ -5,5 +5,52 @@
5
5
  "inputs": [],
6
6
  "outputs": [],
7
7
  "stateMutability": "nonpayable"
8
+ },
9
+ {
10
+ "type": "error",
11
+ "name": "Create2EmptyBytecode",
12
+ "inputs": []
13
+ },
14
+ {
15
+ "type": "error",
16
+ "name": "Create2FailedDeployment",
17
+ "inputs": []
18
+ },
19
+ {
20
+ "type": "error",
21
+ "name": "Create2InsufficientBalance",
22
+ "inputs": [
23
+ {
24
+ "name": "balance",
25
+ "type": "uint256",
26
+ "internalType": "uint256"
27
+ },
28
+ {
29
+ "name": "needed",
30
+ "type": "uint256",
31
+ "internalType": "uint256"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "type": "error",
37
+ "name": "HookNotDeployed",
38
+ "inputs": []
39
+ },
40
+ {
41
+ "type": "error",
42
+ "name": "InvalidHookAddress",
43
+ "inputs": [
44
+ {
45
+ "name": "expected",
46
+ "type": "address",
47
+ "internalType": "address"
48
+ },
49
+ {
50
+ "name": "actual",
51
+ "type": "address",
52
+ "internalType": "address"
53
+ }
54
+ ]
8
55
  }
9
56
  ]