@paraswap/dex-lib 3.0.6-balancer-direct-fn-fix.1 → 3.0.6
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 +284 -188
- package/build/config.js +4 -4
- package/build/dex/balancer-v2/balancer-v2.d.ts +1 -1
- package/build/dex/balancer-v2/balancer-v2.js +47 -9
- package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
- package/build/dex/balancer-v2/types.d.ts +0 -2
- package/build/dex/uniswap-v3/uniswap-v3.js +0 -6
- package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
- package/build/generic-swap-transaction-builder.js +2 -6
- package/build/generic-swap-transaction-builder.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/augustus-v6/ABI.json +284 -188
- package/src/config.ts +4 -4
- package/src/dex/balancer-v2/balancer-v2.ts +62 -5
- package/src/dex/balancer-v2/types.ts +0 -2
- package/src/dex/uniswap-v3/uniswap-v3.ts +0 -14
- package/src/generic-swap-transaction-builder.ts +2 -6
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"type": "address",
|
|
15
15
|
"internalType": "address payable"
|
|
16
16
|
},
|
|
17
|
+
{ "name": "_dai", "type": "address", "internalType": "address" },
|
|
17
18
|
{
|
|
18
19
|
"name": "_uniV3FactoryAndFF",
|
|
19
20
|
"type": "uint256",
|
|
@@ -64,6 +65,13 @@
|
|
|
64
65
|
],
|
|
65
66
|
"stateMutability": "view"
|
|
66
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"type": "function",
|
|
70
|
+
"name": "DAI_MAKER",
|
|
71
|
+
"inputs": [],
|
|
72
|
+
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
|
|
73
|
+
"stateMutability": "view"
|
|
74
|
+
},
|
|
67
75
|
{
|
|
68
76
|
"type": "function",
|
|
69
77
|
"name": "FEE_PERCENT_IN_BASIS_POINTS_MASK",
|
|
@@ -84,13 +92,6 @@
|
|
|
84
92
|
],
|
|
85
93
|
"stateMutability": "view"
|
|
86
94
|
},
|
|
87
|
-
{
|
|
88
|
-
"type": "function",
|
|
89
|
-
"name": "IS_CAP_SURPLUS_MASK",
|
|
90
|
-
"inputs": [],
|
|
91
|
-
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
92
|
-
"stateMutability": "view"
|
|
93
|
-
},
|
|
94
95
|
{
|
|
95
96
|
"type": "function",
|
|
96
97
|
"name": "IS_REFERRAL_MASK",
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
},
|
|
101
102
|
{
|
|
102
103
|
"type": "function",
|
|
103
|
-
"name": "
|
|
104
|
+
"name": "IS_SKIP_WHITELIST_MASK",
|
|
104
105
|
"inputs": [],
|
|
105
106
|
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
106
107
|
"stateMutability": "view"
|
|
@@ -119,13 +120,6 @@
|
|
|
119
120
|
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
120
121
|
"stateMutability": "view"
|
|
121
122
|
},
|
|
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
|
-
},
|
|
129
123
|
{
|
|
130
124
|
"type": "function",
|
|
131
125
|
"name": "PARASWAP_REFERRAL_SHARE",
|
|
@@ -154,19 +148,6 @@
|
|
|
154
148
|
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
|
|
155
149
|
"stateMutability": "view"
|
|
156
150
|
},
|
|
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
|
-
},
|
|
170
151
|
{
|
|
171
152
|
"type": "function",
|
|
172
153
|
"name": "SURPLUS_PERCENT",
|
|
@@ -204,21 +185,17 @@
|
|
|
204
185
|
},
|
|
205
186
|
{
|
|
206
187
|
"type": "function",
|
|
207
|
-
"name": "
|
|
188
|
+
"name": "WAD",
|
|
208
189
|
"inputs": [],
|
|
209
|
-
"outputs": [
|
|
210
|
-
{ "name": "", "type": "address", "internalType": "contract IWETH" }
|
|
211
|
-
],
|
|
190
|
+
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
212
191
|
"stateMutability": "view"
|
|
213
192
|
},
|
|
214
193
|
{
|
|
215
194
|
"type": "function",
|
|
216
|
-
"name": "
|
|
217
|
-
"inputs": [
|
|
218
|
-
{ "name": "token", "type": "address", "internalType": "contract IERC20" }
|
|
219
|
-
],
|
|
195
|
+
"name": "WETH",
|
|
196
|
+
"inputs": [],
|
|
220
197
|
"outputs": [
|
|
221
|
-
{ "name": "
|
|
198
|
+
{ "name": "", "type": "address", "internalType": "contract IWETH" }
|
|
222
199
|
],
|
|
223
200
|
"stateMutability": "view"
|
|
224
201
|
},
|
|
@@ -300,24 +277,18 @@
|
|
|
300
277
|
{ "name": "executorData", "type": "bytes", "internalType": "bytes" }
|
|
301
278
|
],
|
|
302
279
|
"outputs": [
|
|
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" }
|
|
280
|
+
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
310
281
|
],
|
|
311
282
|
"stateMutability": "payable"
|
|
312
283
|
},
|
|
313
284
|
{
|
|
314
285
|
"type": "function",
|
|
315
|
-
"name": "
|
|
286
|
+
"name": "swapExactAmountInOnAugustusRFQTryBatchFill",
|
|
316
287
|
"inputs": [
|
|
317
288
|
{
|
|
318
|
-
"name": "
|
|
289
|
+
"name": "data",
|
|
319
290
|
"type": "tuple",
|
|
320
|
-
"internalType": "struct
|
|
291
|
+
"internalType": "struct AugustusRFQData",
|
|
321
292
|
"components": [
|
|
322
293
|
{
|
|
323
294
|
"name": "fromAmount",
|
|
@@ -325,6 +296,95 @@
|
|
|
325
296
|
"internalType": "uint256"
|
|
326
297
|
},
|
|
327
298
|
{ "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": [
|
|
328
388
|
{
|
|
329
389
|
"name": "quotedAmount",
|
|
330
390
|
"type": "uint256",
|
|
@@ -343,13 +403,7 @@
|
|
|
343
403
|
{ "name": "data", "type": "bytes", "internalType": "bytes" }
|
|
344
404
|
],
|
|
345
405
|
"outputs": [
|
|
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" }
|
|
406
|
+
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
353
407
|
],
|
|
354
408
|
"stateMutability": "payable"
|
|
355
409
|
},
|
|
@@ -401,13 +455,7 @@
|
|
|
401
455
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
402
456
|
],
|
|
403
457
|
"outputs": [
|
|
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" }
|
|
458
|
+
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
411
459
|
],
|
|
412
460
|
"stateMutability": "payable"
|
|
413
461
|
},
|
|
@@ -461,24 +509,18 @@
|
|
|
461
509
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
462
510
|
],
|
|
463
511
|
"outputs": [
|
|
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" }
|
|
512
|
+
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
471
513
|
],
|
|
472
514
|
"stateMutability": "payable"
|
|
473
515
|
},
|
|
474
516
|
{
|
|
475
517
|
"type": "function",
|
|
476
|
-
"name": "
|
|
518
|
+
"name": "swapExactAmountInOnMakerPSM",
|
|
477
519
|
"inputs": [
|
|
478
520
|
{
|
|
479
|
-
"name": "
|
|
521
|
+
"name": "makerPSMData",
|
|
480
522
|
"type": "tuple",
|
|
481
|
-
"internalType": "struct
|
|
523
|
+
"internalType": "struct MakerPSMData",
|
|
482
524
|
"components": [
|
|
483
525
|
{
|
|
484
526
|
"name": "srcToken",
|
|
@@ -495,43 +537,40 @@
|
|
|
495
537
|
"type": "uint256",
|
|
496
538
|
"internalType": "uint256"
|
|
497
539
|
},
|
|
540
|
+
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
541
|
+
{ "name": "toll", "type": "uint256", "internalType": "uint256" },
|
|
498
542
|
{
|
|
499
|
-
"name": "
|
|
543
|
+
"name": "to18ConversionFactor",
|
|
500
544
|
"type": "uint256",
|
|
501
545
|
"internalType": "uint256"
|
|
502
546
|
},
|
|
503
|
-
{ "name": "
|
|
504
|
-
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
547
|
+
{ "name": "exchange", "type": "address", "internalType": "address" },
|
|
505
548
|
{
|
|
506
|
-
"name": "
|
|
549
|
+
"name": "gemJoinAddress",
|
|
507
550
|
"type": "address",
|
|
508
|
-
"internalType": "address
|
|
551
|
+
"internalType": "address"
|
|
509
552
|
},
|
|
510
|
-
{ "name": "
|
|
553
|
+
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
554
|
+
{
|
|
555
|
+
"name": "beneficiaryDirectionApproveFlag",
|
|
556
|
+
"type": "uint256",
|
|
557
|
+
"internalType": "uint256"
|
|
558
|
+
}
|
|
511
559
|
]
|
|
512
560
|
},
|
|
513
|
-
{ "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
|
|
514
561
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
515
562
|
],
|
|
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
|
-
],
|
|
563
|
+
"outputs": [],
|
|
525
564
|
"stateMutability": "payable"
|
|
526
565
|
},
|
|
527
566
|
{
|
|
528
567
|
"type": "function",
|
|
529
|
-
"name": "
|
|
568
|
+
"name": "swapExactAmountInOnUniswapV2",
|
|
530
569
|
"inputs": [
|
|
531
570
|
{
|
|
532
571
|
"name": "uniData",
|
|
533
572
|
"type": "tuple",
|
|
534
|
-
"internalType": "struct
|
|
573
|
+
"internalType": "struct UniswapV2Data",
|
|
535
574
|
"components": [
|
|
536
575
|
{
|
|
537
576
|
"name": "srcToken",
|
|
@@ -567,110 +606,53 @@
|
|
|
567
606
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
568
607
|
],
|
|
569
608
|
"outputs": [
|
|
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" }
|
|
609
|
+
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
577
610
|
],
|
|
578
611
|
"stateMutability": "payable"
|
|
579
612
|
},
|
|
580
613
|
{
|
|
581
614
|
"type": "function",
|
|
582
|
-
"name": "
|
|
615
|
+
"name": "swapExactAmountInOnUniswapV3",
|
|
583
616
|
"inputs": [
|
|
584
617
|
{
|
|
585
|
-
"name": "
|
|
618
|
+
"name": "uniData",
|
|
586
619
|
"type": "tuple",
|
|
587
|
-
"internalType": "struct
|
|
620
|
+
"internalType": "struct UniswapV3Data",
|
|
588
621
|
"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
|
+
},
|
|
589
632
|
{
|
|
590
633
|
"name": "fromAmount",
|
|
591
634
|
"type": "uint256",
|
|
592
635
|
"internalType": "uint256"
|
|
593
636
|
},
|
|
594
|
-
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
595
637
|
{
|
|
596
|
-
"name": "
|
|
597
|
-
"type": "
|
|
598
|
-
"internalType": "
|
|
638
|
+
"name": "quotedAmount",
|
|
639
|
+
"type": "uint256",
|
|
640
|
+
"internalType": "uint256"
|
|
599
641
|
},
|
|
642
|
+
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
600
643
|
{ "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
|
|
601
644
|
{
|
|
602
645
|
"name": "beneficiary",
|
|
603
646
|
"type": "address",
|
|
604
647
|
"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
|
-
]
|
|
651
|
-
},
|
|
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
648
|
},
|
|
663
|
-
{
|
|
664
|
-
"name": "permitMakerAsset",
|
|
665
|
-
"type": "bytes",
|
|
666
|
-
"internalType": "bytes"
|
|
667
|
-
}
|
|
649
|
+
{ "name": "pools", "type": "bytes", "internalType": "bytes" }
|
|
668
650
|
]
|
|
669
651
|
},
|
|
652
|
+
{ "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
|
|
670
653
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
671
654
|
],
|
|
672
655
|
"outputs": [
|
|
673
|
-
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
674
656
|
{ "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
|
|
675
657
|
],
|
|
676
658
|
"stateMutability": "payable"
|
|
@@ -719,14 +701,12 @@
|
|
|
719
701
|
{ "name": "executorData", "type": "bytes", "internalType": "bytes" }
|
|
720
702
|
],
|
|
721
703
|
"outputs": [
|
|
722
|
-
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
723
704
|
{
|
|
724
705
|
"name": "receivedAmount",
|
|
725
706
|
"type": "uint256",
|
|
726
707
|
"internalType": "uint256"
|
|
727
708
|
},
|
|
728
|
-
{ "name": "
|
|
729
|
-
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
709
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" }
|
|
730
710
|
],
|
|
731
711
|
"stateMutability": "payable"
|
|
732
712
|
},
|
|
@@ -739,12 +719,6 @@
|
|
|
739
719
|
"type": "tuple",
|
|
740
720
|
"internalType": "struct BalancerV2Data",
|
|
741
721
|
"components": [
|
|
742
|
-
{
|
|
743
|
-
"name": "fromAmount",
|
|
744
|
-
"type": "uint256",
|
|
745
|
-
"internalType": "uint256"
|
|
746
|
-
},
|
|
747
|
-
{ "name": "toAmount", "type": "uint256", "internalType": "uint256" },
|
|
748
722
|
{
|
|
749
723
|
"name": "quotedAmount",
|
|
750
724
|
"type": "uint256",
|
|
@@ -763,14 +737,12 @@
|
|
|
763
737
|
{ "name": "data", "type": "bytes", "internalType": "bytes" }
|
|
764
738
|
],
|
|
765
739
|
"outputs": [
|
|
766
|
-
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
767
740
|
{
|
|
768
741
|
"name": "receivedAmount",
|
|
769
742
|
"type": "uint256",
|
|
770
743
|
"internalType": "uint256"
|
|
771
744
|
},
|
|
772
|
-
{ "name": "
|
|
773
|
-
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
745
|
+
{ "name": "usedAmount", "type": "uint256", "internalType": "uint256" }
|
|
774
746
|
],
|
|
775
747
|
"stateMutability": "payable"
|
|
776
748
|
},
|
|
@@ -817,14 +789,12 @@
|
|
|
817
789
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
818
790
|
],
|
|
819
791
|
"outputs": [
|
|
820
|
-
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
821
792
|
{
|
|
822
793
|
"name": "receivedAmount",
|
|
823
794
|
"type": "uint256",
|
|
824
795
|
"internalType": "uint256"
|
|
825
796
|
},
|
|
826
|
-
{ "name": "
|
|
827
|
-
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
797
|
+
{ "name": "usedAmount", "type": "uint256", "internalType": "uint256" }
|
|
828
798
|
],
|
|
829
799
|
"stateMutability": "payable"
|
|
830
800
|
},
|
|
@@ -871,14 +841,12 @@
|
|
|
871
841
|
{ "name": "permit", "type": "bytes", "internalType": "bytes" }
|
|
872
842
|
],
|
|
873
843
|
"outputs": [
|
|
874
|
-
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" },
|
|
875
844
|
{
|
|
876
845
|
"name": "receivedAmount",
|
|
877
846
|
"type": "uint256",
|
|
878
847
|
"internalType": "uint256"
|
|
879
848
|
},
|
|
880
|
-
{ "name": "
|
|
881
|
-
{ "name": "partnerShare", "type": "uint256", "internalType": "uint256" }
|
|
849
|
+
{ "name": "spentAmount", "type": "uint256", "internalType": "uint256" }
|
|
882
850
|
],
|
|
883
851
|
"stateMutability": "payable"
|
|
884
852
|
},
|
|
@@ -888,11 +856,22 @@
|
|
|
888
856
|
"inputs": [
|
|
889
857
|
{ "name": "amount0Delta", "type": "int256", "internalType": "int256" },
|
|
890
858
|
{ "name": "amount1Delta", "type": "int256", "internalType": "int256" },
|
|
891
|
-
{ "name": "
|
|
859
|
+
{ "name": "", "type": "bytes", "internalType": "bytes" }
|
|
892
860
|
],
|
|
893
861
|
"outputs": [],
|
|
894
862
|
"stateMutability": "nonpayable"
|
|
895
863
|
},
|
|
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
|
+
},
|
|
896
875
|
{
|
|
897
876
|
"type": "event",
|
|
898
877
|
"name": "DiamondCut",
|
|
@@ -955,7 +934,6 @@
|
|
|
955
934
|
"anonymous": false
|
|
956
935
|
},
|
|
957
936
|
{ "type": "error", "name": "CallbackTransferFailed", "inputs": [] },
|
|
958
|
-
{ "type": "error", "name": "IncorrectEthAmount", "inputs": [] },
|
|
959
937
|
{
|
|
960
938
|
"type": "error",
|
|
961
939
|
"name": "InitializationFunctionReverted",
|
|
@@ -972,8 +950,126 @@
|
|
|
972
950
|
{ "type": "error", "name": "InsufficientReturnAmount", "inputs": [] },
|
|
973
951
|
{ "type": "error", "name": "InvalidCaller", "inputs": [] },
|
|
974
952
|
{ "type": "error", "name": "InvalidOrdersLength", "inputs": [] },
|
|
975
|
-
{ "type": "error", "name": "InvalidQuotedAmount", "inputs": [] },
|
|
976
953
|
{ "type": "error", "name": "InvalidToAmount", "inputs": [] },
|
|
977
954
|
{ "type": "error", "name": "Permit2Failed", "inputs": [] },
|
|
978
|
-
{ "type": "error", "name": "UnauthorizedUser", "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
|
+
}
|
|
979
1075
|
]
|