@pendle/core-v2 4.0.5 → 4.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/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +168 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +378 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +2 -2
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +58 -1
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +107 -1
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +14 -0
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +32 -0
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol +6 -0
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol +59 -2
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol +22 -1
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol +24 -0
- package/deployments/1-core.json +1 -1
- package/deployments/10-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/56-core.json +1 -1
- package/package.json +1 -1
- package/typechain-types/IExecutorHelper.ts +273 -0
- package/typechain-types/IExecutorHelperL2.ts +455 -0
- package/typechain-types/factories/IExecutorHelperL2__factory.ts +378 -0
- package/typechain-types/factories/IExecutorHelper__factory.ts +168 -0
- package/typechain-types/factories/PendleSwapL1__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL2__factory.ts +1 -1
|
@@ -57,6 +57,114 @@
|
|
|
57
57
|
"stateMutability": "payable",
|
|
58
58
|
"type": "function"
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "index",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bytes",
|
|
69
|
+
"name": "data",
|
|
70
|
+
"type": "bytes"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "previousAmountOut",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "address",
|
|
79
|
+
"name": "tokenIn",
|
|
80
|
+
"type": "address"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "bool",
|
|
84
|
+
"name": "getPoolOnly",
|
|
85
|
+
"type": "bool"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "address",
|
|
89
|
+
"name": "nextPool",
|
|
90
|
+
"type": "address"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "executeAmbient",
|
|
94
|
+
"outputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "tokenOut",
|
|
98
|
+
"type": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"internalType": "uint256",
|
|
102
|
+
"name": "tokenAmountOut",
|
|
103
|
+
"type": "uint256"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "address",
|
|
107
|
+
"name": "pool",
|
|
108
|
+
"type": "address"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"stateMutability": "payable",
|
|
112
|
+
"type": "function"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "uint256",
|
|
118
|
+
"name": "index",
|
|
119
|
+
"type": "uint256"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"internalType": "bytes",
|
|
123
|
+
"name": "data",
|
|
124
|
+
"type": "bytes"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "previousAmountOut",
|
|
129
|
+
"type": "uint256"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"internalType": "address",
|
|
133
|
+
"name": "tokenIn",
|
|
134
|
+
"type": "address"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"internalType": "bool",
|
|
138
|
+
"name": "getPoolOnly",
|
|
139
|
+
"type": "bool"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"internalType": "address",
|
|
143
|
+
"name": "nextPool",
|
|
144
|
+
"type": "address"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "executeArbswapStable",
|
|
148
|
+
"outputs": [
|
|
149
|
+
{
|
|
150
|
+
"internalType": "address",
|
|
151
|
+
"name": "tokenOut",
|
|
152
|
+
"type": "address"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "tokenAmountOut",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "address",
|
|
161
|
+
"name": "pool",
|
|
162
|
+
"type": "address"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"stateMutability": "payable",
|
|
166
|
+
"type": "function"
|
|
167
|
+
},
|
|
60
168
|
{
|
|
61
169
|
"inputs": [
|
|
62
170
|
{
|
|
@@ -165,6 +273,168 @@
|
|
|
165
273
|
"stateMutability": "payable",
|
|
166
274
|
"type": "function"
|
|
167
275
|
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "uint256",
|
|
280
|
+
"name": "index",
|
|
281
|
+
"type": "uint256"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"internalType": "bytes",
|
|
285
|
+
"name": "data",
|
|
286
|
+
"type": "bytes"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"internalType": "uint256",
|
|
290
|
+
"name": "previousAmountOut",
|
|
291
|
+
"type": "uint256"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"internalType": "address",
|
|
295
|
+
"name": "tokenIn",
|
|
296
|
+
"type": "address"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"internalType": "bool",
|
|
300
|
+
"name": "getPoolOnly",
|
|
301
|
+
"type": "bool"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"internalType": "address",
|
|
305
|
+
"name": "nextPool",
|
|
306
|
+
"type": "address"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"name": "executeBalancerV1",
|
|
310
|
+
"outputs": [
|
|
311
|
+
{
|
|
312
|
+
"internalType": "address",
|
|
313
|
+
"name": "tokenOut",
|
|
314
|
+
"type": "address"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "tokenAmountOut",
|
|
319
|
+
"type": "uint256"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"internalType": "address",
|
|
323
|
+
"name": "pool",
|
|
324
|
+
"type": "address"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"stateMutability": "payable",
|
|
328
|
+
"type": "function"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"internalType": "uint256",
|
|
334
|
+
"name": "index",
|
|
335
|
+
"type": "uint256"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bytes",
|
|
339
|
+
"name": "data",
|
|
340
|
+
"type": "bytes"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"internalType": "uint256",
|
|
344
|
+
"name": "previousAmountOut",
|
|
345
|
+
"type": "uint256"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"internalType": "address",
|
|
349
|
+
"name": "tokenIn",
|
|
350
|
+
"type": "address"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"internalType": "bool",
|
|
354
|
+
"name": "getPoolOnly",
|
|
355
|
+
"type": "bool"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"internalType": "address",
|
|
359
|
+
"name": "nextPool",
|
|
360
|
+
"type": "address"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"name": "executeBancorV2",
|
|
364
|
+
"outputs": [
|
|
365
|
+
{
|
|
366
|
+
"internalType": "address",
|
|
367
|
+
"name": "tokenOut",
|
|
368
|
+
"type": "address"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"internalType": "uint256",
|
|
372
|
+
"name": "tokenAmountOut",
|
|
373
|
+
"type": "uint256"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"internalType": "address",
|
|
377
|
+
"name": "pool",
|
|
378
|
+
"type": "address"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"stateMutability": "payable",
|
|
382
|
+
"type": "function"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"inputs": [
|
|
386
|
+
{
|
|
387
|
+
"internalType": "uint256",
|
|
388
|
+
"name": "index",
|
|
389
|
+
"type": "uint256"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"internalType": "bytes",
|
|
393
|
+
"name": "data",
|
|
394
|
+
"type": "bytes"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"internalType": "uint256",
|
|
398
|
+
"name": "previousAmountOut",
|
|
399
|
+
"type": "uint256"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"internalType": "address",
|
|
403
|
+
"name": "tokenIn",
|
|
404
|
+
"type": "address"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"internalType": "bool",
|
|
408
|
+
"name": "getPoolOnly",
|
|
409
|
+
"type": "bool"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"internalType": "address",
|
|
413
|
+
"name": "nextPool",
|
|
414
|
+
"type": "address"
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"name": "executeBancorV3",
|
|
418
|
+
"outputs": [
|
|
419
|
+
{
|
|
420
|
+
"internalType": "address",
|
|
421
|
+
"name": "tokenOut",
|
|
422
|
+
"type": "address"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"internalType": "uint256",
|
|
426
|
+
"name": "tokenAmountOut",
|
|
427
|
+
"type": "uint256"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"internalType": "address",
|
|
431
|
+
"name": "pool",
|
|
432
|
+
"type": "address"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"stateMutability": "payable",
|
|
436
|
+
"type": "function"
|
|
437
|
+
},
|
|
168
438
|
{
|
|
169
439
|
"inputs": [
|
|
170
440
|
{
|
|
@@ -921,6 +1191,60 @@
|
|
|
921
1191
|
"stateMutability": "payable",
|
|
922
1192
|
"type": "function"
|
|
923
1193
|
},
|
|
1194
|
+
{
|
|
1195
|
+
"inputs": [
|
|
1196
|
+
{
|
|
1197
|
+
"internalType": "uint256",
|
|
1198
|
+
"name": "index",
|
|
1199
|
+
"type": "uint256"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"internalType": "bytes",
|
|
1203
|
+
"name": "data",
|
|
1204
|
+
"type": "bytes"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"internalType": "uint256",
|
|
1208
|
+
"name": "previousAmountOut",
|
|
1209
|
+
"type": "uint256"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"internalType": "address",
|
|
1213
|
+
"name": "tokenIn",
|
|
1214
|
+
"type": "address"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"internalType": "bool",
|
|
1218
|
+
"name": "getPoolOnly",
|
|
1219
|
+
"type": "bool"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"internalType": "address",
|
|
1223
|
+
"name": "nextPool",
|
|
1224
|
+
"type": "address"
|
|
1225
|
+
}
|
|
1226
|
+
],
|
|
1227
|
+
"name": "executeNomiswapStable",
|
|
1228
|
+
"outputs": [
|
|
1229
|
+
{
|
|
1230
|
+
"internalType": "address",
|
|
1231
|
+
"name": "tokenOut",
|
|
1232
|
+
"type": "address"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"internalType": "uint256",
|
|
1236
|
+
"name": "tokenAmountOut",
|
|
1237
|
+
"type": "uint256"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "address",
|
|
1241
|
+
"name": "pool",
|
|
1242
|
+
"type": "address"
|
|
1243
|
+
}
|
|
1244
|
+
],
|
|
1245
|
+
"stateMutability": "payable",
|
|
1246
|
+
"type": "function"
|
|
1247
|
+
},
|
|
924
1248
|
{
|
|
925
1249
|
"inputs": [
|
|
926
1250
|
{
|
|
@@ -1299,6 +1623,60 @@
|
|
|
1299
1623
|
"stateMutability": "payable",
|
|
1300
1624
|
"type": "function"
|
|
1301
1625
|
},
|
|
1626
|
+
{
|
|
1627
|
+
"inputs": [
|
|
1628
|
+
{
|
|
1629
|
+
"internalType": "uint256",
|
|
1630
|
+
"name": "index",
|
|
1631
|
+
"type": "uint256"
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"internalType": "bytes",
|
|
1635
|
+
"name": "data",
|
|
1636
|
+
"type": "bytes"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"internalType": "uint256",
|
|
1640
|
+
"name": "previousAmountOut",
|
|
1641
|
+
"type": "uint256"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"internalType": "address",
|
|
1645
|
+
"name": "tokenIn",
|
|
1646
|
+
"type": "address"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"internalType": "bool",
|
|
1650
|
+
"name": "getPoolOnly",
|
|
1651
|
+
"type": "bool"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"internalType": "address",
|
|
1655
|
+
"name": "nextPool",
|
|
1656
|
+
"type": "address"
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1659
|
+
"name": "executeSwaapV2",
|
|
1660
|
+
"outputs": [
|
|
1661
|
+
{
|
|
1662
|
+
"internalType": "address",
|
|
1663
|
+
"name": "tokenOut",
|
|
1664
|
+
"type": "address"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"internalType": "uint256",
|
|
1668
|
+
"name": "tokenAmountOut",
|
|
1669
|
+
"type": "uint256"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"internalType": "address",
|
|
1673
|
+
"name": "pool",
|
|
1674
|
+
"type": "address"
|
|
1675
|
+
}
|
|
1676
|
+
],
|
|
1677
|
+
"stateMutability": "payable",
|
|
1678
|
+
"type": "function"
|
|
1679
|
+
},
|
|
1302
1680
|
{
|
|
1303
1681
|
"inputs": [
|
|
1304
1682
|
{
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "InputScalingHelper",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122058aa87ecc20299e3e473d60f4a446a99f345d4fec901c79fc9e3e69f258a334964736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122058aa87ecc20299e3e473d60f4a446a99f345d4fec901c79fc9e3e69f258a334964736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "ScalingDataLib",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209e3d0a6256704ee99fe5513ee0d8e146713bff22714aa0cf05a52824ac828f8164736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209e3d0a6256704ee99fe5513ee0d8e146713bff22714aa0cf05a52824ac828f8164736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "CalldataReader",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122053a901f49374423625e516451172aa7231de49836f74c1ae7c889cde1227cc6d64736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122053a901f49374423625e516451172aa7231de49836f74c1ae7c889cde1227cc6d64736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "CalldataWriter",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220491a36c68be05fa7816bde0c064213a4990946697841e8a1466ffc91113d174364736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220491a36c68be05fa7816bde0c064213a4990946697841e8a1466ffc91113d174364736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "Common",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a2398688cb6ce66071b05f54aceb2b6d16b9a464263b58844abfa687af04398464736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a2398688cb6ce66071b05f54aceb2b6d16b9a464263b58844abfa687af04398464736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "DexScaler",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ede201d2f10f74c03e0b54aeaf57846c52f9239ab70916c96f88c20dbc21977164736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ede201d2f10f74c03e0b54aeaf57846c52f9239ab70916c96f88c20dbc21977164736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "ExecutorReader",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122036695027e4a4b14f8ce71631413a27bd798b6b7a90fc1da5814325716bf8c8e464736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122036695027e4a4b14f8ce71631413a27bd798b6b7a90fc1da5814325716bf8c8e464736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "InputScalingHelperL2",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122037e76b2342f9c8eaf35d54f232e3bbd80592c36511f5c2d612c86254f97e237e64736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122037e76b2342f9c8eaf35d54f232e3bbd80592c36511f5c2d612c86254f97e237e64736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "ScalingDataL2Lib",
|
|
4
4
|
"sourceName": "contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220611f55333375518313d78f0bd8536bec1280beb253b4cb7d6b962731e3e57bb064736f6c63430008170033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220611f55333375518313d78f0bd8536bec1280beb253b4cb7d6b962731e3e57bb064736f6c63430008170033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -212,9 +212,12 @@ interface IExecutorHelper {
|
|
|
212
212
|
|
|
213
213
|
struct VelocoreV2 {
|
|
214
214
|
address vault;
|
|
215
|
+
uint256 amount;
|
|
215
216
|
address tokenIn;
|
|
216
217
|
address tokenOut;
|
|
217
|
-
|
|
218
|
+
address stablePool; // if not empty then use stable pool
|
|
219
|
+
address wrapToken;
|
|
220
|
+
bool isConvertFirst;
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
struct MaticMigrate {
|
|
@@ -232,6 +235,46 @@ interface IExecutorHelper {
|
|
|
232
235
|
address toToken;
|
|
233
236
|
}
|
|
234
237
|
|
|
238
|
+
struct BalancerV1 {
|
|
239
|
+
address pool;
|
|
240
|
+
address tokenIn;
|
|
241
|
+
address tokenOut;
|
|
242
|
+
uint256 amount;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
struct SwaapV2 {
|
|
246
|
+
address router;
|
|
247
|
+
uint256 amount;
|
|
248
|
+
bytes data;
|
|
249
|
+
address tokenIn;
|
|
250
|
+
address tokenOut;
|
|
251
|
+
address recipient;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
struct ArbswapStable {
|
|
255
|
+
address pool;
|
|
256
|
+
uint256 dx;
|
|
257
|
+
uint256 tokenIndexFrom;
|
|
258
|
+
address tokenIn;
|
|
259
|
+
address tokenOut;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
struct BancorV2 {
|
|
263
|
+
address pool;
|
|
264
|
+
address[] swapPath;
|
|
265
|
+
uint256 amount;
|
|
266
|
+
address recipient;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
struct Ambient {
|
|
270
|
+
address pool;
|
|
271
|
+
uint128 qty;
|
|
272
|
+
address base;
|
|
273
|
+
address quote;
|
|
274
|
+
uint256 poolIdx;
|
|
275
|
+
uint8 settleFlags;
|
|
276
|
+
}
|
|
277
|
+
|
|
235
278
|
function executeUniswap(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
236
279
|
|
|
237
280
|
function executeStableSwap(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
@@ -311,4 +354,18 @@ interface IExecutorHelper {
|
|
|
311
354
|
function executeSolidlyV2(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
312
355
|
|
|
313
356
|
function executeKokonut(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
357
|
+
|
|
358
|
+
function executeBalancerV1(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
359
|
+
|
|
360
|
+
function executeSwaapV2(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
361
|
+
|
|
362
|
+
function executeNomiswapStable(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
363
|
+
|
|
364
|
+
function executeArbswapStable(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
365
|
+
|
|
366
|
+
function executeBancorV2(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
367
|
+
|
|
368
|
+
function executeBancorV3(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
369
|
+
|
|
370
|
+
function executeAmbient(bytes memory data, uint256 flagsAndPrevAmountOut) external payable returns (uint256);
|
|
314
371
|
}
|