@coinbase/agentkit 0.0.0-nightly-20250402210429 → 0.0.0-nightly-20250407210432

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 (26) hide show
  1. package/README.md +21 -0
  2. package/dist/action-providers/flaunch/constants.d.ts +1078 -0
  3. package/dist/action-providers/flaunch/constants.js +709 -0
  4. package/dist/action-providers/flaunch/flaunchActionProvider.d.ts +102 -0
  5. package/dist/action-providers/flaunch/flaunchActionProvider.js +519 -0
  6. package/dist/action-providers/flaunch/flaunchActionProvider.test.d.ts +1 -0
  7. package/dist/action-providers/flaunch/flaunchActionProvider.test.js +307 -0
  8. package/dist/action-providers/flaunch/index.d.ts +7 -0
  9. package/dist/action-providers/flaunch/index.js +23 -0
  10. package/dist/action-providers/flaunch/schemas.d.ts +77 -0
  11. package/dist/action-providers/flaunch/schemas.js +71 -0
  12. package/dist/action-providers/flaunch/types.d.ts +64 -0
  13. package/dist/action-providers/flaunch/types.js +2 -0
  14. package/dist/action-providers/flaunch/utils.d.ts +60 -0
  15. package/dist/action-providers/flaunch/utils.js +507 -0
  16. package/dist/action-providers/index.d.ts +1 -0
  17. package/dist/action-providers/index.js +1 -0
  18. package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.d.ts +2 -0
  19. package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.test.js +1 -0
  20. package/dist/wallet-providers/privyShared.d.ts +3 -5
  21. package/dist/wallet-providers/privySvmWalletProvider.d.ts +2 -0
  22. package/dist/wallet-providers/privySvmWalletProvider.js +4 -1
  23. package/dist/wallet-providers/privySvmWalletProvider.test.js +1 -0
  24. package/dist/wallet-providers/privyWalletProvider.d.ts +6 -5
  25. package/dist/wallet-providers/privyWalletProvider.test.js +30 -0
  26. package/package.json +4 -2
@@ -0,0 +1,709 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PERMIT_TYPES = exports.PERMIT_DETAILS = exports.PERMIT2_ABI = exports.UNIVERSAL_ROUTER_ABI = exports.URCommands = exports.V4Actions = exports.IV4RouterAbiExactOutput = exports.IV4RouterAbiExactInput = exports.QUOTER_ABI = exports.POSITION_MANAGER_ABI = exports.FAST_FLAUNCH_ZAP_ABI = exports.Permit2Address = exports.UniversalRouterAddress = exports.QuoterAddress = exports.FLETHHooksAddress = exports.FLETHAddress = exports.FlaunchPositionManagerAddress = exports.FastFlaunchZapAddress = exports.ERC20_ABI = void 0;
4
+ const viem_1 = require("viem");
5
+ const chains_1 = require("viem/chains");
6
+ const constants_1 = require("../erc20/constants");
7
+ Object.defineProperty(exports, "ERC20_ABI", { enumerable: true, get: function () { return constants_1.abi; } });
8
+ exports.FastFlaunchZapAddress = {
9
+ [chains_1.base.id]: "0xd79e27f51ddf9df5ee76106ee192530f474b02f6",
10
+ [chains_1.baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
11
+ };
12
+ exports.FlaunchPositionManagerAddress = {
13
+ [chains_1.base.id]: "0x51Bba15255406Cfe7099a42183302640ba7dAFDC",
14
+ [chains_1.baseSepolia.id]: "0x9A7059cA00dA92843906Cb4bCa1D005cE848AFdC",
15
+ };
16
+ exports.FLETHAddress = {
17
+ [chains_1.base.id]: "0x000000000D564D5be76f7f0d28fE52605afC7Cf8",
18
+ [chains_1.baseSepolia.id]: "0x79FC52701cD4BE6f9Ba9aDC94c207DE37e3314eb",
19
+ };
20
+ exports.FLETHHooksAddress = {
21
+ [chains_1.base.id]: "0x9E433F32bb5481a9CA7DFF5b3af74A7ed041a888",
22
+ [chains_1.baseSepolia.id]: "0x4bd2ca15286c96e4e731337de8b375da6841e888",
23
+ };
24
+ exports.QuoterAddress = {
25
+ [chains_1.base.id]: "0x0d5e0f971ed27fbff6c2837bf31316121532048d",
26
+ [chains_1.baseSepolia.id]: "0x4a6513c898fe1b2d0e78d3b0e0a4a151589b1cba",
27
+ };
28
+ exports.UniversalRouterAddress = {
29
+ [chains_1.base.id]: "0x6fF5693b99212Da76ad316178A184AB56D299b43",
30
+ [chains_1.baseSepolia.id]: "0x492E6456D9528771018DeB9E87ef7750EF184104",
31
+ };
32
+ exports.Permit2Address = {
33
+ [chains_1.base.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
34
+ [chains_1.baseSepolia.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
35
+ };
36
+ exports.FAST_FLAUNCH_ZAP_ABI = [
37
+ {
38
+ type: "function",
39
+ name: "flaunch",
40
+ inputs: [
41
+ {
42
+ name: "_params",
43
+ type: "tuple",
44
+ internalType: "struct FastFlaunchZap.FastFlaunchParams",
45
+ components: [
46
+ {
47
+ name: "name",
48
+ type: "string",
49
+ internalType: "string",
50
+ },
51
+ {
52
+ name: "symbol",
53
+ type: "string",
54
+ internalType: "string",
55
+ },
56
+ {
57
+ name: "tokenUri",
58
+ type: "string",
59
+ internalType: "string",
60
+ },
61
+ {
62
+ name: "creator",
63
+ type: "address",
64
+ internalType: "address",
65
+ },
66
+ ],
67
+ },
68
+ ],
69
+ outputs: [
70
+ {
71
+ name: "memecoin_",
72
+ type: "address",
73
+ internalType: "address",
74
+ },
75
+ ],
76
+ stateMutability: "nonpayable",
77
+ },
78
+ ];
79
+ exports.POSITION_MANAGER_ABI = (0, viem_1.parseAbi)([
80
+ "event PoolCreated(bytes32 indexed _poolId, address _memecoin, address _memecoinTreasury, uint256 _tokenId, bool _currencyFlipped, uint256 _flaunchFee, (string name, string symbol, string tokenUri, uint256 initialTokenFairLaunch, uint256 premineAmount, address creator, uint24 creatorFeeAllocation, uint256 flaunchAt, bytes initialPriceParams, bytes feeCalculatorParams) _params)",
81
+ "event PoolSwap(bytes32 indexed poolId, int flAmount0, int flAmount1, int flFee0, int flFee1, int ispAmount0, int ispAmount1, int ispFee0, int ispFee1, int uniAmount0, int uniAmount1, int uniFee0, int uniFee1)",
82
+ ]);
83
+ exports.QUOTER_ABI = [
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "contract IPoolManager",
88
+ name: "_poolManager",
89
+ type: "address",
90
+ },
91
+ ],
92
+ stateMutability: "nonpayable",
93
+ type: "constructor",
94
+ },
95
+ {
96
+ inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
97
+ name: "NotEnoughLiquidity",
98
+ type: "error",
99
+ },
100
+ { inputs: [], name: "NotPoolManager", type: "error" },
101
+ { inputs: [], name: "NotSelf", type: "error" },
102
+ {
103
+ inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
104
+ name: "QuoteSwap",
105
+ type: "error",
106
+ },
107
+ { inputs: [], name: "UnexpectedCallSuccess", type: "error" },
108
+ {
109
+ inputs: [{ internalType: "bytes", name: "revertData", type: "bytes" }],
110
+ name: "UnexpectedRevertBytes",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ components: [
117
+ { internalType: "Currency", name: "exactCurrency", type: "address" },
118
+ {
119
+ components: [
120
+ {
121
+ internalType: "Currency",
122
+ name: "intermediateCurrency",
123
+ type: "address",
124
+ },
125
+ { internalType: "uint24", name: "fee", type: "uint24" },
126
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
127
+ {
128
+ internalType: "contract IHooks",
129
+ name: "hooks",
130
+ type: "address",
131
+ },
132
+ { internalType: "bytes", name: "hookData", type: "bytes" },
133
+ ],
134
+ internalType: "struct PathKey[]",
135
+ name: "path",
136
+ type: "tuple[]",
137
+ },
138
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
139
+ ],
140
+ internalType: "struct IV4Quoter.QuoteExactParams",
141
+ name: "params",
142
+ type: "tuple",
143
+ },
144
+ ],
145
+ name: "_quoteExactInput",
146
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
147
+ stateMutability: "nonpayable",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ components: [
154
+ {
155
+ components: [
156
+ { internalType: "Currency", name: "currency0", type: "address" },
157
+ { internalType: "Currency", name: "currency1", type: "address" },
158
+ { internalType: "uint24", name: "fee", type: "uint24" },
159
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
160
+ {
161
+ internalType: "contract IHooks",
162
+ name: "hooks",
163
+ type: "address",
164
+ },
165
+ ],
166
+ internalType: "struct PoolKey",
167
+ name: "poolKey",
168
+ type: "tuple",
169
+ },
170
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
171
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
172
+ { internalType: "bytes", name: "hookData", type: "bytes" },
173
+ ],
174
+ internalType: "struct IV4Quoter.QuoteExactSingleParams",
175
+ name: "params",
176
+ type: "tuple",
177
+ },
178
+ ],
179
+ name: "_quoteExactInputSingle",
180
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
181
+ stateMutability: "nonpayable",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ components: [
188
+ { internalType: "Currency", name: "exactCurrency", type: "address" },
189
+ {
190
+ components: [
191
+ {
192
+ internalType: "Currency",
193
+ name: "intermediateCurrency",
194
+ type: "address",
195
+ },
196
+ { internalType: "uint24", name: "fee", type: "uint24" },
197
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
198
+ {
199
+ internalType: "contract IHooks",
200
+ name: "hooks",
201
+ type: "address",
202
+ },
203
+ { internalType: "bytes", name: "hookData", type: "bytes" },
204
+ ],
205
+ internalType: "struct PathKey[]",
206
+ name: "path",
207
+ type: "tuple[]",
208
+ },
209
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
210
+ ],
211
+ internalType: "struct IV4Quoter.QuoteExactParams",
212
+ name: "params",
213
+ type: "tuple",
214
+ },
215
+ ],
216
+ name: "_quoteExactOutput",
217
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
218
+ stateMutability: "nonpayable",
219
+ type: "function",
220
+ },
221
+ {
222
+ inputs: [
223
+ {
224
+ components: [
225
+ {
226
+ components: [
227
+ { internalType: "Currency", name: "currency0", type: "address" },
228
+ { internalType: "Currency", name: "currency1", type: "address" },
229
+ { internalType: "uint24", name: "fee", type: "uint24" },
230
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
231
+ {
232
+ internalType: "contract IHooks",
233
+ name: "hooks",
234
+ type: "address",
235
+ },
236
+ ],
237
+ internalType: "struct PoolKey",
238
+ name: "poolKey",
239
+ type: "tuple",
240
+ },
241
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
242
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
243
+ { internalType: "bytes", name: "hookData", type: "bytes" },
244
+ ],
245
+ internalType: "struct IV4Quoter.QuoteExactSingleParams",
246
+ name: "params",
247
+ type: "tuple",
248
+ },
249
+ ],
250
+ name: "_quoteExactOutputSingle",
251
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
252
+ stateMutability: "nonpayable",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: "poolManager",
258
+ outputs: [{ internalType: "contract IPoolManager", name: "", type: "address" }],
259
+ stateMutability: "view",
260
+ type: "function",
261
+ },
262
+ {
263
+ inputs: [
264
+ {
265
+ components: [
266
+ { internalType: "Currency", name: "exactCurrency", type: "address" },
267
+ {
268
+ components: [
269
+ {
270
+ internalType: "Currency",
271
+ name: "intermediateCurrency",
272
+ type: "address",
273
+ },
274
+ { internalType: "uint24", name: "fee", type: "uint24" },
275
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
276
+ {
277
+ internalType: "contract IHooks",
278
+ name: "hooks",
279
+ type: "address",
280
+ },
281
+ { internalType: "bytes", name: "hookData", type: "bytes" },
282
+ ],
283
+ internalType: "struct PathKey[]",
284
+ name: "path",
285
+ type: "tuple[]",
286
+ },
287
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
288
+ ],
289
+ internalType: "struct IV4Quoter.QuoteExactParams",
290
+ name: "params",
291
+ type: "tuple",
292
+ },
293
+ ],
294
+ name: "quoteExactInput",
295
+ outputs: [
296
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
297
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
298
+ ],
299
+ stateMutability: "nonpayable",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [
304
+ {
305
+ components: [
306
+ {
307
+ components: [
308
+ { internalType: "Currency", name: "currency0", type: "address" },
309
+ { internalType: "Currency", name: "currency1", type: "address" },
310
+ { internalType: "uint24", name: "fee", type: "uint24" },
311
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
312
+ {
313
+ internalType: "contract IHooks",
314
+ name: "hooks",
315
+ type: "address",
316
+ },
317
+ ],
318
+ internalType: "struct PoolKey",
319
+ name: "poolKey",
320
+ type: "tuple",
321
+ },
322
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
323
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
324
+ { internalType: "bytes", name: "hookData", type: "bytes" },
325
+ ],
326
+ internalType: "struct IV4Quoter.QuoteExactSingleParams",
327
+ name: "params",
328
+ type: "tuple",
329
+ },
330
+ ],
331
+ name: "quoteExactInputSingle",
332
+ outputs: [
333
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
334
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
335
+ ],
336
+ stateMutability: "nonpayable",
337
+ type: "function",
338
+ },
339
+ {
340
+ inputs: [
341
+ {
342
+ components: [
343
+ { internalType: "Currency", name: "exactCurrency", type: "address" },
344
+ {
345
+ components: [
346
+ {
347
+ internalType: "Currency",
348
+ name: "intermediateCurrency",
349
+ type: "address",
350
+ },
351
+ { internalType: "uint24", name: "fee", type: "uint24" },
352
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
353
+ {
354
+ internalType: "contract IHooks",
355
+ name: "hooks",
356
+ type: "address",
357
+ },
358
+ { internalType: "bytes", name: "hookData", type: "bytes" },
359
+ ],
360
+ internalType: "struct PathKey[]",
361
+ name: "path",
362
+ type: "tuple[]",
363
+ },
364
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
365
+ ],
366
+ internalType: "struct IV4Quoter.QuoteExactParams",
367
+ name: "params",
368
+ type: "tuple",
369
+ },
370
+ ],
371
+ name: "quoteExactOutput",
372
+ outputs: [
373
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
374
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
375
+ ],
376
+ stateMutability: "nonpayable",
377
+ type: "function",
378
+ },
379
+ {
380
+ inputs: [
381
+ {
382
+ components: [
383
+ {
384
+ components: [
385
+ { internalType: "Currency", name: "currency0", type: "address" },
386
+ { internalType: "Currency", name: "currency1", type: "address" },
387
+ { internalType: "uint24", name: "fee", type: "uint24" },
388
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
389
+ {
390
+ internalType: "contract IHooks",
391
+ name: "hooks",
392
+ type: "address",
393
+ },
394
+ ],
395
+ internalType: "struct PoolKey",
396
+ name: "poolKey",
397
+ type: "tuple",
398
+ },
399
+ { internalType: "bool", name: "zeroForOne", type: "bool" },
400
+ { internalType: "uint128", name: "exactAmount", type: "uint128" },
401
+ { internalType: "bytes", name: "hookData", type: "bytes" },
402
+ ],
403
+ internalType: "struct IV4Quoter.QuoteExactSingleParams",
404
+ name: "params",
405
+ type: "tuple",
406
+ },
407
+ ],
408
+ name: "quoteExactOutputSingle",
409
+ outputs: [
410
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
411
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
412
+ ],
413
+ stateMutability: "nonpayable",
414
+ type: "function",
415
+ },
416
+ {
417
+ inputs: [{ internalType: "bytes", name: "data", type: "bytes" }],
418
+ name: "unlockCallback",
419
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
420
+ stateMutability: "nonpayable",
421
+ type: "function",
422
+ },
423
+ ];
424
+ exports.IV4RouterAbiExactInput = [
425
+ {
426
+ type: "tuple",
427
+ components: [
428
+ { type: "address", name: "currencyIn" },
429
+ {
430
+ type: "tuple[]",
431
+ name: "path",
432
+ components: [
433
+ { type: "address", name: "intermediateCurrency" },
434
+ { type: "uint24", name: "fee" },
435
+ { type: "int24", name: "tickSpacing" },
436
+ { type: "address", name: "hooks" },
437
+ { type: "bytes", name: "hookData" },
438
+ ],
439
+ },
440
+ { type: "uint128", name: "amountIn" },
441
+ { type: "uint128", name: "amountOutMinimum" },
442
+ ],
443
+ },
444
+ ];
445
+ exports.IV4RouterAbiExactOutput = [
446
+ {
447
+ type: "tuple",
448
+ components: [
449
+ { type: "address", name: "currencyOut" },
450
+ {
451
+ type: "tuple[]",
452
+ name: "path",
453
+ components: [
454
+ { type: "address", name: "intermediateCurrency" },
455
+ { type: "uint24", name: "fee" },
456
+ { type: "int24", name: "tickSpacing" },
457
+ { type: "address", name: "hooks" },
458
+ { type: "bytes", name: "hookData" },
459
+ ],
460
+ },
461
+ { type: "uint128", name: "amountOut" },
462
+ { type: "uint128", name: "amountInMaximum" },
463
+ ],
464
+ },
465
+ ];
466
+ exports.V4Actions = {
467
+ SWAP_EXACT_IN: "07",
468
+ SWAP_EXACT_OUT: "09",
469
+ SETTLE_ALL: "0c",
470
+ TAKE_ALL: "0f",
471
+ };
472
+ exports.URCommands = {
473
+ V4_SWAP: "10",
474
+ SWEEP: "04",
475
+ PERMIT2_PERMIT: "0a",
476
+ };
477
+ exports.UNIVERSAL_ROUTER_ABI = [
478
+ {
479
+ inputs: [
480
+ {
481
+ components: [
482
+ { internalType: "address", name: "permit2", type: "address" },
483
+ { internalType: "address", name: "weth9", type: "address" },
484
+ { internalType: "address", name: "v2Factory", type: "address" },
485
+ { internalType: "address", name: "v3Factory", type: "address" },
486
+ {
487
+ internalType: "bytes32",
488
+ name: "pairInitCodeHash",
489
+ type: "bytes32",
490
+ },
491
+ {
492
+ internalType: "bytes32",
493
+ name: "poolInitCodeHash",
494
+ type: "bytes32",
495
+ },
496
+ { internalType: "address", name: "v4PoolManager", type: "address" },
497
+ {
498
+ internalType: "address",
499
+ name: "v3NFTPositionManager",
500
+ type: "address",
501
+ },
502
+ {
503
+ internalType: "address",
504
+ name: "v4PositionManager",
505
+ type: "address",
506
+ },
507
+ ],
508
+ internalType: "struct RouterParameters",
509
+ name: "params",
510
+ type: "tuple",
511
+ },
512
+ ],
513
+ stateMutability: "nonpayable",
514
+ type: "constructor",
515
+ },
516
+ { inputs: [], name: "BalanceTooLow", type: "error" },
517
+ { inputs: [], name: "ContractLocked", type: "error" },
518
+ {
519
+ inputs: [{ internalType: "Currency", name: "currency", type: "address" }],
520
+ name: "DeltaNotNegative",
521
+ type: "error",
522
+ },
523
+ {
524
+ inputs: [{ internalType: "Currency", name: "currency", type: "address" }],
525
+ name: "DeltaNotPositive",
526
+ type: "error",
527
+ },
528
+ { inputs: [], name: "ETHNotAccepted", type: "error" },
529
+ {
530
+ inputs: [
531
+ { internalType: "uint256", name: "commandIndex", type: "uint256" },
532
+ { internalType: "bytes", name: "message", type: "bytes" },
533
+ ],
534
+ name: "ExecutionFailed",
535
+ type: "error",
536
+ },
537
+ { inputs: [], name: "FromAddressIsNotOwner", type: "error" },
538
+ { inputs: [], name: "InputLengthMismatch", type: "error" },
539
+ { inputs: [], name: "InsufficientBalance", type: "error" },
540
+ { inputs: [], name: "InsufficientETH", type: "error" },
541
+ { inputs: [], name: "InsufficientToken", type: "error" },
542
+ {
543
+ inputs: [{ internalType: "bytes4", name: "action", type: "bytes4" }],
544
+ name: "InvalidAction",
545
+ type: "error",
546
+ },
547
+ { inputs: [], name: "InvalidBips", type: "error" },
548
+ {
549
+ inputs: [{ internalType: "uint256", name: "commandType", type: "uint256" }],
550
+ name: "InvalidCommandType",
551
+ type: "error",
552
+ },
553
+ { inputs: [], name: "InvalidEthSender", type: "error" },
554
+ { inputs: [], name: "InvalidPath", type: "error" },
555
+ { inputs: [], name: "InvalidReserves", type: "error" },
556
+ { inputs: [], name: "LengthMismatch", type: "error" },
557
+ {
558
+ inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
559
+ name: "NotAuthorizedForToken",
560
+ type: "error",
561
+ },
562
+ { inputs: [], name: "NotPoolManager", type: "error" },
563
+ { inputs: [], name: "OnlyMintAllowed", type: "error" },
564
+ { inputs: [], name: "SliceOutOfBounds", type: "error" },
565
+ { inputs: [], name: "TransactionDeadlinePassed", type: "error" },
566
+ { inputs: [], name: "UnsafeCast", type: "error" },
567
+ {
568
+ inputs: [{ internalType: "uint256", name: "action", type: "uint256" }],
569
+ name: "UnsupportedAction",
570
+ type: "error",
571
+ },
572
+ { inputs: [], name: "V2InvalidPath", type: "error" },
573
+ { inputs: [], name: "V2TooLittleReceived", type: "error" },
574
+ { inputs: [], name: "V2TooMuchRequested", type: "error" },
575
+ { inputs: [], name: "V3InvalidAmountOut", type: "error" },
576
+ { inputs: [], name: "V3InvalidCaller", type: "error" },
577
+ { inputs: [], name: "V3InvalidSwap", type: "error" },
578
+ { inputs: [], name: "V3TooLittleReceived", type: "error" },
579
+ { inputs: [], name: "V3TooMuchRequested", type: "error" },
580
+ {
581
+ inputs: [
582
+ {
583
+ internalType: "uint256",
584
+ name: "minAmountOutReceived",
585
+ type: "uint256",
586
+ },
587
+ { internalType: "uint256", name: "amountReceived", type: "uint256" },
588
+ ],
589
+ name: "V4TooLittleReceived",
590
+ type: "error",
591
+ },
592
+ {
593
+ inputs: [
594
+ {
595
+ internalType: "uint256",
596
+ name: "maxAmountInRequested",
597
+ type: "uint256",
598
+ },
599
+ { internalType: "uint256", name: "amountRequested", type: "uint256" },
600
+ ],
601
+ name: "V4TooMuchRequested",
602
+ type: "error",
603
+ },
604
+ {
605
+ inputs: [],
606
+ name: "V3_POSITION_MANAGER",
607
+ outputs: [
608
+ {
609
+ internalType: "contract INonfungiblePositionManager",
610
+ name: "",
611
+ type: "address",
612
+ },
613
+ ],
614
+ stateMutability: "view",
615
+ type: "function",
616
+ },
617
+ {
618
+ inputs: [],
619
+ name: "V4_POSITION_MANAGER",
620
+ outputs: [{ internalType: "contract IPositionManager", name: "", type: "address" }],
621
+ stateMutability: "view",
622
+ type: "function",
623
+ },
624
+ {
625
+ inputs: [
626
+ { internalType: "bytes", name: "commands", type: "bytes" },
627
+ { internalType: "bytes[]", name: "inputs", type: "bytes[]" },
628
+ ],
629
+ name: "execute",
630
+ outputs: [],
631
+ stateMutability: "payable",
632
+ type: "function",
633
+ },
634
+ {
635
+ inputs: [
636
+ { internalType: "bytes", name: "commands", type: "bytes" },
637
+ { internalType: "bytes[]", name: "inputs", type: "bytes[]" },
638
+ { internalType: "uint256", name: "deadline", type: "uint256" },
639
+ ],
640
+ name: "execute",
641
+ outputs: [],
642
+ stateMutability: "payable",
643
+ type: "function",
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: "msgSender",
648
+ outputs: [{ internalType: "address", name: "", type: "address" }],
649
+ stateMutability: "view",
650
+ type: "function",
651
+ },
652
+ {
653
+ inputs: [],
654
+ name: "poolManager",
655
+ outputs: [{ internalType: "contract IPoolManager", name: "", type: "address" }],
656
+ stateMutability: "view",
657
+ type: "function",
658
+ },
659
+ {
660
+ inputs: [
661
+ { internalType: "int256", name: "amount0Delta", type: "int256" },
662
+ { internalType: "int256", name: "amount1Delta", type: "int256" },
663
+ { internalType: "bytes", name: "data", type: "bytes" },
664
+ ],
665
+ name: "uniswapV3SwapCallback",
666
+ outputs: [],
667
+ stateMutability: "nonpayable",
668
+ type: "function",
669
+ },
670
+ {
671
+ inputs: [{ internalType: "bytes", name: "data", type: "bytes" }],
672
+ name: "unlockCallback",
673
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
674
+ stateMutability: "nonpayable",
675
+ type: "function",
676
+ },
677
+ { stateMutability: "payable", type: "receive" },
678
+ ];
679
+ exports.PERMIT2_ABI = [
680
+ {
681
+ inputs: [
682
+ { internalType: "address", name: "", type: "address" },
683
+ { internalType: "address", name: "", type: "address" },
684
+ { internalType: "address", name: "", type: "address" },
685
+ ],
686
+ name: "allowance",
687
+ outputs: [
688
+ { internalType: "uint160", name: "amount", type: "uint160" },
689
+ { internalType: "uint48", name: "expiration", type: "uint48" },
690
+ { internalType: "uint48", name: "nonce", type: "uint48" },
691
+ ],
692
+ stateMutability: "view",
693
+ type: "function",
694
+ },
695
+ ];
696
+ exports.PERMIT_DETAILS = [
697
+ { name: "token", type: "address" },
698
+ { name: "amount", type: "uint160" },
699
+ { name: "expiration", type: "uint48" },
700
+ { name: "nonce", type: "uint48" },
701
+ ];
702
+ exports.PERMIT_TYPES = {
703
+ PermitSingle: [
704
+ { name: "details", type: "PermitDetails" },
705
+ { name: "spender", type: "address" },
706
+ { name: "sigDeadline", type: "uint256" },
707
+ ],
708
+ PermitDetails: exports.PERMIT_DETAILS,
709
+ };