@zoralabs/protocol-deployments 0.6.2 → 0.6.4-PRE.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  BaseError,
3
3
  decodeAbiParameters,
4
4
  encodeAbiParameters,
5
- encodeFunctionData,
6
5
  etherUnits,
7
6
  getAbiItem,
8
7
  keccak256,
9
8
  toHex
10
- } from "./chunk-NPNNGXR4.js";
9
+ } from "./chunk-KMBLRPCX.js";
10
+ import "./chunk-BYTNVMX7.js";
11
11
  import {
12
12
  __export
13
13
  } from "./chunk-PR4QN5HX.js";
@@ -130,6 +130,63 @@ var buySupplyWithSwapRouterHookABI = [
130
130
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
131
131
  stateMutability: "payable"
132
132
  },
133
+ {
134
+ type: "function",
135
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
136
+ name: "decodeV4RouteData",
137
+ outputs: [
138
+ {
139
+ name: "v4Route",
140
+ internalType: "struct PoolKey[]",
141
+ type: "tuple[]",
142
+ components: [
143
+ { name: "currency0", internalType: "Currency", type: "address" },
144
+ { name: "currency1", internalType: "Currency", type: "address" },
145
+ { name: "fee", internalType: "uint24", type: "uint24" },
146
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
147
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
148
+ ]
149
+ },
150
+ { name: "startAmount", internalType: "uint256", type: "uint256" }
151
+ ],
152
+ stateMutability: "pure"
153
+ },
154
+ {
155
+ type: "function",
156
+ inputs: [
157
+ {
158
+ name: "params",
159
+ internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
160
+ type: "tuple",
161
+ components: [
162
+ { name: "buyRecipient", internalType: "address", type: "address" },
163
+ { name: "v3Route", internalType: "bytes", type: "bytes" },
164
+ {
165
+ name: "v4Route",
166
+ internalType: "struct PoolKey[]",
167
+ type: "tuple[]",
168
+ components: [
169
+ { name: "currency0", internalType: "Currency", type: "address" },
170
+ { name: "currency1", internalType: "Currency", type: "address" },
171
+ { name: "fee", internalType: "uint24", type: "uint24" },
172
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
173
+ {
174
+ name: "hooks",
175
+ internalType: "contract IHooks",
176
+ type: "address"
177
+ }
178
+ ]
179
+ },
180
+ { name: "inputCurrency", internalType: "address", type: "address" },
181
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
182
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
183
+ ]
184
+ }
185
+ ],
186
+ name: "encodeBuySupplyWithV4SwapHookData",
187
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
188
+ stateMutability: "pure"
189
+ },
133
190
  {
134
191
  type: "function",
135
192
  inputs: [],
@@ -139,6 +196,15 @@ var buySupplyWithSwapRouterHookABI = [
139
196
  ],
140
197
  stateMutability: "view"
141
198
  },
199
+ {
200
+ type: "function",
201
+ inputs: [],
202
+ name: "poolManager",
203
+ outputs: [
204
+ { name: "", internalType: "contract IPoolManager", type: "address" }
205
+ ],
206
+ stateMutability: "view"
207
+ },
142
208
  {
143
209
  type: "function",
144
210
  inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
@@ -146,6 +212,15 @@ var buySupplyWithSwapRouterHookABI = [
146
212
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
147
213
  stateMutability: "pure"
148
214
  },
215
+ {
216
+ type: "function",
217
+ inputs: [],
218
+ name: "swapRouter",
219
+ outputs: [
220
+ { name: "", internalType: "contract ISwapRouter", type: "address" }
221
+ ],
222
+ stateMutability: "view"
223
+ },
149
224
  {
150
225
  type: "function",
151
226
  inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
@@ -153,6 +228,58 @@ var buySupplyWithSwapRouterHookABI = [
153
228
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
154
229
  stateMutability: "nonpayable"
155
230
  },
231
+ {
232
+ type: "event",
233
+ anonymous: false,
234
+ inputs: [
235
+ { name: "coin", internalType: "address", type: "address", indexed: true },
236
+ {
237
+ name: "recipient",
238
+ internalType: "address",
239
+ type: "address",
240
+ indexed: true
241
+ },
242
+ {
243
+ name: "coinsPurchased",
244
+ internalType: "uint256",
245
+ type: "uint256",
246
+ indexed: true
247
+ },
248
+ { name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
249
+ {
250
+ name: "v4Route",
251
+ internalType: "struct PoolKey[]",
252
+ type: "tuple[]",
253
+ components: [
254
+ { name: "currency0", internalType: "Currency", type: "address" },
255
+ { name: "currency1", internalType: "Currency", type: "address" },
256
+ { name: "fee", internalType: "uint24", type: "uint24" },
257
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
258
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
259
+ ],
260
+ indexed: false
261
+ },
262
+ {
263
+ name: "inputCurrency",
264
+ internalType: "address",
265
+ type: "address",
266
+ indexed: false
267
+ },
268
+ {
269
+ name: "inputAmount",
270
+ internalType: "uint256",
271
+ type: "uint256",
272
+ indexed: false
273
+ },
274
+ {
275
+ name: "v4SwapInput",
276
+ internalType: "uint256",
277
+ type: "uint256",
278
+ indexed: false
279
+ }
280
+ ],
281
+ name: "BuyInitialSupply"
282
+ },
156
283
  {
157
284
  type: "error",
158
285
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -164,20 +291,17 @@ var buySupplyWithSwapRouterHookABI = [
164
291
  name: "AddressInsufficientBalance"
165
292
  },
166
293
  { type: "error", inputs: [], name: "AddressZero" },
294
+ { type: "error", inputs: [], name: "FailedInnerCall" },
295
+ { type: "error", inputs: [], name: "HookNotImplemented" },
167
296
  {
168
297
  type: "error",
169
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
170
- name: "CoinBalanceNot0"
171
- },
172
- {
173
- type: "error",
174
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
175
- name: "CurrencyBalanceNot0"
298
+ inputs: [
299
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
300
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
301
+ ],
302
+ name: "InsufficientInputCurrency"
176
303
  },
177
- { type: "error", inputs: [], name: "Erc20NotReceived" },
178
- { type: "error", inputs: [], name: "FailedInnerCall" },
179
- { type: "error", inputs: [], name: "HookNotImplemented" },
180
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
304
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
181
305
  { type: "error", inputs: [], name: "NotFactory" },
182
306
  { type: "error", inputs: [], name: "OnlyPoolManager" },
183
307
  {
@@ -185,14 +309,11 @@ var buySupplyWithSwapRouterHookABI = [
185
309
  inputs: [{ name: "token", internalType: "address", type: "address" }],
186
310
  name: "SafeERC20FailedOperation"
187
311
  },
188
- {
189
- type: "error",
190
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
191
- name: "SwapReverted"
192
- }
312
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
313
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
193
314
  ];
194
315
  var buySupplyWithSwapRouterHookAddress = {
195
- 8453: "0xc90e349360C43a0217CEF289f231C66D4748960F",
316
+ 8453: "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
196
317
  84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
197
318
  };
198
319
  var buySupplyWithSwapRouterHookConfig = {
@@ -1293,6 +1414,15 @@ var coinABI = [
1293
1414
  outputs: [],
1294
1415
  stateMutability: "nonpayable"
1295
1416
  },
1417
+ {
1418
+ type: "function",
1419
+ inputs: [],
1420
+ name: "coinType",
1421
+ outputs: [
1422
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
1423
+ ],
1424
+ stateMutability: "view"
1425
+ },
1296
1426
  {
1297
1427
  type: "function",
1298
1428
  inputs: [],
@@ -1674,6 +1804,13 @@ var coinABI = [
1674
1804
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1675
1805
  stateMutability: "view"
1676
1806
  },
1807
+ {
1808
+ type: "function",
1809
+ inputs: [],
1810
+ name: "totalSupplyForPositions",
1811
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1812
+ stateMutability: "view"
1813
+ },
1677
1814
  {
1678
1815
  type: "function",
1679
1816
  inputs: [
@@ -2287,7 +2424,6 @@ var coinABI = [
2287
2424
  },
2288
2425
  { type: "error", inputs: [], name: "OnlyWeth" },
2289
2426
  { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
2290
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
2291
2427
  { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
2292
2428
  { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
2293
2429
  ];
@@ -2295,10 +2431,10 @@ var coinFactoryABI = [
2295
2431
  {
2296
2432
  type: "constructor",
2297
2433
  inputs: [
2298
- { name: "_coinV4Impl", internalType: "address", type: "address" },
2299
- { name: "_creatorCoinImpl", internalType: "address", type: "address" },
2300
- { name: "_contentCoinHook", internalType: "address", type: "address" },
2301
- { name: "_creatorCoinHook", internalType: "address", type: "address" }
2434
+ { name: "coinV4Impl_", internalType: "address", type: "address" },
2435
+ { name: "creatorCoinImpl_", internalType: "address", type: "address" },
2436
+ { name: "hook_", internalType: "address", type: "address" },
2437
+ { name: "zoraHookRegistry_", internalType: "address", type: "address" }
2302
2438
  ],
2303
2439
  stateMutability: "nonpayable"
2304
2440
  },
@@ -2383,7 +2519,7 @@ var coinFactoryABI = [
2383
2519
  { name: "platformReferrer", internalType: "address", type: "address" },
2384
2520
  { name: "currency", internalType: "address", type: "address" },
2385
2521
  { name: "", internalType: "int24", type: "int24" },
2386
- { name: "orderSize", internalType: "uint256", type: "uint256" }
2522
+ { name: "", internalType: "uint256", type: "uint256" }
2387
2523
  ],
2388
2524
  name: "deploy",
2389
2525
  outputs: [
@@ -2458,7 +2594,28 @@ var coinFactoryABI = [
2458
2594
  { name: "symbol", internalType: "string", type: "string" },
2459
2595
  { name: "poolConfig", internalType: "bytes", type: "bytes" },
2460
2596
  { name: "platformReferrer", internalType: "address", type: "address" },
2461
- { name: "hook", internalType: "address", type: "address" },
2597
+ { name: "postDeployHook", internalType: "address", type: "address" },
2598
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
2599
+ { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
2600
+ ],
2601
+ name: "deployCreatorCoin",
2602
+ outputs: [
2603
+ { name: "coin", internalType: "address", type: "address" },
2604
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
2605
+ ],
2606
+ stateMutability: "payable"
2607
+ },
2608
+ {
2609
+ type: "function",
2610
+ inputs: [
2611
+ { name: "payoutRecipient", internalType: "address", type: "address" },
2612
+ { name: "owners", internalType: "address[]", type: "address[]" },
2613
+ { name: "uri", internalType: "string", type: "string" },
2614
+ { name: "name", internalType: "string", type: "string" },
2615
+ { name: "symbol", internalType: "string", type: "string" },
2616
+ { name: "poolConfig", internalType: "bytes", type: "bytes" },
2617
+ { name: "platformReferrer", internalType: "address", type: "address" },
2618
+ { name: "deployHook", internalType: "address", type: "address" },
2462
2619
  { name: "hookData", internalType: "bytes", type: "bytes" }
2463
2620
  ],
2464
2621
  name: "deployWithHook",
@@ -2475,6 +2632,13 @@ var coinFactoryABI = [
2475
2632
  outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2476
2633
  stateMutability: "view"
2477
2634
  },
2635
+ {
2636
+ type: "function",
2637
+ inputs: [],
2638
+ name: "hook",
2639
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2640
+ stateMutability: "view"
2641
+ },
2478
2642
  {
2479
2643
  type: "function",
2480
2644
  inputs: [],
@@ -2536,6 +2700,13 @@ var coinFactoryABI = [
2536
2700
  outputs: [],
2537
2701
  stateMutability: "payable"
2538
2702
  },
2703
+ {
2704
+ type: "function",
2705
+ inputs: [],
2706
+ name: "zoraHookRegistry",
2707
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2708
+ stateMutability: "view"
2709
+ },
2539
2710
  {
2540
2711
  type: "event",
2541
2712
  anonymous: false,
@@ -2864,88 +3035,247 @@ var coinFactoryABI = [
2864
3035
  name: "UpgradeToMismatchedContractName"
2865
3036
  },
2866
3037
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
2867
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
2868
- ];
2869
- var coinFactoryAddress = {
2870
- 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
2871
- 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
2872
- };
2873
- var coinFactoryConfig = {
2874
- address: coinFactoryAddress,
2875
- abi: coinFactoryABI
2876
- };
2877
- var coinV4ABI = [
2878
- {
2879
- type: "constructor",
2880
- inputs: [
2881
- {
2882
- name: "_protocolRewardRecipient",
2883
- internalType: "address",
2884
- type: "address"
2885
- },
2886
- { name: "_protocolRewards", internalType: "address", type: "address" },
2887
- {
2888
- name: "_poolManager",
2889
- internalType: "contract IPoolManager",
2890
- type: "address"
2891
- },
2892
- { name: "_airlock", internalType: "address", type: "address" }
2893
- ],
2894
- stateMutability: "nonpayable"
2895
- },
3038
+ { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
2896
3039
  {
2897
- type: "function",
2898
- inputs: [],
2899
- name: "DOMAIN_SEPARATOR",
2900
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2901
- stateMutability: "view"
3040
+ type: "error",
3041
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
3042
+ name: "AddressEmptyCode"
2902
3043
  },
2903
3044
  {
2904
- type: "function",
3045
+ type: "error",
2905
3046
  inputs: [{ name: "account", internalType: "address", type: "address" }],
2906
- name: "addOwner",
2907
- outputs: [],
2908
- stateMutability: "nonpayable"
3047
+ name: "AddressInsufficientBalance"
2909
3048
  },
3049
+ { type: "error", inputs: [], name: "AddressZero" },
3050
+ { type: "error", inputs: [], name: "FailedInnerCall" },
3051
+ { type: "error", inputs: [], name: "HookNotImplemented" },
2910
3052
  {
2911
- type: "function",
3053
+ type: "error",
2912
3054
  inputs: [
2913
- { name: "accounts", internalType: "address[]", type: "address[]" }
3055
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
3056
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
2914
3057
  ],
2915
- name: "addOwners",
2916
- outputs: [],
2917
- stateMutability: "nonpayable"
3058
+ name: "InsufficientInputCurrency"
2918
3059
  },
3060
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
3061
+ { type: "error", inputs: [], name: "NotFactory" },
3062
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
2919
3063
  {
2920
- type: "function",
3064
+ type: "error",
3065
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
3066
+ name: "SafeERC20FailedOperation"
3067
+ },
3068
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
3069
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
3070
+ { type: "error", inputs: [], name: "AddressZero" },
3071
+ { type: "error", inputs: [], name: "AlreadyOwner" },
3072
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
3073
+ {
3074
+ type: "error",
2921
3075
  inputs: [],
2922
- name: "airlock",
2923
- outputs: [{ name: "", internalType: "address", type: "address" }],
2924
- stateMutability: "view"
3076
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
2925
3077
  },
3078
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
2926
3079
  {
2927
- type: "function",
2928
- inputs: [
2929
- { name: "owner", internalType: "address", type: "address" },
2930
- { name: "spender", internalType: "address", type: "address" }
2931
- ],
2932
- name: "allowance",
2933
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2934
- stateMutability: "view"
3080
+ type: "error",
3081
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
3082
+ name: "ECDSAInvalidSignatureLength"
2935
3083
  },
2936
3084
  {
2937
- type: "function",
3085
+ type: "error",
3086
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
3087
+ name: "ECDSAInvalidSignatureS"
3088
+ },
3089
+ {
3090
+ type: "error",
2938
3091
  inputs: [
2939
3092
  { name: "spender", internalType: "address", type: "address" },
2940
- { name: "value", internalType: "uint256", type: "uint256" }
3093
+ { name: "allowance", internalType: "uint256", type: "uint256" },
3094
+ { name: "needed", internalType: "uint256", type: "uint256" }
2941
3095
  ],
2942
- name: "approve",
2943
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
2944
- stateMutability: "nonpayable"
3096
+ name: "ERC20InsufficientAllowance"
2945
3097
  },
2946
3098
  {
2947
- type: "function",
2948
- inputs: [{ name: "account", internalType: "address", type: "address" }],
3099
+ type: "error",
3100
+ inputs: [
3101
+ { name: "sender", internalType: "address", type: "address" },
3102
+ { name: "balance", internalType: "uint256", type: "uint256" },
3103
+ { name: "needed", internalType: "uint256", type: "uint256" }
3104
+ ],
3105
+ name: "ERC20InsufficientBalance"
3106
+ },
3107
+ {
3108
+ type: "error",
3109
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
3110
+ name: "ERC20InvalidApprover"
3111
+ },
3112
+ {
3113
+ type: "error",
3114
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
3115
+ name: "ERC20InvalidReceiver"
3116
+ },
3117
+ {
3118
+ type: "error",
3119
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
3120
+ name: "ERC20InvalidSender"
3121
+ },
3122
+ {
3123
+ type: "error",
3124
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
3125
+ name: "ERC20InvalidSpender"
3126
+ },
3127
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
3128
+ {
3129
+ type: "error",
3130
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3131
+ name: "ERC2612ExpiredSignature"
3132
+ },
3133
+ {
3134
+ type: "error",
3135
+ inputs: [
3136
+ { name: "signer", internalType: "address", type: "address" },
3137
+ { name: "owner", internalType: "address", type: "address" }
3138
+ ],
3139
+ name: "ERC2612InvalidSigner"
3140
+ },
3141
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
3142
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
3143
+ { type: "error", inputs: [], name: "EthTransferFailed" },
3144
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
3145
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
3146
+ { type: "error", inputs: [], name: "InsufficientFunds" },
3147
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
3148
+ {
3149
+ type: "error",
3150
+ inputs: [
3151
+ { name: "account", internalType: "address", type: "address" },
3152
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
3153
+ ],
3154
+ name: "InvalidAccountNonce"
3155
+ },
3156
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
3157
+ { type: "error", inputs: [], name: "InvalidInitialization" },
3158
+ { type: "error", inputs: [], name: "InvalidMarketType" },
3159
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
3160
+ {
3161
+ type: "error",
3162
+ inputs: [
3163
+ { name: "tickLower", internalType: "int24", type: "int24" },
3164
+ { name: "tickUpper", internalType: "int24", type: "int24" }
3165
+ ],
3166
+ name: "InvalidTickRangeMisordered"
3167
+ },
3168
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
3169
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
3170
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
3171
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
3172
+ {
3173
+ type: "error",
3174
+ inputs: [
3175
+ { name: "value", internalType: "uint256", type: "uint256" },
3176
+ { name: "limit", internalType: "uint256", type: "uint256" }
3177
+ ],
3178
+ name: "MaxShareToBeSoldExceeded"
3179
+ },
3180
+ { type: "error", inputs: [], name: "NameIsRequired" },
3181
+ { type: "error", inputs: [], name: "NotInitializing" },
3182
+ { type: "error", inputs: [], name: "NotOwner" },
3183
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
3184
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
3185
+ { type: "error", inputs: [], name: "OnlyOwner" },
3186
+ {
3187
+ type: "error",
3188
+ inputs: [
3189
+ { name: "sender", internalType: "address", type: "address" },
3190
+ { name: "pool", internalType: "address", type: "address" }
3191
+ ],
3192
+ name: "OnlyPool"
3193
+ },
3194
+ { type: "error", inputs: [], name: "OnlyWeth" },
3195
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
3196
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
3197
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
3198
+ ];
3199
+ var coinFactoryAddress = {
3200
+ 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
3201
+ 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
3202
+ };
3203
+ var coinFactoryConfig = {
3204
+ address: coinFactoryAddress,
3205
+ abi: coinFactoryABI
3206
+ };
3207
+ var coinV4ABI = [
3208
+ {
3209
+ type: "constructor",
3210
+ inputs: [
3211
+ {
3212
+ name: "protocolRewardRecipient_",
3213
+ internalType: "address",
3214
+ type: "address"
3215
+ },
3216
+ { name: "protocolRewards_", internalType: "address", type: "address" },
3217
+ {
3218
+ name: "poolManager_",
3219
+ internalType: "contract IPoolManager",
3220
+ type: "address"
3221
+ },
3222
+ { name: "airlock_", internalType: "address", type: "address" }
3223
+ ],
3224
+ stateMutability: "nonpayable"
3225
+ },
3226
+ {
3227
+ type: "function",
3228
+ inputs: [],
3229
+ name: "DOMAIN_SEPARATOR",
3230
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3231
+ stateMutability: "view"
3232
+ },
3233
+ {
3234
+ type: "function",
3235
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3236
+ name: "addOwner",
3237
+ outputs: [],
3238
+ stateMutability: "nonpayable"
3239
+ },
3240
+ {
3241
+ type: "function",
3242
+ inputs: [
3243
+ { name: "accounts", internalType: "address[]", type: "address[]" }
3244
+ ],
3245
+ name: "addOwners",
3246
+ outputs: [],
3247
+ stateMutability: "nonpayable"
3248
+ },
3249
+ {
3250
+ type: "function",
3251
+ inputs: [],
3252
+ name: "airlock",
3253
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3254
+ stateMutability: "view"
3255
+ },
3256
+ {
3257
+ type: "function",
3258
+ inputs: [
3259
+ { name: "owner", internalType: "address", type: "address" },
3260
+ { name: "spender", internalType: "address", type: "address" }
3261
+ ],
3262
+ name: "allowance",
3263
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3264
+ stateMutability: "view"
3265
+ },
3266
+ {
3267
+ type: "function",
3268
+ inputs: [
3269
+ { name: "spender", internalType: "address", type: "address" },
3270
+ { name: "value", internalType: "uint256", type: "uint256" }
3271
+ ],
3272
+ name: "approve",
3273
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3274
+ stateMutability: "nonpayable"
3275
+ },
3276
+ {
3277
+ type: "function",
3278
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
2949
3279
  name: "balanceOf",
2950
3280
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2951
3281
  stateMutability: "view"
@@ -2964,6 +3294,15 @@ var coinV4ABI = [
2964
3294
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2965
3295
  stateMutability: "nonpayable"
2966
3296
  },
3297
+ {
3298
+ type: "function",
3299
+ inputs: [],
3300
+ name: "coinType",
3301
+ outputs: [
3302
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3303
+ ],
3304
+ stateMutability: "pure"
3305
+ },
2967
3306
  {
2968
3307
  type: "function",
2969
3308
  inputs: [],
@@ -3359,6 +3698,13 @@ var coinV4ABI = [
3359
3698
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3360
3699
  stateMutability: "view"
3361
3700
  },
3701
+ {
3702
+ type: "function",
3703
+ inputs: [],
3704
+ name: "totalSupplyForPositions",
3705
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3706
+ stateMutability: "pure"
3707
+ },
3362
3708
  {
3363
3709
  type: "function",
3364
3710
  inputs: [
@@ -4024,7 +4370,6 @@ var coinV4ABI = [
4024
4370
  },
4025
4371
  { type: "error", inputs: [], name: "OnlyWeth" },
4026
4372
  { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
4027
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
4028
4373
  { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
4029
4374
  { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
4030
4375
  ];
@@ -5494,849 +5839,56 @@ var commentsABI = [
5494
5839
  {
5495
5840
  name: "commentIdentifier",
5496
5841
  internalType: "struct IComments.CommentIdentifier",
5497
- type: "tuple",
5498
- components: [
5499
- { name: "commenter", internalType: "address", type: "address" },
5500
- { name: "contractAddress", internalType: "address", type: "address" },
5501
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5502
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5503
- ],
5504
- indexed: false
5505
- },
5506
- {
5507
- name: "replyToId",
5508
- internalType: "bytes32",
5509
- type: "bytes32",
5510
- indexed: false
5511
- },
5512
- {
5513
- name: "replyTo",
5514
- internalType: "struct IComments.CommentIdentifier",
5515
- type: "tuple",
5516
- components: [
5517
- { name: "commenter", internalType: "address", type: "address" },
5518
- { name: "contractAddress", internalType: "address", type: "address" },
5519
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5520
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5521
- ],
5522
- indexed: false
5523
- },
5524
- {
5525
- name: "sparksQuantity",
5526
- internalType: "uint256",
5527
- type: "uint256",
5528
- indexed: false
5529
- },
5530
- { name: "text", internalType: "string", type: "string", indexed: false },
5531
- {
5532
- name: "timestamp",
5533
- internalType: "uint256",
5534
- type: "uint256",
5535
- indexed: false
5536
- },
5537
- {
5538
- name: "referrer",
5539
- internalType: "address",
5540
- type: "address",
5541
- indexed: false
5542
- }
5543
- ],
5544
- name: "Commented"
5545
- },
5546
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
5547
- {
5548
- type: "event",
5549
- anonymous: false,
5550
- inputs: [
5551
- {
5552
- name: "version",
5553
- internalType: "uint64",
5554
- type: "uint64",
5555
- indexed: false
5556
- }
5557
- ],
5558
- name: "Initialized"
5559
- },
5560
- {
5561
- type: "event",
5562
- anonymous: false,
5563
- inputs: [
5564
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5565
- {
5566
- name: "previousAdminRole",
5567
- internalType: "bytes32",
5568
- type: "bytes32",
5569
- indexed: true
5570
- },
5571
- {
5572
- name: "newAdminRole",
5573
- internalType: "bytes32",
5574
- type: "bytes32",
5575
- indexed: true
5576
- }
5577
- ],
5578
- name: "RoleAdminChanged"
5579
- },
5580
- {
5581
- type: "event",
5582
- anonymous: false,
5583
- inputs: [
5584
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5585
- {
5586
- name: "account",
5587
- internalType: "address",
5588
- type: "address",
5589
- indexed: true
5590
- },
5591
- {
5592
- name: "sender",
5593
- internalType: "address",
5594
- type: "address",
5595
- indexed: true
5596
- }
5597
- ],
5598
- name: "RoleGranted"
5599
- },
5600
- {
5601
- type: "event",
5602
- anonymous: false,
5603
- inputs: [
5604
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5605
- {
5606
- name: "account",
5607
- internalType: "address",
5608
- type: "address",
5609
- indexed: true
5610
- },
5611
- {
5612
- name: "sender",
5613
- internalType: "address",
5614
- type: "address",
5615
- indexed: true
5616
- }
5617
- ],
5618
- name: "RoleRevoked"
5619
- },
5620
- {
5621
- type: "event",
5622
- anonymous: false,
5623
- inputs: [
5624
- {
5625
- name: "commentId",
5626
- internalType: "bytes32",
5627
- type: "bytes32",
5628
- indexed: true
5629
- },
5630
- {
5631
- name: "commentIdentifier",
5632
- internalType: "struct IComments.CommentIdentifier",
5633
- type: "tuple",
5634
- components: [
5635
- { name: "commenter", internalType: "address", type: "address" },
5636
- { name: "contractAddress", internalType: "address", type: "address" },
5637
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5638
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5639
- ],
5640
- indexed: false
5641
- },
5642
- {
5643
- name: "sparksQuantity",
5644
- internalType: "uint256",
5645
- type: "uint256",
5646
- indexed: false
5647
- },
5648
- {
5649
- name: "sparker",
5650
- internalType: "address",
5651
- type: "address",
5652
- indexed: false
5653
- },
5654
- {
5655
- name: "timestamp",
5656
- internalType: "uint256",
5657
- type: "uint256",
5658
- indexed: false
5659
- },
5660
- {
5661
- name: "referrer",
5662
- internalType: "address",
5663
- type: "address",
5664
- indexed: false
5665
- }
5666
- ],
5667
- name: "SparkedComment"
5668
- },
5669
- {
5670
- type: "event",
5671
- anonymous: false,
5672
- inputs: [
5673
- {
5674
- name: "implementation",
5675
- internalType: "address",
5676
- type: "address",
5677
- indexed: true
5678
- }
5679
- ],
5680
- name: "Upgraded"
5681
- },
5682
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
5683
- {
5684
- type: "error",
5685
- inputs: [
5686
- { name: "account", internalType: "address", type: "address" },
5687
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
5688
- ],
5689
- name: "AccessControlUnauthorizedAccount"
5690
- },
5691
- {
5692
- type: "error",
5693
- inputs: [{ name: "target", internalType: "address", type: "address" }],
5694
- name: "AddressEmptyCode"
5695
- },
5696
- { type: "error", inputs: [], name: "AddressZero" },
5697
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
5698
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
5699
- {
5700
- type: "error",
5701
- inputs: [
5702
- { name: "commentAddress", internalType: "address", type: "address" },
5703
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
5704
- { name: "replyAddress", internalType: "address", type: "address" },
5705
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
5706
- ],
5707
- name: "CommentAddressOrTokenIdsDoNotMatch"
5708
- },
5709
- { type: "error", inputs: [], name: "CommentDoesntExist" },
5710
- {
5711
- type: "error",
5712
- inputs: [
5713
- { name: "expected", internalType: "address", type: "address" },
5714
- { name: "actual", internalType: "address", type: "address" }
5715
- ],
5716
- name: "CommenterMismatch"
5717
- },
5718
- {
5719
- type: "error",
5720
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
5721
- name: "DuplicateComment"
5722
- },
5723
- {
5724
- type: "error",
5725
- inputs: [
5726
- { name: "implementation", internalType: "address", type: "address" }
5727
- ],
5728
- name: "ERC1967InvalidImplementation"
5729
- },
5730
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
5731
- {
5732
- type: "error",
5733
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
5734
- name: "ERC2612ExpiredSignature"
5735
- },
5736
- { type: "error", inputs: [], name: "EmptyComment" },
5737
- { type: "error", inputs: [], name: "FailedInnerCall" },
5738
- {
5739
- type: "error",
5740
- inputs: [
5741
- {
5742
- name: "wrongDestinationChainId",
5743
- internalType: "uint256",
5744
- type: "uint256"
5745
- }
5746
- ],
5747
- name: "IncorrectDestinationChain"
5748
- },
5749
- {
5750
- type: "error",
5751
- inputs: [
5752
- { name: "actual", internalType: "uint256", type: "uint256" },
5753
- { name: "expected", internalType: "uint256", type: "uint256" }
5754
- ],
5755
- name: "IncorrectETHAmountForSparks"
5756
- },
5757
- {
5758
- type: "error",
5759
- inputs: [
5760
- { name: "account", internalType: "address", type: "address" },
5761
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
5762
- ],
5763
- name: "InvalidAccountNonce"
5764
- },
5765
- { type: "error", inputs: [], name: "InvalidInitialization" },
5766
- { type: "error", inputs: [], name: "InvalidSignature" },
5767
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
5768
- { type: "error", inputs: [], name: "NoFundsRecipient" },
5769
- { type: "error", inputs: [], name: "NotInitializing" },
5770
- { type: "error", inputs: [], name: "NotSmartWallet" },
5771
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
5772
- { type: "error", inputs: [], name: "OnlySparksContract" },
5773
- { type: "error", inputs: [], name: "TransferFailed" },
5774
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
5775
- {
5776
- type: "error",
5777
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
5778
- name: "UUPSUnsupportedProxiableUUID"
5779
- },
5780
- {
5781
- type: "error",
5782
- inputs: [
5783
- { name: "currentName", internalType: "string", type: "string" },
5784
- { name: "newName", internalType: "string", type: "string" }
5785
- ],
5786
- name: "UpgradeToMismatchedContractName"
5787
- }
5788
- ];
5789
- var commentsAddress = {
5790
- 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
5791
- 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
5792
- 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
5793
- 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
5794
- 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
5795
- 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
5796
- 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
5797
- 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
5798
- 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
5799
- 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
5800
- };
5801
- var commentsConfig = {
5802
- address: commentsAddress,
5803
- abi: commentsABI
5804
- };
5805
- var devBuySupplyWithSwapRouterHookABI = [
5806
- {
5807
- type: "constructor",
5808
- inputs: [
5809
- {
5810
- name: "_factory",
5811
- internalType: "contract IZoraFactory",
5812
- type: "address"
5813
- },
5814
- { name: "_swapRouter", internalType: "address", type: "address" },
5815
- { name: "_poolManager", internalType: "address", type: "address" }
5816
- ],
5817
- stateMutability: "nonpayable"
5818
- },
5819
- {
5820
- type: "function",
5821
- inputs: [
5822
- { name: "sender", internalType: "address", type: "address" },
5823
- { name: "coin", internalType: "contract ICoin", type: "address" },
5824
- { name: "hookData", internalType: "bytes", type: "bytes" }
5825
- ],
5826
- name: "afterCoinDeploy",
5827
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5828
- stateMutability: "payable"
5829
- },
5830
- {
5831
- type: "function",
5832
- inputs: [],
5833
- name: "factory",
5834
- outputs: [
5835
- { name: "", internalType: "contract IZoraFactory", type: "address" }
5836
- ],
5837
- stateMutability: "view"
5838
- },
5839
- {
5840
- type: "function",
5841
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
5842
- name: "supportsInterface",
5843
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
5844
- stateMutability: "pure"
5845
- },
5846
- {
5847
- type: "function",
5848
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
5849
- name: "unlockCallback",
5850
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5851
- stateMutability: "nonpayable"
5852
- },
5853
- {
5854
- type: "error",
5855
- inputs: [{ name: "target", internalType: "address", type: "address" }],
5856
- name: "AddressEmptyCode"
5857
- },
5858
- {
5859
- type: "error",
5860
- inputs: [{ name: "account", internalType: "address", type: "address" }],
5861
- name: "AddressInsufficientBalance"
5862
- },
5863
- { type: "error", inputs: [], name: "AddressZero" },
5864
- {
5865
- type: "error",
5866
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5867
- name: "CoinBalanceNot0"
5868
- },
5869
- {
5870
- type: "error",
5871
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5872
- name: "CurrencyBalanceNot0"
5873
- },
5874
- { type: "error", inputs: [], name: "Erc20NotReceived" },
5875
- { type: "error", inputs: [], name: "FailedInnerCall" },
5876
- { type: "error", inputs: [], name: "HookNotImplemented" },
5877
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
5878
- { type: "error", inputs: [], name: "NotFactory" },
5879
- { type: "error", inputs: [], name: "OnlyPoolManager" },
5880
- {
5881
- type: "error",
5882
- inputs: [{ name: "token", internalType: "address", type: "address" }],
5883
- name: "SafeERC20FailedOperation"
5884
- },
5885
- {
5886
- type: "error",
5887
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
5888
- name: "SwapReverted"
5889
- }
5890
- ];
5891
- var devBuySupplyWithSwapRouterHookAddress = {
5892
- 8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
5893
- };
5894
- var devBuySupplyWithSwapRouterHookConfig = {
5895
- address: devBuySupplyWithSwapRouterHookAddress,
5896
- abi: devBuySupplyWithSwapRouterHookABI
5897
- };
5898
- var devCoinFactoryABI = [
5899
- {
5900
- type: "constructor",
5901
- inputs: [
5902
- { name: "_coinV4Impl", internalType: "address", type: "address" },
5903
- { name: "_creatorCoinImpl", internalType: "address", type: "address" },
5904
- { name: "_contentCoinHook", internalType: "address", type: "address" },
5905
- { name: "_creatorCoinHook", internalType: "address", type: "address" }
5906
- ],
5907
- stateMutability: "nonpayable"
5908
- },
5909
- {
5910
- type: "function",
5911
- inputs: [],
5912
- name: "UPGRADE_INTERFACE_VERSION",
5913
- outputs: [{ name: "", internalType: "string", type: "string" }],
5914
- stateMutability: "view"
5915
- },
5916
- {
5917
- type: "function",
5918
- inputs: [],
5919
- name: "acceptOwnership",
5920
- outputs: [],
5921
- stateMutability: "nonpayable"
5922
- },
5923
- {
5924
- type: "function",
5925
- inputs: [
5926
- { name: "msgSender", internalType: "address", type: "address" },
5927
- { name: "name", internalType: "string", type: "string" },
5928
- { name: "symbol", internalType: "string", type: "string" },
5929
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
5930
- { name: "platformReferrer", internalType: "address", type: "address" },
5931
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
5932
- ],
5933
- name: "coinAddress",
5934
- outputs: [{ name: "", internalType: "address", type: "address" }],
5935
- stateMutability: "view"
5936
- },
5937
- {
5938
- type: "function",
5939
- inputs: [],
5940
- name: "coinV4Impl",
5941
- outputs: [{ name: "", internalType: "address", type: "address" }],
5942
- stateMutability: "view"
5943
- },
5944
- {
5945
- type: "function",
5946
- inputs: [],
5947
- name: "contentCoinHook",
5948
- outputs: [{ name: "", internalType: "address", type: "address" }],
5949
- stateMutability: "view"
5950
- },
5951
- {
5952
- type: "function",
5953
- inputs: [],
5954
- name: "contractName",
5955
- outputs: [{ name: "", internalType: "string", type: "string" }],
5956
- stateMutability: "pure"
5957
- },
5958
- {
5959
- type: "function",
5960
- inputs: [],
5961
- name: "contractVersion",
5962
- outputs: [{ name: "", internalType: "string", type: "string" }],
5963
- stateMutability: "pure"
5964
- },
5965
- {
5966
- type: "function",
5967
- inputs: [],
5968
- name: "creatorCoinHook",
5969
- outputs: [{ name: "", internalType: "address", type: "address" }],
5970
- stateMutability: "view"
5971
- },
5972
- {
5973
- type: "function",
5974
- inputs: [],
5975
- name: "creatorCoinImpl",
5976
- outputs: [{ name: "", internalType: "address", type: "address" }],
5977
- stateMutability: "view"
5978
- },
5979
- {
5980
- type: "function",
5981
- inputs: [
5982
- { name: "payoutRecipient", internalType: "address", type: "address" },
5983
- { name: "owners", internalType: "address[]", type: "address[]" },
5984
- { name: "uri", internalType: "string", type: "string" },
5985
- { name: "name", internalType: "string", type: "string" },
5986
- { name: "symbol", internalType: "string", type: "string" },
5987
- { name: "platformReferrer", internalType: "address", type: "address" },
5988
- { name: "currency", internalType: "address", type: "address" },
5989
- { name: "", internalType: "int24", type: "int24" },
5990
- { name: "orderSize", internalType: "uint256", type: "uint256" }
5991
- ],
5992
- name: "deploy",
5993
- outputs: [
5994
- { name: "", internalType: "address", type: "address" },
5995
- { name: "", internalType: "uint256", type: "uint256" }
5996
- ],
5997
- stateMutability: "payable"
5998
- },
5999
- {
6000
- type: "function",
6001
- inputs: [
6002
- { name: "payoutRecipient", internalType: "address", type: "address" },
6003
- { name: "owners", internalType: "address[]", type: "address[]" },
6004
- { name: "uri", internalType: "string", type: "string" },
6005
- { name: "name", internalType: "string", type: "string" },
6006
- { name: "symbol", internalType: "string", type: "string" },
6007
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6008
- { name: "platformReferrer", internalType: "address", type: "address" },
6009
- { name: "postDeployHook", internalType: "address", type: "address" },
6010
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
6011
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
6012
- ],
6013
- name: "deploy",
6014
- outputs: [
6015
- { name: "coin", internalType: "address", type: "address" },
6016
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
6017
- ],
6018
- stateMutability: "payable"
6019
- },
6020
- {
6021
- type: "function",
6022
- inputs: [
6023
- { name: "payoutRecipient", internalType: "address", type: "address" },
6024
- { name: "owners", internalType: "address[]", type: "address[]" },
6025
- { name: "uri", internalType: "string", type: "string" },
6026
- { name: "name", internalType: "string", type: "string" },
6027
- { name: "symbol", internalType: "string", type: "string" },
6028
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6029
- { name: "platformReferrer", internalType: "address", type: "address" },
6030
- { name: "", internalType: "uint256", type: "uint256" }
6031
- ],
6032
- name: "deploy",
6033
- outputs: [
6034
- { name: "", internalType: "address", type: "address" },
6035
- { name: "", internalType: "uint256", type: "uint256" }
6036
- ],
6037
- stateMutability: "payable"
6038
- },
6039
- {
6040
- type: "function",
6041
- inputs: [
6042
- { name: "payoutRecipient", internalType: "address", type: "address" },
6043
- { name: "owners", internalType: "address[]", type: "address[]" },
6044
- { name: "uri", internalType: "string", type: "string" },
6045
- { name: "name", internalType: "string", type: "string" },
6046
- { name: "symbol", internalType: "string", type: "string" },
6047
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6048
- { name: "platformReferrer", internalType: "address", type: "address" },
6049
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
6050
- ],
6051
- name: "deployCreatorCoin",
6052
- outputs: [{ name: "", internalType: "address", type: "address" }],
6053
- stateMutability: "nonpayable"
6054
- },
6055
- {
6056
- type: "function",
6057
- inputs: [
6058
- { name: "payoutRecipient", internalType: "address", type: "address" },
6059
- { name: "owners", internalType: "address[]", type: "address[]" },
6060
- { name: "uri", internalType: "string", type: "string" },
6061
- { name: "name", internalType: "string", type: "string" },
6062
- { name: "symbol", internalType: "string", type: "string" },
6063
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6064
- { name: "platformReferrer", internalType: "address", type: "address" },
6065
- { name: "hook", internalType: "address", type: "address" },
6066
- { name: "hookData", internalType: "bytes", type: "bytes" }
6067
- ],
6068
- name: "deployWithHook",
6069
- outputs: [
6070
- { name: "coin", internalType: "address", type: "address" },
6071
- { name: "hookDataOut", internalType: "bytes", type: "bytes" }
6072
- ],
6073
- stateMutability: "payable"
6074
- },
6075
- {
6076
- type: "function",
6077
- inputs: [{ name: "coin", internalType: "address", type: "address" }],
6078
- name: "getVersionForDeployedCoin",
6079
- outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
6080
- stateMutability: "view"
6081
- },
6082
- {
6083
- type: "function",
6084
- inputs: [],
6085
- name: "implementation",
6086
- outputs: [{ name: "", internalType: "address", type: "address" }],
6087
- stateMutability: "view"
6088
- },
6089
- {
6090
- type: "function",
6091
- inputs: [
6092
- { name: "initialOwner", internalType: "address", type: "address" }
6093
- ],
6094
- name: "initialize",
6095
- outputs: [],
6096
- stateMutability: "nonpayable"
6097
- },
6098
- {
6099
- type: "function",
6100
- inputs: [],
6101
- name: "owner",
6102
- outputs: [{ name: "", internalType: "address", type: "address" }],
6103
- stateMutability: "view"
6104
- },
6105
- {
6106
- type: "function",
6107
- inputs: [],
6108
- name: "pendingOwner",
6109
- outputs: [{ name: "", internalType: "address", type: "address" }],
6110
- stateMutability: "view"
6111
- },
6112
- {
6113
- type: "function",
6114
- inputs: [],
6115
- name: "proxiableUUID",
6116
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
6117
- stateMutability: "view"
6118
- },
6119
- {
6120
- type: "function",
6121
- inputs: [],
6122
- name: "renounceOwnership",
6123
- outputs: [],
6124
- stateMutability: "nonpayable"
6125
- },
6126
- {
6127
- type: "function",
6128
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
6129
- name: "transferOwnership",
6130
- outputs: [],
6131
- stateMutability: "nonpayable"
6132
- },
6133
- {
6134
- type: "function",
6135
- inputs: [
6136
- { name: "newImplementation", internalType: "address", type: "address" },
6137
- { name: "data", internalType: "bytes", type: "bytes" }
6138
- ],
6139
- name: "upgradeToAndCall",
6140
- outputs: [],
6141
- stateMutability: "payable"
6142
- },
6143
- {
6144
- type: "event",
6145
- anonymous: false,
6146
- inputs: [
6147
- {
6148
- name: "caller",
6149
- internalType: "address",
6150
- type: "address",
6151
- indexed: true
6152
- },
6153
- {
6154
- name: "payoutRecipient",
6155
- internalType: "address",
6156
- type: "address",
6157
- indexed: true
6158
- },
6159
- {
6160
- name: "platformReferrer",
6161
- internalType: "address",
6162
- type: "address",
6163
- indexed: true
6164
- },
6165
- {
6166
- name: "currency",
6167
- internalType: "address",
6168
- type: "address",
6169
- indexed: false
6170
- },
6171
- { name: "uri", internalType: "string", type: "string", indexed: false },
6172
- { name: "name", internalType: "string", type: "string", indexed: false },
6173
- {
6174
- name: "symbol",
6175
- internalType: "string",
6176
- type: "string",
6177
- indexed: false
6178
- },
6179
- {
6180
- name: "coin",
6181
- internalType: "address",
6182
- type: "address",
6183
- indexed: false
6184
- },
6185
- {
6186
- name: "pool",
6187
- internalType: "address",
6188
- type: "address",
6189
- indexed: false
6190
- },
6191
- {
6192
- name: "version",
6193
- internalType: "string",
6194
- type: "string",
6195
- indexed: false
6196
- }
6197
- ],
6198
- name: "CoinCreated"
6199
- },
6200
- {
6201
- type: "event",
6202
- anonymous: false,
6203
- inputs: [
6204
- {
6205
- name: "caller",
6206
- internalType: "address",
6207
- type: "address",
6208
- indexed: true
6209
- },
6210
- {
6211
- name: "payoutRecipient",
6212
- internalType: "address",
6213
- type: "address",
6214
- indexed: true
6215
- },
6216
- {
6217
- name: "platformReferrer",
6218
- internalType: "address",
6219
- type: "address",
6220
- indexed: true
6221
- },
6222
- {
6223
- name: "currency",
6224
- internalType: "address",
6225
- type: "address",
6226
- indexed: false
6227
- },
6228
- { name: "uri", internalType: "string", type: "string", indexed: false },
6229
- { name: "name", internalType: "string", type: "string", indexed: false },
6230
- {
6231
- name: "symbol",
6232
- internalType: "string",
6233
- type: "string",
6234
- indexed: false
6235
- },
6236
- {
6237
- name: "coin",
6238
- internalType: "address",
6239
- type: "address",
6240
- indexed: false
6241
- },
6242
- {
6243
- name: "poolKey",
6244
- internalType: "struct PoolKey",
6245
- type: "tuple",
6246
- components: [
6247
- { name: "currency0", internalType: "Currency", type: "address" },
6248
- { name: "currency1", internalType: "Currency", type: "address" },
6249
- { name: "fee", internalType: "uint24", type: "uint24" },
6250
- { name: "tickSpacing", internalType: "int24", type: "int24" },
6251
- { name: "hooks", internalType: "contract IHooks", type: "address" }
6252
- ],
6253
- indexed: false
6254
- },
6255
- {
6256
- name: "poolKeyHash",
6257
- internalType: "bytes32",
6258
- type: "bytes32",
6259
- indexed: false
6260
- },
6261
- {
6262
- name: "version",
6263
- internalType: "string",
6264
- type: "string",
6265
- indexed: false
6266
- }
6267
- ],
6268
- name: "CoinCreatedV4"
6269
- },
6270
- {
6271
- type: "event",
6272
- anonymous: false,
6273
- inputs: [
6274
- {
6275
- name: "caller",
6276
- internalType: "address",
6277
- type: "address",
6278
- indexed: true
6279
- },
6280
- {
6281
- name: "payoutRecipient",
6282
- internalType: "address",
6283
- type: "address",
6284
- indexed: true
6285
- },
6286
- {
6287
- name: "platformReferrer",
6288
- internalType: "address",
6289
- type: "address",
6290
- indexed: true
6291
- },
6292
- {
6293
- name: "currency",
6294
- internalType: "address",
6295
- type: "address",
6296
- indexed: false
6297
- },
6298
- { name: "uri", internalType: "string", type: "string", indexed: false },
6299
- { name: "name", internalType: "string", type: "string", indexed: false },
6300
- {
6301
- name: "symbol",
6302
- internalType: "string",
6303
- type: "string",
5842
+ type: "tuple",
5843
+ components: [
5844
+ { name: "commenter", internalType: "address", type: "address" },
5845
+ { name: "contractAddress", internalType: "address", type: "address" },
5846
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5847
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5848
+ ],
6304
5849
  indexed: false
6305
5850
  },
6306
5851
  {
6307
- name: "coin",
6308
- internalType: "address",
6309
- type: "address",
5852
+ name: "replyToId",
5853
+ internalType: "bytes32",
5854
+ type: "bytes32",
6310
5855
  indexed: false
6311
5856
  },
6312
5857
  {
6313
- name: "poolKey",
6314
- internalType: "struct PoolKey",
5858
+ name: "replyTo",
5859
+ internalType: "struct IComments.CommentIdentifier",
6315
5860
  type: "tuple",
6316
5861
  components: [
6317
- { name: "currency0", internalType: "Currency", type: "address" },
6318
- { name: "currency1", internalType: "Currency", type: "address" },
6319
- { name: "fee", internalType: "uint24", type: "uint24" },
6320
- { name: "tickSpacing", internalType: "int24", type: "int24" },
6321
- { name: "hooks", internalType: "contract IHooks", type: "address" }
5862
+ { name: "commenter", internalType: "address", type: "address" },
5863
+ { name: "contractAddress", internalType: "address", type: "address" },
5864
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5865
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
6322
5866
  ],
6323
5867
  indexed: false
6324
5868
  },
6325
5869
  {
6326
- name: "poolKeyHash",
6327
- internalType: "bytes32",
6328
- type: "bytes32",
5870
+ name: "sparksQuantity",
5871
+ internalType: "uint256",
5872
+ type: "uint256",
6329
5873
  indexed: false
6330
5874
  },
5875
+ { name: "text", internalType: "string", type: "string", indexed: false },
6331
5876
  {
6332
- name: "version",
6333
- internalType: "string",
6334
- type: "string",
5877
+ name: "timestamp",
5878
+ internalType: "uint256",
5879
+ type: "uint256",
5880
+ indexed: false
5881
+ },
5882
+ {
5883
+ name: "referrer",
5884
+ internalType: "address",
5885
+ type: "address",
6335
5886
  indexed: false
6336
5887
  }
6337
5888
  ],
6338
- name: "CreatorCoinCreated"
5889
+ name: "Commented"
6339
5890
  },
5891
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
6340
5892
  {
6341
5893
  type: "event",
6342
5894
  anonymous: false,
@@ -6354,39 +5906,110 @@ var devCoinFactoryABI = [
6354
5906
  type: "event",
6355
5907
  anonymous: false,
6356
5908
  inputs: [
5909
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6357
5910
  {
6358
- name: "previousOwner",
5911
+ name: "previousAdminRole",
5912
+ internalType: "bytes32",
5913
+ type: "bytes32",
5914
+ indexed: true
5915
+ },
5916
+ {
5917
+ name: "newAdminRole",
5918
+ internalType: "bytes32",
5919
+ type: "bytes32",
5920
+ indexed: true
5921
+ }
5922
+ ],
5923
+ name: "RoleAdminChanged"
5924
+ },
5925
+ {
5926
+ type: "event",
5927
+ anonymous: false,
5928
+ inputs: [
5929
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5930
+ {
5931
+ name: "account",
6359
5932
  internalType: "address",
6360
5933
  type: "address",
6361
5934
  indexed: true
6362
5935
  },
6363
5936
  {
6364
- name: "newOwner",
5937
+ name: "sender",
6365
5938
  internalType: "address",
6366
5939
  type: "address",
6367
5940
  indexed: true
6368
5941
  }
6369
5942
  ],
6370
- name: "OwnershipTransferStarted"
5943
+ name: "RoleGranted"
6371
5944
  },
6372
5945
  {
6373
5946
  type: "event",
6374
5947
  anonymous: false,
6375
5948
  inputs: [
5949
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6376
5950
  {
6377
- name: "previousOwner",
5951
+ name: "account",
6378
5952
  internalType: "address",
6379
5953
  type: "address",
6380
5954
  indexed: true
6381
5955
  },
6382
5956
  {
6383
- name: "newOwner",
5957
+ name: "sender",
6384
5958
  internalType: "address",
6385
5959
  type: "address",
6386
5960
  indexed: true
6387
5961
  }
6388
5962
  ],
6389
- name: "OwnershipTransferred"
5963
+ name: "RoleRevoked"
5964
+ },
5965
+ {
5966
+ type: "event",
5967
+ anonymous: false,
5968
+ inputs: [
5969
+ {
5970
+ name: "commentId",
5971
+ internalType: "bytes32",
5972
+ type: "bytes32",
5973
+ indexed: true
5974
+ },
5975
+ {
5976
+ name: "commentIdentifier",
5977
+ internalType: "struct IComments.CommentIdentifier",
5978
+ type: "tuple",
5979
+ components: [
5980
+ { name: "commenter", internalType: "address", type: "address" },
5981
+ { name: "contractAddress", internalType: "address", type: "address" },
5982
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5983
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5984
+ ],
5985
+ indexed: false
5986
+ },
5987
+ {
5988
+ name: "sparksQuantity",
5989
+ internalType: "uint256",
5990
+ type: "uint256",
5991
+ indexed: false
5992
+ },
5993
+ {
5994
+ name: "sparker",
5995
+ internalType: "address",
5996
+ type: "address",
5997
+ indexed: false
5998
+ },
5999
+ {
6000
+ name: "timestamp",
6001
+ internalType: "uint256",
6002
+ type: "uint256",
6003
+ indexed: false
6004
+ },
6005
+ {
6006
+ name: "referrer",
6007
+ internalType: "address",
6008
+ type: "address",
6009
+ indexed: false
6010
+ }
6011
+ ],
6012
+ name: "SparkedComment"
6390
6013
  },
6391
6014
  {
6392
6015
  type: "event",
@@ -6401,15 +6024,47 @@ var devCoinFactoryABI = [
6401
6024
  ],
6402
6025
  name: "Upgraded"
6403
6026
  },
6027
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
6028
+ {
6029
+ type: "error",
6030
+ inputs: [
6031
+ { name: "account", internalType: "address", type: "address" },
6032
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
6033
+ ],
6034
+ name: "AccessControlUnauthorizedAccount"
6035
+ },
6404
6036
  {
6405
6037
  type: "error",
6406
6038
  inputs: [{ name: "target", internalType: "address", type: "address" }],
6407
6039
  name: "AddressEmptyCode"
6408
6040
  },
6041
+ { type: "error", inputs: [], name: "AddressZero" },
6409
6042
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
6410
- { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
6411
- { type: "error", inputs: [], name: "Deprecated" },
6412
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
6043
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
6044
+ {
6045
+ type: "error",
6046
+ inputs: [
6047
+ { name: "commentAddress", internalType: "address", type: "address" },
6048
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
6049
+ { name: "replyAddress", internalType: "address", type: "address" },
6050
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
6051
+ ],
6052
+ name: "CommentAddressOrTokenIdsDoNotMatch"
6053
+ },
6054
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
6055
+ {
6056
+ type: "error",
6057
+ inputs: [
6058
+ { name: "expected", internalType: "address", type: "address" },
6059
+ { name: "actual", internalType: "address", type: "address" }
6060
+ ],
6061
+ name: "CommenterMismatch"
6062
+ },
6063
+ {
6064
+ type: "error",
6065
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
6066
+ name: "DuplicateComment"
6067
+ },
6413
6068
  {
6414
6069
  type: "error",
6415
6070
  inputs: [
@@ -6418,41 +6073,49 @@ var devCoinFactoryABI = [
6418
6073
  name: "ERC1967InvalidImplementation"
6419
6074
  },
6420
6075
  { type: "error", inputs: [], name: "ERC1967NonPayable" },
6421
- { type: "error", inputs: [], name: "EthTransferInvalid" },
6422
- { type: "error", inputs: [], name: "FailedInnerCall" },
6423
- { type: "error", inputs: [], name: "InvalidConfig" },
6424
- { type: "error", inputs: [], name: "InvalidHook" },
6425
- { type: "error", inputs: [], name: "InvalidInitialization" },
6426
- { type: "error", inputs: [], name: "InvalidPoolVersion" },
6427
6076
  {
6428
6077
  type: "error",
6429
- inputs: [
6430
- { name: "tickLower", internalType: "int24", type: "int24" },
6431
- { name: "tickUpper", internalType: "int24", type: "int24" }
6432
- ],
6433
- name: "InvalidTickRangeMisordered"
6078
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
6079
+ name: "ERC2612ExpiredSignature"
6434
6080
  },
6081
+ { type: "error", inputs: [], name: "EmptyComment" },
6082
+ { type: "error", inputs: [], name: "FailedInnerCall" },
6435
6083
  {
6436
6084
  type: "error",
6437
6085
  inputs: [
6438
- { name: "value", internalType: "uint256", type: "uint256" },
6439
- { name: "limit", internalType: "uint256", type: "uint256" }
6086
+ {
6087
+ name: "wrongDestinationChainId",
6088
+ internalType: "uint256",
6089
+ type: "uint256"
6090
+ }
6440
6091
  ],
6441
- name: "MaxShareToBeSoldExceeded"
6092
+ name: "IncorrectDestinationChain"
6442
6093
  },
6443
- { type: "error", inputs: [], name: "NotInitializing" },
6444
- { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
6445
6094
  {
6446
6095
  type: "error",
6447
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
6448
- name: "OwnableInvalidOwner"
6096
+ inputs: [
6097
+ { name: "actual", internalType: "uint256", type: "uint256" },
6098
+ { name: "expected", internalType: "uint256", type: "uint256" }
6099
+ ],
6100
+ name: "IncorrectETHAmountForSparks"
6449
6101
  },
6450
6102
  {
6451
6103
  type: "error",
6452
- inputs: [{ name: "account", internalType: "address", type: "address" }],
6453
- name: "OwnableUnauthorizedAccount"
6104
+ inputs: [
6105
+ { name: "account", internalType: "address", type: "address" },
6106
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
6107
+ ],
6108
+ name: "InvalidAccountNonce"
6454
6109
  },
6455
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
6110
+ { type: "error", inputs: [], name: "InvalidInitialization" },
6111
+ { type: "error", inputs: [], name: "InvalidSignature" },
6112
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
6113
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
6114
+ { type: "error", inputs: [], name: "NotInitializing" },
6115
+ { type: "error", inputs: [], name: "NotSmartWallet" },
6116
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
6117
+ { type: "error", inputs: [], name: "OnlySparksContract" },
6118
+ { type: "error", inputs: [], name: "TransferFailed" },
6456
6119
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
6457
6120
  {
6458
6121
  type: "error",
@@ -6466,16 +6129,23 @@ var devCoinFactoryABI = [
6466
6129
  { name: "newName", internalType: "string", type: "string" }
6467
6130
  ],
6468
6131
  name: "UpgradeToMismatchedContractName"
6469
- },
6470
- { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
6471
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
6132
+ }
6472
6133
  ];
6473
- var devCoinFactoryAddress = {
6474
- 8453: "0x47B0C1205B01e5e967dB24A186968152e5cCf764"
6134
+ var commentsAddress = {
6135
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
6136
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
6137
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
6138
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
6139
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
6140
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
6141
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
6142
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
6143
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
6144
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
6475
6145
  };
6476
- var devCoinFactoryConfig = {
6477
- address: devCoinFactoryAddress,
6478
- abi: devCoinFactoryABI
6146
+ var commentsConfig = {
6147
+ address: commentsAddress,
6148
+ abi: commentsABI
6479
6149
  };
6480
6150
  var erc20MinterABI = [
6481
6151
  {
@@ -18336,7 +18006,7 @@ var zoraTimedSaleStrategyConfig = {
18336
18006
  abi: zoraTimedSaleStrategyABI
18337
18007
  };
18338
18008
 
18339
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
18009
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/unit.js
18340
18010
  var InvalidDecimalNumberError = class extends BaseError {
18341
18011
  constructor({ value }) {
18342
18012
  super(`Number \`${value}\` is not a valid decimal number.`, {
@@ -18345,7 +18015,7 @@ var InvalidDecimalNumberError = class extends BaseError {
18345
18015
  }
18346
18016
  };
18347
18017
 
18348
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
18018
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseUnits.js
18349
18019
  function parseUnits(value, decimals) {
18350
18020
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
18351
18021
  throw new InvalidDecimalNumberError({ value });
@@ -18380,7 +18050,7 @@ function parseUnits(value, decimals) {
18380
18050
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
18381
18051
  }
18382
18052
 
18383
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
18053
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseEther.js
18384
18054
  function parseEther(ether, unit = "wei") {
18385
18055
  return parseUnits(ether, etherUnits[unit]);
18386
18056
  }
@@ -18847,64 +18517,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
18847
18517
  { name: "amountCurrency", internalType: "uint256", type: "uint256" },
18848
18518
  { name: "coinsPurchased", internalType: "uint256", type: "uint256" }
18849
18519
  ];
18850
- var encodeBuySupplyWithSwapRouterHookCalldata = (buyRecipient, swapRouterCall) => {
18851
- return encodeAbiParameters(buySupplyWithSwapRouterHookAbiParameters, [
18852
- buyRecipient,
18853
- swapRouterCall
18854
- ]);
18855
- };
18856
- var encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
18857
- buyRecipient,
18858
- exactInputSingleParams,
18859
- chainId,
18860
- ethValue
18861
- }) => {
18862
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
18863
- const callToSwapRouter = encodeFunctionData({
18864
- abi: uniswapV3SwapRouterABI,
18865
- functionName: "exactInputSingle",
18866
- args: [
18867
- {
18868
- recipient: hook,
18869
- ...exactInputSingleParams
18870
- }
18871
- ]
18872
- });
18873
- return {
18874
- hook,
18875
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
18876
- buyRecipient,
18877
- callToSwapRouter
18878
- ),
18879
- value: ethValue
18880
- };
18881
- };
18882
- var encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
18883
- buyRecipient,
18884
- exactInputParams,
18885
- chainId,
18886
- ethValue
18887
- }) => {
18888
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
18889
- const callToSwapRouter = encodeFunctionData({
18890
- abi: uniswapV3SwapRouterABI,
18891
- functionName: "exactInput",
18892
- args: [
18893
- {
18894
- recipient: hook,
18895
- ...exactInputParams
18896
- }
18897
- ]
18898
- });
18899
- return {
18900
- hook,
18901
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
18902
- buyRecipient,
18903
- callToSwapRouter
18904
- ),
18905
- value: ethValue
18906
- };
18907
- };
18908
18520
  var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
18909
18521
  const result = decodeAbiParameters(
18910
18522
  buySupplyWithSwapRouterHookReturnParameters,
@@ -19366,16 +18978,7 @@ export {
19366
18978
  commentsConfig,
19367
18979
  __exports as contracts1155,
19368
18980
  decodeBuySupplyWithSwapRouterHookReturn,
19369
- devBuySupplyWithSwapRouterHookABI,
19370
- devBuySupplyWithSwapRouterHookAddress,
19371
- devBuySupplyWithSwapRouterHookConfig,
19372
- devCoinFactoryABI,
19373
- devCoinFactoryAddress,
19374
- devCoinFactoryConfig,
19375
18981
  emptyCommentIdentifier,
19376
- encodeBuySupplyWithMultiHopSwapRouterHookCall,
19377
- encodeBuySupplyWithSingleHopSwapRouterHookCall,
19378
- encodeBuySupplyWithSwapRouterHookCalldata,
19379
18982
  encodeMultiCurvePoolConfig,
19380
18983
  encodePremintConfig,
19381
18984
  erc20MinterABI,