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