@swapkit/helpers 2.4.3 → 3.0.0-beta.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 (106) hide show
  1. package/dist/api/index.cjs +3 -0
  2. package/dist/api/index.cjs.map +16 -0
  3. package/dist/api/index.js +3 -0
  4. package/dist/api/index.js.map +16 -0
  5. package/dist/chunk-fazw0jvt.js +3 -0
  6. package/dist/chunk-fazw0jvt.js.map +9 -0
  7. package/dist/chunk-nm00d52v.js +4 -0
  8. package/dist/chunk-nm00d52v.js.map +9 -0
  9. package/dist/contracts/index.cjs +3 -0
  10. package/dist/contracts/index.cjs.map +38 -0
  11. package/dist/contracts/index.js +3 -0
  12. package/dist/contracts/index.js.map +38 -0
  13. package/dist/index.cjs +6 -0
  14. package/dist/index.cjs.map +29 -0
  15. package/dist/index.js +3 -3
  16. package/dist/index.js.map +19 -20
  17. package/dist/tokens/index.cjs +3 -0
  18. package/dist/tokens/index.cjs.map +23 -0
  19. package/dist/tokens/index.js +3 -0
  20. package/dist/tokens/index.js.map +23 -0
  21. package/package.json +31 -15
  22. package/src/api/index.ts +19 -0
  23. package/src/api/microgard/endpoints.ts +83 -0
  24. package/src/api/microgard/types.ts +60 -0
  25. package/src/api/midgard/endpoints.ts +166 -0
  26. package/src/api/midgard/types.ts +155 -0
  27. package/src/api/swapkitApi/endpoints.ts +266 -0
  28. package/src/api/swapkitApi/types.ts +772 -0
  29. package/src/api/thornode/endpoints.ts +78 -0
  30. package/src/api/thornode/types.ts +241 -0
  31. package/src/api/thorswapStatic/endpoints.ts +30 -0
  32. package/src/api/thorswapStatic/types.ts +18 -0
  33. package/src/contracts/abis/avaxGeneric.ts +92 -0
  34. package/src/contracts/abis/avaxWoofi.ts +145 -0
  35. package/src/contracts/abis/bscGeneric.ts +106 -0
  36. package/src/contracts/abis/chainflipGateway.ts +330 -0
  37. package/src/contracts/abis/erc20.ts +99 -0
  38. package/src/contracts/abis/ethGeneric.ts +92 -0
  39. package/src/contracts/abis/mayaEvmVaults.ts +331 -0
  40. package/src/contracts/abis/pancakeV2.ts +145 -0
  41. package/src/contracts/abis/pangolin.ts +120 -0
  42. package/src/contracts/abis/sushiswap.ts +120 -0
  43. package/src/contracts/abis/tcEthVault.ts +650 -0
  44. package/src/contracts/abis/traderJoe.ts +120 -0
  45. package/src/contracts/abis/uniswapV2.ts +120 -0
  46. package/src/contracts/abis/uniswapV2Leg.ts +128 -0
  47. package/src/contracts/abis/uniswapV3_100.ts +128 -0
  48. package/src/contracts/abis/uniswapV3_10000.ts +128 -0
  49. package/src/contracts/abis/uniswapV3_3000.ts +128 -0
  50. package/src/contracts/abis/uniswapV3_500.ts +128 -0
  51. package/src/contracts/index.ts +95 -0
  52. package/src/contracts/routers/index.ts +58 -0
  53. package/src/contracts/routers/kyber.ts +402 -0
  54. package/src/contracts/routers/oneinch.ts +2188 -0
  55. package/src/contracts/routers/pancakeswap.ts +340 -0
  56. package/src/contracts/routers/pangolin.ts +340 -0
  57. package/src/contracts/routers/sushiswap.ts +340 -0
  58. package/src/contracts/routers/traderJoe.ts +340 -0
  59. package/src/contracts/routers/uniswapv2.ts +340 -0
  60. package/src/contracts/routers/uniswapv3.ts +254 -0
  61. package/src/contracts/routers/woofi.ts +171 -0
  62. package/src/index.ts +11 -12
  63. package/src/modules/__tests__/assetValue.test.ts +0 -2
  64. package/src/modules/__tests__/swapKitConfig.test.ts +37 -0
  65. package/src/modules/assetValue.ts +26 -92
  66. package/src/modules/bigIntArithmetics.ts +6 -2
  67. package/src/modules/requestClient.ts +26 -35
  68. package/src/modules/swapKitConfig.ts +131 -0
  69. package/src/modules/swapKitError.ts +6 -6
  70. package/src/tokens/index.ts +15 -0
  71. package/src/tokens/lists/camelot_v3.ts +15920 -0
  72. package/src/tokens/lists/caviar_v1.ts +1694 -0
  73. package/src/tokens/lists/chainflip.ts +104 -0
  74. package/src/tokens/lists/index.ts +13 -0
  75. package/src/tokens/lists/jupiter.ts +29606 -0
  76. package/src/tokens/lists/mayachain.ts +513 -0
  77. package/src/tokens/lists/oneinch.ts +14238 -0
  78. package/src/tokens/lists/openocean_v2.ts +11514 -0
  79. package/src/tokens/lists/pancakeswap.ts +4296 -0
  80. package/src/tokens/lists/pangolin_v1.ts +175 -0
  81. package/src/tokens/lists/sushiswap_v2.ts +965 -0
  82. package/src/tokens/lists/thorchain.ts +669 -0
  83. package/src/tokens/lists/traderjoe_v2.ts +1384 -0
  84. package/src/tokens/lists/uniswap_v2.ts +5596 -0
  85. package/src/tokens/lists/uniswap_v3.ts +5946 -0
  86. package/src/types/chains.ts +26 -46
  87. package/src/types/commonTypes.ts +3 -90
  88. package/src/types/index.ts +3 -4
  89. package/src/types/sdk.ts +0 -24
  90. package/src/types/tokens.ts +1 -1
  91. package/src/types/wallet.ts +37 -21
  92. package/src/{helpers → utils}/asset.ts +49 -19
  93. package/src/{helpers → utils}/derivationPath.ts +7 -2
  94. package/src/{helpers → utils}/memo.ts +0 -65
  95. package/src/{helpers → utils}/others.ts +12 -5
  96. package/src/utils/plugin.ts +13 -0
  97. package/src/{helpers/web3wallets.ts → utils/wallets.ts} +175 -148
  98. package/src/modules/walletUtils.ts +0 -30
  99. package/src/types/network.ts +0 -49
  100. /package/src/{helpers → utils}/__tests__/asset.test.ts +0 -0
  101. /package/src/{helpers/__tests__/derivationPath.ts → utils/__tests__/derivationPath.test.ts} +0 -0
  102. /package/src/{helpers → utils}/__tests__/memo.test.ts +0 -0
  103. /package/src/{helpers → utils}/__tests__/others.test.ts +0 -0
  104. /package/src/{helpers → utils}/__tests__/validators.test.ts +0 -0
  105. /package/src/{helpers → utils}/liquidity.ts +0 -0
  106. /package/src/{helpers → utils}/validators.ts +0 -0
@@ -0,0 +1,2188 @@
1
+ export const oneInchRouter = [
2
+ {
3
+ inputs: [
4
+ {
5
+ internalType: "contract IWETH",
6
+ name: "weth",
7
+ type: "address",
8
+ },
9
+ ],
10
+ stateMutability: "nonpayable",
11
+ type: "constructor",
12
+ },
13
+ {
14
+ inputs: [],
15
+ name: "AccessDenied",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "AdvanceNonceFailed",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "AlreadyFilled",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "ArbitraryStaticCallFailed",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "BadPool",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "BadSignature",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "ETHTransferFailed",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "ETHTransferFailed",
51
+ type: "error",
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: "EmptyPools",
56
+ type: "error",
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: "EthDepositRejected",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "GetAmountCallFailed",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "IncorrectDataLength",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: "InsufficientBalance",
76
+ type: "error",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "InvalidMsgValue",
81
+ type: "error",
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: "InvalidMsgValue",
86
+ type: "error",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "InvalidatedOrder",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "MakingAmountExceeded",
96
+ type: "error",
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: "MakingAmountTooLow",
101
+ type: "error",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "OnlyOneAmountShouldBeZero",
106
+ type: "error",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "OrderExpired",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [],
115
+ name: "PermitLengthTooLow",
116
+ type: "error",
117
+ },
118
+ {
119
+ inputs: [],
120
+ name: "PredicateIsNotTrue",
121
+ type: "error",
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: "PrivateOrder",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: "RFQBadSignature",
131
+ type: "error",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "RFQPrivateOrder",
136
+ type: "error",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "RFQSwapWithZeroAmount",
141
+ type: "error",
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: "RFQZeroTargetIsForbidden",
146
+ type: "error",
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: "ReentrancyDetected",
151
+ type: "error",
152
+ },
153
+ {
154
+ inputs: [],
155
+ name: "RemainingAmountIsZero",
156
+ type: "error",
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: "ReservesCallFailed",
161
+ type: "error",
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: "ReturnAmountIsNotEnough",
166
+ type: "error",
167
+ },
168
+ {
169
+ inputs: [],
170
+ name: "SafePermitBadLength",
171
+ type: "error",
172
+ },
173
+ {
174
+ inputs: [],
175
+ name: "SafeTransferFailed",
176
+ type: "error",
177
+ },
178
+ {
179
+ inputs: [],
180
+ name: "SafeTransferFromFailed",
181
+ type: "error",
182
+ },
183
+ {
184
+ inputs: [
185
+ {
186
+ internalType: "bool",
187
+ name: "success",
188
+ type: "bool",
189
+ },
190
+ {
191
+ internalType: "bytes",
192
+ name: "res",
193
+ type: "bytes",
194
+ },
195
+ ],
196
+ name: "SimulationResults",
197
+ type: "error",
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: "SwapAmountTooLarge",
202
+ type: "error",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "SwapWithZeroAmount",
207
+ type: "error",
208
+ },
209
+ {
210
+ inputs: [],
211
+ name: "TakingAmountExceeded",
212
+ type: "error",
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: "TakingAmountIncreased",
217
+ type: "error",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "TakingAmountTooHigh",
222
+ type: "error",
223
+ },
224
+ {
225
+ inputs: [],
226
+ name: "TransferFromMakerToTakerFailed",
227
+ type: "error",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "TransferFromTakerToMakerFailed",
232
+ type: "error",
233
+ },
234
+ {
235
+ inputs: [],
236
+ name: "UnknownOrder",
237
+ type: "error",
238
+ },
239
+ {
240
+ inputs: [],
241
+ name: "WrongAmount",
242
+ type: "error",
243
+ },
244
+ {
245
+ inputs: [],
246
+ name: "WrongGetter",
247
+ type: "error",
248
+ },
249
+ {
250
+ inputs: [],
251
+ name: "ZeroAddress",
252
+ type: "error",
253
+ },
254
+ {
255
+ inputs: [],
256
+ name: "ZeroMinReturn",
257
+ type: "error",
258
+ },
259
+ {
260
+ inputs: [],
261
+ name: "ZeroReturnAmount",
262
+ type: "error",
263
+ },
264
+ {
265
+ inputs: [],
266
+ name: "ZeroTargetIsForbidden",
267
+ type: "error",
268
+ },
269
+ {
270
+ anonymous: false,
271
+ inputs: [
272
+ {
273
+ indexed: true,
274
+ internalType: "address",
275
+ name: "maker",
276
+ type: "address",
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: "uint256",
281
+ name: "newNonce",
282
+ type: "uint256",
283
+ },
284
+ ],
285
+ name: "NonceIncreased",
286
+ type: "event",
287
+ },
288
+ {
289
+ anonymous: false,
290
+ inputs: [
291
+ {
292
+ indexed: true,
293
+ internalType: "address",
294
+ name: "maker",
295
+ type: "address",
296
+ },
297
+ {
298
+ indexed: false,
299
+ internalType: "bytes32",
300
+ name: "orderHash",
301
+ type: "bytes32",
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: "uint256",
306
+ name: "remainingRaw",
307
+ type: "uint256",
308
+ },
309
+ ],
310
+ name: "OrderCanceled",
311
+ type: "event",
312
+ },
313
+ {
314
+ anonymous: false,
315
+ inputs: [
316
+ {
317
+ indexed: true,
318
+ internalType: "address",
319
+ name: "maker",
320
+ type: "address",
321
+ },
322
+ {
323
+ indexed: false,
324
+ internalType: "bytes32",
325
+ name: "orderHash",
326
+ type: "bytes32",
327
+ },
328
+ {
329
+ indexed: false,
330
+ internalType: "uint256",
331
+ name: "remaining",
332
+ type: "uint256",
333
+ },
334
+ ],
335
+ name: "OrderFilled",
336
+ type: "event",
337
+ },
338
+ {
339
+ anonymous: false,
340
+ inputs: [
341
+ {
342
+ indexed: false,
343
+ internalType: "bytes32",
344
+ name: "orderHash",
345
+ type: "bytes32",
346
+ },
347
+ {
348
+ indexed: false,
349
+ internalType: "uint256",
350
+ name: "makingAmount",
351
+ type: "uint256",
352
+ },
353
+ ],
354
+ name: "OrderFilledRFQ",
355
+ type: "event",
356
+ },
357
+ {
358
+ anonymous: false,
359
+ inputs: [
360
+ {
361
+ indexed: true,
362
+ internalType: "address",
363
+ name: "previousOwner",
364
+ type: "address",
365
+ },
366
+ {
367
+ indexed: true,
368
+ internalType: "address",
369
+ name: "newOwner",
370
+ type: "address",
371
+ },
372
+ ],
373
+ name: "OwnershipTransferred",
374
+ type: "event",
375
+ },
376
+ {
377
+ inputs: [
378
+ {
379
+ internalType: "uint8",
380
+ name: "amount",
381
+ type: "uint8",
382
+ },
383
+ ],
384
+ name: "advanceNonce",
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "uint256",
393
+ name: "offsets",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "bytes",
398
+ name: "data",
399
+ type: "bytes",
400
+ },
401
+ ],
402
+ name: "and",
403
+ outputs: [
404
+ {
405
+ internalType: "bool",
406
+ name: "",
407
+ type: "bool",
408
+ },
409
+ ],
410
+ stateMutability: "view",
411
+ type: "function",
412
+ },
413
+ {
414
+ inputs: [
415
+ {
416
+ internalType: "address",
417
+ name: "target",
418
+ type: "address",
419
+ },
420
+ {
421
+ internalType: "bytes",
422
+ name: "data",
423
+ type: "bytes",
424
+ },
425
+ ],
426
+ name: "arbitraryStaticCall",
427
+ outputs: [
428
+ {
429
+ internalType: "uint256",
430
+ name: "",
431
+ type: "uint256",
432
+ },
433
+ ],
434
+ stateMutability: "view",
435
+ type: "function",
436
+ },
437
+ {
438
+ inputs: [
439
+ {
440
+ components: [
441
+ {
442
+ internalType: "uint256",
443
+ name: "salt",
444
+ type: "uint256",
445
+ },
446
+ {
447
+ internalType: "address",
448
+ name: "makerAsset",
449
+ type: "address",
450
+ },
451
+ {
452
+ internalType: "address",
453
+ name: "takerAsset",
454
+ type: "address",
455
+ },
456
+ {
457
+ internalType: "address",
458
+ name: "maker",
459
+ type: "address",
460
+ },
461
+ {
462
+ internalType: "address",
463
+ name: "receiver",
464
+ type: "address",
465
+ },
466
+ {
467
+ internalType: "address",
468
+ name: "allowedSender",
469
+ type: "address",
470
+ },
471
+ {
472
+ internalType: "uint256",
473
+ name: "makingAmount",
474
+ type: "uint256",
475
+ },
476
+ {
477
+ internalType: "uint256",
478
+ name: "takingAmount",
479
+ type: "uint256",
480
+ },
481
+ {
482
+ internalType: "uint256",
483
+ name: "offsets",
484
+ type: "uint256",
485
+ },
486
+ {
487
+ internalType: "bytes",
488
+ name: "interactions",
489
+ type: "bytes",
490
+ },
491
+ ],
492
+ internalType: "struct OrderLib.Order",
493
+ name: "order",
494
+ type: "tuple",
495
+ },
496
+ ],
497
+ name: "cancelOrder",
498
+ outputs: [
499
+ {
500
+ internalType: "uint256",
501
+ name: "orderRemaining",
502
+ type: "uint256",
503
+ },
504
+ {
505
+ internalType: "bytes32",
506
+ name: "orderHash",
507
+ type: "bytes32",
508
+ },
509
+ ],
510
+ stateMutability: "nonpayable",
511
+ type: "function",
512
+ },
513
+ {
514
+ inputs: [
515
+ {
516
+ internalType: "uint256",
517
+ name: "orderInfo",
518
+ type: "uint256",
519
+ },
520
+ ],
521
+ name: "cancelOrderRFQ",
522
+ outputs: [],
523
+ stateMutability: "nonpayable",
524
+ type: "function",
525
+ },
526
+ {
527
+ inputs: [
528
+ {
529
+ internalType: "uint256",
530
+ name: "orderInfo",
531
+ type: "uint256",
532
+ },
533
+ {
534
+ internalType: "uint256",
535
+ name: "additionalMask",
536
+ type: "uint256",
537
+ },
538
+ ],
539
+ name: "cancelOrderRFQ",
540
+ outputs: [],
541
+ stateMutability: "nonpayable",
542
+ type: "function",
543
+ },
544
+ {
545
+ inputs: [
546
+ {
547
+ components: [
548
+ {
549
+ internalType: "uint256",
550
+ name: "salt",
551
+ type: "uint256",
552
+ },
553
+ {
554
+ internalType: "address",
555
+ name: "makerAsset",
556
+ type: "address",
557
+ },
558
+ {
559
+ internalType: "address",
560
+ name: "takerAsset",
561
+ type: "address",
562
+ },
563
+ {
564
+ internalType: "address",
565
+ name: "maker",
566
+ type: "address",
567
+ },
568
+ {
569
+ internalType: "address",
570
+ name: "receiver",
571
+ type: "address",
572
+ },
573
+ {
574
+ internalType: "address",
575
+ name: "allowedSender",
576
+ type: "address",
577
+ },
578
+ {
579
+ internalType: "uint256",
580
+ name: "makingAmount",
581
+ type: "uint256",
582
+ },
583
+ {
584
+ internalType: "uint256",
585
+ name: "takingAmount",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "uint256",
590
+ name: "offsets",
591
+ type: "uint256",
592
+ },
593
+ {
594
+ internalType: "bytes",
595
+ name: "interactions",
596
+ type: "bytes",
597
+ },
598
+ ],
599
+ internalType: "struct OrderLib.Order",
600
+ name: "order",
601
+ type: "tuple",
602
+ },
603
+ ],
604
+ name: "checkPredicate",
605
+ outputs: [
606
+ {
607
+ internalType: "bool",
608
+ name: "",
609
+ type: "bool",
610
+ },
611
+ ],
612
+ stateMutability: "view",
613
+ type: "function",
614
+ },
615
+ {
616
+ inputs: [
617
+ {
618
+ internalType: "contract IClipperExchangeInterface",
619
+ name: "clipperExchange",
620
+ type: "address",
621
+ },
622
+ {
623
+ internalType: "contract IERC20",
624
+ name: "srcToken",
625
+ type: "address",
626
+ },
627
+ {
628
+ internalType: "contract IERC20",
629
+ name: "dstToken",
630
+ type: "address",
631
+ },
632
+ {
633
+ internalType: "uint256",
634
+ name: "inputAmount",
635
+ type: "uint256",
636
+ },
637
+ {
638
+ internalType: "uint256",
639
+ name: "outputAmount",
640
+ type: "uint256",
641
+ },
642
+ {
643
+ internalType: "uint256",
644
+ name: "goodUntil",
645
+ type: "uint256",
646
+ },
647
+ {
648
+ internalType: "bytes32",
649
+ name: "r",
650
+ type: "bytes32",
651
+ },
652
+ {
653
+ internalType: "bytes32",
654
+ name: "vs",
655
+ type: "bytes32",
656
+ },
657
+ ],
658
+ name: "clipperSwap",
659
+ outputs: [
660
+ {
661
+ internalType: "uint256",
662
+ name: "returnAmount",
663
+ type: "uint256",
664
+ },
665
+ ],
666
+ stateMutability: "payable",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [
671
+ {
672
+ internalType: "contract IClipperExchangeInterface",
673
+ name: "clipperExchange",
674
+ type: "address",
675
+ },
676
+ {
677
+ internalType: "address payable",
678
+ name: "recipient",
679
+ type: "address",
680
+ },
681
+ {
682
+ internalType: "contract IERC20",
683
+ name: "srcToken",
684
+ type: "address",
685
+ },
686
+ {
687
+ internalType: "contract IERC20",
688
+ name: "dstToken",
689
+ type: "address",
690
+ },
691
+ {
692
+ internalType: "uint256",
693
+ name: "inputAmount",
694
+ type: "uint256",
695
+ },
696
+ {
697
+ internalType: "uint256",
698
+ name: "outputAmount",
699
+ type: "uint256",
700
+ },
701
+ {
702
+ internalType: "uint256",
703
+ name: "goodUntil",
704
+ type: "uint256",
705
+ },
706
+ {
707
+ internalType: "bytes32",
708
+ name: "r",
709
+ type: "bytes32",
710
+ },
711
+ {
712
+ internalType: "bytes32",
713
+ name: "vs",
714
+ type: "bytes32",
715
+ },
716
+ ],
717
+ name: "clipperSwapTo",
718
+ outputs: [
719
+ {
720
+ internalType: "uint256",
721
+ name: "returnAmount",
722
+ type: "uint256",
723
+ },
724
+ ],
725
+ stateMutability: "payable",
726
+ type: "function",
727
+ },
728
+ {
729
+ inputs: [
730
+ {
731
+ internalType: "contract IClipperExchangeInterface",
732
+ name: "clipperExchange",
733
+ type: "address",
734
+ },
735
+ {
736
+ internalType: "address payable",
737
+ name: "recipient",
738
+ type: "address",
739
+ },
740
+ {
741
+ internalType: "contract IERC20",
742
+ name: "srcToken",
743
+ type: "address",
744
+ },
745
+ {
746
+ internalType: "contract IERC20",
747
+ name: "dstToken",
748
+ type: "address",
749
+ },
750
+ {
751
+ internalType: "uint256",
752
+ name: "inputAmount",
753
+ type: "uint256",
754
+ },
755
+ {
756
+ internalType: "uint256",
757
+ name: "outputAmount",
758
+ type: "uint256",
759
+ },
760
+ {
761
+ internalType: "uint256",
762
+ name: "goodUntil",
763
+ type: "uint256",
764
+ },
765
+ {
766
+ internalType: "bytes32",
767
+ name: "r",
768
+ type: "bytes32",
769
+ },
770
+ {
771
+ internalType: "bytes32",
772
+ name: "vs",
773
+ type: "bytes32",
774
+ },
775
+ {
776
+ internalType: "bytes",
777
+ name: "permit",
778
+ type: "bytes",
779
+ },
780
+ ],
781
+ name: "clipperSwapToWithPermit",
782
+ outputs: [
783
+ {
784
+ internalType: "uint256",
785
+ name: "returnAmount",
786
+ type: "uint256",
787
+ },
788
+ ],
789
+ stateMutability: "nonpayable",
790
+ type: "function",
791
+ },
792
+ {
793
+ inputs: [],
794
+ name: "destroy",
795
+ outputs: [],
796
+ stateMutability: "nonpayable",
797
+ type: "function",
798
+ },
799
+ {
800
+ inputs: [
801
+ {
802
+ internalType: "uint256",
803
+ name: "value",
804
+ type: "uint256",
805
+ },
806
+ {
807
+ internalType: "bytes",
808
+ name: "data",
809
+ type: "bytes",
810
+ },
811
+ ],
812
+ name: "eq",
813
+ outputs: [
814
+ {
815
+ internalType: "bool",
816
+ name: "",
817
+ type: "bool",
818
+ },
819
+ ],
820
+ stateMutability: "view",
821
+ type: "function",
822
+ },
823
+ {
824
+ inputs: [
825
+ {
826
+ components: [
827
+ {
828
+ internalType: "uint256",
829
+ name: "salt",
830
+ type: "uint256",
831
+ },
832
+ {
833
+ internalType: "address",
834
+ name: "makerAsset",
835
+ type: "address",
836
+ },
837
+ {
838
+ internalType: "address",
839
+ name: "takerAsset",
840
+ type: "address",
841
+ },
842
+ {
843
+ internalType: "address",
844
+ name: "maker",
845
+ type: "address",
846
+ },
847
+ {
848
+ internalType: "address",
849
+ name: "receiver",
850
+ type: "address",
851
+ },
852
+ {
853
+ internalType: "address",
854
+ name: "allowedSender",
855
+ type: "address",
856
+ },
857
+ {
858
+ internalType: "uint256",
859
+ name: "makingAmount",
860
+ type: "uint256",
861
+ },
862
+ {
863
+ internalType: "uint256",
864
+ name: "takingAmount",
865
+ type: "uint256",
866
+ },
867
+ {
868
+ internalType: "uint256",
869
+ name: "offsets",
870
+ type: "uint256",
871
+ },
872
+ {
873
+ internalType: "bytes",
874
+ name: "interactions",
875
+ type: "bytes",
876
+ },
877
+ ],
878
+ internalType: "struct OrderLib.Order",
879
+ name: "order",
880
+ type: "tuple",
881
+ },
882
+ {
883
+ internalType: "bytes",
884
+ name: "signature",
885
+ type: "bytes",
886
+ },
887
+ {
888
+ internalType: "bytes",
889
+ name: "interaction",
890
+ type: "bytes",
891
+ },
892
+ {
893
+ internalType: "uint256",
894
+ name: "makingAmount",
895
+ type: "uint256",
896
+ },
897
+ {
898
+ internalType: "uint256",
899
+ name: "takingAmount",
900
+ type: "uint256",
901
+ },
902
+ {
903
+ internalType: "uint256",
904
+ name: "skipPermitAndThresholdAmount",
905
+ type: "uint256",
906
+ },
907
+ ],
908
+ name: "fillOrder",
909
+ outputs: [
910
+ {
911
+ internalType: "uint256",
912
+ name: "",
913
+ type: "uint256",
914
+ },
915
+ {
916
+ internalType: "uint256",
917
+ name: "",
918
+ type: "uint256",
919
+ },
920
+ {
921
+ internalType: "bytes32",
922
+ name: "",
923
+ type: "bytes32",
924
+ },
925
+ ],
926
+ stateMutability: "payable",
927
+ type: "function",
928
+ },
929
+ {
930
+ inputs: [
931
+ {
932
+ components: [
933
+ {
934
+ internalType: "uint256",
935
+ name: "info",
936
+ type: "uint256",
937
+ },
938
+ {
939
+ internalType: "address",
940
+ name: "makerAsset",
941
+ type: "address",
942
+ },
943
+ {
944
+ internalType: "address",
945
+ name: "takerAsset",
946
+ type: "address",
947
+ },
948
+ {
949
+ internalType: "address",
950
+ name: "maker",
951
+ type: "address",
952
+ },
953
+ {
954
+ internalType: "address",
955
+ name: "allowedSender",
956
+ type: "address",
957
+ },
958
+ {
959
+ internalType: "uint256",
960
+ name: "makingAmount",
961
+ type: "uint256",
962
+ },
963
+ {
964
+ internalType: "uint256",
965
+ name: "takingAmount",
966
+ type: "uint256",
967
+ },
968
+ ],
969
+ internalType: "struct OrderRFQLib.OrderRFQ",
970
+ name: "order",
971
+ type: "tuple",
972
+ },
973
+ {
974
+ internalType: "bytes",
975
+ name: "signature",
976
+ type: "bytes",
977
+ },
978
+ {
979
+ internalType: "uint256",
980
+ name: "flagsAndAmount",
981
+ type: "uint256",
982
+ },
983
+ ],
984
+ name: "fillOrderRFQ",
985
+ outputs: [
986
+ {
987
+ internalType: "uint256",
988
+ name: "",
989
+ type: "uint256",
990
+ },
991
+ {
992
+ internalType: "uint256",
993
+ name: "",
994
+ type: "uint256",
995
+ },
996
+ {
997
+ internalType: "bytes32",
998
+ name: "",
999
+ type: "bytes32",
1000
+ },
1001
+ ],
1002
+ stateMutability: "payable",
1003
+ type: "function",
1004
+ },
1005
+ {
1006
+ inputs: [
1007
+ {
1008
+ components: [
1009
+ {
1010
+ internalType: "uint256",
1011
+ name: "info",
1012
+ type: "uint256",
1013
+ },
1014
+ {
1015
+ internalType: "address",
1016
+ name: "makerAsset",
1017
+ type: "address",
1018
+ },
1019
+ {
1020
+ internalType: "address",
1021
+ name: "takerAsset",
1022
+ type: "address",
1023
+ },
1024
+ {
1025
+ internalType: "address",
1026
+ name: "maker",
1027
+ type: "address",
1028
+ },
1029
+ {
1030
+ internalType: "address",
1031
+ name: "allowedSender",
1032
+ type: "address",
1033
+ },
1034
+ {
1035
+ internalType: "uint256",
1036
+ name: "makingAmount",
1037
+ type: "uint256",
1038
+ },
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "takingAmount",
1042
+ type: "uint256",
1043
+ },
1044
+ ],
1045
+ internalType: "struct OrderRFQLib.OrderRFQ",
1046
+ name: "order",
1047
+ type: "tuple",
1048
+ },
1049
+ {
1050
+ internalType: "bytes32",
1051
+ name: "r",
1052
+ type: "bytes32",
1053
+ },
1054
+ {
1055
+ internalType: "bytes32",
1056
+ name: "vs",
1057
+ type: "bytes32",
1058
+ },
1059
+ {
1060
+ internalType: "uint256",
1061
+ name: "flagsAndAmount",
1062
+ type: "uint256",
1063
+ },
1064
+ ],
1065
+ name: "fillOrderRFQCompact",
1066
+ outputs: [
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "filledMakingAmount",
1070
+ type: "uint256",
1071
+ },
1072
+ {
1073
+ internalType: "uint256",
1074
+ name: "filledTakingAmount",
1075
+ type: "uint256",
1076
+ },
1077
+ {
1078
+ internalType: "bytes32",
1079
+ name: "orderHash",
1080
+ type: "bytes32",
1081
+ },
1082
+ ],
1083
+ stateMutability: "payable",
1084
+ type: "function",
1085
+ },
1086
+ {
1087
+ inputs: [
1088
+ {
1089
+ components: [
1090
+ {
1091
+ internalType: "uint256",
1092
+ name: "info",
1093
+ type: "uint256",
1094
+ },
1095
+ {
1096
+ internalType: "address",
1097
+ name: "makerAsset",
1098
+ type: "address",
1099
+ },
1100
+ {
1101
+ internalType: "address",
1102
+ name: "takerAsset",
1103
+ type: "address",
1104
+ },
1105
+ {
1106
+ internalType: "address",
1107
+ name: "maker",
1108
+ type: "address",
1109
+ },
1110
+ {
1111
+ internalType: "address",
1112
+ name: "allowedSender",
1113
+ type: "address",
1114
+ },
1115
+ {
1116
+ internalType: "uint256",
1117
+ name: "makingAmount",
1118
+ type: "uint256",
1119
+ },
1120
+ {
1121
+ internalType: "uint256",
1122
+ name: "takingAmount",
1123
+ type: "uint256",
1124
+ },
1125
+ ],
1126
+ internalType: "struct OrderRFQLib.OrderRFQ",
1127
+ name: "order",
1128
+ type: "tuple",
1129
+ },
1130
+ {
1131
+ internalType: "bytes",
1132
+ name: "signature",
1133
+ type: "bytes",
1134
+ },
1135
+ {
1136
+ internalType: "uint256",
1137
+ name: "flagsAndAmount",
1138
+ type: "uint256",
1139
+ },
1140
+ {
1141
+ internalType: "address",
1142
+ name: "target",
1143
+ type: "address",
1144
+ },
1145
+ ],
1146
+ name: "fillOrderRFQTo",
1147
+ outputs: [
1148
+ {
1149
+ internalType: "uint256",
1150
+ name: "filledMakingAmount",
1151
+ type: "uint256",
1152
+ },
1153
+ {
1154
+ internalType: "uint256",
1155
+ name: "filledTakingAmount",
1156
+ type: "uint256",
1157
+ },
1158
+ {
1159
+ internalType: "bytes32",
1160
+ name: "orderHash",
1161
+ type: "bytes32",
1162
+ },
1163
+ ],
1164
+ stateMutability: "payable",
1165
+ type: "function",
1166
+ },
1167
+ {
1168
+ inputs: [
1169
+ {
1170
+ components: [
1171
+ {
1172
+ internalType: "uint256",
1173
+ name: "info",
1174
+ type: "uint256",
1175
+ },
1176
+ {
1177
+ internalType: "address",
1178
+ name: "makerAsset",
1179
+ type: "address",
1180
+ },
1181
+ {
1182
+ internalType: "address",
1183
+ name: "takerAsset",
1184
+ type: "address",
1185
+ },
1186
+ {
1187
+ internalType: "address",
1188
+ name: "maker",
1189
+ type: "address",
1190
+ },
1191
+ {
1192
+ internalType: "address",
1193
+ name: "allowedSender",
1194
+ type: "address",
1195
+ },
1196
+ {
1197
+ internalType: "uint256",
1198
+ name: "makingAmount",
1199
+ type: "uint256",
1200
+ },
1201
+ {
1202
+ internalType: "uint256",
1203
+ name: "takingAmount",
1204
+ type: "uint256",
1205
+ },
1206
+ ],
1207
+ internalType: "struct OrderRFQLib.OrderRFQ",
1208
+ name: "order",
1209
+ type: "tuple",
1210
+ },
1211
+ {
1212
+ internalType: "bytes",
1213
+ name: "signature",
1214
+ type: "bytes",
1215
+ },
1216
+ {
1217
+ internalType: "uint256",
1218
+ name: "flagsAndAmount",
1219
+ type: "uint256",
1220
+ },
1221
+ {
1222
+ internalType: "address",
1223
+ name: "target",
1224
+ type: "address",
1225
+ },
1226
+ {
1227
+ internalType: "bytes",
1228
+ name: "permit",
1229
+ type: "bytes",
1230
+ },
1231
+ ],
1232
+ name: "fillOrderRFQToWithPermit",
1233
+ outputs: [
1234
+ {
1235
+ internalType: "uint256",
1236
+ name: "",
1237
+ type: "uint256",
1238
+ },
1239
+ {
1240
+ internalType: "uint256",
1241
+ name: "",
1242
+ type: "uint256",
1243
+ },
1244
+ {
1245
+ internalType: "bytes32",
1246
+ name: "",
1247
+ type: "bytes32",
1248
+ },
1249
+ ],
1250
+ stateMutability: "nonpayable",
1251
+ type: "function",
1252
+ },
1253
+ {
1254
+ inputs: [
1255
+ {
1256
+ components: [
1257
+ {
1258
+ internalType: "uint256",
1259
+ name: "salt",
1260
+ type: "uint256",
1261
+ },
1262
+ {
1263
+ internalType: "address",
1264
+ name: "makerAsset",
1265
+ type: "address",
1266
+ },
1267
+ {
1268
+ internalType: "address",
1269
+ name: "takerAsset",
1270
+ type: "address",
1271
+ },
1272
+ {
1273
+ internalType: "address",
1274
+ name: "maker",
1275
+ type: "address",
1276
+ },
1277
+ {
1278
+ internalType: "address",
1279
+ name: "receiver",
1280
+ type: "address",
1281
+ },
1282
+ {
1283
+ internalType: "address",
1284
+ name: "allowedSender",
1285
+ type: "address",
1286
+ },
1287
+ {
1288
+ internalType: "uint256",
1289
+ name: "makingAmount",
1290
+ type: "uint256",
1291
+ },
1292
+ {
1293
+ internalType: "uint256",
1294
+ name: "takingAmount",
1295
+ type: "uint256",
1296
+ },
1297
+ {
1298
+ internalType: "uint256",
1299
+ name: "offsets",
1300
+ type: "uint256",
1301
+ },
1302
+ {
1303
+ internalType: "bytes",
1304
+ name: "interactions",
1305
+ type: "bytes",
1306
+ },
1307
+ ],
1308
+ internalType: "struct OrderLib.Order",
1309
+ name: "order_",
1310
+ type: "tuple",
1311
+ },
1312
+ {
1313
+ internalType: "bytes",
1314
+ name: "signature",
1315
+ type: "bytes",
1316
+ },
1317
+ {
1318
+ internalType: "bytes",
1319
+ name: "interaction",
1320
+ type: "bytes",
1321
+ },
1322
+ {
1323
+ internalType: "uint256",
1324
+ name: "makingAmount",
1325
+ type: "uint256",
1326
+ },
1327
+ {
1328
+ internalType: "uint256",
1329
+ name: "takingAmount",
1330
+ type: "uint256",
1331
+ },
1332
+ {
1333
+ internalType: "uint256",
1334
+ name: "skipPermitAndThresholdAmount",
1335
+ type: "uint256",
1336
+ },
1337
+ {
1338
+ internalType: "address",
1339
+ name: "target",
1340
+ type: "address",
1341
+ },
1342
+ ],
1343
+ name: "fillOrderTo",
1344
+ outputs: [
1345
+ {
1346
+ internalType: "uint256",
1347
+ name: "actualMakingAmount",
1348
+ type: "uint256",
1349
+ },
1350
+ {
1351
+ internalType: "uint256",
1352
+ name: "actualTakingAmount",
1353
+ type: "uint256",
1354
+ },
1355
+ {
1356
+ internalType: "bytes32",
1357
+ name: "orderHash",
1358
+ type: "bytes32",
1359
+ },
1360
+ ],
1361
+ stateMutability: "payable",
1362
+ type: "function",
1363
+ },
1364
+ {
1365
+ inputs: [
1366
+ {
1367
+ components: [
1368
+ {
1369
+ internalType: "uint256",
1370
+ name: "salt",
1371
+ type: "uint256",
1372
+ },
1373
+ {
1374
+ internalType: "address",
1375
+ name: "makerAsset",
1376
+ type: "address",
1377
+ },
1378
+ {
1379
+ internalType: "address",
1380
+ name: "takerAsset",
1381
+ type: "address",
1382
+ },
1383
+ {
1384
+ internalType: "address",
1385
+ name: "maker",
1386
+ type: "address",
1387
+ },
1388
+ {
1389
+ internalType: "address",
1390
+ name: "receiver",
1391
+ type: "address",
1392
+ },
1393
+ {
1394
+ internalType: "address",
1395
+ name: "allowedSender",
1396
+ type: "address",
1397
+ },
1398
+ {
1399
+ internalType: "uint256",
1400
+ name: "makingAmount",
1401
+ type: "uint256",
1402
+ },
1403
+ {
1404
+ internalType: "uint256",
1405
+ name: "takingAmount",
1406
+ type: "uint256",
1407
+ },
1408
+ {
1409
+ internalType: "uint256",
1410
+ name: "offsets",
1411
+ type: "uint256",
1412
+ },
1413
+ {
1414
+ internalType: "bytes",
1415
+ name: "interactions",
1416
+ type: "bytes",
1417
+ },
1418
+ ],
1419
+ internalType: "struct OrderLib.Order",
1420
+ name: "order",
1421
+ type: "tuple",
1422
+ },
1423
+ {
1424
+ internalType: "bytes",
1425
+ name: "signature",
1426
+ type: "bytes",
1427
+ },
1428
+ {
1429
+ internalType: "bytes",
1430
+ name: "interaction",
1431
+ type: "bytes",
1432
+ },
1433
+ {
1434
+ internalType: "uint256",
1435
+ name: "makingAmount",
1436
+ type: "uint256",
1437
+ },
1438
+ {
1439
+ internalType: "uint256",
1440
+ name: "takingAmount",
1441
+ type: "uint256",
1442
+ },
1443
+ {
1444
+ internalType: "uint256",
1445
+ name: "skipPermitAndThresholdAmount",
1446
+ type: "uint256",
1447
+ },
1448
+ {
1449
+ internalType: "address",
1450
+ name: "target",
1451
+ type: "address",
1452
+ },
1453
+ {
1454
+ internalType: "bytes",
1455
+ name: "permit",
1456
+ type: "bytes",
1457
+ },
1458
+ ],
1459
+ name: "fillOrderToWithPermit",
1460
+ outputs: [
1461
+ {
1462
+ internalType: "uint256",
1463
+ name: "",
1464
+ type: "uint256",
1465
+ },
1466
+ {
1467
+ internalType: "uint256",
1468
+ name: "",
1469
+ type: "uint256",
1470
+ },
1471
+ {
1472
+ internalType: "bytes32",
1473
+ name: "",
1474
+ type: "bytes32",
1475
+ },
1476
+ ],
1477
+ stateMutability: "nonpayable",
1478
+ type: "function",
1479
+ },
1480
+ {
1481
+ inputs: [
1482
+ {
1483
+ internalType: "uint256",
1484
+ name: "value",
1485
+ type: "uint256",
1486
+ },
1487
+ {
1488
+ internalType: "bytes",
1489
+ name: "data",
1490
+ type: "bytes",
1491
+ },
1492
+ ],
1493
+ name: "gt",
1494
+ outputs: [
1495
+ {
1496
+ internalType: "bool",
1497
+ name: "",
1498
+ type: "bool",
1499
+ },
1500
+ ],
1501
+ stateMutability: "view",
1502
+ type: "function",
1503
+ },
1504
+ {
1505
+ inputs: [
1506
+ {
1507
+ components: [
1508
+ {
1509
+ internalType: "uint256",
1510
+ name: "salt",
1511
+ type: "uint256",
1512
+ },
1513
+ {
1514
+ internalType: "address",
1515
+ name: "makerAsset",
1516
+ type: "address",
1517
+ },
1518
+ {
1519
+ internalType: "address",
1520
+ name: "takerAsset",
1521
+ type: "address",
1522
+ },
1523
+ {
1524
+ internalType: "address",
1525
+ name: "maker",
1526
+ type: "address",
1527
+ },
1528
+ {
1529
+ internalType: "address",
1530
+ name: "receiver",
1531
+ type: "address",
1532
+ },
1533
+ {
1534
+ internalType: "address",
1535
+ name: "allowedSender",
1536
+ type: "address",
1537
+ },
1538
+ {
1539
+ internalType: "uint256",
1540
+ name: "makingAmount",
1541
+ type: "uint256",
1542
+ },
1543
+ {
1544
+ internalType: "uint256",
1545
+ name: "takingAmount",
1546
+ type: "uint256",
1547
+ },
1548
+ {
1549
+ internalType: "uint256",
1550
+ name: "offsets",
1551
+ type: "uint256",
1552
+ },
1553
+ {
1554
+ internalType: "bytes",
1555
+ name: "interactions",
1556
+ type: "bytes",
1557
+ },
1558
+ ],
1559
+ internalType: "struct OrderLib.Order",
1560
+ name: "order",
1561
+ type: "tuple",
1562
+ },
1563
+ ],
1564
+ name: "hashOrder",
1565
+ outputs: [
1566
+ {
1567
+ internalType: "bytes32",
1568
+ name: "",
1569
+ type: "bytes32",
1570
+ },
1571
+ ],
1572
+ stateMutability: "view",
1573
+ type: "function",
1574
+ },
1575
+ {
1576
+ inputs: [],
1577
+ name: "increaseNonce",
1578
+ outputs: [],
1579
+ stateMutability: "nonpayable",
1580
+ type: "function",
1581
+ },
1582
+ {
1583
+ inputs: [
1584
+ {
1585
+ internalType: "address",
1586
+ name: "maker",
1587
+ type: "address",
1588
+ },
1589
+ {
1590
+ internalType: "uint256",
1591
+ name: "slot",
1592
+ type: "uint256",
1593
+ },
1594
+ ],
1595
+ name: "invalidatorForOrderRFQ",
1596
+ outputs: [
1597
+ {
1598
+ internalType: "uint256",
1599
+ name: "",
1600
+ type: "uint256",
1601
+ },
1602
+ ],
1603
+ stateMutability: "view",
1604
+ type: "function",
1605
+ },
1606
+ {
1607
+ inputs: [
1608
+ {
1609
+ internalType: "uint256",
1610
+ name: "value",
1611
+ type: "uint256",
1612
+ },
1613
+ {
1614
+ internalType: "bytes",
1615
+ name: "data",
1616
+ type: "bytes",
1617
+ },
1618
+ ],
1619
+ name: "lt",
1620
+ outputs: [
1621
+ {
1622
+ internalType: "bool",
1623
+ name: "",
1624
+ type: "bool",
1625
+ },
1626
+ ],
1627
+ stateMutability: "view",
1628
+ type: "function",
1629
+ },
1630
+ {
1631
+ inputs: [
1632
+ {
1633
+ internalType: "address",
1634
+ name: "",
1635
+ type: "address",
1636
+ },
1637
+ ],
1638
+ name: "nonce",
1639
+ outputs: [
1640
+ {
1641
+ internalType: "uint256",
1642
+ name: "",
1643
+ type: "uint256",
1644
+ },
1645
+ ],
1646
+ stateMutability: "view",
1647
+ type: "function",
1648
+ },
1649
+ {
1650
+ inputs: [
1651
+ {
1652
+ internalType: "address",
1653
+ name: "makerAddress",
1654
+ type: "address",
1655
+ },
1656
+ {
1657
+ internalType: "uint256",
1658
+ name: "makerNonce",
1659
+ type: "uint256",
1660
+ },
1661
+ ],
1662
+ name: "nonceEquals",
1663
+ outputs: [
1664
+ {
1665
+ internalType: "bool",
1666
+ name: "",
1667
+ type: "bool",
1668
+ },
1669
+ ],
1670
+ stateMutability: "view",
1671
+ type: "function",
1672
+ },
1673
+ {
1674
+ inputs: [
1675
+ {
1676
+ internalType: "uint256",
1677
+ name: "offsets",
1678
+ type: "uint256",
1679
+ },
1680
+ {
1681
+ internalType: "bytes",
1682
+ name: "data",
1683
+ type: "bytes",
1684
+ },
1685
+ ],
1686
+ name: "or",
1687
+ outputs: [
1688
+ {
1689
+ internalType: "bool",
1690
+ name: "",
1691
+ type: "bool",
1692
+ },
1693
+ ],
1694
+ stateMutability: "view",
1695
+ type: "function",
1696
+ },
1697
+ {
1698
+ inputs: [],
1699
+ name: "owner",
1700
+ outputs: [
1701
+ {
1702
+ internalType: "address",
1703
+ name: "",
1704
+ type: "address",
1705
+ },
1706
+ ],
1707
+ stateMutability: "view",
1708
+ type: "function",
1709
+ },
1710
+ {
1711
+ inputs: [
1712
+ {
1713
+ internalType: "bytes32",
1714
+ name: "orderHash",
1715
+ type: "bytes32",
1716
+ },
1717
+ ],
1718
+ name: "remaining",
1719
+ outputs: [
1720
+ {
1721
+ internalType: "uint256",
1722
+ name: "",
1723
+ type: "uint256",
1724
+ },
1725
+ ],
1726
+ stateMutability: "view",
1727
+ type: "function",
1728
+ },
1729
+ {
1730
+ inputs: [
1731
+ {
1732
+ internalType: "bytes32",
1733
+ name: "orderHash",
1734
+ type: "bytes32",
1735
+ },
1736
+ ],
1737
+ name: "remainingRaw",
1738
+ outputs: [
1739
+ {
1740
+ internalType: "uint256",
1741
+ name: "",
1742
+ type: "uint256",
1743
+ },
1744
+ ],
1745
+ stateMutability: "view",
1746
+ type: "function",
1747
+ },
1748
+ {
1749
+ inputs: [
1750
+ {
1751
+ internalType: "bytes32[]",
1752
+ name: "orderHashes",
1753
+ type: "bytes32[]",
1754
+ },
1755
+ ],
1756
+ name: "remainingsRaw",
1757
+ outputs: [
1758
+ {
1759
+ internalType: "uint256[]",
1760
+ name: "",
1761
+ type: "uint256[]",
1762
+ },
1763
+ ],
1764
+ stateMutability: "view",
1765
+ type: "function",
1766
+ },
1767
+ {
1768
+ inputs: [],
1769
+ name: "renounceOwnership",
1770
+ outputs: [],
1771
+ stateMutability: "nonpayable",
1772
+ type: "function",
1773
+ },
1774
+ {
1775
+ inputs: [
1776
+ {
1777
+ internalType: "contract IERC20",
1778
+ name: "token",
1779
+ type: "address",
1780
+ },
1781
+ {
1782
+ internalType: "uint256",
1783
+ name: "amount",
1784
+ type: "uint256",
1785
+ },
1786
+ ],
1787
+ name: "rescueFunds",
1788
+ outputs: [],
1789
+ stateMutability: "nonpayable",
1790
+ type: "function",
1791
+ },
1792
+ {
1793
+ inputs: [
1794
+ {
1795
+ internalType: "address",
1796
+ name: "target",
1797
+ type: "address",
1798
+ },
1799
+ {
1800
+ internalType: "bytes",
1801
+ name: "data",
1802
+ type: "bytes",
1803
+ },
1804
+ ],
1805
+ name: "simulate",
1806
+ outputs: [],
1807
+ stateMutability: "nonpayable",
1808
+ type: "function",
1809
+ },
1810
+ {
1811
+ inputs: [
1812
+ {
1813
+ internalType: "contract IAggregationExecutor",
1814
+ name: "executor",
1815
+ type: "address",
1816
+ },
1817
+ {
1818
+ components: [
1819
+ {
1820
+ internalType: "contract IERC20",
1821
+ name: "srcToken",
1822
+ type: "address",
1823
+ },
1824
+ {
1825
+ internalType: "contract IERC20",
1826
+ name: "dstToken",
1827
+ type: "address",
1828
+ },
1829
+ {
1830
+ internalType: "address payable",
1831
+ name: "srcReceiver",
1832
+ type: "address",
1833
+ },
1834
+ {
1835
+ internalType: "address payable",
1836
+ name: "dstReceiver",
1837
+ type: "address",
1838
+ },
1839
+ {
1840
+ internalType: "uint256",
1841
+ name: "amount",
1842
+ type: "uint256",
1843
+ },
1844
+ {
1845
+ internalType: "uint256",
1846
+ name: "minReturnAmount",
1847
+ type: "uint256",
1848
+ },
1849
+ {
1850
+ internalType: "uint256",
1851
+ name: "flags",
1852
+ type: "uint256",
1853
+ },
1854
+ ],
1855
+ internalType: "struct GenericRouter.SwapDescription",
1856
+ name: "desc",
1857
+ type: "tuple",
1858
+ },
1859
+ {
1860
+ internalType: "bytes",
1861
+ name: "permit",
1862
+ type: "bytes",
1863
+ },
1864
+ {
1865
+ internalType: "bytes",
1866
+ name: "data",
1867
+ type: "bytes",
1868
+ },
1869
+ ],
1870
+ name: "swap",
1871
+ outputs: [
1872
+ {
1873
+ internalType: "uint256",
1874
+ name: "returnAmount",
1875
+ type: "uint256",
1876
+ },
1877
+ {
1878
+ internalType: "uint256",
1879
+ name: "spentAmount",
1880
+ type: "uint256",
1881
+ },
1882
+ ],
1883
+ stateMutability: "payable",
1884
+ type: "function",
1885
+ },
1886
+ {
1887
+ inputs: [
1888
+ {
1889
+ internalType: "uint256",
1890
+ name: "time",
1891
+ type: "uint256",
1892
+ },
1893
+ ],
1894
+ name: "timestampBelow",
1895
+ outputs: [
1896
+ {
1897
+ internalType: "bool",
1898
+ name: "",
1899
+ type: "bool",
1900
+ },
1901
+ ],
1902
+ stateMutability: "view",
1903
+ type: "function",
1904
+ },
1905
+ {
1906
+ inputs: [
1907
+ {
1908
+ internalType: "uint256",
1909
+ name: "timeNonceAccount",
1910
+ type: "uint256",
1911
+ },
1912
+ ],
1913
+ name: "timestampBelowAndNonceEquals",
1914
+ outputs: [
1915
+ {
1916
+ internalType: "bool",
1917
+ name: "",
1918
+ type: "bool",
1919
+ },
1920
+ ],
1921
+ stateMutability: "view",
1922
+ type: "function",
1923
+ },
1924
+ {
1925
+ inputs: [
1926
+ {
1927
+ internalType: "address",
1928
+ name: "newOwner",
1929
+ type: "address",
1930
+ },
1931
+ ],
1932
+ name: "transferOwnership",
1933
+ outputs: [],
1934
+ stateMutability: "nonpayable",
1935
+ type: "function",
1936
+ },
1937
+ {
1938
+ inputs: [
1939
+ {
1940
+ internalType: "uint256",
1941
+ name: "amount",
1942
+ type: "uint256",
1943
+ },
1944
+ {
1945
+ internalType: "uint256",
1946
+ name: "minReturn",
1947
+ type: "uint256",
1948
+ },
1949
+ {
1950
+ internalType: "uint256[]",
1951
+ name: "pools",
1952
+ type: "uint256[]",
1953
+ },
1954
+ ],
1955
+ name: "uniswapV3Swap",
1956
+ outputs: [
1957
+ {
1958
+ internalType: "uint256",
1959
+ name: "returnAmount",
1960
+ type: "uint256",
1961
+ },
1962
+ ],
1963
+ stateMutability: "payable",
1964
+ type: "function",
1965
+ },
1966
+ {
1967
+ inputs: [
1968
+ {
1969
+ internalType: "int256",
1970
+ name: "amount0Delta",
1971
+ type: "int256",
1972
+ },
1973
+ {
1974
+ internalType: "int256",
1975
+ name: "amount1Delta",
1976
+ type: "int256",
1977
+ },
1978
+ {
1979
+ internalType: "bytes",
1980
+ name: "",
1981
+ type: "bytes",
1982
+ },
1983
+ ],
1984
+ name: "uniswapV3SwapCallback",
1985
+ outputs: [],
1986
+ stateMutability: "nonpayable",
1987
+ type: "function",
1988
+ },
1989
+ {
1990
+ inputs: [
1991
+ {
1992
+ internalType: "address payable",
1993
+ name: "recipient",
1994
+ type: "address",
1995
+ },
1996
+ {
1997
+ internalType: "uint256",
1998
+ name: "amount",
1999
+ type: "uint256",
2000
+ },
2001
+ {
2002
+ internalType: "uint256",
2003
+ name: "minReturn",
2004
+ type: "uint256",
2005
+ },
2006
+ {
2007
+ internalType: "uint256[]",
2008
+ name: "pools",
2009
+ type: "uint256[]",
2010
+ },
2011
+ ],
2012
+ name: "uniswapV3SwapTo",
2013
+ outputs: [
2014
+ {
2015
+ internalType: "uint256",
2016
+ name: "returnAmount",
2017
+ type: "uint256",
2018
+ },
2019
+ ],
2020
+ stateMutability: "payable",
2021
+ type: "function",
2022
+ },
2023
+ {
2024
+ inputs: [
2025
+ {
2026
+ internalType: "address payable",
2027
+ name: "recipient",
2028
+ type: "address",
2029
+ },
2030
+ {
2031
+ internalType: "contract IERC20",
2032
+ name: "srcToken",
2033
+ type: "address",
2034
+ },
2035
+ {
2036
+ internalType: "uint256",
2037
+ name: "amount",
2038
+ type: "uint256",
2039
+ },
2040
+ {
2041
+ internalType: "uint256",
2042
+ name: "minReturn",
2043
+ type: "uint256",
2044
+ },
2045
+ {
2046
+ internalType: "uint256[]",
2047
+ name: "pools",
2048
+ type: "uint256[]",
2049
+ },
2050
+ {
2051
+ internalType: "bytes",
2052
+ name: "permit",
2053
+ type: "bytes",
2054
+ },
2055
+ ],
2056
+ name: "uniswapV3SwapToWithPermit",
2057
+ outputs: [
2058
+ {
2059
+ internalType: "uint256",
2060
+ name: "returnAmount",
2061
+ type: "uint256",
2062
+ },
2063
+ ],
2064
+ stateMutability: "nonpayable",
2065
+ type: "function",
2066
+ },
2067
+ {
2068
+ inputs: [
2069
+ {
2070
+ internalType: "contract IERC20",
2071
+ name: "srcToken",
2072
+ type: "address",
2073
+ },
2074
+ {
2075
+ internalType: "uint256",
2076
+ name: "amount",
2077
+ type: "uint256",
2078
+ },
2079
+ {
2080
+ internalType: "uint256",
2081
+ name: "minReturn",
2082
+ type: "uint256",
2083
+ },
2084
+ {
2085
+ internalType: "uint256[]",
2086
+ name: "pools",
2087
+ type: "uint256[]",
2088
+ },
2089
+ ],
2090
+ name: "unoswap",
2091
+ outputs: [
2092
+ {
2093
+ internalType: "uint256",
2094
+ name: "returnAmount",
2095
+ type: "uint256",
2096
+ },
2097
+ ],
2098
+ stateMutability: "payable",
2099
+ type: "function",
2100
+ },
2101
+ {
2102
+ inputs: [
2103
+ {
2104
+ internalType: "address payable",
2105
+ name: "recipient",
2106
+ type: "address",
2107
+ },
2108
+ {
2109
+ internalType: "contract IERC20",
2110
+ name: "srcToken",
2111
+ type: "address",
2112
+ },
2113
+ {
2114
+ internalType: "uint256",
2115
+ name: "amount",
2116
+ type: "uint256",
2117
+ },
2118
+ {
2119
+ internalType: "uint256",
2120
+ name: "minReturn",
2121
+ type: "uint256",
2122
+ },
2123
+ {
2124
+ internalType: "uint256[]",
2125
+ name: "pools",
2126
+ type: "uint256[]",
2127
+ },
2128
+ ],
2129
+ name: "unoswapTo",
2130
+ outputs: [
2131
+ {
2132
+ internalType: "uint256",
2133
+ name: "returnAmount",
2134
+ type: "uint256",
2135
+ },
2136
+ ],
2137
+ stateMutability: "payable",
2138
+ type: "function",
2139
+ },
2140
+ {
2141
+ inputs: [
2142
+ {
2143
+ internalType: "address payable",
2144
+ name: "recipient",
2145
+ type: "address",
2146
+ },
2147
+ {
2148
+ internalType: "contract IERC20",
2149
+ name: "srcToken",
2150
+ type: "address",
2151
+ },
2152
+ {
2153
+ internalType: "uint256",
2154
+ name: "amount",
2155
+ type: "uint256",
2156
+ },
2157
+ {
2158
+ internalType: "uint256",
2159
+ name: "minReturn",
2160
+ type: "uint256",
2161
+ },
2162
+ {
2163
+ internalType: "uint256[]",
2164
+ name: "pools",
2165
+ type: "uint256[]",
2166
+ },
2167
+ {
2168
+ internalType: "bytes",
2169
+ name: "permit",
2170
+ type: "bytes",
2171
+ },
2172
+ ],
2173
+ name: "unoswapToWithPermit",
2174
+ outputs: [
2175
+ {
2176
+ internalType: "uint256",
2177
+ name: "returnAmount",
2178
+ type: "uint256",
2179
+ },
2180
+ ],
2181
+ stateMutability: "nonpayable",
2182
+ type: "function",
2183
+ },
2184
+ {
2185
+ stateMutability: "payable",
2186
+ type: "receive",
2187
+ },
2188
+ ];