@flaunch/sdk 0.1.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 (83) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +315 -0
  3. package/dist/abi/FairLaunch.d.ts +364 -0
  4. package/dist/abi/FairLaunch.d.ts.map +1 -0
  5. package/dist/abi/FastFlaunchZap.d.ts +75 -0
  6. package/dist/abi/FastFlaunchZap.d.ts.map +1 -0
  7. package/dist/abi/Flaunch.d.ts +832 -0
  8. package/dist/abi/Flaunch.d.ts.map +1 -0
  9. package/dist/abi/FlaunchPositionManager.d.ts +2030 -0
  10. package/dist/abi/FlaunchPositionManager.d.ts.map +1 -0
  11. package/dist/abi/Memecoin.d.ts +743 -0
  12. package/dist/abi/Memecoin.d.ts.map +1 -0
  13. package/dist/abi/Permit2.d.ts +701 -0
  14. package/dist/abi/Permit2.d.ts.map +1 -0
  15. package/dist/abi/PoolManager.d.ts +1057 -0
  16. package/dist/abi/PoolManager.d.ts.map +1 -0
  17. package/dist/abi/Quoter.d.ts +486 -0
  18. package/dist/abi/Quoter.d.ts.map +1 -0
  19. package/dist/abi/UniversalRouter.d.ts +342 -0
  20. package/dist/abi/UniversalRouter.d.ts.map +1 -0
  21. package/dist/abi/index.cjs +3023 -0
  22. package/dist/abi/index.cjs.map +1 -0
  23. package/dist/abi/index.d.ts +6 -0
  24. package/dist/abi/index.d.ts.map +1 -0
  25. package/dist/abi/index.js +3015 -0
  26. package/dist/abi/index.js.map +1 -0
  27. package/dist/addresses/index.cjs +5334 -0
  28. package/dist/addresses/index.cjs.map +1 -0
  29. package/dist/addresses/index.js +5321 -0
  30. package/dist/addresses/index.js.map +1 -0
  31. package/dist/addresses.d.ts +12 -0
  32. package/dist/addresses.d.ts.map +1 -0
  33. package/dist/clients/FairLaunchClient.d.ts +21 -0
  34. package/dist/clients/FairLaunchClient.d.ts.map +1 -0
  35. package/dist/clients/FastFlaunchClient.d.ts +25 -0
  36. package/dist/clients/FastFlaunchClient.d.ts.map +1 -0
  37. package/dist/clients/FlaunchClient.d.ts +10 -0
  38. package/dist/clients/FlaunchClient.d.ts.map +1 -0
  39. package/dist/clients/FlaunchPositionManagerClient.d.ts +89 -0
  40. package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -0
  41. package/dist/clients/MemecoinClient.d.ts +12 -0
  42. package/dist/clients/MemecoinClient.d.ts.map +1 -0
  43. package/dist/clients/Permit2Client.d.ts +13 -0
  44. package/dist/clients/Permit2Client.d.ts.map +1 -0
  45. package/dist/clients/PoolManagerClient.d.ts +32 -0
  46. package/dist/clients/PoolManagerClient.d.ts.map +1 -0
  47. package/dist/clients/QuoterClient.d.ts +12 -0
  48. package/dist/clients/QuoterClient.d.ts.map +1 -0
  49. package/dist/helpers/hex.d.ts +4 -0
  50. package/dist/helpers/hex.d.ts.map +1 -0
  51. package/dist/helpers/index.cjs +191 -0
  52. package/dist/helpers/index.cjs.map +1 -0
  53. package/dist/helpers/index.d.ts +3 -0
  54. package/dist/helpers/index.d.ts.map +1 -0
  55. package/dist/helpers/index.js +177 -0
  56. package/dist/helpers/index.js.map +1 -0
  57. package/dist/helpers/ipfs.d.ts +47 -0
  58. package/dist/helpers/ipfs.d.ts.map +1 -0
  59. package/dist/hooks/FlaunchPositionManagerHooks.d.ts +12 -0
  60. package/dist/hooks/FlaunchPositionManagerHooks.d.ts.map +1 -0
  61. package/dist/hooks/index.cjs +69 -0
  62. package/dist/hooks/index.cjs.map +1 -0
  63. package/dist/hooks/index.d.ts +2 -0
  64. package/dist/hooks/index.d.ts.map +1 -0
  65. package/dist/hooks/index.js +64 -0
  66. package/dist/hooks/index.js.map +1 -0
  67. package/dist/index.cjs.js +11498 -0
  68. package/dist/index.cjs.js.map +1 -0
  69. package/dist/index.d.ts +10 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.esm.js +11466 -0
  72. package/dist/index.esm.js.map +1 -0
  73. package/dist/index.umd.js +2 -0
  74. package/dist/index.umd.js.map +1 -0
  75. package/dist/sdk/FlaunchSDK.d.ts +121 -0
  76. package/dist/sdk/FlaunchSDK.d.ts.map +1 -0
  77. package/dist/types.d.ts +34 -0
  78. package/dist/types.d.ts.map +1 -0
  79. package/dist/utils/univ4.d.ts +20 -0
  80. package/dist/utils/univ4.d.ts.map +1 -0
  81. package/dist/utils/universalRouter.d.ts +74 -0
  82. package/dist/utils/universalRouter.d.ts.map +1 -0
  83. package/package.json +88 -0
@@ -0,0 +1,3023 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const FairLaunchAbi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "contract IPoolManager",
10
+ name: "_poolManager",
11
+ type: "address",
12
+ },
13
+ ],
14
+ stateMutability: "nonpayable",
15
+ type: "constructor",
16
+ },
17
+ { inputs: [], name: "CannotModifyLiquidityDuringFairLaunch", type: "error" },
18
+ { inputs: [], name: "CannotSellTokenDuringFairLaunch", type: "error" },
19
+ { inputs: [], name: "NotPositionManager", type: "error" },
20
+ {
21
+ anonymous: false,
22
+ inputs: [
23
+ {
24
+ indexed: true,
25
+ internalType: "PoolId",
26
+ name: "_poolId",
27
+ type: "bytes32",
28
+ },
29
+ {
30
+ indexed: false,
31
+ internalType: "uint256",
32
+ name: "_tokens",
33
+ type: "uint256",
34
+ },
35
+ {
36
+ indexed: false,
37
+ internalType: "uint256",
38
+ name: "_startsAt",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ indexed: false,
43
+ internalType: "uint256",
44
+ name: "_endsAt",
45
+ type: "uint256",
46
+ },
47
+ ],
48
+ name: "FairLaunchCreated",
49
+ type: "event",
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ internalType: "PoolId",
57
+ name: "_poolId",
58
+ type: "bytes32",
59
+ },
60
+ {
61
+ indexed: false,
62
+ internalType: "uint256",
63
+ name: "_revenue",
64
+ type: "uint256",
65
+ },
66
+ {
67
+ indexed: false,
68
+ internalType: "uint256",
69
+ name: "_supply",
70
+ type: "uint256",
71
+ },
72
+ {
73
+ indexed: false,
74
+ internalType: "uint256",
75
+ name: "_endedAt",
76
+ type: "uint256",
77
+ },
78
+ ],
79
+ name: "FairLaunchEnded",
80
+ type: "event",
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: "FAIR_LAUNCH_WINDOW",
85
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
86
+ stateMutability: "view",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ components: [
93
+ { internalType: "Currency", name: "currency0", type: "address" },
94
+ { internalType: "Currency", name: "currency1", type: "address" },
95
+ { internalType: "uint24", name: "fee", type: "uint24" },
96
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
97
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
98
+ ],
99
+ internalType: "struct PoolKey",
100
+ name: "_poolKey",
101
+ type: "tuple",
102
+ },
103
+ { internalType: "uint256", name: "_tokenFees", type: "uint256" },
104
+ { internalType: "bool", name: "_nativeIsZero", type: "bool" },
105
+ ],
106
+ name: "closePosition",
107
+ outputs: [
108
+ {
109
+ components: [
110
+ { internalType: "uint256", name: "startsAt", type: "uint256" },
111
+ { internalType: "uint256", name: "endsAt", type: "uint256" },
112
+ { internalType: "int24", name: "initialTick", type: "int24" },
113
+ { internalType: "uint256", name: "revenue", type: "uint256" },
114
+ { internalType: "uint256", name: "supply", type: "uint256" },
115
+ { internalType: "bool", name: "closed", type: "bool" },
116
+ ],
117
+ internalType: "struct FairLaunch.FairLaunchInfo",
118
+ name: "",
119
+ type: "tuple",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [
127
+ { internalType: "PoolId", name: "_poolId", type: "bytes32" },
128
+ { internalType: "int24", name: "_initialTick", type: "int24" },
129
+ { internalType: "uint256", name: "_flaunchesAt", type: "uint256" },
130
+ {
131
+ internalType: "uint256",
132
+ name: "_initialTokenFairLaunch",
133
+ type: "uint256",
134
+ },
135
+ ],
136
+ name: "createPosition",
137
+ outputs: [
138
+ {
139
+ components: [
140
+ { internalType: "uint256", name: "startsAt", type: "uint256" },
141
+ { internalType: "uint256", name: "endsAt", type: "uint256" },
142
+ { internalType: "int24", name: "initialTick", type: "int24" },
143
+ { internalType: "uint256", name: "revenue", type: "uint256" },
144
+ { internalType: "uint256", name: "supply", type: "uint256" },
145
+ { internalType: "bool", name: "closed", type: "bool" },
146
+ ],
147
+ internalType: "struct FairLaunch.FairLaunchInfo",
148
+ name: "",
149
+ type: "tuple",
150
+ },
151
+ ],
152
+ stateMutability: "nonpayable",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
157
+ name: "fairLaunchInfo",
158
+ outputs: [
159
+ {
160
+ components: [
161
+ { internalType: "uint256", name: "startsAt", type: "uint256" },
162
+ { internalType: "uint256", name: "endsAt", type: "uint256" },
163
+ { internalType: "int24", name: "initialTick", type: "int24" },
164
+ { internalType: "uint256", name: "revenue", type: "uint256" },
165
+ { internalType: "uint256", name: "supply", type: "uint256" },
166
+ { internalType: "bool", name: "closed", type: "bool" },
167
+ ],
168
+ internalType: "struct FairLaunch.FairLaunchInfo",
169
+ name: "",
170
+ type: "tuple",
171
+ },
172
+ ],
173
+ stateMutability: "view",
174
+ type: "function",
175
+ },
176
+ {
177
+ inputs: [
178
+ {
179
+ components: [
180
+ { internalType: "Currency", name: "currency0", type: "address" },
181
+ { internalType: "Currency", name: "currency1", type: "address" },
182
+ { internalType: "uint24", name: "fee", type: "uint24" },
183
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
184
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
185
+ ],
186
+ internalType: "struct PoolKey",
187
+ name: "_poolKey",
188
+ type: "tuple",
189
+ },
190
+ { internalType: "int256", name: "_amountSpecified", type: "int256" },
191
+ { internalType: "bool", name: "_nativeIsZero", type: "bool" },
192
+ ],
193
+ name: "fillFromPosition",
194
+ outputs: [
195
+ {
196
+ internalType: "BeforeSwapDelta",
197
+ name: "beforeSwapDelta_",
198
+ type: "int256",
199
+ },
200
+ { internalType: "BalanceDelta", name: "balanceDelta_", type: "int256" },
201
+ {
202
+ components: [
203
+ { internalType: "uint256", name: "startsAt", type: "uint256" },
204
+ { internalType: "uint256", name: "endsAt", type: "uint256" },
205
+ { internalType: "int24", name: "initialTick", type: "int24" },
206
+ { internalType: "uint256", name: "revenue", type: "uint256" },
207
+ { internalType: "uint256", name: "supply", type: "uint256" },
208
+ { internalType: "bool", name: "closed", type: "bool" },
209
+ ],
210
+ internalType: "struct FairLaunch.FairLaunchInfo",
211
+ name: "fairLaunchInfo_",
212
+ type: "tuple",
213
+ },
214
+ ],
215
+ stateMutability: "nonpayable",
216
+ type: "function",
217
+ },
218
+ {
219
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
220
+ name: "inFairLaunchWindow",
221
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
222
+ stateMutability: "view",
223
+ type: "function",
224
+ },
225
+ {
226
+ inputs: [
227
+ { internalType: "PoolId", name: "_poolId", type: "bytes32" },
228
+ { internalType: "int256", name: "_revenue", type: "int256" },
229
+ ],
230
+ name: "modifyRevenue",
231
+ outputs: [],
232
+ stateMutability: "nonpayable",
233
+ type: "function",
234
+ },
235
+ {
236
+ inputs: [],
237
+ name: "poolManager",
238
+ outputs: [
239
+ { internalType: "contract IPoolManager", name: "", type: "address" },
240
+ ],
241
+ stateMutability: "view",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [],
246
+ name: "positionManager",
247
+ outputs: [{ internalType: "address", name: "", type: "address" }],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ ];
252
+
253
+ const FastFlaunchZapAbi = [
254
+ {
255
+ inputs: [
256
+ {
257
+ internalType: "contract PositionManager",
258
+ name: "_positionManager",
259
+ type: "address",
260
+ },
261
+ ],
262
+ stateMutability: "nonpayable",
263
+ type: "constructor",
264
+ },
265
+ {
266
+ inputs: [],
267
+ name: "fairLaunchSupply",
268
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
269
+ stateMutability: "view",
270
+ type: "function",
271
+ },
272
+ {
273
+ inputs: [
274
+ {
275
+ components: [
276
+ { internalType: "string", name: "name", type: "string" },
277
+ { internalType: "string", name: "symbol", type: "string" },
278
+ { internalType: "string", name: "tokenUri", type: "string" },
279
+ { internalType: "address", name: "creator", type: "address" },
280
+ {
281
+ internalType: "uint24",
282
+ name: "creatorFeeAllocation",
283
+ type: "uint24",
284
+ },
285
+ ],
286
+ internalType: "struct FastFlaunchZap.FastFlaunchParams",
287
+ name: "_params",
288
+ type: "tuple",
289
+ },
290
+ ],
291
+ name: "flaunch",
292
+ outputs: [{ internalType: "address", name: "memecoin_", type: "address" }],
293
+ stateMutability: "nonpayable",
294
+ type: "function",
295
+ },
296
+ {
297
+ inputs: [],
298
+ name: "positionManager",
299
+ outputs: [
300
+ { internalType: "contract PositionManager", name: "", type: "address" },
301
+ ],
302
+ stateMutability: "view",
303
+ type: "function",
304
+ },
305
+ {
306
+ inputs: [],
307
+ name: "usdcMarketCap",
308
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
309
+ stateMutability: "view",
310
+ type: "function",
311
+ },
312
+ ];
313
+
314
+ const FlaunchPositionManagerAbi = [
315
+ {
316
+ inputs: [
317
+ {
318
+ components: [
319
+ { internalType: "address", name: "nativeToken", type: "address" },
320
+ {
321
+ internalType: "contract IPoolManager",
322
+ name: "poolManager",
323
+ type: "address",
324
+ },
325
+ {
326
+ components: [
327
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
328
+ { internalType: "uint24", name: "referrer", type: "uint24" },
329
+ { internalType: "uint24", name: "protocol", type: "uint24" },
330
+ { internalType: "bool", name: "active", type: "bool" },
331
+ ],
332
+ internalType: "struct FeeDistributor.FeeDistribution",
333
+ name: "feeDistribution",
334
+ type: "tuple",
335
+ },
336
+ {
337
+ internalType: "contract IInitialPrice",
338
+ name: "initialPrice",
339
+ type: "address",
340
+ },
341
+ { internalType: "address", name: "protocolOwner", type: "address" },
342
+ {
343
+ internalType: "address",
344
+ name: "protocolFeeRecipient",
345
+ type: "address",
346
+ },
347
+ { internalType: "address", name: "flayGovernance", type: "address" },
348
+ {
349
+ internalType: "contract FeeExemptions",
350
+ name: "feeExemptions",
351
+ type: "address",
352
+ },
353
+ ],
354
+ internalType: "struct PositionManager.ConstructorParams",
355
+ name: "params",
356
+ type: "tuple",
357
+ },
358
+ ],
359
+ stateMutability: "nonpayable",
360
+ type: "constructor",
361
+ },
362
+ { inputs: [], name: "AlreadyInitialized", type: "error" },
363
+ { inputs: [], name: "CallerIsNotBidWall", type: "error" },
364
+ {
365
+ inputs: [{ internalType: "address", name: "_caller", type: "address" }],
366
+ name: "CallerNotCreator",
367
+ type: "error",
368
+ },
369
+ { inputs: [], name: "CannotBeInitializedDirectly", type: "error" },
370
+ { inputs: [], name: "CannotModifyLiquidityDuringFairLaunch", type: "error" },
371
+ { inputs: [], name: "CannotSellTokenDuringFairLaunch", type: "error" },
372
+ { inputs: [], name: "HookNotImplemented", type: "error" },
373
+ {
374
+ inputs: [
375
+ { internalType: "uint256", name: "_paid", type: "uint256" },
376
+ { internalType: "uint256", name: "_required", type: "uint256" },
377
+ ],
378
+ name: "InsufficientFlaunchFee",
379
+ type: "error",
380
+ },
381
+ { inputs: [], name: "InvalidPool", type: "error" },
382
+ { inputs: [], name: "LockFailure", type: "error" },
383
+ { inputs: [], name: "NewOwnerIsZeroAddress", type: "error" },
384
+ { inputs: [], name: "NoHandoverRequest", type: "error" },
385
+ { inputs: [], name: "NotPoolManager", type: "error" },
386
+ { inputs: [], name: "NotSelf", type: "error" },
387
+ { inputs: [], name: "ProtocolFeeInvalid", type: "error" },
388
+ { inputs: [], name: "RecipientZeroAddress", type: "error" },
389
+ { inputs: [], name: "ReferrerFeeInvalid", type: "error" },
390
+ { inputs: [], name: "SwapFeeInvalid", type: "error" },
391
+ {
392
+ inputs: [
393
+ { internalType: "uint256", name: "_flaunchesAt", type: "uint256" },
394
+ ],
395
+ name: "TokenNotFlaunched",
396
+ type: "error",
397
+ },
398
+ { inputs: [], name: "Unauthorized", type: "error" },
399
+ {
400
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
401
+ name: "UnknownPool",
402
+ type: "error",
403
+ },
404
+ {
405
+ anonymous: false,
406
+ inputs: [
407
+ {
408
+ indexed: true,
409
+ internalType: "PoolId",
410
+ name: "_poolId",
411
+ type: "bytes32",
412
+ },
413
+ {
414
+ indexed: false,
415
+ internalType: "uint24",
416
+ name: "_allocation",
417
+ type: "uint24",
418
+ },
419
+ ],
420
+ name: "CreatorFeeAllocationUpdated",
421
+ type: "event",
422
+ },
423
+ {
424
+ anonymous: false,
425
+ inputs: [
426
+ {
427
+ indexed: true,
428
+ internalType: "PoolId",
429
+ name: "_poolId",
430
+ type: "bytes32",
431
+ },
432
+ {
433
+ indexed: false,
434
+ internalType: "address",
435
+ name: "_payee",
436
+ type: "address",
437
+ },
438
+ {
439
+ indexed: false,
440
+ internalType: "address",
441
+ name: "_token",
442
+ type: "address",
443
+ },
444
+ {
445
+ indexed: false,
446
+ internalType: "uint256",
447
+ name: "_amount",
448
+ type: "uint256",
449
+ },
450
+ ],
451
+ name: "Deposit",
452
+ type: "event",
453
+ },
454
+ {
455
+ anonymous: false,
456
+ inputs: [
457
+ {
458
+ indexed: false,
459
+ internalType: "address",
460
+ name: "_feeCalculator",
461
+ type: "address",
462
+ },
463
+ ],
464
+ name: "FairLaunchFeeCalculatorUpdated",
465
+ type: "event",
466
+ },
467
+ {
468
+ anonymous: false,
469
+ inputs: [
470
+ {
471
+ indexed: false,
472
+ internalType: "address",
473
+ name: "_feeCalculator",
474
+ type: "address",
475
+ },
476
+ ],
477
+ name: "FeeCalculatorUpdated",
478
+ type: "event",
479
+ },
480
+ {
481
+ anonymous: false,
482
+ inputs: [
483
+ {
484
+ components: [
485
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
486
+ { internalType: "uint24", name: "referrer", type: "uint24" },
487
+ { internalType: "uint24", name: "protocol", type: "uint24" },
488
+ { internalType: "bool", name: "active", type: "bool" },
489
+ ],
490
+ indexed: false,
491
+ internalType: "struct FeeDistributor.FeeDistribution",
492
+ name: "_feeDistribution",
493
+ type: "tuple",
494
+ },
495
+ ],
496
+ name: "FeeDistributionUpdated",
497
+ type: "event",
498
+ },
499
+ {
500
+ anonymous: false,
501
+ inputs: [
502
+ {
503
+ indexed: false,
504
+ internalType: "address",
505
+ name: "_initialPrice",
506
+ type: "address",
507
+ },
508
+ ],
509
+ name: "InitialPriceUpdated",
510
+ type: "event",
511
+ },
512
+ {
513
+ anonymous: false,
514
+ inputs: [
515
+ {
516
+ indexed: true,
517
+ internalType: "address",
518
+ name: "pendingOwner",
519
+ type: "address",
520
+ },
521
+ ],
522
+ name: "OwnershipHandoverCanceled",
523
+ type: "event",
524
+ },
525
+ {
526
+ anonymous: false,
527
+ inputs: [
528
+ {
529
+ indexed: true,
530
+ internalType: "address",
531
+ name: "pendingOwner",
532
+ type: "address",
533
+ },
534
+ ],
535
+ name: "OwnershipHandoverRequested",
536
+ type: "event",
537
+ },
538
+ {
539
+ anonymous: false,
540
+ inputs: [
541
+ {
542
+ indexed: true,
543
+ internalType: "address",
544
+ name: "oldOwner",
545
+ type: "address",
546
+ },
547
+ {
548
+ indexed: true,
549
+ internalType: "address",
550
+ name: "newOwner",
551
+ type: "address",
552
+ },
553
+ ],
554
+ name: "OwnershipTransferred",
555
+ type: "event",
556
+ },
557
+ {
558
+ anonymous: false,
559
+ inputs: [
560
+ {
561
+ indexed: true,
562
+ internalType: "PoolId",
563
+ name: "_poolId",
564
+ type: "bytes32",
565
+ },
566
+ {
567
+ indexed: false,
568
+ internalType: "address",
569
+ name: "_memecoin",
570
+ type: "address",
571
+ },
572
+ {
573
+ indexed: false,
574
+ internalType: "address",
575
+ name: "_memecoinTreasury",
576
+ type: "address",
577
+ },
578
+ {
579
+ indexed: false,
580
+ internalType: "uint256",
581
+ name: "_tokenId",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ indexed: false,
586
+ internalType: "bool",
587
+ name: "_currencyFlipped",
588
+ type: "bool",
589
+ },
590
+ {
591
+ indexed: false,
592
+ internalType: "uint256",
593
+ name: "_flaunchFee",
594
+ type: "uint256",
595
+ },
596
+ {
597
+ components: [
598
+ { internalType: "string", name: "name", type: "string" },
599
+ { internalType: "string", name: "symbol", type: "string" },
600
+ { internalType: "string", name: "tokenUri", type: "string" },
601
+ {
602
+ internalType: "uint256",
603
+ name: "initialTokenFairLaunch",
604
+ type: "uint256",
605
+ },
606
+ { internalType: "uint256", name: "premineAmount", type: "uint256" },
607
+ { internalType: "address", name: "creator", type: "address" },
608
+ {
609
+ internalType: "uint24",
610
+ name: "creatorFeeAllocation",
611
+ type: "uint24",
612
+ },
613
+ { internalType: "uint256", name: "flaunchAt", type: "uint256" },
614
+ { internalType: "bytes", name: "initialPriceParams", type: "bytes" },
615
+ { internalType: "bytes", name: "feeCalculatorParams", type: "bytes" },
616
+ ],
617
+ indexed: false,
618
+ internalType: "struct PositionManager.FlaunchParams",
619
+ name: "_params",
620
+ type: "tuple",
621
+ },
622
+ ],
623
+ name: "PoolCreated",
624
+ type: "event",
625
+ },
626
+ {
627
+ anonymous: false,
628
+ inputs: [
629
+ {
630
+ indexed: true,
631
+ internalType: "PoolId",
632
+ name: "_poolId",
633
+ type: "bytes32",
634
+ },
635
+ {
636
+ components: [
637
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
638
+ { internalType: "uint24", name: "referrer", type: "uint24" },
639
+ { internalType: "uint24", name: "protocol", type: "uint24" },
640
+ { internalType: "bool", name: "active", type: "bool" },
641
+ ],
642
+ indexed: false,
643
+ internalType: "struct FeeDistributor.FeeDistribution",
644
+ name: "_feeDistribution",
645
+ type: "tuple",
646
+ },
647
+ ],
648
+ name: "PoolFeeDistributionUpdated",
649
+ type: "event",
650
+ },
651
+ {
652
+ anonymous: false,
653
+ inputs: [
654
+ {
655
+ indexed: true,
656
+ internalType: "PoolId",
657
+ name: "_poolId",
658
+ type: "bytes32",
659
+ },
660
+ {
661
+ indexed: false,
662
+ internalType: "uint256",
663
+ name: "_donateAmount",
664
+ type: "uint256",
665
+ },
666
+ {
667
+ indexed: false,
668
+ internalType: "uint256",
669
+ name: "_creatorAmount",
670
+ type: "uint256",
671
+ },
672
+ {
673
+ indexed: false,
674
+ internalType: "uint256",
675
+ name: "_bidWallAmount",
676
+ type: "uint256",
677
+ },
678
+ {
679
+ indexed: false,
680
+ internalType: "uint256",
681
+ name: "_governanceAmount",
682
+ type: "uint256",
683
+ },
684
+ {
685
+ indexed: false,
686
+ internalType: "uint256",
687
+ name: "_protocolAmount",
688
+ type: "uint256",
689
+ },
690
+ ],
691
+ name: "PoolFeesDistributed",
692
+ type: "event",
693
+ },
694
+ {
695
+ anonymous: false,
696
+ inputs: [
697
+ {
698
+ indexed: true,
699
+ internalType: "PoolId",
700
+ name: "_poolId",
701
+ type: "bytes32",
702
+ },
703
+ {
704
+ indexed: false,
705
+ internalType: "uint256",
706
+ name: "_amount0",
707
+ type: "uint256",
708
+ },
709
+ {
710
+ indexed: false,
711
+ internalType: "uint256",
712
+ name: "_amount1",
713
+ type: "uint256",
714
+ },
715
+ ],
716
+ name: "PoolFeesReceived",
717
+ type: "event",
718
+ },
719
+ {
720
+ anonymous: false,
721
+ inputs: [
722
+ {
723
+ indexed: true,
724
+ internalType: "PoolId",
725
+ name: "_poolId",
726
+ type: "bytes32",
727
+ },
728
+ {
729
+ indexed: false,
730
+ internalType: "bool",
731
+ name: "zeroForOne",
732
+ type: "bool",
733
+ },
734
+ {
735
+ indexed: false,
736
+ internalType: "uint256",
737
+ name: "_amount0",
738
+ type: "uint256",
739
+ },
740
+ {
741
+ indexed: false,
742
+ internalType: "uint256",
743
+ name: "_amount1",
744
+ type: "uint256",
745
+ },
746
+ ],
747
+ name: "PoolFeesSwapped",
748
+ type: "event",
749
+ },
750
+ {
751
+ anonymous: false,
752
+ inputs: [
753
+ {
754
+ indexed: true,
755
+ internalType: "PoolId",
756
+ name: "_poolId",
757
+ type: "bytes32",
758
+ },
759
+ {
760
+ indexed: false,
761
+ internalType: "int256",
762
+ name: "_premineAmount",
763
+ type: "int256",
764
+ },
765
+ ],
766
+ name: "PoolPremine",
767
+ type: "event",
768
+ },
769
+ {
770
+ anonymous: false,
771
+ inputs: [
772
+ {
773
+ indexed: true,
774
+ internalType: "PoolId",
775
+ name: "_poolId",
776
+ type: "bytes32",
777
+ },
778
+ {
779
+ indexed: false,
780
+ internalType: "uint256",
781
+ name: "_flaunchesAt",
782
+ type: "uint256",
783
+ },
784
+ ],
785
+ name: "PoolScheduled",
786
+ type: "event",
787
+ },
788
+ {
789
+ anonymous: false,
790
+ inputs: [
791
+ {
792
+ indexed: true,
793
+ internalType: "PoolId",
794
+ name: "_poolId",
795
+ type: "bytes32",
796
+ },
797
+ {
798
+ indexed: false,
799
+ internalType: "uint160",
800
+ name: "_sqrtPriceX96",
801
+ type: "uint160",
802
+ },
803
+ { indexed: false, internalType: "int24", name: "_tick", type: "int24" },
804
+ {
805
+ indexed: false,
806
+ internalType: "uint24",
807
+ name: "_protocolFee",
808
+ type: "uint24",
809
+ },
810
+ {
811
+ indexed: false,
812
+ internalType: "uint24",
813
+ name: "_swapFee",
814
+ type: "uint24",
815
+ },
816
+ {
817
+ indexed: false,
818
+ internalType: "uint128",
819
+ name: "_liquidity",
820
+ type: "uint128",
821
+ },
822
+ ],
823
+ name: "PoolStateUpdated",
824
+ type: "event",
825
+ },
826
+ {
827
+ anonymous: false,
828
+ inputs: [
829
+ {
830
+ indexed: true,
831
+ internalType: "PoolId",
832
+ name: "poolId",
833
+ type: "bytes32",
834
+ },
835
+ {
836
+ indexed: false,
837
+ internalType: "int256",
838
+ name: "flAmount0",
839
+ type: "int256",
840
+ },
841
+ {
842
+ indexed: false,
843
+ internalType: "int256",
844
+ name: "flAmount1",
845
+ type: "int256",
846
+ },
847
+ {
848
+ indexed: false,
849
+ internalType: "int256",
850
+ name: "flFee0",
851
+ type: "int256",
852
+ },
853
+ {
854
+ indexed: false,
855
+ internalType: "int256",
856
+ name: "flFee1",
857
+ type: "int256",
858
+ },
859
+ {
860
+ indexed: false,
861
+ internalType: "int256",
862
+ name: "ispAmount0",
863
+ type: "int256",
864
+ },
865
+ {
866
+ indexed: false,
867
+ internalType: "int256",
868
+ name: "ispAmount1",
869
+ type: "int256",
870
+ },
871
+ {
872
+ indexed: false,
873
+ internalType: "int256",
874
+ name: "ispFee0",
875
+ type: "int256",
876
+ },
877
+ {
878
+ indexed: false,
879
+ internalType: "int256",
880
+ name: "ispFee1",
881
+ type: "int256",
882
+ },
883
+ {
884
+ indexed: false,
885
+ internalType: "int256",
886
+ name: "uniAmount0",
887
+ type: "int256",
888
+ },
889
+ {
890
+ indexed: false,
891
+ internalType: "int256",
892
+ name: "uniAmount1",
893
+ type: "int256",
894
+ },
895
+ {
896
+ indexed: false,
897
+ internalType: "int256",
898
+ name: "uniFee0",
899
+ type: "int256",
900
+ },
901
+ {
902
+ indexed: false,
903
+ internalType: "int256",
904
+ name: "uniFee1",
905
+ type: "int256",
906
+ },
907
+ ],
908
+ name: "PoolSwap",
909
+ type: "event",
910
+ },
911
+ {
912
+ anonymous: false,
913
+ inputs: [
914
+ {
915
+ indexed: false,
916
+ internalType: "address",
917
+ name: "_referralEscrow",
918
+ type: "address",
919
+ },
920
+ ],
921
+ name: "ReferralEscrowUpdated",
922
+ type: "event",
923
+ },
924
+ {
925
+ anonymous: false,
926
+ inputs: [
927
+ {
928
+ indexed: true,
929
+ internalType: "PoolId",
930
+ name: "_poolId",
931
+ type: "bytes32",
932
+ },
933
+ {
934
+ indexed: false,
935
+ internalType: "address",
936
+ name: "_recipient",
937
+ type: "address",
938
+ },
939
+ {
940
+ indexed: false,
941
+ internalType: "address",
942
+ name: "_token",
943
+ type: "address",
944
+ },
945
+ {
946
+ indexed: false,
947
+ internalType: "uint256",
948
+ name: "_amount",
949
+ type: "uint256",
950
+ },
951
+ ],
952
+ name: "ReferrerFeePaid",
953
+ type: "event",
954
+ },
955
+ {
956
+ anonymous: false,
957
+ inputs: [
958
+ {
959
+ indexed: false,
960
+ internalType: "address",
961
+ name: "_sender",
962
+ type: "address",
963
+ },
964
+ {
965
+ indexed: false,
966
+ internalType: "address",
967
+ name: "_recipient",
968
+ type: "address",
969
+ },
970
+ {
971
+ indexed: false,
972
+ internalType: "address",
973
+ name: "_token",
974
+ type: "address",
975
+ },
976
+ {
977
+ indexed: false,
978
+ internalType: "uint256",
979
+ name: "_amount",
980
+ type: "uint256",
981
+ },
982
+ ],
983
+ name: "Withdrawal",
984
+ type: "event",
985
+ },
986
+ {
987
+ inputs: [],
988
+ name: "MAX_PROTOCOL_ALLOCATION",
989
+ outputs: [{ internalType: "uint24", name: "", type: "uint24" }],
990
+ stateMutability: "view",
991
+ type: "function",
992
+ },
993
+ {
994
+ inputs: [],
995
+ name: "MIN_DISTRIBUTE_THRESHOLD",
996
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
997
+ stateMutability: "view",
998
+ type: "function",
999
+ },
1000
+ {
1001
+ inputs: [],
1002
+ name: "actionManager",
1003
+ outputs: [
1004
+ {
1005
+ internalType: "contract TreasuryActionManager",
1006
+ name: "",
1007
+ type: "address",
1008
+ },
1009
+ ],
1010
+ stateMutability: "view",
1011
+ type: "function",
1012
+ },
1013
+ {
1014
+ inputs: [
1015
+ { internalType: "address", name: "_sender", type: "address" },
1016
+ {
1017
+ components: [
1018
+ { internalType: "Currency", name: "currency0", type: "address" },
1019
+ { internalType: "Currency", name: "currency1", type: "address" },
1020
+ { internalType: "uint24", name: "fee", type: "uint24" },
1021
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1022
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1023
+ ],
1024
+ internalType: "struct PoolKey",
1025
+ name: "_key",
1026
+ type: "tuple",
1027
+ },
1028
+ {
1029
+ components: [
1030
+ { internalType: "int24", name: "tickLower", type: "int24" },
1031
+ { internalType: "int24", name: "tickUpper", type: "int24" },
1032
+ { internalType: "int256", name: "liquidityDelta", type: "int256" },
1033
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
1034
+ ],
1035
+ internalType: "struct IPoolManager.ModifyLiquidityParams",
1036
+ name: "",
1037
+ type: "tuple",
1038
+ },
1039
+ { internalType: "BalanceDelta", name: "_delta", type: "int256" },
1040
+ { internalType: "BalanceDelta", name: "_feesAccrued", type: "int256" },
1041
+ { internalType: "bytes", name: "", type: "bytes" },
1042
+ ],
1043
+ name: "afterAddLiquidity",
1044
+ outputs: [
1045
+ { internalType: "bytes4", name: "selector_", type: "bytes4" },
1046
+ { internalType: "BalanceDelta", name: "", type: "int256" },
1047
+ ],
1048
+ stateMutability: "nonpayable",
1049
+ type: "function",
1050
+ },
1051
+ {
1052
+ inputs: [
1053
+ { internalType: "address", name: "_sender", type: "address" },
1054
+ {
1055
+ components: [
1056
+ { internalType: "Currency", name: "currency0", type: "address" },
1057
+ { internalType: "Currency", name: "currency1", type: "address" },
1058
+ { internalType: "uint24", name: "fee", type: "uint24" },
1059
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1060
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1061
+ ],
1062
+ internalType: "struct PoolKey",
1063
+ name: "_key",
1064
+ type: "tuple",
1065
+ },
1066
+ { internalType: "uint256", name: "_amount0", type: "uint256" },
1067
+ { internalType: "uint256", name: "_amount1", type: "uint256" },
1068
+ { internalType: "bytes", name: "", type: "bytes" },
1069
+ ],
1070
+ name: "afterDonate",
1071
+ outputs: [{ internalType: "bytes4", name: "selector_", type: "bytes4" }],
1072
+ stateMutability: "nonpayable",
1073
+ type: "function",
1074
+ },
1075
+ {
1076
+ inputs: [
1077
+ { internalType: "address", name: "", type: "address" },
1078
+ {
1079
+ components: [
1080
+ { internalType: "Currency", name: "currency0", type: "address" },
1081
+ { internalType: "Currency", name: "currency1", type: "address" },
1082
+ { internalType: "uint24", name: "fee", type: "uint24" },
1083
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1084
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1085
+ ],
1086
+ internalType: "struct PoolKey",
1087
+ name: "",
1088
+ type: "tuple",
1089
+ },
1090
+ { internalType: "uint160", name: "", type: "uint160" },
1091
+ { internalType: "int24", name: "", type: "int24" },
1092
+ ],
1093
+ name: "afterInitialize",
1094
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
1095
+ stateMutability: "nonpayable",
1096
+ type: "function",
1097
+ },
1098
+ {
1099
+ inputs: [
1100
+ { internalType: "address", name: "_sender", type: "address" },
1101
+ {
1102
+ components: [
1103
+ { internalType: "Currency", name: "currency0", type: "address" },
1104
+ { internalType: "Currency", name: "currency1", type: "address" },
1105
+ { internalType: "uint24", name: "fee", type: "uint24" },
1106
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1107
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1108
+ ],
1109
+ internalType: "struct PoolKey",
1110
+ name: "_key",
1111
+ type: "tuple",
1112
+ },
1113
+ {
1114
+ components: [
1115
+ { internalType: "int24", name: "tickLower", type: "int24" },
1116
+ { internalType: "int24", name: "tickUpper", type: "int24" },
1117
+ { internalType: "int256", name: "liquidityDelta", type: "int256" },
1118
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
1119
+ ],
1120
+ internalType: "struct IPoolManager.ModifyLiquidityParams",
1121
+ name: "",
1122
+ type: "tuple",
1123
+ },
1124
+ { internalType: "BalanceDelta", name: "_delta", type: "int256" },
1125
+ { internalType: "BalanceDelta", name: "_feesAccrued", type: "int256" },
1126
+ { internalType: "bytes", name: "", type: "bytes" },
1127
+ ],
1128
+ name: "afterRemoveLiquidity",
1129
+ outputs: [
1130
+ { internalType: "bytes4", name: "selector_", type: "bytes4" },
1131
+ { internalType: "BalanceDelta", name: "", type: "int256" },
1132
+ ],
1133
+ stateMutability: "nonpayable",
1134
+ type: "function",
1135
+ },
1136
+ {
1137
+ inputs: [
1138
+ { internalType: "address", name: "_sender", type: "address" },
1139
+ {
1140
+ components: [
1141
+ { internalType: "Currency", name: "currency0", type: "address" },
1142
+ { internalType: "Currency", name: "currency1", type: "address" },
1143
+ { internalType: "uint24", name: "fee", type: "uint24" },
1144
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1145
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1146
+ ],
1147
+ internalType: "struct PoolKey",
1148
+ name: "_key",
1149
+ type: "tuple",
1150
+ },
1151
+ {
1152
+ components: [
1153
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
1154
+ { internalType: "int256", name: "amountSpecified", type: "int256" },
1155
+ {
1156
+ internalType: "uint160",
1157
+ name: "sqrtPriceLimitX96",
1158
+ type: "uint160",
1159
+ },
1160
+ ],
1161
+ internalType: "struct IPoolManager.SwapParams",
1162
+ name: "_params",
1163
+ type: "tuple",
1164
+ },
1165
+ { internalType: "BalanceDelta", name: "_delta", type: "int256" },
1166
+ { internalType: "bytes", name: "_hookData", type: "bytes" },
1167
+ ],
1168
+ name: "afterSwap",
1169
+ outputs: [
1170
+ { internalType: "bytes4", name: "selector_", type: "bytes4" },
1171
+ { internalType: "int128", name: "hookDeltaUnspecified_", type: "int128" },
1172
+ ],
1173
+ stateMutability: "nonpayable",
1174
+ type: "function",
1175
+ },
1176
+ {
1177
+ inputs: [{ internalType: "address", name: "_recipient", type: "address" }],
1178
+ name: "balances",
1179
+ outputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
1180
+ stateMutability: "view",
1181
+ type: "function",
1182
+ },
1183
+ {
1184
+ inputs: [
1185
+ { internalType: "address", name: "_sender", type: "address" },
1186
+ {
1187
+ components: [
1188
+ { internalType: "Currency", name: "currency0", type: "address" },
1189
+ { internalType: "Currency", name: "currency1", type: "address" },
1190
+ { internalType: "uint24", name: "fee", type: "uint24" },
1191
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1192
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1193
+ ],
1194
+ internalType: "struct PoolKey",
1195
+ name: "_key",
1196
+ type: "tuple",
1197
+ },
1198
+ {
1199
+ components: [
1200
+ { internalType: "int24", name: "tickLower", type: "int24" },
1201
+ { internalType: "int24", name: "tickUpper", type: "int24" },
1202
+ { internalType: "int256", name: "liquidityDelta", type: "int256" },
1203
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
1204
+ ],
1205
+ internalType: "struct IPoolManager.ModifyLiquidityParams",
1206
+ name: "",
1207
+ type: "tuple",
1208
+ },
1209
+ { internalType: "bytes", name: "", type: "bytes" },
1210
+ ],
1211
+ name: "beforeAddLiquidity",
1212
+ outputs: [{ internalType: "bytes4", name: "selector_", type: "bytes4" }],
1213
+ stateMutability: "view",
1214
+ type: "function",
1215
+ },
1216
+ {
1217
+ inputs: [
1218
+ { internalType: "address", name: "", type: "address" },
1219
+ {
1220
+ components: [
1221
+ { internalType: "Currency", name: "currency0", type: "address" },
1222
+ { internalType: "Currency", name: "currency1", type: "address" },
1223
+ { internalType: "uint24", name: "fee", type: "uint24" },
1224
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1225
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1226
+ ],
1227
+ internalType: "struct PoolKey",
1228
+ name: "",
1229
+ type: "tuple",
1230
+ },
1231
+ { internalType: "uint256", name: "", type: "uint256" },
1232
+ { internalType: "uint256", name: "", type: "uint256" },
1233
+ { internalType: "bytes", name: "", type: "bytes" },
1234
+ ],
1235
+ name: "beforeDonate",
1236
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
1237
+ stateMutability: "nonpayable",
1238
+ type: "function",
1239
+ },
1240
+ {
1241
+ inputs: [
1242
+ { internalType: "address", name: "", type: "address" },
1243
+ {
1244
+ components: [
1245
+ { internalType: "Currency", name: "currency0", type: "address" },
1246
+ { internalType: "Currency", name: "currency1", type: "address" },
1247
+ { internalType: "uint24", name: "fee", type: "uint24" },
1248
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1249
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1250
+ ],
1251
+ internalType: "struct PoolKey",
1252
+ name: "",
1253
+ type: "tuple",
1254
+ },
1255
+ { internalType: "uint160", name: "", type: "uint160" },
1256
+ ],
1257
+ name: "beforeInitialize",
1258
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
1259
+ stateMutability: "view",
1260
+ type: "function",
1261
+ },
1262
+ {
1263
+ inputs: [
1264
+ { internalType: "address", name: "_sender", type: "address" },
1265
+ {
1266
+ components: [
1267
+ { internalType: "Currency", name: "currency0", type: "address" },
1268
+ { internalType: "Currency", name: "currency1", type: "address" },
1269
+ { internalType: "uint24", name: "fee", type: "uint24" },
1270
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1271
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1272
+ ],
1273
+ internalType: "struct PoolKey",
1274
+ name: "_key",
1275
+ type: "tuple",
1276
+ },
1277
+ {
1278
+ components: [
1279
+ { internalType: "int24", name: "tickLower", type: "int24" },
1280
+ { internalType: "int24", name: "tickUpper", type: "int24" },
1281
+ { internalType: "int256", name: "liquidityDelta", type: "int256" },
1282
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
1283
+ ],
1284
+ internalType: "struct IPoolManager.ModifyLiquidityParams",
1285
+ name: "",
1286
+ type: "tuple",
1287
+ },
1288
+ { internalType: "bytes", name: "", type: "bytes" },
1289
+ ],
1290
+ name: "beforeRemoveLiquidity",
1291
+ outputs: [{ internalType: "bytes4", name: "selector_", type: "bytes4" }],
1292
+ stateMutability: "view",
1293
+ type: "function",
1294
+ },
1295
+ {
1296
+ inputs: [
1297
+ { internalType: "address", name: "_sender", type: "address" },
1298
+ {
1299
+ components: [
1300
+ { internalType: "Currency", name: "currency0", type: "address" },
1301
+ { internalType: "Currency", name: "currency1", type: "address" },
1302
+ { internalType: "uint24", name: "fee", type: "uint24" },
1303
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1304
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1305
+ ],
1306
+ internalType: "struct PoolKey",
1307
+ name: "_key",
1308
+ type: "tuple",
1309
+ },
1310
+ {
1311
+ components: [
1312
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
1313
+ { internalType: "int256", name: "amountSpecified", type: "int256" },
1314
+ {
1315
+ internalType: "uint160",
1316
+ name: "sqrtPriceLimitX96",
1317
+ type: "uint160",
1318
+ },
1319
+ ],
1320
+ internalType: "struct IPoolManager.SwapParams",
1321
+ name: "_params",
1322
+ type: "tuple",
1323
+ },
1324
+ { internalType: "bytes", name: "_hookData", type: "bytes" },
1325
+ ],
1326
+ name: "beforeSwap",
1327
+ outputs: [
1328
+ { internalType: "bytes4", name: "selector_", type: "bytes4" },
1329
+ {
1330
+ internalType: "BeforeSwapDelta",
1331
+ name: "beforeSwapDelta_",
1332
+ type: "int256",
1333
+ },
1334
+ { internalType: "uint24", name: "", type: "uint24" },
1335
+ ],
1336
+ stateMutability: "nonpayable",
1337
+ type: "function",
1338
+ },
1339
+ {
1340
+ inputs: [],
1341
+ name: "bidWall",
1342
+ outputs: [{ internalType: "contract BidWall", name: "", type: "address" }],
1343
+ stateMutability: "view",
1344
+ type: "function",
1345
+ },
1346
+ {
1347
+ inputs: [],
1348
+ name: "cancelOwnershipHandover",
1349
+ outputs: [],
1350
+ stateMutability: "payable",
1351
+ type: "function",
1352
+ },
1353
+ {
1354
+ inputs: [
1355
+ {
1356
+ components: [
1357
+ { internalType: "Currency", name: "currency0", type: "address" },
1358
+ { internalType: "Currency", name: "currency1", type: "address" },
1359
+ { internalType: "uint24", name: "fee", type: "uint24" },
1360
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1361
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1362
+ ],
1363
+ internalType: "struct PoolKey",
1364
+ name: "_key",
1365
+ type: "tuple",
1366
+ },
1367
+ ],
1368
+ name: "closeBidWall",
1369
+ outputs: [],
1370
+ stateMutability: "nonpayable",
1371
+ type: "function",
1372
+ },
1373
+ {
1374
+ inputs: [
1375
+ { internalType: "address", name: "pendingOwner", type: "address" },
1376
+ ],
1377
+ name: "completeOwnershipHandover",
1378
+ outputs: [],
1379
+ stateMutability: "payable",
1380
+ type: "function",
1381
+ },
1382
+ {
1383
+ inputs: [],
1384
+ name: "fairLaunch",
1385
+ outputs: [
1386
+ { internalType: "contract FairLaunch", name: "", type: "address" },
1387
+ ],
1388
+ stateMutability: "view",
1389
+ type: "function",
1390
+ },
1391
+ {
1392
+ inputs: [],
1393
+ name: "fairLaunchFeeCalculator",
1394
+ outputs: [
1395
+ { internalType: "contract IFeeCalculator", name: "", type: "address" },
1396
+ ],
1397
+ stateMutability: "view",
1398
+ type: "function",
1399
+ },
1400
+ {
1401
+ inputs: [],
1402
+ name: "feeCalculator",
1403
+ outputs: [
1404
+ { internalType: "contract IFeeCalculator", name: "", type: "address" },
1405
+ ],
1406
+ stateMutability: "view",
1407
+ type: "function",
1408
+ },
1409
+ {
1410
+ inputs: [],
1411
+ name: "feeExemptions",
1412
+ outputs: [
1413
+ { internalType: "contract FeeExemptions", name: "", type: "address" },
1414
+ ],
1415
+ stateMutability: "view",
1416
+ type: "function",
1417
+ },
1418
+ {
1419
+ inputs: [
1420
+ { internalType: "PoolId", name: "_poolId", type: "bytes32" },
1421
+ { internalType: "uint256", name: "_amount", type: "uint256" },
1422
+ ],
1423
+ name: "feeSplit",
1424
+ outputs: [
1425
+ { internalType: "uint256", name: "bidWall_", type: "uint256" },
1426
+ { internalType: "uint256", name: "creator_", type: "uint256" },
1427
+ { internalType: "uint256", name: "protocol_", type: "uint256" },
1428
+ ],
1429
+ stateMutability: "view",
1430
+ type: "function",
1431
+ },
1432
+ {
1433
+ inputs: [
1434
+ {
1435
+ components: [
1436
+ { internalType: "string", name: "name", type: "string" },
1437
+ { internalType: "string", name: "symbol", type: "string" },
1438
+ { internalType: "string", name: "tokenUri", type: "string" },
1439
+ {
1440
+ internalType: "uint256",
1441
+ name: "initialTokenFairLaunch",
1442
+ type: "uint256",
1443
+ },
1444
+ { internalType: "uint256", name: "premineAmount", type: "uint256" },
1445
+ { internalType: "address", name: "creator", type: "address" },
1446
+ {
1447
+ internalType: "uint24",
1448
+ name: "creatorFeeAllocation",
1449
+ type: "uint24",
1450
+ },
1451
+ { internalType: "uint256", name: "flaunchAt", type: "uint256" },
1452
+ { internalType: "bytes", name: "initialPriceParams", type: "bytes" },
1453
+ { internalType: "bytes", name: "feeCalculatorParams", type: "bytes" },
1454
+ ],
1455
+ internalType: "struct PositionManager.FlaunchParams",
1456
+ name: "_params",
1457
+ type: "tuple",
1458
+ },
1459
+ ],
1460
+ name: "flaunch",
1461
+ outputs: [{ internalType: "address", name: "memecoin_", type: "address" }],
1462
+ stateMutability: "payable",
1463
+ type: "function",
1464
+ },
1465
+ {
1466
+ inputs: [],
1467
+ name: "flaunchContract",
1468
+ outputs: [{ internalType: "contract IFlaunch", name: "", type: "address" }],
1469
+ stateMutability: "view",
1470
+ type: "function",
1471
+ },
1472
+ {
1473
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
1474
+ name: "flaunchesAt",
1475
+ outputs: [
1476
+ { internalType: "uint256", name: "_flaunchTime", type: "uint256" },
1477
+ ],
1478
+ stateMutability: "view",
1479
+ type: "function",
1480
+ },
1481
+ {
1482
+ inputs: [],
1483
+ name: "flayGovernance",
1484
+ outputs: [{ internalType: "address", name: "", type: "address" }],
1485
+ stateMutability: "view",
1486
+ type: "function",
1487
+ },
1488
+ {
1489
+ inputs: [{ internalType: "bool", name: "_isFairLaunch", type: "bool" }],
1490
+ name: "getFeeCalculator",
1491
+ outputs: [
1492
+ { internalType: "contract IFeeCalculator", name: "", type: "address" },
1493
+ ],
1494
+ stateMutability: "view",
1495
+ type: "function",
1496
+ },
1497
+ {
1498
+ inputs: [
1499
+ { internalType: "bytes", name: "_initialPriceParams", type: "bytes" },
1500
+ ],
1501
+ name: "getFlaunchingFee",
1502
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1503
+ stateMutability: "view",
1504
+ type: "function",
1505
+ },
1506
+ {
1507
+ inputs: [
1508
+ { internalType: "bytes", name: "_initialPriceParams", type: "bytes" },
1509
+ ],
1510
+ name: "getFlaunchingMarketCap",
1511
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1512
+ stateMutability: "view",
1513
+ type: "function",
1514
+ },
1515
+ {
1516
+ inputs: [],
1517
+ name: "getHookPermissions",
1518
+ outputs: [
1519
+ {
1520
+ components: [
1521
+ { internalType: "bool", name: "beforeInitialize", type: "bool" },
1522
+ { internalType: "bool", name: "afterInitialize", type: "bool" },
1523
+ { internalType: "bool", name: "beforeAddLiquidity", type: "bool" },
1524
+ { internalType: "bool", name: "afterAddLiquidity", type: "bool" },
1525
+ { internalType: "bool", name: "beforeRemoveLiquidity", type: "bool" },
1526
+ { internalType: "bool", name: "afterRemoveLiquidity", type: "bool" },
1527
+ { internalType: "bool", name: "beforeSwap", type: "bool" },
1528
+ { internalType: "bool", name: "afterSwap", type: "bool" },
1529
+ { internalType: "bool", name: "beforeDonate", type: "bool" },
1530
+ { internalType: "bool", name: "afterDonate", type: "bool" },
1531
+ { internalType: "bool", name: "beforeSwapReturnDelta", type: "bool" },
1532
+ { internalType: "bool", name: "afterSwapReturnDelta", type: "bool" },
1533
+ {
1534
+ internalType: "bool",
1535
+ name: "afterAddLiquidityReturnDelta",
1536
+ type: "bool",
1537
+ },
1538
+ {
1539
+ internalType: "bool",
1540
+ name: "afterRemoveLiquidityReturnDelta",
1541
+ type: "bool",
1542
+ },
1543
+ ],
1544
+ internalType: "struct Hooks.Permissions",
1545
+ name: "",
1546
+ type: "tuple",
1547
+ },
1548
+ ],
1549
+ stateMutability: "pure",
1550
+ type: "function",
1551
+ },
1552
+ {
1553
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
1554
+ name: "getPoolFeeDistribution",
1555
+ outputs: [
1556
+ {
1557
+ components: [
1558
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
1559
+ { internalType: "uint24", name: "referrer", type: "uint24" },
1560
+ { internalType: "uint24", name: "protocol", type: "uint24" },
1561
+ { internalType: "bool", name: "active", type: "bool" },
1562
+ ],
1563
+ internalType: "struct FeeDistributor.FeeDistribution",
1564
+ name: "feeDistribution_",
1565
+ type: "tuple",
1566
+ },
1567
+ ],
1568
+ stateMutability: "view",
1569
+ type: "function",
1570
+ },
1571
+ {
1572
+ inputs: [],
1573
+ name: "initialPrice",
1574
+ outputs: [
1575
+ { internalType: "contract IInitialPrice", name: "", type: "address" },
1576
+ ],
1577
+ stateMutability: "view",
1578
+ type: "function",
1579
+ },
1580
+ {
1581
+ inputs: [],
1582
+ name: "nativeToken",
1583
+ outputs: [{ internalType: "address", name: "", type: "address" }],
1584
+ stateMutability: "view",
1585
+ type: "function",
1586
+ },
1587
+ {
1588
+ inputs: [],
1589
+ name: "notifier",
1590
+ outputs: [{ internalType: "contract Notifier", name: "", type: "address" }],
1591
+ stateMutability: "view",
1592
+ type: "function",
1593
+ },
1594
+ {
1595
+ inputs: [],
1596
+ name: "owner",
1597
+ outputs: [{ internalType: "address", name: "result", type: "address" }],
1598
+ stateMutability: "view",
1599
+ type: "function",
1600
+ },
1601
+ {
1602
+ inputs: [
1603
+ { internalType: "address", name: "pendingOwner", type: "address" },
1604
+ ],
1605
+ name: "ownershipHandoverExpiresAt",
1606
+ outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
1607
+ stateMutability: "view",
1608
+ type: "function",
1609
+ },
1610
+ {
1611
+ inputs: [
1612
+ {
1613
+ components: [
1614
+ { internalType: "Currency", name: "currency0", type: "address" },
1615
+ { internalType: "Currency", name: "currency1", type: "address" },
1616
+ { internalType: "uint24", name: "fee", type: "uint24" },
1617
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1618
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1619
+ ],
1620
+ internalType: "struct PoolKey",
1621
+ name: "_poolKey",
1622
+ type: "tuple",
1623
+ },
1624
+ ],
1625
+ name: "poolFees",
1626
+ outputs: [
1627
+ {
1628
+ components: [
1629
+ { internalType: "uint256", name: "amount0", type: "uint256" },
1630
+ { internalType: "uint256", name: "amount1", type: "uint256" },
1631
+ ],
1632
+ internalType: "struct InternalSwapPool.ClaimableFees",
1633
+ name: "",
1634
+ type: "tuple",
1635
+ },
1636
+ ],
1637
+ stateMutability: "view",
1638
+ type: "function",
1639
+ },
1640
+ {
1641
+ inputs: [{ internalType: "address", name: "_token", type: "address" }],
1642
+ name: "poolKey",
1643
+ outputs: [
1644
+ {
1645
+ components: [
1646
+ { internalType: "Currency", name: "currency0", type: "address" },
1647
+ { internalType: "Currency", name: "currency1", type: "address" },
1648
+ { internalType: "uint24", name: "fee", type: "uint24" },
1649
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
1650
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
1651
+ ],
1652
+ internalType: "struct PoolKey",
1653
+ name: "",
1654
+ type: "tuple",
1655
+ },
1656
+ ],
1657
+ stateMutability: "view",
1658
+ type: "function",
1659
+ },
1660
+ {
1661
+ inputs: [],
1662
+ name: "poolManager",
1663
+ outputs: [
1664
+ { internalType: "contract IPoolManager", name: "", type: "address" },
1665
+ ],
1666
+ stateMutability: "view",
1667
+ type: "function",
1668
+ },
1669
+ {
1670
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
1671
+ name: "premineInfo",
1672
+ outputs: [
1673
+ { internalType: "int256", name: "amountSpecified", type: "int256" },
1674
+ { internalType: "uint256", name: "blockNumber", type: "uint256" },
1675
+ ],
1676
+ stateMutability: "view",
1677
+ type: "function",
1678
+ },
1679
+ {
1680
+ inputs: [],
1681
+ name: "referralEscrow",
1682
+ outputs: [
1683
+ { internalType: "contract ReferralEscrow", name: "", type: "address" },
1684
+ ],
1685
+ stateMutability: "view",
1686
+ type: "function",
1687
+ },
1688
+ {
1689
+ inputs: [],
1690
+ name: "renounceOwnership",
1691
+ outputs: [],
1692
+ stateMutability: "payable",
1693
+ type: "function",
1694
+ },
1695
+ {
1696
+ inputs: [],
1697
+ name: "requestOwnershipHandover",
1698
+ outputs: [],
1699
+ stateMutability: "payable",
1700
+ type: "function",
1701
+ },
1702
+ {
1703
+ inputs: [
1704
+ {
1705
+ internalType: "contract IFeeCalculator",
1706
+ name: "_feeCalculator",
1707
+ type: "address",
1708
+ },
1709
+ ],
1710
+ name: "setFairLaunchFeeCalculator",
1711
+ outputs: [],
1712
+ stateMutability: "nonpayable",
1713
+ type: "function",
1714
+ },
1715
+ {
1716
+ inputs: [
1717
+ {
1718
+ internalType: "contract IFeeCalculator",
1719
+ name: "_feeCalculator",
1720
+ type: "address",
1721
+ },
1722
+ ],
1723
+ name: "setFeeCalculator",
1724
+ outputs: [],
1725
+ stateMutability: "nonpayable",
1726
+ type: "function",
1727
+ },
1728
+ {
1729
+ inputs: [
1730
+ {
1731
+ components: [
1732
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
1733
+ { internalType: "uint24", name: "referrer", type: "uint24" },
1734
+ { internalType: "uint24", name: "protocol", type: "uint24" },
1735
+ { internalType: "bool", name: "active", type: "bool" },
1736
+ ],
1737
+ internalType: "struct FeeDistributor.FeeDistribution",
1738
+ name: "_feeDistribution",
1739
+ type: "tuple",
1740
+ },
1741
+ ],
1742
+ name: "setFeeDistribution",
1743
+ outputs: [],
1744
+ stateMutability: "nonpayable",
1745
+ type: "function",
1746
+ },
1747
+ {
1748
+ inputs: [
1749
+ { internalType: "address", name: "_flaunchContract", type: "address" },
1750
+ ],
1751
+ name: "setFlaunch",
1752
+ outputs: [],
1753
+ stateMutability: "nonpayable",
1754
+ type: "function",
1755
+ },
1756
+ {
1757
+ inputs: [
1758
+ { internalType: "address", name: "_initialPrice", type: "address" },
1759
+ ],
1760
+ name: "setInitialPrice",
1761
+ outputs: [],
1762
+ stateMutability: "nonpayable",
1763
+ type: "function",
1764
+ },
1765
+ {
1766
+ inputs: [
1767
+ { internalType: "PoolId", name: "_poolId", type: "bytes32" },
1768
+ {
1769
+ components: [
1770
+ { internalType: "uint24", name: "swapFee", type: "uint24" },
1771
+ { internalType: "uint24", name: "referrer", type: "uint24" },
1772
+ { internalType: "uint24", name: "protocol", type: "uint24" },
1773
+ { internalType: "bool", name: "active", type: "bool" },
1774
+ ],
1775
+ internalType: "struct FeeDistributor.FeeDistribution",
1776
+ name: "_feeDistribution",
1777
+ type: "tuple",
1778
+ },
1779
+ ],
1780
+ name: "setPoolFeeDistribution",
1781
+ outputs: [],
1782
+ stateMutability: "nonpayable",
1783
+ type: "function",
1784
+ },
1785
+ {
1786
+ inputs: [{ internalType: "uint24", name: "_protocol", type: "uint24" }],
1787
+ name: "setProtocolFeeDistribution",
1788
+ outputs: [],
1789
+ stateMutability: "nonpayable",
1790
+ type: "function",
1791
+ },
1792
+ {
1793
+ inputs: [
1794
+ {
1795
+ internalType: "address payable",
1796
+ name: "_referralEscrow",
1797
+ type: "address",
1798
+ },
1799
+ ],
1800
+ name: "setReferralEscrow",
1801
+ outputs: [],
1802
+ stateMutability: "nonpayable",
1803
+ type: "function",
1804
+ },
1805
+ {
1806
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
1807
+ name: "transferOwnership",
1808
+ outputs: [],
1809
+ stateMutability: "payable",
1810
+ type: "function",
1811
+ },
1812
+ {
1813
+ inputs: [{ internalType: "bytes", name: "data", type: "bytes" }],
1814
+ name: "unlockCallback",
1815
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
1816
+ stateMutability: "nonpayable",
1817
+ type: "function",
1818
+ },
1819
+ {
1820
+ inputs: [
1821
+ { internalType: "address", name: "_recipient", type: "address" },
1822
+ { internalType: "bool", name: "_unwrap", type: "bool" },
1823
+ ],
1824
+ name: "withdrawFees",
1825
+ outputs: [],
1826
+ stateMutability: "nonpayable",
1827
+ type: "function",
1828
+ },
1829
+ { stateMutability: "payable", type: "receive" },
1830
+ ];
1831
+
1832
+ const MemecoinAbi = [
1833
+ { inputs: [], stateMutability: "nonpayable", type: "constructor" },
1834
+ { inputs: [], name: "CallerNotFlaunch", type: "error" },
1835
+ { inputs: [], name: "MintAddressIsZero", type: "error" },
1836
+ { inputs: [], name: "Permit2AllowanceIsFixedAtInfinity", type: "error" },
1837
+ { inputs: [], name: "Unauthorized", type: "error" },
1838
+ {
1839
+ anonymous: false,
1840
+ inputs: [
1841
+ {
1842
+ indexed: true,
1843
+ internalType: "address",
1844
+ name: "owner",
1845
+ type: "address",
1846
+ },
1847
+ {
1848
+ indexed: true,
1849
+ internalType: "address",
1850
+ name: "spender",
1851
+ type: "address",
1852
+ },
1853
+ {
1854
+ indexed: false,
1855
+ internalType: "uint256",
1856
+ name: "value",
1857
+ type: "uint256",
1858
+ },
1859
+ ],
1860
+ name: "Approval",
1861
+ type: "event",
1862
+ },
1863
+ {
1864
+ anonymous: false,
1865
+ inputs: [
1866
+ { indexed: true, internalType: "address", name: "from", type: "address" },
1867
+ {
1868
+ indexed: false,
1869
+ internalType: "uint256",
1870
+ name: "amount",
1871
+ type: "uint256",
1872
+ },
1873
+ ],
1874
+ name: "CrosschainBurn",
1875
+ type: "event",
1876
+ },
1877
+ {
1878
+ anonymous: false,
1879
+ inputs: [
1880
+ { indexed: true, internalType: "address", name: "to", type: "address" },
1881
+ {
1882
+ indexed: false,
1883
+ internalType: "uint256",
1884
+ name: "amount",
1885
+ type: "uint256",
1886
+ },
1887
+ ],
1888
+ name: "CrosschainMint",
1889
+ type: "event",
1890
+ },
1891
+ {
1892
+ anonymous: false,
1893
+ inputs: [
1894
+ {
1895
+ indexed: true,
1896
+ internalType: "address",
1897
+ name: "delegator",
1898
+ type: "address",
1899
+ },
1900
+ {
1901
+ indexed: true,
1902
+ internalType: "address",
1903
+ name: "fromDelegate",
1904
+ type: "address",
1905
+ },
1906
+ {
1907
+ indexed: true,
1908
+ internalType: "address",
1909
+ name: "toDelegate",
1910
+ type: "address",
1911
+ },
1912
+ ],
1913
+ name: "DelegateChanged",
1914
+ type: "event",
1915
+ },
1916
+ {
1917
+ anonymous: false,
1918
+ inputs: [
1919
+ {
1920
+ indexed: true,
1921
+ internalType: "address",
1922
+ name: "delegate",
1923
+ type: "address",
1924
+ },
1925
+ {
1926
+ indexed: false,
1927
+ internalType: "uint256",
1928
+ name: "previousBalance",
1929
+ type: "uint256",
1930
+ },
1931
+ {
1932
+ indexed: false,
1933
+ internalType: "uint256",
1934
+ name: "newBalance",
1935
+ type: "uint256",
1936
+ },
1937
+ ],
1938
+ name: "DelegateVotesChanged",
1939
+ type: "event",
1940
+ },
1941
+ { anonymous: false, inputs: [], name: "EIP712DomainChanged", type: "event" },
1942
+ {
1943
+ anonymous: false,
1944
+ inputs: [
1945
+ { indexed: false, internalType: "uint8", name: "version", type: "uint8" },
1946
+ ],
1947
+ name: "Initialized",
1948
+ type: "event",
1949
+ },
1950
+ {
1951
+ anonymous: false,
1952
+ inputs: [
1953
+ { indexed: false, internalType: "string", name: "_name", type: "string" },
1954
+ {
1955
+ indexed: false,
1956
+ internalType: "string",
1957
+ name: "_symbol",
1958
+ type: "string",
1959
+ },
1960
+ ],
1961
+ name: "MetadataUpdated",
1962
+ type: "event",
1963
+ },
1964
+ {
1965
+ anonymous: false,
1966
+ inputs: [
1967
+ { indexed: true, internalType: "address", name: "from", type: "address" },
1968
+ { indexed: true, internalType: "address", name: "to", type: "address" },
1969
+ {
1970
+ indexed: false,
1971
+ internalType: "uint256",
1972
+ name: "value",
1973
+ type: "uint256",
1974
+ },
1975
+ ],
1976
+ name: "Transfer",
1977
+ type: "event",
1978
+ },
1979
+ {
1980
+ inputs: [],
1981
+ name: "CLOCK_MODE",
1982
+ outputs: [{ internalType: "string", name: "", type: "string" }],
1983
+ stateMutability: "view",
1984
+ type: "function",
1985
+ },
1986
+ {
1987
+ inputs: [],
1988
+ name: "DOMAIN_SEPARATOR",
1989
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
1990
+ stateMutability: "view",
1991
+ type: "function",
1992
+ },
1993
+ {
1994
+ inputs: [
1995
+ { internalType: "address", name: "owner", type: "address" },
1996
+ { internalType: "address", name: "spender", type: "address" },
1997
+ ],
1998
+ name: "allowance",
1999
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2000
+ stateMutability: "view",
2001
+ type: "function",
2002
+ },
2003
+ {
2004
+ inputs: [
2005
+ { internalType: "address", name: "spender", type: "address" },
2006
+ { internalType: "uint256", name: "amount", type: "uint256" },
2007
+ ],
2008
+ name: "approve",
2009
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2010
+ stateMutability: "nonpayable",
2011
+ type: "function",
2012
+ },
2013
+ {
2014
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
2015
+ name: "balanceOf",
2016
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2017
+ stateMutability: "view",
2018
+ type: "function",
2019
+ },
2020
+ {
2021
+ inputs: [{ internalType: "uint256", name: "value", type: "uint256" }],
2022
+ name: "burn",
2023
+ outputs: [],
2024
+ stateMutability: "nonpayable",
2025
+ type: "function",
2026
+ },
2027
+ {
2028
+ inputs: [
2029
+ { internalType: "address", name: "account", type: "address" },
2030
+ { internalType: "uint256", name: "value", type: "uint256" },
2031
+ ],
2032
+ name: "burnFrom",
2033
+ outputs: [],
2034
+ stateMutability: "nonpayable",
2035
+ type: "function",
2036
+ },
2037
+ {
2038
+ inputs: [
2039
+ { internalType: "address", name: "account", type: "address" },
2040
+ { internalType: "uint32", name: "pos", type: "uint32" },
2041
+ ],
2042
+ name: "checkpoints",
2043
+ outputs: [
2044
+ {
2045
+ components: [
2046
+ { internalType: "uint32", name: "fromBlock", type: "uint32" },
2047
+ { internalType: "uint224", name: "votes", type: "uint224" },
2048
+ ],
2049
+ internalType: "struct ERC20VotesUpgradeable.Checkpoint",
2050
+ name: "",
2051
+ type: "tuple",
2052
+ },
2053
+ ],
2054
+ stateMutability: "view",
2055
+ type: "function",
2056
+ },
2057
+ {
2058
+ inputs: [],
2059
+ name: "clock",
2060
+ outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
2061
+ stateMutability: "view",
2062
+ type: "function",
2063
+ },
2064
+ {
2065
+ inputs: [],
2066
+ name: "creator",
2067
+ outputs: [{ internalType: "address", name: "creator_", type: "address" }],
2068
+ stateMutability: "view",
2069
+ type: "function",
2070
+ },
2071
+ {
2072
+ inputs: [
2073
+ { internalType: "address", name: "_from", type: "address" },
2074
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2075
+ ],
2076
+ name: "crosschainBurn",
2077
+ outputs: [],
2078
+ stateMutability: "nonpayable",
2079
+ type: "function",
2080
+ },
2081
+ {
2082
+ inputs: [
2083
+ { internalType: "address", name: "_to", type: "address" },
2084
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2085
+ ],
2086
+ name: "crosschainMint",
2087
+ outputs: [],
2088
+ stateMutability: "nonpayable",
2089
+ type: "function",
2090
+ },
2091
+ {
2092
+ inputs: [],
2093
+ name: "decimals",
2094
+ outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
2095
+ stateMutability: "view",
2096
+ type: "function",
2097
+ },
2098
+ {
2099
+ inputs: [
2100
+ { internalType: "address", name: "spender", type: "address" },
2101
+ { internalType: "uint256", name: "subtractedValue", type: "uint256" },
2102
+ ],
2103
+ name: "decreaseAllowance",
2104
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2105
+ stateMutability: "nonpayable",
2106
+ type: "function",
2107
+ },
2108
+ {
2109
+ inputs: [{ internalType: "address", name: "delegatee", type: "address" }],
2110
+ name: "delegate",
2111
+ outputs: [],
2112
+ stateMutability: "nonpayable",
2113
+ type: "function",
2114
+ },
2115
+ {
2116
+ inputs: [
2117
+ { internalType: "address", name: "delegatee", type: "address" },
2118
+ { internalType: "uint256", name: "nonce", type: "uint256" },
2119
+ { internalType: "uint256", name: "expiry", type: "uint256" },
2120
+ { internalType: "uint8", name: "v", type: "uint8" },
2121
+ { internalType: "bytes32", name: "r", type: "bytes32" },
2122
+ { internalType: "bytes32", name: "s", type: "bytes32" },
2123
+ ],
2124
+ name: "delegateBySig",
2125
+ outputs: [],
2126
+ stateMutability: "nonpayable",
2127
+ type: "function",
2128
+ },
2129
+ {
2130
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
2131
+ name: "delegates",
2132
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2133
+ stateMutability: "view",
2134
+ type: "function",
2135
+ },
2136
+ {
2137
+ inputs: [],
2138
+ name: "eip712Domain",
2139
+ outputs: [
2140
+ { internalType: "bytes1", name: "fields", type: "bytes1" },
2141
+ { internalType: "string", name: "name", type: "string" },
2142
+ { internalType: "string", name: "version", type: "string" },
2143
+ { internalType: "uint256", name: "chainId", type: "uint256" },
2144
+ { internalType: "address", name: "verifyingContract", type: "address" },
2145
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
2146
+ { internalType: "uint256[]", name: "extensions", type: "uint256[]" },
2147
+ ],
2148
+ stateMutability: "view",
2149
+ type: "function",
2150
+ },
2151
+ {
2152
+ inputs: [],
2153
+ name: "flaunch",
2154
+ outputs: [{ internalType: "contract Flaunch", name: "", type: "address" }],
2155
+ stateMutability: "view",
2156
+ type: "function",
2157
+ },
2158
+ {
2159
+ inputs: [{ internalType: "uint256", name: "timepoint", type: "uint256" }],
2160
+ name: "getPastTotalSupply",
2161
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2162
+ stateMutability: "view",
2163
+ type: "function",
2164
+ },
2165
+ {
2166
+ inputs: [
2167
+ { internalType: "address", name: "account", type: "address" },
2168
+ { internalType: "uint256", name: "timepoint", type: "uint256" },
2169
+ ],
2170
+ name: "getPastVotes",
2171
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2172
+ stateMutability: "view",
2173
+ type: "function",
2174
+ },
2175
+ {
2176
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
2177
+ name: "getVotes",
2178
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2179
+ stateMutability: "view",
2180
+ type: "function",
2181
+ },
2182
+ {
2183
+ inputs: [
2184
+ { internalType: "address", name: "spender", type: "address" },
2185
+ { internalType: "uint256", name: "addedValue", type: "uint256" },
2186
+ ],
2187
+ name: "increaseAllowance",
2188
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2189
+ stateMutability: "nonpayable",
2190
+ type: "function",
2191
+ },
2192
+ {
2193
+ inputs: [
2194
+ { internalType: "string", name: "name_", type: "string" },
2195
+ { internalType: "string", name: "symbol_", type: "string" },
2196
+ { internalType: "string", name: "tokenUri_", type: "string" },
2197
+ ],
2198
+ name: "initialize",
2199
+ outputs: [],
2200
+ stateMutability: "nonpayable",
2201
+ type: "function",
2202
+ },
2203
+ {
2204
+ inputs: [
2205
+ { internalType: "address", name: "_to", type: "address" },
2206
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2207
+ ],
2208
+ name: "mint",
2209
+ outputs: [],
2210
+ stateMutability: "nonpayable",
2211
+ type: "function",
2212
+ },
2213
+ {
2214
+ inputs: [],
2215
+ name: "name",
2216
+ outputs: [{ internalType: "string", name: "", type: "string" }],
2217
+ stateMutability: "view",
2218
+ type: "function",
2219
+ },
2220
+ {
2221
+ inputs: [{ internalType: "address", name: "owner", type: "address" }],
2222
+ name: "nonces",
2223
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2224
+ stateMutability: "view",
2225
+ type: "function",
2226
+ },
2227
+ {
2228
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
2229
+ name: "numCheckpoints",
2230
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
2231
+ stateMutability: "view",
2232
+ type: "function",
2233
+ },
2234
+ {
2235
+ inputs: [
2236
+ { internalType: "address", name: "owner", type: "address" },
2237
+ { internalType: "address", name: "spender", type: "address" },
2238
+ { internalType: "uint256", name: "value", type: "uint256" },
2239
+ { internalType: "uint256", name: "deadline", type: "uint256" },
2240
+ { internalType: "uint8", name: "v", type: "uint8" },
2241
+ { internalType: "bytes32", name: "r", type: "bytes32" },
2242
+ { internalType: "bytes32", name: "s", type: "bytes32" },
2243
+ ],
2244
+ name: "permit",
2245
+ outputs: [],
2246
+ stateMutability: "nonpayable",
2247
+ type: "function",
2248
+ },
2249
+ {
2250
+ inputs: [
2251
+ { internalType: "string", name: "name_", type: "string" },
2252
+ { internalType: "string", name: "symbol_", type: "string" },
2253
+ ],
2254
+ name: "setMetadata",
2255
+ outputs: [],
2256
+ stateMutability: "nonpayable",
2257
+ type: "function",
2258
+ },
2259
+ {
2260
+ inputs: [{ internalType: "bytes4", name: "_interfaceId", type: "bytes4" }],
2261
+ name: "supportsInterface",
2262
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2263
+ stateMutability: "view",
2264
+ type: "function",
2265
+ },
2266
+ {
2267
+ inputs: [],
2268
+ name: "symbol",
2269
+ outputs: [{ internalType: "string", name: "", type: "string" }],
2270
+ stateMutability: "view",
2271
+ type: "function",
2272
+ },
2273
+ {
2274
+ inputs: [],
2275
+ name: "tokenURI",
2276
+ outputs: [{ internalType: "string", name: "", type: "string" }],
2277
+ stateMutability: "view",
2278
+ type: "function",
2279
+ },
2280
+ {
2281
+ inputs: [],
2282
+ name: "totalSupply",
2283
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2284
+ stateMutability: "view",
2285
+ type: "function",
2286
+ },
2287
+ {
2288
+ inputs: [
2289
+ { internalType: "address", name: "to", type: "address" },
2290
+ { internalType: "uint256", name: "amount", type: "uint256" },
2291
+ ],
2292
+ name: "transfer",
2293
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2294
+ stateMutability: "nonpayable",
2295
+ type: "function",
2296
+ },
2297
+ {
2298
+ inputs: [
2299
+ { internalType: "address", name: "from", type: "address" },
2300
+ { internalType: "address", name: "to", type: "address" },
2301
+ { internalType: "uint256", name: "amount", type: "uint256" },
2302
+ ],
2303
+ name: "transferFrom",
2304
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2305
+ stateMutability: "nonpayable",
2306
+ type: "function",
2307
+ },
2308
+ {
2309
+ inputs: [],
2310
+ name: "treasury",
2311
+ outputs: [{ internalType: "address payable", name: "", type: "address" }],
2312
+ stateMutability: "view",
2313
+ type: "function",
2314
+ },
2315
+ {
2316
+ inputs: [],
2317
+ name: "version",
2318
+ outputs: [{ internalType: "string", name: "", type: "string" }],
2319
+ stateMutability: "view",
2320
+ type: "function",
2321
+ },
2322
+ ];
2323
+
2324
+ const PoolManagerAbi = [
2325
+ {
2326
+ inputs: [
2327
+ { internalType: "address", name: "initialOwner", type: "address" },
2328
+ ],
2329
+ stateMutability: "nonpayable",
2330
+ type: "constructor",
2331
+ },
2332
+ { inputs: [], name: "AlreadyUnlocked", type: "error" },
2333
+ {
2334
+ inputs: [
2335
+ { internalType: "address", name: "currency0", type: "address" },
2336
+ { internalType: "address", name: "currency1", type: "address" },
2337
+ ],
2338
+ name: "CurrenciesOutOfOrderOrEqual",
2339
+ type: "error",
2340
+ },
2341
+ { inputs: [], name: "CurrencyNotSettled", type: "error" },
2342
+ { inputs: [], name: "DelegateCallNotAllowed", type: "error" },
2343
+ { inputs: [], name: "InvalidCaller", type: "error" },
2344
+ { inputs: [], name: "ManagerLocked", type: "error" },
2345
+ { inputs: [], name: "MustClearExactPositiveDelta", type: "error" },
2346
+ { inputs: [], name: "NonzeroNativeValue", type: "error" },
2347
+ { inputs: [], name: "PoolNotInitialized", type: "error" },
2348
+ { inputs: [], name: "ProtocolFeeCurrencySynced", type: "error" },
2349
+ {
2350
+ inputs: [{ internalType: "uint24", name: "fee", type: "uint24" }],
2351
+ name: "ProtocolFeeTooLarge",
2352
+ type: "error",
2353
+ },
2354
+ { inputs: [], name: "SwapAmountCannotBeZero", type: "error" },
2355
+ {
2356
+ inputs: [{ internalType: "int24", name: "tickSpacing", type: "int24" }],
2357
+ name: "TickSpacingTooLarge",
2358
+ type: "error",
2359
+ },
2360
+ {
2361
+ inputs: [{ internalType: "int24", name: "tickSpacing", type: "int24" }],
2362
+ name: "TickSpacingTooSmall",
2363
+ type: "error",
2364
+ },
2365
+ { inputs: [], name: "UnauthorizedDynamicLPFeeUpdate", type: "error" },
2366
+ {
2367
+ anonymous: false,
2368
+ inputs: [
2369
+ {
2370
+ indexed: true,
2371
+ internalType: "address",
2372
+ name: "owner",
2373
+ type: "address",
2374
+ },
2375
+ {
2376
+ indexed: true,
2377
+ internalType: "address",
2378
+ name: "spender",
2379
+ type: "address",
2380
+ },
2381
+ { indexed: true, internalType: "uint256", name: "id", type: "uint256" },
2382
+ {
2383
+ indexed: false,
2384
+ internalType: "uint256",
2385
+ name: "amount",
2386
+ type: "uint256",
2387
+ },
2388
+ ],
2389
+ name: "Approval",
2390
+ type: "event",
2391
+ },
2392
+ {
2393
+ anonymous: false,
2394
+ inputs: [
2395
+ { indexed: true, internalType: "PoolId", name: "id", type: "bytes32" },
2396
+ {
2397
+ indexed: true,
2398
+ internalType: "address",
2399
+ name: "sender",
2400
+ type: "address",
2401
+ },
2402
+ {
2403
+ indexed: false,
2404
+ internalType: "uint256",
2405
+ name: "amount0",
2406
+ type: "uint256",
2407
+ },
2408
+ {
2409
+ indexed: false,
2410
+ internalType: "uint256",
2411
+ name: "amount1",
2412
+ type: "uint256",
2413
+ },
2414
+ ],
2415
+ name: "Donate",
2416
+ type: "event",
2417
+ },
2418
+ {
2419
+ anonymous: false,
2420
+ inputs: [
2421
+ { indexed: true, internalType: "PoolId", name: "id", type: "bytes32" },
2422
+ {
2423
+ indexed: true,
2424
+ internalType: "Currency",
2425
+ name: "currency0",
2426
+ type: "address",
2427
+ },
2428
+ {
2429
+ indexed: true,
2430
+ internalType: "Currency",
2431
+ name: "currency1",
2432
+ type: "address",
2433
+ },
2434
+ { indexed: false, internalType: "uint24", name: "fee", type: "uint24" },
2435
+ {
2436
+ indexed: false,
2437
+ internalType: "int24",
2438
+ name: "tickSpacing",
2439
+ type: "int24",
2440
+ },
2441
+ {
2442
+ indexed: false,
2443
+ internalType: "contract IHooks",
2444
+ name: "hooks",
2445
+ type: "address",
2446
+ },
2447
+ {
2448
+ indexed: false,
2449
+ internalType: "uint160",
2450
+ name: "sqrtPriceX96",
2451
+ type: "uint160",
2452
+ },
2453
+ { indexed: false, internalType: "int24", name: "tick", type: "int24" },
2454
+ ],
2455
+ name: "Initialize",
2456
+ type: "event",
2457
+ },
2458
+ {
2459
+ anonymous: false,
2460
+ inputs: [
2461
+ { indexed: true, internalType: "PoolId", name: "id", type: "bytes32" },
2462
+ {
2463
+ indexed: true,
2464
+ internalType: "address",
2465
+ name: "sender",
2466
+ type: "address",
2467
+ },
2468
+ {
2469
+ indexed: false,
2470
+ internalType: "int24",
2471
+ name: "tickLower",
2472
+ type: "int24",
2473
+ },
2474
+ {
2475
+ indexed: false,
2476
+ internalType: "int24",
2477
+ name: "tickUpper",
2478
+ type: "int24",
2479
+ },
2480
+ {
2481
+ indexed: false,
2482
+ internalType: "int256",
2483
+ name: "liquidityDelta",
2484
+ type: "int256",
2485
+ },
2486
+ {
2487
+ indexed: false,
2488
+ internalType: "bytes32",
2489
+ name: "salt",
2490
+ type: "bytes32",
2491
+ },
2492
+ ],
2493
+ name: "ModifyLiquidity",
2494
+ type: "event",
2495
+ },
2496
+ {
2497
+ anonymous: false,
2498
+ inputs: [
2499
+ {
2500
+ indexed: true,
2501
+ internalType: "address",
2502
+ name: "owner",
2503
+ type: "address",
2504
+ },
2505
+ {
2506
+ indexed: true,
2507
+ internalType: "address",
2508
+ name: "operator",
2509
+ type: "address",
2510
+ },
2511
+ { indexed: false, internalType: "bool", name: "approved", type: "bool" },
2512
+ ],
2513
+ name: "OperatorSet",
2514
+ type: "event",
2515
+ },
2516
+ {
2517
+ anonymous: false,
2518
+ inputs: [
2519
+ { indexed: true, internalType: "address", name: "user", type: "address" },
2520
+ {
2521
+ indexed: true,
2522
+ internalType: "address",
2523
+ name: "newOwner",
2524
+ type: "address",
2525
+ },
2526
+ ],
2527
+ name: "OwnershipTransferred",
2528
+ type: "event",
2529
+ },
2530
+ {
2531
+ anonymous: false,
2532
+ inputs: [
2533
+ {
2534
+ indexed: true,
2535
+ internalType: "address",
2536
+ name: "protocolFeeController",
2537
+ type: "address",
2538
+ },
2539
+ ],
2540
+ name: "ProtocolFeeControllerUpdated",
2541
+ type: "event",
2542
+ },
2543
+ {
2544
+ anonymous: false,
2545
+ inputs: [
2546
+ { indexed: true, internalType: "PoolId", name: "id", type: "bytes32" },
2547
+ {
2548
+ indexed: false,
2549
+ internalType: "uint24",
2550
+ name: "protocolFee",
2551
+ type: "uint24",
2552
+ },
2553
+ ],
2554
+ name: "ProtocolFeeUpdated",
2555
+ type: "event",
2556
+ },
2557
+ {
2558
+ anonymous: false,
2559
+ inputs: [
2560
+ { indexed: true, internalType: "PoolId", name: "id", type: "bytes32" },
2561
+ {
2562
+ indexed: true,
2563
+ internalType: "address",
2564
+ name: "sender",
2565
+ type: "address",
2566
+ },
2567
+ {
2568
+ indexed: false,
2569
+ internalType: "int128",
2570
+ name: "amount0",
2571
+ type: "int128",
2572
+ },
2573
+ {
2574
+ indexed: false,
2575
+ internalType: "int128",
2576
+ name: "amount1",
2577
+ type: "int128",
2578
+ },
2579
+ {
2580
+ indexed: false,
2581
+ internalType: "uint160",
2582
+ name: "sqrtPriceX96",
2583
+ type: "uint160",
2584
+ },
2585
+ {
2586
+ indexed: false,
2587
+ internalType: "uint128",
2588
+ name: "liquidity",
2589
+ type: "uint128",
2590
+ },
2591
+ { indexed: false, internalType: "int24", name: "tick", type: "int24" },
2592
+ { indexed: false, internalType: "uint24", name: "fee", type: "uint24" },
2593
+ ],
2594
+ name: "Swap",
2595
+ type: "event",
2596
+ },
2597
+ {
2598
+ anonymous: false,
2599
+ inputs: [
2600
+ {
2601
+ indexed: false,
2602
+ internalType: "address",
2603
+ name: "caller",
2604
+ type: "address",
2605
+ },
2606
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2607
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2608
+ { indexed: true, internalType: "uint256", name: "id", type: "uint256" },
2609
+ {
2610
+ indexed: false,
2611
+ internalType: "uint256",
2612
+ name: "amount",
2613
+ type: "uint256",
2614
+ },
2615
+ ],
2616
+ name: "Transfer",
2617
+ type: "event",
2618
+ },
2619
+ {
2620
+ inputs: [
2621
+ { internalType: "address", name: "owner", type: "address" },
2622
+ { internalType: "address", name: "spender", type: "address" },
2623
+ { internalType: "uint256", name: "id", type: "uint256" },
2624
+ ],
2625
+ name: "allowance",
2626
+ outputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
2627
+ stateMutability: "view",
2628
+ type: "function",
2629
+ },
2630
+ {
2631
+ inputs: [
2632
+ { internalType: "address", name: "spender", type: "address" },
2633
+ { internalType: "uint256", name: "id", type: "uint256" },
2634
+ { internalType: "uint256", name: "amount", type: "uint256" },
2635
+ ],
2636
+ name: "approve",
2637
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2638
+ stateMutability: "nonpayable",
2639
+ type: "function",
2640
+ },
2641
+ {
2642
+ inputs: [
2643
+ { internalType: "address", name: "owner", type: "address" },
2644
+ { internalType: "uint256", name: "id", type: "uint256" },
2645
+ ],
2646
+ name: "balanceOf",
2647
+ outputs: [{ internalType: "uint256", name: "balance", type: "uint256" }],
2648
+ stateMutability: "view",
2649
+ type: "function",
2650
+ },
2651
+ {
2652
+ inputs: [
2653
+ { internalType: "address", name: "from", type: "address" },
2654
+ { internalType: "uint256", name: "id", type: "uint256" },
2655
+ { internalType: "uint256", name: "amount", type: "uint256" },
2656
+ ],
2657
+ name: "burn",
2658
+ outputs: [],
2659
+ stateMutability: "nonpayable",
2660
+ type: "function",
2661
+ },
2662
+ {
2663
+ inputs: [
2664
+ { internalType: "Currency", name: "currency", type: "address" },
2665
+ { internalType: "uint256", name: "amount", type: "uint256" },
2666
+ ],
2667
+ name: "clear",
2668
+ outputs: [],
2669
+ stateMutability: "nonpayable",
2670
+ type: "function",
2671
+ },
2672
+ {
2673
+ inputs: [
2674
+ { internalType: "address", name: "recipient", type: "address" },
2675
+ { internalType: "Currency", name: "currency", type: "address" },
2676
+ { internalType: "uint256", name: "amount", type: "uint256" },
2677
+ ],
2678
+ name: "collectProtocolFees",
2679
+ outputs: [
2680
+ { internalType: "uint256", name: "amountCollected", type: "uint256" },
2681
+ ],
2682
+ stateMutability: "nonpayable",
2683
+ type: "function",
2684
+ },
2685
+ {
2686
+ inputs: [
2687
+ {
2688
+ components: [
2689
+ { internalType: "Currency", name: "currency0", type: "address" },
2690
+ { internalType: "Currency", name: "currency1", type: "address" },
2691
+ { internalType: "uint24", name: "fee", type: "uint24" },
2692
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
2693
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
2694
+ ],
2695
+ internalType: "struct PoolKey",
2696
+ name: "key",
2697
+ type: "tuple",
2698
+ },
2699
+ { internalType: "uint256", name: "amount0", type: "uint256" },
2700
+ { internalType: "uint256", name: "amount1", type: "uint256" },
2701
+ { internalType: "bytes", name: "hookData", type: "bytes" },
2702
+ ],
2703
+ name: "donate",
2704
+ outputs: [{ internalType: "BalanceDelta", name: "delta", type: "int256" }],
2705
+ stateMutability: "nonpayable",
2706
+ type: "function",
2707
+ },
2708
+ {
2709
+ inputs: [{ internalType: "bytes32", name: "slot", type: "bytes32" }],
2710
+ name: "extsload",
2711
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2712
+ stateMutability: "view",
2713
+ type: "function",
2714
+ },
2715
+ {
2716
+ inputs: [
2717
+ { internalType: "bytes32", name: "startSlot", type: "bytes32" },
2718
+ { internalType: "uint256", name: "nSlots", type: "uint256" },
2719
+ ],
2720
+ name: "extsload",
2721
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
2722
+ stateMutability: "view",
2723
+ type: "function",
2724
+ },
2725
+ {
2726
+ inputs: [{ internalType: "bytes32[]", name: "slots", type: "bytes32[]" }],
2727
+ name: "extsload",
2728
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
2729
+ stateMutability: "view",
2730
+ type: "function",
2731
+ },
2732
+ {
2733
+ inputs: [{ internalType: "bytes32[]", name: "slots", type: "bytes32[]" }],
2734
+ name: "exttload",
2735
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
2736
+ stateMutability: "view",
2737
+ type: "function",
2738
+ },
2739
+ {
2740
+ inputs: [{ internalType: "bytes32", name: "slot", type: "bytes32" }],
2741
+ name: "exttload",
2742
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2743
+ stateMutability: "view",
2744
+ type: "function",
2745
+ },
2746
+ {
2747
+ inputs: [
2748
+ {
2749
+ components: [
2750
+ { internalType: "Currency", name: "currency0", type: "address" },
2751
+ { internalType: "Currency", name: "currency1", type: "address" },
2752
+ { internalType: "uint24", name: "fee", type: "uint24" },
2753
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
2754
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
2755
+ ],
2756
+ internalType: "struct PoolKey",
2757
+ name: "key",
2758
+ type: "tuple",
2759
+ },
2760
+ { internalType: "uint160", name: "sqrtPriceX96", type: "uint160" },
2761
+ ],
2762
+ name: "initialize",
2763
+ outputs: [{ internalType: "int24", name: "tick", type: "int24" }],
2764
+ stateMutability: "nonpayable",
2765
+ type: "function",
2766
+ },
2767
+ {
2768
+ inputs: [
2769
+ { internalType: "address", name: "owner", type: "address" },
2770
+ { internalType: "address", name: "operator", type: "address" },
2771
+ ],
2772
+ name: "isOperator",
2773
+ outputs: [{ internalType: "bool", name: "isOperator", type: "bool" }],
2774
+ stateMutability: "view",
2775
+ type: "function",
2776
+ },
2777
+ {
2778
+ inputs: [
2779
+ { internalType: "address", name: "to", type: "address" },
2780
+ { internalType: "uint256", name: "id", type: "uint256" },
2781
+ { internalType: "uint256", name: "amount", type: "uint256" },
2782
+ ],
2783
+ name: "mint",
2784
+ outputs: [],
2785
+ stateMutability: "nonpayable",
2786
+ type: "function",
2787
+ },
2788
+ {
2789
+ inputs: [
2790
+ {
2791
+ components: [
2792
+ { internalType: "Currency", name: "currency0", type: "address" },
2793
+ { internalType: "Currency", name: "currency1", type: "address" },
2794
+ { internalType: "uint24", name: "fee", type: "uint24" },
2795
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
2796
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
2797
+ ],
2798
+ internalType: "struct PoolKey",
2799
+ name: "key",
2800
+ type: "tuple",
2801
+ },
2802
+ {
2803
+ components: [
2804
+ { internalType: "int24", name: "tickLower", type: "int24" },
2805
+ { internalType: "int24", name: "tickUpper", type: "int24" },
2806
+ { internalType: "int256", name: "liquidityDelta", type: "int256" },
2807
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
2808
+ ],
2809
+ internalType: "struct IPoolManager.ModifyLiquidityParams",
2810
+ name: "params",
2811
+ type: "tuple",
2812
+ },
2813
+ { internalType: "bytes", name: "hookData", type: "bytes" },
2814
+ ],
2815
+ name: "modifyLiquidity",
2816
+ outputs: [
2817
+ { internalType: "BalanceDelta", name: "callerDelta", type: "int256" },
2818
+ { internalType: "BalanceDelta", name: "feesAccrued", type: "int256" },
2819
+ ],
2820
+ stateMutability: "nonpayable",
2821
+ type: "function",
2822
+ },
2823
+ {
2824
+ inputs: [],
2825
+ name: "owner",
2826
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2827
+ stateMutability: "view",
2828
+ type: "function",
2829
+ },
2830
+ {
2831
+ inputs: [],
2832
+ name: "protocolFeeController",
2833
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2834
+ stateMutability: "view",
2835
+ type: "function",
2836
+ },
2837
+ {
2838
+ inputs: [{ internalType: "Currency", name: "currency", type: "address" }],
2839
+ name: "protocolFeesAccrued",
2840
+ outputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
2841
+ stateMutability: "view",
2842
+ type: "function",
2843
+ },
2844
+ {
2845
+ inputs: [
2846
+ { internalType: "address", name: "operator", type: "address" },
2847
+ { internalType: "bool", name: "approved", type: "bool" },
2848
+ ],
2849
+ name: "setOperator",
2850
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2851
+ stateMutability: "nonpayable",
2852
+ type: "function",
2853
+ },
2854
+ {
2855
+ inputs: [
2856
+ {
2857
+ components: [
2858
+ { internalType: "Currency", name: "currency0", type: "address" },
2859
+ { internalType: "Currency", name: "currency1", type: "address" },
2860
+ { internalType: "uint24", name: "fee", type: "uint24" },
2861
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
2862
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
2863
+ ],
2864
+ internalType: "struct PoolKey",
2865
+ name: "key",
2866
+ type: "tuple",
2867
+ },
2868
+ { internalType: "uint24", name: "newProtocolFee", type: "uint24" },
2869
+ ],
2870
+ name: "setProtocolFee",
2871
+ outputs: [],
2872
+ stateMutability: "nonpayable",
2873
+ type: "function",
2874
+ },
2875
+ {
2876
+ inputs: [{ internalType: "address", name: "controller", type: "address" }],
2877
+ name: "setProtocolFeeController",
2878
+ outputs: [],
2879
+ stateMutability: "nonpayable",
2880
+ type: "function",
2881
+ },
2882
+ {
2883
+ inputs: [],
2884
+ name: "settle",
2885
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2886
+ stateMutability: "payable",
2887
+ type: "function",
2888
+ },
2889
+ {
2890
+ inputs: [{ internalType: "address", name: "recipient", type: "address" }],
2891
+ name: "settleFor",
2892
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2893
+ stateMutability: "payable",
2894
+ type: "function",
2895
+ },
2896
+ {
2897
+ inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
2898
+ name: "supportsInterface",
2899
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2900
+ stateMutability: "view",
2901
+ type: "function",
2902
+ },
2903
+ {
2904
+ inputs: [
2905
+ {
2906
+ components: [
2907
+ { internalType: "Currency", name: "currency0", type: "address" },
2908
+ { internalType: "Currency", name: "currency1", type: "address" },
2909
+ { internalType: "uint24", name: "fee", type: "uint24" },
2910
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
2911
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
2912
+ ],
2913
+ internalType: "struct PoolKey",
2914
+ name: "key",
2915
+ type: "tuple",
2916
+ },
2917
+ {
2918
+ components: [
2919
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
2920
+ { internalType: "int256", name: "amountSpecified", type: "int256" },
2921
+ {
2922
+ internalType: "uint160",
2923
+ name: "sqrtPriceLimitX96",
2924
+ type: "uint160",
2925
+ },
2926
+ ],
2927
+ internalType: "struct IPoolManager.SwapParams",
2928
+ name: "params",
2929
+ type: "tuple",
2930
+ },
2931
+ { internalType: "bytes", name: "hookData", type: "bytes" },
2932
+ ],
2933
+ name: "swap",
2934
+ outputs: [
2935
+ { internalType: "BalanceDelta", name: "swapDelta", type: "int256" },
2936
+ ],
2937
+ stateMutability: "nonpayable",
2938
+ type: "function",
2939
+ },
2940
+ {
2941
+ inputs: [{ internalType: "Currency", name: "currency", type: "address" }],
2942
+ name: "sync",
2943
+ outputs: [],
2944
+ stateMutability: "nonpayable",
2945
+ type: "function",
2946
+ },
2947
+ {
2948
+ inputs: [
2949
+ { internalType: "Currency", name: "currency", type: "address" },
2950
+ { internalType: "address", name: "to", type: "address" },
2951
+ { internalType: "uint256", name: "amount", type: "uint256" },
2952
+ ],
2953
+ name: "take",
2954
+ outputs: [],
2955
+ stateMutability: "nonpayable",
2956
+ type: "function",
2957
+ },
2958
+ {
2959
+ inputs: [
2960
+ { internalType: "address", name: "receiver", type: "address" },
2961
+ { internalType: "uint256", name: "id", type: "uint256" },
2962
+ { internalType: "uint256", name: "amount", type: "uint256" },
2963
+ ],
2964
+ name: "transfer",
2965
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2966
+ stateMutability: "nonpayable",
2967
+ type: "function",
2968
+ },
2969
+ {
2970
+ inputs: [
2971
+ { internalType: "address", name: "sender", type: "address" },
2972
+ { internalType: "address", name: "receiver", type: "address" },
2973
+ { internalType: "uint256", name: "id", type: "uint256" },
2974
+ { internalType: "uint256", name: "amount", type: "uint256" },
2975
+ ],
2976
+ name: "transferFrom",
2977
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
2978
+ stateMutability: "nonpayable",
2979
+ type: "function",
2980
+ },
2981
+ {
2982
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
2983
+ name: "transferOwnership",
2984
+ outputs: [],
2985
+ stateMutability: "nonpayable",
2986
+ type: "function",
2987
+ },
2988
+ {
2989
+ inputs: [{ internalType: "bytes", name: "data", type: "bytes" }],
2990
+ name: "unlock",
2991
+ outputs: [{ internalType: "bytes", name: "result", type: "bytes" }],
2992
+ stateMutability: "nonpayable",
2993
+ type: "function",
2994
+ },
2995
+ {
2996
+ inputs: [
2997
+ {
2998
+ components: [
2999
+ { internalType: "Currency", name: "currency0", type: "address" },
3000
+ { internalType: "Currency", name: "currency1", type: "address" },
3001
+ { internalType: "uint24", name: "fee", type: "uint24" },
3002
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
3003
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
3004
+ ],
3005
+ internalType: "struct PoolKey",
3006
+ name: "key",
3007
+ type: "tuple",
3008
+ },
3009
+ { internalType: "uint24", name: "newDynamicLPFee", type: "uint24" },
3010
+ ],
3011
+ name: "updateDynamicLPFee",
3012
+ outputs: [],
3013
+ stateMutability: "nonpayable",
3014
+ type: "function",
3015
+ },
3016
+ ];
3017
+
3018
+ exports.FairLaunchAbi = FairLaunchAbi;
3019
+ exports.FastFlaunchZapAbi = FastFlaunchZapAbi;
3020
+ exports.FlaunchPositionManagerAbi = FlaunchPositionManagerAbi;
3021
+ exports.MemecoinAbi = MemecoinAbi;
3022
+ exports.PoolManagerAbi = PoolManagerAbi;
3023
+ //# sourceMappingURL=index.cjs.map