@paraswap/dex-lib 3.0.5 → 3.0.6-balancer-direct-fn-fix.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/abi/augustus-v6/ABI.json +188 -284
- package/build/config.js +1 -1
- package/build/dex/balancer-v2/balancer-v2.d.ts +1 -1
- package/build/dex/balancer-v2/balancer-v2.js +11 -53
- package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
- package/build/dex/balancer-v2/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/abi/augustus-v6/ABI.json +188 -284
- package/src/config.ts +1 -1
- package/src/dex/balancer-v2/balancer-v2.ts +5 -69
- package/src/dex/balancer-v2/types.ts +2 -0
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"type": "address",
|
|
15
15
|
"internalType": "address payable"
|
|
16
16
|
},
|
|
17
|
-
{ "name": "_dai", "type": "address", "internalType": "address" },
|
|
18
17
|
{
|
|
19
18
|
"name": "_uniV3FactoryAndFF",
|
|
20
19
|
"type": "uint256",
|
|
@@ -65,13 +64,6 @@
|
|
|
65
64
|
],
|
|
66
65
|
"stateMutability": "view"
|
|
67
66
|
},
|
|
68
|
-
{
|
|
69
|
-
"type": "function",
|
|
70
|
-
"name": "DAI_MAKER",
|
|
71
|
-
"inputs": [],
|
|
72
|
-
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
|
|
73
|
-
"stateMutability": "view"
|
|
74
|
-
},
|
|
75
67
|
{
|
|
76
68
|
"type": "function",
|
|
77
69
|
"name": "FEE_PERCENT_IN_BASIS_POINTS_MASK",
|
|
@@ -92,6 +84,13 @@
|
|
|
92
84
|
],
|
|
93
85
|
"stateMutability": "view"
|
|
94
86
|
},
|
|
87
|
+
{
|
|
88
|
+
"type": "function",
|
|
89
|
+
"name": "IS_CAP_SURPLUS_MASK",
|
|
90
|
+
"inputs": [],
|
|
91
|
+
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
92
|
+
"stateMutability": "view"
|
|
93
|
+
},
|
|
95
94
|
{
|
|
96
95
|
"type": "function",
|
|
97
96
|
"name": "IS_REFERRAL_MASK",
|
|
@@ -101,7 +100,7 @@
|
|
|
101
100
|
},
|
|
102
101
|
{
|
|
103
102
|
"type": "function",
|
|
104
|
-
"name": "
|
|
103
|
+
"name": "IS_SKIP_BLACKLIST_MASK",
|
|
105
104
|
"inputs": [],
|
|
106
105
|
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
107
106
|
"stateMutability": "view"
|
|
@@ -120,6 +119,13 @@
|
|
|
120
119
|
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
121
120
|
"stateMutability": "view"
|
|
122
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"type": "function",
|
|
124
|
+
"name": "MINIMUM_SURPLUS_EPSILON_AND_ONE_WEI",
|
|
125
|
+
"inputs": [],
|
|
126
|
+
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
127
|
+
"stateMutability": "view"
|
|
128
|
+
},
|
|
123
129
|
{
|
|
124
130
|
"type": "function",
|
|
125
131
|
"name": "PARASWAP_REFERRAL_SHARE",
|
|
@@ -148,6 +154,19 @@
|
|
|
148
154
|
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
|
|
149
155
|
"stateMutability": "view"
|
|
150
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"type": "function",
|
|
159
|
+
"name": "PERMIT2_ADDRESS",
|
|
160
|
+
"inputs": [],
|
|
161
|
+
"outputs": [
|
|
162
|
+
{
|
|
163
|
+
"name": "",
|
|
164
|
+
"type": "address",
|
|
165
|
+
"internalType": "contract IAllowanceTransfer"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"stateMutability": "view"
|
|
169
|
+
},
|
|
151
170
|
{
|
|
152
171
|
"type": "function",
|
|
153
172
|
"name": "SURPLUS_PERCENT",
|
|
@@ -185,17 +204,21 @@
|
|
|
185
204
|
},
|
|
186
205
|
{
|
|
187
206
|
"type": "function",
|
|
188
|
-
"name": "
|
|
207
|
+
"name": "WETH",
|
|
189
208
|
"inputs": [],
|
|
190
|
-
"outputs": [
|
|
209
|
+
"outputs": [
|
|
210
|
+
{ "name": "", "type": "address", "internalType": "contract IWETH" }
|
|
211
|
+
],
|
|
191
212
|
"stateMutability": "view"
|
|
192
213
|
},
|
|
193
214
|
{
|
|
194
215
|
"type": "function",
|
|
195
|
-
"name": "
|
|
196
|
-
"inputs": [
|
|
216
|
+
"name": "blacklistedTokens",
|
|
217
|
+
"inputs": [
|
|
218
|
+
{ "name": "token", "type": "address", "internalType": "contract IERC20" }
|
|
219
|
+
],
|
|
197
220
|
"outputs": [
|
|
198
|
-
{ "name": "", "type": "
|
|
221
|
+
{ "name": "isBlacklisted", "type": "bool", "internalType": "bool" }
|
|
199
222
|
],
|
|
200
223
|
"stateMutability": "view"
|
|
201
224
|
},
|
|
@@ -277,18 +300,24 @@
|
|
|
277
300
|
{ "name": "executorData", "type": "bytes", "internalType": "bytes" }
|
|
278
301
|
],
|
|
279
302
|
"outputs": [
|
|
280
|
-
{
|
|
303
|
+
{
|
|
304
|
+
"name": "receivedAmount",
|
|
305
|
+
"type": "uint256",
|
|
306
|
+
"internalType": "uint256"
|
|
307
|
+
},
|
|
308
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
309
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
281
310
|
],
|
|
282
311
|
"stateMutability": "payable"
|
|
283
312
|
},
|
|
284
313
|
{
|
|
285
314
|
"type": "function",
|
|
286
|
-
"name": "
|
|
315
|
+
"name": "swapExactAmountInOnBalancerV2",
|
|
287
316
|
"inputs": [
|
|
288
317
|
{
|
|
289
|
-
"name": "
|
|
318
|
+
"name": "balancerData",
|
|
290
319
|
"type": "tuple",
|
|
291
|
-
"internalType": "struct
|
|
320
|
+
"internalType": "struct BalancerV2Data",
|
|
292
321
|
"components": [
|
|
293
322
|
{
|
|
294
323
|
"name": "fromAmount",
|
|
@@ -296,95 +325,6 @@
|
|
|
296
325
|
"internalType": "uint256"
|
|
297
326
|
},
|
|
298
327
|
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
299
|
-
{
|
|
300
|
-
"name": "wrapApproveDirection",
|
|
301
|
-
"type": "uint8",
|
|
302
|
-
"internalType": "uint8"
|
|
303
|
-
},
|
|
304
|
-
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
305
|
-
{
|
|
306
|
-
"name": "beneficiary",
|
|
307
|
-
"type": "address",
|
|
308
|
-
"internalType": "address payable"
|
|
309
|
-
}
|
|
310
|
-
]
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"name": "orders",
|
|
314
|
-
"type": "tuple[]",
|
|
315
|
-
"internalType": "struct OrderInfo[]",
|
|
316
|
-
"components": [
|
|
317
|
-
{
|
|
318
|
-
"name": "order",
|
|
319
|
-
"type": "tuple",
|
|
320
|
-
"internalType": "struct Order",
|
|
321
|
-
"components": [
|
|
322
|
-
{
|
|
323
|
-
"name": "nonceAndMeta",
|
|
324
|
-
"type": "uint256",
|
|
325
|
-
"internalType": "uint256"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"name": "expiry",
|
|
329
|
-
"type": "uint128",
|
|
330
|
-
"internalType": "uint128"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"name": "makerAsset",
|
|
334
|
-
"type": "address",
|
|
335
|
-
"internalType": "address"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"name": "takerAsset",
|
|
339
|
-
"type": "address",
|
|
340
|
-
"internalType": "address"
|
|
341
|
-
},
|
|
342
|
-
{ "name": "maker", "type": "address", "internalType": "address" },
|
|
343
|
-
{ "name": "taker", "type": "address", "internalType": "address" },
|
|
344
|
-
{
|
|
345
|
-
"name": "makerAmount",
|
|
346
|
-
"type": "uint256",
|
|
347
|
-
"internalType": "uint256"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"name": "takerAmount",
|
|
351
|
-
"type": "uint256",
|
|
352
|
-
"internalType": "uint256"
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
},
|
|
356
|
-
{ "name": "signature", "type": "bytes", "internalType": "bytes" },
|
|
357
|
-
{
|
|
358
|
-
"name": "takerTokenFillAmount",
|
|
359
|
-
"type": "uint256",
|
|
360
|
-
"internalType": "uint256"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"name": "permitTakerAsset",
|
|
364
|
-
"type": "bytes",
|
|
365
|
-
"internalType": "bytes"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "permitMakerAsset",
|
|
369
|
-
"type": "bytes",
|
|
370
|
-
"internalType": "bytes"
|
|
371
|
-
}
|
|
372
|
-
]
|
|
373
|
-
},
|
|
374
|
-
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
375
|
-
],
|
|
376
|
-
"outputs": [],
|
|
377
|
-
"stateMutability": "payable"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"type": "function",
|
|
381
|
-
"name": "swapExactAmountInOnBalancerV2",
|
|
382
|
-
"inputs": [
|
|
383
|
-
{
|
|
384
|
-
"name": "balancerData",
|
|
385
|
-
"type": "tuple",
|
|
386
|
-
"internalType": "struct BalancerV2Data",
|
|
387
|
-
"components": [
|
|
388
328
|
{
|
|
389
329
|
"name": "quotedAmount",
|
|
390
330
|
"type": "uint256",
|
|
@@ -403,7 +343,13 @@
|
|
|
403
343
|
{ "name": "data", "type": "bytes", "internalType": "bytes" }
|
|
404
344
|
],
|
|
405
345
|
"outputs": [
|
|
406
|
-
{
|
|
346
|
+
{
|
|
347
|
+
"name": "receivedAmount",
|
|
348
|
+
"type": "uint256",
|
|
349
|
+
"internalType": "uint256"
|
|
350
|
+
},
|
|
351
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
352
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
407
353
|
],
|
|
408
354
|
"stateMutability": "payable"
|
|
409
355
|
},
|
|
@@ -455,7 +401,13 @@
|
|
|
455
401
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
456
402
|
],
|
|
457
403
|
"outputs": [
|
|
458
|
-
{
|
|
404
|
+
{
|
|
405
|
+
"name": "receivedAmount",
|
|
406
|
+
"type": "uint256",
|
|
407
|
+
"internalType": "uint256"
|
|
408
|
+
},
|
|
409
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
410
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
459
411
|
],
|
|
460
412
|
"stateMutability": "payable"
|
|
461
413
|
},
|
|
@@ -509,18 +461,24 @@
|
|
|
509
461
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
510
462
|
],
|
|
511
463
|
"outputs": [
|
|
512
|
-
{
|
|
464
|
+
{
|
|
465
|
+
"name": "receivedAmount",
|
|
466
|
+
"type": "uint256",
|
|
467
|
+
"internalType": "uint256"
|
|
468
|
+
},
|
|
469
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
470
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
513
471
|
],
|
|
514
472
|
"stateMutability": "payable"
|
|
515
473
|
},
|
|
516
474
|
{
|
|
517
475
|
"type": "function",
|
|
518
|
-
"name": "
|
|
476
|
+
"name": "swapExactAmountInOnUniswapV2",
|
|
519
477
|
"inputs": [
|
|
520
478
|
{
|
|
521
|
-
"name": "
|
|
479
|
+
"name": "uniData",
|
|
522
480
|
"type": "tuple",
|
|
523
|
-
"internalType": "struct
|
|
481
|
+
"internalType": "struct UniswapV2Data",
|
|
524
482
|
"components": [
|
|
525
483
|
{
|
|
526
484
|
"name": "srcToken",
|
|
@@ -537,40 +495,43 @@
|
|
|
537
495
|
"type": "uint256",
|
|
538
496
|
"internalType": "uint256"
|
|
539
497
|
},
|
|
540
|
-
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
541
|
-
{ "name": "toll", "type": "uint256", "internalType": "uint256" },
|
|
542
498
|
{
|
|
543
|
-
"name": "
|
|
499
|
+
"name": "quotedAmount",
|
|
544
500
|
"type": "uint256",
|
|
545
501
|
"internalType": "uint256"
|
|
546
502
|
},
|
|
547
|
-
{ "name": "
|
|
503
|
+
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
504
|
+
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
548
505
|
{
|
|
549
|
-
"name": "
|
|
506
|
+
"name": "beneficiary",
|
|
550
507
|
"type": "address",
|
|
551
|
-
"internalType": "address"
|
|
508
|
+
"internalType": "address payable"
|
|
552
509
|
},
|
|
553
|
-
{ "name": "
|
|
554
|
-
{
|
|
555
|
-
"name": "beneficiaryDirectionApproveFlag",
|
|
556
|
-
"type": "uint256",
|
|
557
|
-
"internalType": "uint256"
|
|
558
|
-
}
|
|
510
|
+
{ "name": "pools", "type": "bytes", "internalType": "bytes" }
|
|
559
511
|
]
|
|
560
512
|
},
|
|
513
|
+
{ "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
|
|
561
514
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
562
515
|
],
|
|
563
|
-
"outputs": [
|
|
516
|
+
"outputs": [
|
|
517
|
+
{
|
|
518
|
+
"name": "receivedAmount",
|
|
519
|
+
"type": "uint256",
|
|
520
|
+
"internalType": "uint256"
|
|
521
|
+
},
|
|
522
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
523
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
524
|
+
],
|
|
564
525
|
"stateMutability": "payable"
|
|
565
526
|
},
|
|
566
527
|
{
|
|
567
528
|
"type": "function",
|
|
568
|
-
"name": "
|
|
529
|
+
"name": "swapExactAmountInOnUniswapV3",
|
|
569
530
|
"inputs": [
|
|
570
531
|
{
|
|
571
532
|
"name": "uniData",
|
|
572
533
|
"type": "tuple",
|
|
573
|
-
"internalType": "struct
|
|
534
|
+
"internalType": "struct UniswapV3Data",
|
|
574
535
|
"components": [
|
|
575
536
|
{
|
|
576
537
|
"name": "srcToken",
|
|
@@ -606,53 +567,110 @@
|
|
|
606
567
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
607
568
|
],
|
|
608
569
|
"outputs": [
|
|
609
|
-
{
|
|
570
|
+
{
|
|
571
|
+
"name": "receivedAmount",
|
|
572
|
+
"type": "uint256",
|
|
573
|
+
"internalType": "uint256"
|
|
574
|
+
},
|
|
575
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
576
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
610
577
|
],
|
|
611
578
|
"stateMutability": "payable"
|
|
612
579
|
},
|
|
613
580
|
{
|
|
614
581
|
"type": "function",
|
|
615
|
-
"name": "
|
|
582
|
+
"name": "swapExactAmountInOutOnAugustusRFQTryBatchFill",
|
|
616
583
|
"inputs": [
|
|
617
584
|
{
|
|
618
|
-
"name": "
|
|
585
|
+
"name": "data",
|
|
619
586
|
"type": "tuple",
|
|
620
|
-
"internalType": "struct
|
|
587
|
+
"internalType": "struct AugustusRFQData",
|
|
621
588
|
"components": [
|
|
622
|
-
{
|
|
623
|
-
"name": "srcToken",
|
|
624
|
-
"type": "address",
|
|
625
|
-
"internalType": "contract IERC20"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "destToken",
|
|
629
|
-
"type": "address",
|
|
630
|
-
"internalType": "contract IERC20"
|
|
631
|
-
},
|
|
632
589
|
{
|
|
633
590
|
"name": "fromAmount",
|
|
634
591
|
"type": "uint256",
|
|
635
592
|
"internalType": "uint256"
|
|
636
593
|
},
|
|
594
|
+
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
637
595
|
{
|
|
638
|
-
"name": "
|
|
639
|
-
"type": "
|
|
640
|
-
"internalType": "
|
|
596
|
+
"name": "wrapApproveDirection",
|
|
597
|
+
"type": "uint8",
|
|
598
|
+
"internalType": "uint8"
|
|
641
599
|
},
|
|
642
|
-
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
643
600
|
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
644
601
|
{
|
|
645
602
|
"name": "beneficiary",
|
|
646
603
|
"type": "address",
|
|
647
604
|
"internalType": "address payable"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "orders",
|
|
610
|
+
"type": "tuple[]",
|
|
611
|
+
"internalType": "struct OrderInfo[]",
|
|
612
|
+
"components": [
|
|
613
|
+
{
|
|
614
|
+
"name": "order",
|
|
615
|
+
"type": "tuple",
|
|
616
|
+
"internalType": "struct Order",
|
|
617
|
+
"components": [
|
|
618
|
+
{
|
|
619
|
+
"name": "nonceAndMeta",
|
|
620
|
+
"type": "uint256",
|
|
621
|
+
"internalType": "uint256"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "expiry",
|
|
625
|
+
"type": "uint128",
|
|
626
|
+
"internalType": "uint128"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "makerAsset",
|
|
630
|
+
"type": "address",
|
|
631
|
+
"internalType": "address"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "takerAsset",
|
|
635
|
+
"type": "address",
|
|
636
|
+
"internalType": "address"
|
|
637
|
+
},
|
|
638
|
+
{ "name": "maker", "type": "address", "internalType": "address" },
|
|
639
|
+
{ "name": "taker", "type": "address", "internalType": "address" },
|
|
640
|
+
{
|
|
641
|
+
"name": "makerAmount",
|
|
642
|
+
"type": "uint256",
|
|
643
|
+
"internalType": "uint256"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "takerAmount",
|
|
647
|
+
"type": "uint256",
|
|
648
|
+
"internalType": "uint256"
|
|
649
|
+
}
|
|
650
|
+
]
|
|
648
651
|
},
|
|
649
|
-
{ "name": "
|
|
652
|
+
{ "name": "signature", "type": "bytes", "internalType": "bytes" },
|
|
653
|
+
{
|
|
654
|
+
"name": "takerTokenFillAmount",
|
|
655
|
+
"type": "uint256",
|
|
656
|
+
"internalType": "uint256"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "permitTakerAsset",
|
|
660
|
+
"type": "bytes",
|
|
661
|
+
"internalType": "bytes"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "permitMakerAsset",
|
|
665
|
+
"type": "bytes",
|
|
666
|
+
"internalType": "bytes"
|
|
667
|
+
}
|
|
650
668
|
]
|
|
651
669
|
},
|
|
652
|
-
{ "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
|
|
653
670
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
654
671
|
],
|
|
655
672
|
"outputs": [
|
|
673
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
656
674
|
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
657
675
|
],
|
|
658
676
|
"stateMutability": "payable"
|
|
@@ -701,12 +719,14 @@
|
|
|
701
719
|
{ "name": "executorData", "type": "bytes", "internalType": "bytes" }
|
|
702
720
|
],
|
|
703
721
|
"outputs": [
|
|
722
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
704
723
|
{
|
|
705
724
|
"name": "receivedAmount",
|
|
706
725
|
"type": "uint256",
|
|
707
726
|
"internalType": "uint256"
|
|
708
727
|
},
|
|
709
|
-
{ "name": "
|
|
728
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
729
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
710
730
|
],
|
|
711
731
|
"stateMutability": "payable"
|
|
712
732
|
},
|
|
@@ -719,6 +739,12 @@
|
|
|
719
739
|
"type": "tuple",
|
|
720
740
|
"internalType": "struct BalancerV2Data",
|
|
721
741
|
"components": [
|
|
742
|
+
{
|
|
743
|
+
"name": "fromAmount",
|
|
744
|
+
"type": "uint256",
|
|
745
|
+
"internalType": "uint256"
|
|
746
|
+
},
|
|
747
|
+
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
722
748
|
{
|
|
723
749
|
"name": "quotedAmount",
|
|
724
750
|
"type": "uint256",
|
|
@@ -737,12 +763,14 @@
|
|
|
737
763
|
{ "name": "data", "type": "bytes", "internalType": "bytes" }
|
|
738
764
|
],
|
|
739
765
|
"outputs": [
|
|
766
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
740
767
|
{
|
|
741
768
|
"name": "receivedAmount",
|
|
742
769
|
"type": "uint256",
|
|
743
770
|
"internalType": "uint256"
|
|
744
771
|
},
|
|
745
|
-
{ "name": "
|
|
772
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
773
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
746
774
|
],
|
|
747
775
|
"stateMutability": "payable"
|
|
748
776
|
},
|
|
@@ -789,12 +817,14 @@
|
|
|
789
817
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
790
818
|
],
|
|
791
819
|
"outputs": [
|
|
820
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
792
821
|
{
|
|
793
822
|
"name": "receivedAmount",
|
|
794
823
|
"type": "uint256",
|
|
795
824
|
"internalType": "uint256"
|
|
796
825
|
},
|
|
797
|
-
{ "name": "
|
|
826
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
827
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
798
828
|
],
|
|
799
829
|
"stateMutability": "payable"
|
|
800
830
|
},
|
|
@@ -841,12 +871,14 @@
|
|
|
841
871
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
842
872
|
],
|
|
843
873
|
"outputs": [
|
|
874
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
844
875
|
{
|
|
845
876
|
"name": "receivedAmount",
|
|
846
877
|
"type": "uint256",
|
|
847
878
|
"internalType": "uint256"
|
|
848
879
|
},
|
|
849
|
-
{ "name": "
|
|
880
|
+
{ "name": "paraswapShare", "type": "uint256", "internalType": "uint256" },
|
|
881
|
+
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
850
882
|
],
|
|
851
883
|
"stateMutability": "payable"
|
|
852
884
|
},
|
|
@@ -856,22 +888,11 @@
|
|
|
856
888
|
"inputs": [
|
|
857
889
|
{ "name": "amount0Delta", "type": "int256", "internalType": "int256" },
|
|
858
890
|
{ "name": "amount1Delta", "type": "int256", "internalType": "int256" },
|
|
859
|
-
{ "name": "", "type": "bytes", "internalType": "bytes" }
|
|
891
|
+
{ "name": "data", "type": "bytes", "internalType": "bytes" }
|
|
860
892
|
],
|
|
861
893
|
"outputs": [],
|
|
862
894
|
"stateMutability": "nonpayable"
|
|
863
895
|
},
|
|
864
|
-
{
|
|
865
|
-
"type": "function",
|
|
866
|
-
"name": "whitelistedTokens",
|
|
867
|
-
"inputs": [
|
|
868
|
-
{ "name": "token", "type": "address", "internalType": "contract IERC20" }
|
|
869
|
-
],
|
|
870
|
-
"outputs": [
|
|
871
|
-
{ "name": "isWhitelisted", "type": "bool", "internalType": "bool" }
|
|
872
|
-
],
|
|
873
|
-
"stateMutability": "view"
|
|
874
|
-
},
|
|
875
896
|
{
|
|
876
897
|
"type": "event",
|
|
877
898
|
"name": "DiamondCut",
|
|
@@ -934,6 +955,7 @@
|
|
|
934
955
|
"anonymous": false
|
|
935
956
|
},
|
|
936
957
|
{ "type": "error", "name": "CallbackTransferFailed", "inputs": [] },
|
|
958
|
+
{ "type": "error", "name": "IncorrectEthAmount", "inputs": [] },
|
|
937
959
|
{
|
|
938
960
|
"type": "error",
|
|
939
961
|
"name": "InitializationFunctionReverted",
|
|
@@ -950,126 +972,8 @@
|
|
|
950
972
|
{ "type": "error", "name": "InsufficientReturnAmount", "inputs": [] },
|
|
951
973
|
{ "type": "error", "name": "InvalidCaller", "inputs": [] },
|
|
952
974
|
{ "type": "error", "name": "InvalidOrdersLength", "inputs": [] },
|
|
975
|
+
{ "type": "error", "name": "InvalidQuotedAmount", "inputs": [] },
|
|
953
976
|
{ "type": "error", "name": "InvalidToAmount", "inputs": [] },
|
|
954
977
|
{ "type": "error", "name": "Permit2Failed", "inputs": [] },
|
|
955
|
-
{ "type": "error", "name": "UnauthorizedUser", "inputs": [] }
|
|
956
|
-
{
|
|
957
|
-
"inputs": [
|
|
958
|
-
{
|
|
959
|
-
"components": [
|
|
960
|
-
{
|
|
961
|
-
"internalType": "uint256",
|
|
962
|
-
"name": "fromAmount",
|
|
963
|
-
"type": "uint256"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"internalType": "uint256",
|
|
967
|
-
"name": "toAmount",
|
|
968
|
-
"type": "uint256"
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"internalType": "uint8",
|
|
972
|
-
"name": "wrapApproveDirection",
|
|
973
|
-
"type": "uint8"
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
"internalType": "bytes32",
|
|
977
|
-
"name": "metadata",
|
|
978
|
-
"type": "bytes32"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"internalType": "address payable",
|
|
982
|
-
"name": "beneficiary",
|
|
983
|
-
"type": "address"
|
|
984
|
-
}
|
|
985
|
-
],
|
|
986
|
-
"internalType": "struct AugustusRFQData",
|
|
987
|
-
"name": "data",
|
|
988
|
-
"type": "tuple"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"components": [
|
|
992
|
-
{
|
|
993
|
-
"components": [
|
|
994
|
-
{
|
|
995
|
-
"internalType": "uint256",
|
|
996
|
-
"name": "nonceAndMeta",
|
|
997
|
-
"type": "uint256"
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
"internalType": "uint128",
|
|
1001
|
-
"name": "expiry",
|
|
1002
|
-
"type": "uint128"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"internalType": "address",
|
|
1006
|
-
"name": "makerAsset",
|
|
1007
|
-
"type": "address"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"internalType": "address",
|
|
1011
|
-
"name": "takerAsset",
|
|
1012
|
-
"type": "address"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"internalType": "address",
|
|
1016
|
-
"name": "maker",
|
|
1017
|
-
"type": "address"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"internalType": "address",
|
|
1021
|
-
"name": "taker",
|
|
1022
|
-
"type": "address"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"internalType": "uint256",
|
|
1026
|
-
"name": "makerAmount",
|
|
1027
|
-
"type": "uint256"
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
"internalType": "uint256",
|
|
1031
|
-
"name": "takerAmount",
|
|
1032
|
-
"type": "uint256"
|
|
1033
|
-
}
|
|
1034
|
-
],
|
|
1035
|
-
"internalType": "struct Order",
|
|
1036
|
-
"name": "order",
|
|
1037
|
-
"type": "tuple"
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
"internalType": "bytes",
|
|
1041
|
-
"name": "signature",
|
|
1042
|
-
"type": "bytes"
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
"internalType": "uint256",
|
|
1046
|
-
"name": "takerTokenFillAmount",
|
|
1047
|
-
"type": "uint256"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"internalType": "bytes",
|
|
1051
|
-
"name": "permitTakerAsset",
|
|
1052
|
-
"type": "bytes"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
"internalType": "bytes",
|
|
1056
|
-
"name": "permitMakerAsset",
|
|
1057
|
-
"type": "bytes"
|
|
1058
|
-
}
|
|
1059
|
-
],
|
|
1060
|
-
"internalType": "struct OrderInfo[]",
|
|
1061
|
-
"name": "orders",
|
|
1062
|
-
"type": "tuple[]"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"internalType": "bytes",
|
|
1066
|
-
"name": "permit",
|
|
1067
|
-
"type": "bytes"
|
|
1068
|
-
}
|
|
1069
|
-
],
|
|
1070
|
-
"name": "swapExactAmountInOutOnAugustusRFQTryBatchFill",
|
|
1071
|
-
"outputs": [],
|
|
1072
|
-
"stateMutability": "payable",
|
|
1073
|
-
"type": "function"
|
|
1074
|
-
}
|
|
978
|
+
{ "type": "error", "name": "UnauthorizedUser", "inputs": [] }
|
|
1075
979
|
]
|