@gearbox-protocol/sdk 8.17.1 → 8.18.1
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/dist/cjs/abi/index.js +2 -0
- package/dist/cjs/abi/mellow.js +2938 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +27 -0
- package/dist/cjs/plugins/adapters/FluidDexAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/InfraredVaultAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/KodiakIslandGatewayAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/LidoV1AdapterContract.js +37 -0
- package/dist/cjs/plugins/adapters/MellowClaimerAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/MellowDVVAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/MellowWrapperAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/TraderJoeRouterAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/UpshiftVaultAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/abi/adapters.js +1217 -2
- package/dist/cjs/plugins/adapters/index.js +18 -0
- package/dist/cjs/sdk/chain/chains.js +2 -3
- package/dist/esm/abi/index.js +1 -0
- package/dist/esm/abi/mellow.js +2910 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +27 -0
- package/dist/esm/plugins/adapters/FluidDexAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/InfraredVaultAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/KodiakIslandGatewayAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/LidoV1AdapterContract.js +13 -0
- package/dist/esm/plugins/adapters/MellowClaimerAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/MellowDVVAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/MellowWrapperAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/TraderJoeRouterAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/UpshiftVaultAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/abi/adapters.js +1208 -1
- package/dist/esm/plugins/adapters/index.js +9 -0
- package/dist/esm/sdk/chain/chains.js +2 -3
- package/dist/types/abi/index.d.ts +1 -0
- package/dist/types/abi/mellow.d.ts +3886 -0
- package/dist/types/plugins/adapters/FluidDexAdapterContract.d.ts +127 -0
- package/dist/types/plugins/adapters/InfraredVaultAdapterContract.d.ts +195 -0
- package/dist/types/plugins/adapters/KodiakIslandGatewayAdapterContract.d.ts +390 -0
- package/dist/types/plugins/adapters/LidoV1AdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/MellowClaimerAdapterContract.d.ts +255 -0
- package/dist/types/plugins/adapters/MellowDVVAdapterContract.d.ts +229 -0
- package/dist/types/plugins/adapters/MellowWrapperAdapterContract.d.ts +159 -0
- package/dist/types/plugins/adapters/TraderJoeRouterAdapterContract.d.ts +341 -0
- package/dist/types/plugins/adapters/UpshiftVaultAdapterContract.d.ts +265 -0
- package/dist/types/plugins/adapters/abi/adapters.d.ts +1897 -0
- package/dist/types/plugins/adapters/index.d.ts +9 -0
- package/dist/types/plugins/adapters/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4313,6 +4313,1205 @@ const iwstEthv1AdapterAbi = [
|
|
|
4313
4313
|
stateMutability: "nonpayable"
|
|
4314
4314
|
}
|
|
4315
4315
|
];
|
|
4316
|
+
const iFluidDexAdapterAbi = [
|
|
4317
|
+
{
|
|
4318
|
+
type: "function",
|
|
4319
|
+
name: "contractType",
|
|
4320
|
+
inputs: [],
|
|
4321
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
4322
|
+
stateMutability: "view"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
type: "function",
|
|
4326
|
+
name: "creditManager",
|
|
4327
|
+
inputs: [],
|
|
4328
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4329
|
+
stateMutability: "view"
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
type: "function",
|
|
4333
|
+
name: "serialize",
|
|
4334
|
+
inputs: [],
|
|
4335
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
4336
|
+
stateMutability: "view"
|
|
4337
|
+
},
|
|
4338
|
+
{
|
|
4339
|
+
type: "function",
|
|
4340
|
+
name: "swapIn",
|
|
4341
|
+
inputs: [
|
|
4342
|
+
{ name: "swap0to1", type: "bool", internalType: "bool" },
|
|
4343
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
4344
|
+
{ name: "amountOutMin", type: "uint256", internalType: "uint256" },
|
|
4345
|
+
{ name: "to", type: "address", internalType: "address" }
|
|
4346
|
+
],
|
|
4347
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4348
|
+
stateMutability: "nonpayable"
|
|
4349
|
+
},
|
|
4350
|
+
{
|
|
4351
|
+
type: "function",
|
|
4352
|
+
name: "swapInDiff",
|
|
4353
|
+
inputs: [
|
|
4354
|
+
{ name: "swap0to1", type: "bool", internalType: "bool" },
|
|
4355
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
4356
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" }
|
|
4357
|
+
],
|
|
4358
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4359
|
+
stateMutability: "nonpayable"
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
type: "function",
|
|
4363
|
+
name: "targetContract",
|
|
4364
|
+
inputs: [],
|
|
4365
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4366
|
+
stateMutability: "view"
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
type: "function",
|
|
4370
|
+
name: "token0",
|
|
4371
|
+
inputs: [],
|
|
4372
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4373
|
+
stateMutability: "view"
|
|
4374
|
+
},
|
|
4375
|
+
{
|
|
4376
|
+
type: "function",
|
|
4377
|
+
name: "token1",
|
|
4378
|
+
inputs: [],
|
|
4379
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4380
|
+
stateMutability: "view"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
type: "function",
|
|
4384
|
+
name: "version",
|
|
4385
|
+
inputs: [],
|
|
4386
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
4387
|
+
stateMutability: "view"
|
|
4388
|
+
}
|
|
4389
|
+
];
|
|
4390
|
+
const iInfraredVaultAdapterAbi = [
|
|
4391
|
+
{
|
|
4392
|
+
type: "function",
|
|
4393
|
+
name: "contractType",
|
|
4394
|
+
inputs: [],
|
|
4395
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
4396
|
+
stateMutability: "view"
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
type: "function",
|
|
4400
|
+
name: "creditManager",
|
|
4401
|
+
inputs: [],
|
|
4402
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4403
|
+
stateMutability: "view"
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
type: "function",
|
|
4407
|
+
name: "depositPhantomToken",
|
|
4408
|
+
inputs: [
|
|
4409
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
4410
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
4411
|
+
],
|
|
4412
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4413
|
+
stateMutability: "nonpayable"
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
type: "function",
|
|
4417
|
+
name: "exit",
|
|
4418
|
+
inputs: [],
|
|
4419
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4420
|
+
stateMutability: "nonpayable"
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
type: "function",
|
|
4424
|
+
name: "getReward",
|
|
4425
|
+
inputs: [],
|
|
4426
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4427
|
+
stateMutability: "nonpayable"
|
|
4428
|
+
},
|
|
4429
|
+
{
|
|
4430
|
+
type: "function",
|
|
4431
|
+
name: "serialize",
|
|
4432
|
+
inputs: [],
|
|
4433
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
4434
|
+
stateMutability: "view"
|
|
4435
|
+
},
|
|
4436
|
+
{
|
|
4437
|
+
type: "function",
|
|
4438
|
+
name: "stake",
|
|
4439
|
+
inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
|
|
4440
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4441
|
+
stateMutability: "nonpayable"
|
|
4442
|
+
},
|
|
4443
|
+
{
|
|
4444
|
+
type: "function",
|
|
4445
|
+
name: "stakeDiff",
|
|
4446
|
+
inputs: [
|
|
4447
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
4448
|
+
],
|
|
4449
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4450
|
+
stateMutability: "nonpayable"
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
type: "function",
|
|
4454
|
+
name: "stakedPhantomToken",
|
|
4455
|
+
inputs: [],
|
|
4456
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4457
|
+
stateMutability: "view"
|
|
4458
|
+
},
|
|
4459
|
+
{
|
|
4460
|
+
type: "function",
|
|
4461
|
+
name: "stakingToken",
|
|
4462
|
+
inputs: [],
|
|
4463
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4464
|
+
stateMutability: "view"
|
|
4465
|
+
},
|
|
4466
|
+
{
|
|
4467
|
+
type: "function",
|
|
4468
|
+
name: "targetContract",
|
|
4469
|
+
inputs: [],
|
|
4470
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4471
|
+
stateMutability: "view"
|
|
4472
|
+
},
|
|
4473
|
+
{
|
|
4474
|
+
type: "function",
|
|
4475
|
+
name: "version",
|
|
4476
|
+
inputs: [],
|
|
4477
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
4478
|
+
stateMutability: "view"
|
|
4479
|
+
},
|
|
4480
|
+
{
|
|
4481
|
+
type: "function",
|
|
4482
|
+
name: "withdraw",
|
|
4483
|
+
inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
|
|
4484
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4485
|
+
stateMutability: "nonpayable"
|
|
4486
|
+
},
|
|
4487
|
+
{
|
|
4488
|
+
type: "function",
|
|
4489
|
+
name: "withdrawDiff",
|
|
4490
|
+
inputs: [
|
|
4491
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
4492
|
+
],
|
|
4493
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4494
|
+
stateMutability: "nonpayable"
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
type: "function",
|
|
4498
|
+
name: "withdrawPhantomToken",
|
|
4499
|
+
inputs: [
|
|
4500
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
4501
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
4502
|
+
],
|
|
4503
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4504
|
+
stateMutability: "nonpayable"
|
|
4505
|
+
},
|
|
4506
|
+
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] }
|
|
4507
|
+
];
|
|
4508
|
+
const iKodiakIslandGatewayAdapterAbi = [
|
|
4509
|
+
{
|
|
4510
|
+
type: "function",
|
|
4511
|
+
name: "addLiquidityImbalanced",
|
|
4512
|
+
inputs: [
|
|
4513
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4514
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
4515
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" },
|
|
4516
|
+
{ name: "minLPAmount", type: "uint256", internalType: "uint256" },
|
|
4517
|
+
{ name: "receiver", type: "address", internalType: "address" }
|
|
4518
|
+
],
|
|
4519
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4520
|
+
stateMutability: "nonpayable"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
type: "function",
|
|
4524
|
+
name: "addLiquidityImbalancedAssisted",
|
|
4525
|
+
inputs: [
|
|
4526
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4527
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
4528
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" },
|
|
4529
|
+
{ name: "minLPAmount", type: "uint256", internalType: "uint256" },
|
|
4530
|
+
{ name: "receiver", type: "address", internalType: "address" },
|
|
4531
|
+
{
|
|
4532
|
+
name: "ratios",
|
|
4533
|
+
type: "tuple",
|
|
4534
|
+
internalType: "struct Ratios",
|
|
4535
|
+
components: [
|
|
4536
|
+
{ name: "priceRatio", type: "uint256", internalType: "uint256" },
|
|
4537
|
+
{ name: "balance0", type: "uint256", internalType: "uint256" },
|
|
4538
|
+
{ name: "balance1", type: "uint256", internalType: "uint256" },
|
|
4539
|
+
{ name: "swapAll", type: "bool", internalType: "bool" },
|
|
4540
|
+
{ name: "is0to1", type: "bool", internalType: "bool" }
|
|
4541
|
+
]
|
|
4542
|
+
}
|
|
4543
|
+
],
|
|
4544
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4545
|
+
stateMutability: "nonpayable"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
type: "function",
|
|
4549
|
+
name: "addLiquidityImbalancedDiff",
|
|
4550
|
+
inputs: [
|
|
4551
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4552
|
+
{ name: "leftoverAmount0", type: "uint256", internalType: "uint256" },
|
|
4553
|
+
{ name: "leftoverAmount1", type: "uint256", internalType: "uint256" },
|
|
4554
|
+
{ name: "minRatesRAY", type: "uint256[2]", internalType: "uint256[2]" }
|
|
4555
|
+
],
|
|
4556
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4557
|
+
stateMutability: "nonpayable"
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
type: "function",
|
|
4561
|
+
name: "addLiquidityImbalancedDiffAssisted",
|
|
4562
|
+
inputs: [
|
|
4563
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4564
|
+
{ name: "leftoverAmount0", type: "uint256", internalType: "uint256" },
|
|
4565
|
+
{ name: "leftoverAmount1", type: "uint256", internalType: "uint256" },
|
|
4566
|
+
{ name: "minRatesRAY", type: "uint256[2]", internalType: "uint256[2]" },
|
|
4567
|
+
{
|
|
4568
|
+
name: "ratios",
|
|
4569
|
+
type: "tuple",
|
|
4570
|
+
internalType: "struct Ratios",
|
|
4571
|
+
components: [
|
|
4572
|
+
{ name: "priceRatio", type: "uint256", internalType: "uint256" },
|
|
4573
|
+
{ name: "balance0", type: "uint256", internalType: "uint256" },
|
|
4574
|
+
{ name: "balance1", type: "uint256", internalType: "uint256" },
|
|
4575
|
+
{ name: "swapAll", type: "bool", internalType: "bool" },
|
|
4576
|
+
{ name: "is0to1", type: "bool", internalType: "bool" }
|
|
4577
|
+
]
|
|
4578
|
+
}
|
|
4579
|
+
],
|
|
4580
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4581
|
+
stateMutability: "nonpayable"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
type: "function",
|
|
4585
|
+
name: "allowedIslands",
|
|
4586
|
+
inputs: [],
|
|
4587
|
+
outputs: [
|
|
4588
|
+
{
|
|
4589
|
+
name: "",
|
|
4590
|
+
type: "tuple[]",
|
|
4591
|
+
internalType: "struct KodiakIslandStatus[]",
|
|
4592
|
+
components: [
|
|
4593
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4594
|
+
{ name: "status", type: "uint8", internalType: "enum IslandStatus" }
|
|
4595
|
+
]
|
|
4596
|
+
}
|
|
4597
|
+
],
|
|
4598
|
+
stateMutability: "view"
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
type: "function",
|
|
4602
|
+
name: "contractType",
|
|
4603
|
+
inputs: [],
|
|
4604
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
4605
|
+
stateMutability: "view"
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
type: "function",
|
|
4609
|
+
name: "creditManager",
|
|
4610
|
+
inputs: [],
|
|
4611
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4612
|
+
stateMutability: "view"
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
type: "function",
|
|
4616
|
+
name: "removeLiquiditySingle",
|
|
4617
|
+
inputs: [
|
|
4618
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4619
|
+
{ name: "lpAmount", type: "uint256", internalType: "uint256" },
|
|
4620
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
4621
|
+
{ name: "minAmountOut", type: "uint256", internalType: "uint256" },
|
|
4622
|
+
{ name: "receiver", type: "address", internalType: "address" }
|
|
4623
|
+
],
|
|
4624
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4625
|
+
stateMutability: "nonpayable"
|
|
4626
|
+
},
|
|
4627
|
+
{
|
|
4628
|
+
type: "function",
|
|
4629
|
+
name: "removeLiquiditySingleDiff",
|
|
4630
|
+
inputs: [
|
|
4631
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4632
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
4633
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
4634
|
+
{ name: "minRateRAY", type: "uint256", internalType: "uint256" }
|
|
4635
|
+
],
|
|
4636
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4637
|
+
stateMutability: "nonpayable"
|
|
4638
|
+
},
|
|
4639
|
+
{
|
|
4640
|
+
type: "function",
|
|
4641
|
+
name: "serialize",
|
|
4642
|
+
inputs: [],
|
|
4643
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
4644
|
+
stateMutability: "view"
|
|
4645
|
+
},
|
|
4646
|
+
{
|
|
4647
|
+
type: "function",
|
|
4648
|
+
name: "setIslandStatusBatch",
|
|
4649
|
+
inputs: [
|
|
4650
|
+
{
|
|
4651
|
+
name: "islands",
|
|
4652
|
+
type: "tuple[]",
|
|
4653
|
+
internalType: "struct KodiakIslandStatus[]",
|
|
4654
|
+
components: [
|
|
4655
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4656
|
+
{ name: "status", type: "uint8", internalType: "enum IslandStatus" }
|
|
4657
|
+
]
|
|
4658
|
+
}
|
|
4659
|
+
],
|
|
4660
|
+
outputs: [],
|
|
4661
|
+
stateMutability: "nonpayable"
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
type: "function",
|
|
4665
|
+
name: "swap",
|
|
4666
|
+
inputs: [
|
|
4667
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4668
|
+
{ name: "tokenIn", type: "address", internalType: "address" },
|
|
4669
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
4670
|
+
{ name: "amountOutMin", type: "uint256", internalType: "uint256" }
|
|
4671
|
+
],
|
|
4672
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4673
|
+
stateMutability: "nonpayable"
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
type: "function",
|
|
4677
|
+
name: "swapDiff",
|
|
4678
|
+
inputs: [
|
|
4679
|
+
{ name: "island", type: "address", internalType: "address" },
|
|
4680
|
+
{ name: "tokenIn", type: "address", internalType: "address" },
|
|
4681
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
4682
|
+
{ name: "minRateRAY", type: "uint256", internalType: "uint256" }
|
|
4683
|
+
],
|
|
4684
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4685
|
+
stateMutability: "nonpayable"
|
|
4686
|
+
},
|
|
4687
|
+
{
|
|
4688
|
+
type: "function",
|
|
4689
|
+
name: "targetContract",
|
|
4690
|
+
inputs: [],
|
|
4691
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4692
|
+
stateMutability: "view"
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
type: "function",
|
|
4696
|
+
name: "version",
|
|
4697
|
+
inputs: [],
|
|
4698
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
4699
|
+
stateMutability: "view"
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
type: "event",
|
|
4703
|
+
name: "SetIslandStatus",
|
|
4704
|
+
inputs: [
|
|
4705
|
+
{
|
|
4706
|
+
name: "island",
|
|
4707
|
+
type: "address",
|
|
4708
|
+
indexed: true,
|
|
4709
|
+
internalType: "address"
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
name: "status",
|
|
4713
|
+
type: "uint8",
|
|
4714
|
+
indexed: false,
|
|
4715
|
+
internalType: "enum IslandStatus"
|
|
4716
|
+
}
|
|
4717
|
+
],
|
|
4718
|
+
anonymous: false
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
type: "error",
|
|
4722
|
+
name: "IslandNotAllowedException",
|
|
4723
|
+
inputs: [{ name: "island", type: "address", internalType: "address" }]
|
|
4724
|
+
}
|
|
4725
|
+
];
|
|
4726
|
+
const iMellowClaimerAdapterAbi = [
|
|
4727
|
+
{
|
|
4728
|
+
type: "function",
|
|
4729
|
+
name: "allowedMultiVaults",
|
|
4730
|
+
inputs: [],
|
|
4731
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
4732
|
+
stateMutability: "view"
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
type: "function",
|
|
4736
|
+
name: "contractType",
|
|
4737
|
+
inputs: [],
|
|
4738
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
4739
|
+
stateMutability: "view"
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
type: "function",
|
|
4743
|
+
name: "creditManager",
|
|
4744
|
+
inputs: [],
|
|
4745
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4746
|
+
stateMutability: "view"
|
|
4747
|
+
},
|
|
4748
|
+
{
|
|
4749
|
+
type: "function",
|
|
4750
|
+
name: "depositPhantomToken",
|
|
4751
|
+
inputs: [
|
|
4752
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
4753
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
4754
|
+
],
|
|
4755
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4756
|
+
stateMutability: "nonpayable"
|
|
4757
|
+
},
|
|
4758
|
+
{
|
|
4759
|
+
type: "function",
|
|
4760
|
+
name: "getMultiVaultSubvaultIndices",
|
|
4761
|
+
inputs: [{ name: "multiVault", type: "address", internalType: "address" }],
|
|
4762
|
+
outputs: [
|
|
4763
|
+
{ name: "subvaultIndices", type: "uint256[]", internalType: "uint256[]" },
|
|
4764
|
+
{
|
|
4765
|
+
name: "withdrawalIndices",
|
|
4766
|
+
type: "uint256[][]",
|
|
4767
|
+
internalType: "uint256[][]"
|
|
4768
|
+
}
|
|
4769
|
+
],
|
|
4770
|
+
stateMutability: "view"
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
type: "function",
|
|
4774
|
+
name: "getUserSubvaultIndices",
|
|
4775
|
+
inputs: [
|
|
4776
|
+
{ name: "multiVault", type: "address", internalType: "address" },
|
|
4777
|
+
{ name: "user", type: "address", internalType: "address" }
|
|
4778
|
+
],
|
|
4779
|
+
outputs: [
|
|
4780
|
+
{ name: "subvaultIndices", type: "uint256[]", internalType: "uint256[]" },
|
|
4781
|
+
{
|
|
4782
|
+
name: "withdrawalIndices",
|
|
4783
|
+
type: "uint256[][]",
|
|
4784
|
+
internalType: "uint256[][]"
|
|
4785
|
+
}
|
|
4786
|
+
],
|
|
4787
|
+
stateMutability: "view"
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
type: "function",
|
|
4791
|
+
name: "multiAccept",
|
|
4792
|
+
inputs: [
|
|
4793
|
+
{ name: "multiVault", type: "address", internalType: "address" },
|
|
4794
|
+
{ name: "subvaultIndices", type: "uint256[]", internalType: "uint256[]" },
|
|
4795
|
+
{ name: "indices", type: "uint256[][]", internalType: "uint256[][]" }
|
|
4796
|
+
],
|
|
4797
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4798
|
+
stateMutability: "nonpayable"
|
|
4799
|
+
},
|
|
4800
|
+
{
|
|
4801
|
+
type: "function",
|
|
4802
|
+
name: "multiAcceptAndClaim",
|
|
4803
|
+
inputs: [
|
|
4804
|
+
{ name: "multiVault", type: "address", internalType: "address" },
|
|
4805
|
+
{ name: "subvaultIndices", type: "uint256[]", internalType: "uint256[]" },
|
|
4806
|
+
{ name: "indices", type: "uint256[][]", internalType: "uint256[][]" },
|
|
4807
|
+
{ name: "", type: "address", internalType: "address" },
|
|
4808
|
+
{ name: "maxAssets", type: "uint256", internalType: "uint256" }
|
|
4809
|
+
],
|
|
4810
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4811
|
+
stateMutability: "nonpayable"
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
type: "function",
|
|
4815
|
+
name: "serialize",
|
|
4816
|
+
inputs: [],
|
|
4817
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
4818
|
+
stateMutability: "view"
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
type: "function",
|
|
4822
|
+
name: "setMultiVaultStatusBatch",
|
|
4823
|
+
inputs: [
|
|
4824
|
+
{
|
|
4825
|
+
name: "multivaults",
|
|
4826
|
+
type: "tuple[]",
|
|
4827
|
+
internalType: "struct MellowMultiVaultStatus[]",
|
|
4828
|
+
components: [
|
|
4829
|
+
{ name: "multiVault", type: "address", internalType: "address" },
|
|
4830
|
+
{
|
|
4831
|
+
name: "stakedPhantomToken",
|
|
4832
|
+
type: "address",
|
|
4833
|
+
internalType: "address"
|
|
4834
|
+
},
|
|
4835
|
+
{ name: "allowed", type: "bool", internalType: "bool" }
|
|
4836
|
+
]
|
|
4837
|
+
}
|
|
4838
|
+
],
|
|
4839
|
+
outputs: [],
|
|
4840
|
+
stateMutability: "nonpayable"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
type: "function",
|
|
4844
|
+
name: "targetContract",
|
|
4845
|
+
inputs: [],
|
|
4846
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4847
|
+
stateMutability: "view"
|
|
4848
|
+
},
|
|
4849
|
+
{
|
|
4850
|
+
type: "function",
|
|
4851
|
+
name: "version",
|
|
4852
|
+
inputs: [],
|
|
4853
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
4854
|
+
stateMutability: "view"
|
|
4855
|
+
},
|
|
4856
|
+
{
|
|
4857
|
+
type: "function",
|
|
4858
|
+
name: "withdrawPhantomToken",
|
|
4859
|
+
inputs: [
|
|
4860
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
4861
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
4862
|
+
],
|
|
4863
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
4864
|
+
stateMutability: "nonpayable"
|
|
4865
|
+
},
|
|
4866
|
+
{
|
|
4867
|
+
type: "event",
|
|
4868
|
+
name: "SetMultiVaultStatus",
|
|
4869
|
+
inputs: [
|
|
4870
|
+
{
|
|
4871
|
+
name: "multiVault",
|
|
4872
|
+
type: "address",
|
|
4873
|
+
indexed: true,
|
|
4874
|
+
internalType: "address"
|
|
4875
|
+
},
|
|
4876
|
+
{ name: "allowed", type: "bool", indexed: false, internalType: "bool" }
|
|
4877
|
+
],
|
|
4878
|
+
anonymous: false
|
|
4879
|
+
},
|
|
4880
|
+
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
|
|
4881
|
+
{ type: "error", name: "InsufficientClaimedException", inputs: [] },
|
|
4882
|
+
{ type: "error", name: "InvalidMultiVaultException", inputs: [] },
|
|
4883
|
+
{ type: "error", name: "InvalidStakedPhantomTokenException", inputs: [] },
|
|
4884
|
+
{ type: "error", name: "MultiVaultNotAllowedException", inputs: [] }
|
|
4885
|
+
];
|
|
4886
|
+
const mellowDVVAdapterAbi = [
|
|
4887
|
+
{
|
|
4888
|
+
type: "constructor",
|
|
4889
|
+
inputs: [
|
|
4890
|
+
{ name: "_creditManager", type: "address", internalType: "address" },
|
|
4891
|
+
{ name: "_vault", type: "address", internalType: "address" }
|
|
4892
|
+
],
|
|
4893
|
+
stateMutability: "nonpayable"
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
type: "function",
|
|
4897
|
+
name: "acl",
|
|
4898
|
+
inputs: [],
|
|
4899
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4900
|
+
stateMutability: "view"
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
type: "function",
|
|
4904
|
+
name: "asset",
|
|
4905
|
+
inputs: [],
|
|
4906
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4907
|
+
stateMutability: "view"
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
type: "function",
|
|
4911
|
+
name: "contractType",
|
|
4912
|
+
inputs: [],
|
|
4913
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
4914
|
+
stateMutability: "view"
|
|
4915
|
+
},
|
|
4916
|
+
{
|
|
4917
|
+
type: "function",
|
|
4918
|
+
name: "creditManager",
|
|
4919
|
+
inputs: [],
|
|
4920
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4921
|
+
stateMutability: "view"
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
type: "function",
|
|
4925
|
+
name: "deposit",
|
|
4926
|
+
inputs: [
|
|
4927
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
4928
|
+
{ name: "", type: "address", internalType: "address" }
|
|
4929
|
+
],
|
|
4930
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4931
|
+
stateMutability: "nonpayable"
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
type: "function",
|
|
4935
|
+
name: "depositDiff",
|
|
4936
|
+
inputs: [
|
|
4937
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
4938
|
+
],
|
|
4939
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4940
|
+
stateMutability: "nonpayable"
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
type: "function",
|
|
4944
|
+
name: "mint",
|
|
4945
|
+
inputs: [
|
|
4946
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
4947
|
+
{ name: "", type: "address", internalType: "address" }
|
|
4948
|
+
],
|
|
4949
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4950
|
+
stateMutability: "nonpayable"
|
|
4951
|
+
},
|
|
4952
|
+
{
|
|
4953
|
+
type: "function",
|
|
4954
|
+
name: "redeem",
|
|
4955
|
+
inputs: [
|
|
4956
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
4957
|
+
{ name: "", type: "address", internalType: "address" },
|
|
4958
|
+
{ name: "", type: "address", internalType: "address" }
|
|
4959
|
+
],
|
|
4960
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4961
|
+
stateMutability: "nonpayable"
|
|
4962
|
+
},
|
|
4963
|
+
{
|
|
4964
|
+
type: "function",
|
|
4965
|
+
name: "redeemDiff",
|
|
4966
|
+
inputs: [
|
|
4967
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
4968
|
+
],
|
|
4969
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
4970
|
+
stateMutability: "nonpayable"
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
type: "function",
|
|
4974
|
+
name: "serialize",
|
|
4975
|
+
inputs: [],
|
|
4976
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
4977
|
+
stateMutability: "view"
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
type: "function",
|
|
4981
|
+
name: "targetContract",
|
|
4982
|
+
inputs: [],
|
|
4983
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4984
|
+
stateMutability: "view"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
type: "function",
|
|
4988
|
+
name: "vault",
|
|
4989
|
+
inputs: [],
|
|
4990
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
4991
|
+
stateMutability: "view"
|
|
4992
|
+
},
|
|
4993
|
+
{
|
|
4994
|
+
type: "function",
|
|
4995
|
+
name: "version",
|
|
4996
|
+
inputs: [],
|
|
4997
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
4998
|
+
stateMutability: "view"
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
type: "function",
|
|
5002
|
+
name: "withdraw",
|
|
5003
|
+
inputs: [
|
|
5004
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
5005
|
+
{ name: "", type: "address", internalType: "address" },
|
|
5006
|
+
{ name: "", type: "address", internalType: "address" }
|
|
5007
|
+
],
|
|
5008
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5009
|
+
stateMutability: "nonpayable"
|
|
5010
|
+
},
|
|
5011
|
+
{
|
|
5012
|
+
type: "error",
|
|
5013
|
+
name: "AddressIsNotContractException",
|
|
5014
|
+
inputs: [{ name: "", type: "address", internalType: "address" }]
|
|
5015
|
+
},
|
|
5016
|
+
{ type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
|
|
5017
|
+
{ type: "error", name: "NotImplementedException", inputs: [] },
|
|
5018
|
+
{ type: "error", name: "ZeroAddressException", inputs: [] }
|
|
5019
|
+
];
|
|
5020
|
+
const iMellowWrapperAdapterAbi = [
|
|
5021
|
+
{
|
|
5022
|
+
type: "function",
|
|
5023
|
+
name: "allowedVaults",
|
|
5024
|
+
inputs: [],
|
|
5025
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
5026
|
+
stateMutability: "view"
|
|
5027
|
+
},
|
|
5028
|
+
{
|
|
5029
|
+
type: "function",
|
|
5030
|
+
name: "contractType",
|
|
5031
|
+
inputs: [],
|
|
5032
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
5033
|
+
stateMutability: "view"
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
type: "function",
|
|
5037
|
+
name: "creditManager",
|
|
5038
|
+
inputs: [],
|
|
5039
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5040
|
+
stateMutability: "view"
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
type: "function",
|
|
5044
|
+
name: "deposit",
|
|
5045
|
+
inputs: [
|
|
5046
|
+
{ name: "depositToken", type: "address", internalType: "address" },
|
|
5047
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
5048
|
+
{ name: "vault", type: "address", internalType: "address" },
|
|
5049
|
+
{ name: "receiver", type: "address", internalType: "address" },
|
|
5050
|
+
{ name: "referral", type: "address", internalType: "address" }
|
|
5051
|
+
],
|
|
5052
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5053
|
+
stateMutability: "nonpayable"
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
type: "function",
|
|
5057
|
+
name: "depositDiff",
|
|
5058
|
+
inputs: [
|
|
5059
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
5060
|
+
{ name: "vault", type: "address", internalType: "address" }
|
|
5061
|
+
],
|
|
5062
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5063
|
+
stateMutability: "nonpayable"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
type: "function",
|
|
5067
|
+
name: "serialize",
|
|
5068
|
+
inputs: [],
|
|
5069
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
5070
|
+
stateMutability: "view"
|
|
5071
|
+
},
|
|
5072
|
+
{
|
|
5073
|
+
type: "function",
|
|
5074
|
+
name: "setVaultStatusBatch",
|
|
5075
|
+
inputs: [
|
|
5076
|
+
{
|
|
5077
|
+
name: "vaults",
|
|
5078
|
+
type: "tuple[]",
|
|
5079
|
+
internalType: "struct MellowVaultStatus[]",
|
|
5080
|
+
components: [
|
|
5081
|
+
{ name: "vault", type: "address", internalType: "address" },
|
|
5082
|
+
{ name: "allowed", type: "bool", internalType: "bool" }
|
|
5083
|
+
]
|
|
5084
|
+
}
|
|
5085
|
+
],
|
|
5086
|
+
outputs: [],
|
|
5087
|
+
stateMutability: "nonpayable"
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
type: "function",
|
|
5091
|
+
name: "targetContract",
|
|
5092
|
+
inputs: [],
|
|
5093
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5094
|
+
stateMutability: "view"
|
|
5095
|
+
},
|
|
5096
|
+
{
|
|
5097
|
+
type: "function",
|
|
5098
|
+
name: "version",
|
|
5099
|
+
inputs: [],
|
|
5100
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
5101
|
+
stateMutability: "view"
|
|
5102
|
+
},
|
|
5103
|
+
{
|
|
5104
|
+
type: "event",
|
|
5105
|
+
name: "SetVaultStatus",
|
|
5106
|
+
inputs: [
|
|
5107
|
+
{
|
|
5108
|
+
name: "token",
|
|
5109
|
+
type: "address",
|
|
5110
|
+
indexed: true,
|
|
5111
|
+
internalType: "address"
|
|
5112
|
+
},
|
|
5113
|
+
{ name: "newStatus", type: "bool", indexed: false, internalType: "bool" }
|
|
5114
|
+
],
|
|
5115
|
+
anonymous: false
|
|
5116
|
+
},
|
|
5117
|
+
{
|
|
5118
|
+
type: "error",
|
|
5119
|
+
name: "VaultNotAllowedException",
|
|
5120
|
+
inputs: [{ name: "asset", type: "address", internalType: "address" }]
|
|
5121
|
+
}
|
|
5122
|
+
];
|
|
5123
|
+
const iTraderJoeRouterAdapterAbi = [
|
|
5124
|
+
{
|
|
5125
|
+
type: "function",
|
|
5126
|
+
name: "contractType",
|
|
5127
|
+
inputs: [],
|
|
5128
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
5129
|
+
stateMutability: "view"
|
|
5130
|
+
},
|
|
5131
|
+
{
|
|
5132
|
+
type: "function",
|
|
5133
|
+
name: "creditManager",
|
|
5134
|
+
inputs: [],
|
|
5135
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5136
|
+
stateMutability: "view"
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
type: "function",
|
|
5140
|
+
name: "isPoolAllowed",
|
|
5141
|
+
inputs: [
|
|
5142
|
+
{ name: "token0", type: "address", internalType: "address" },
|
|
5143
|
+
{ name: "token1", type: "address", internalType: "address" },
|
|
5144
|
+
{ name: "binStep", type: "uint256", internalType: "uint256" },
|
|
5145
|
+
{ name: "poolVersion", type: "uint8", internalType: "enum Version" }
|
|
5146
|
+
],
|
|
5147
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5148
|
+
stateMutability: "view"
|
|
5149
|
+
},
|
|
5150
|
+
{
|
|
5151
|
+
type: "function",
|
|
5152
|
+
name: "serialize",
|
|
5153
|
+
inputs: [],
|
|
5154
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
5155
|
+
stateMutability: "view"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
type: "function",
|
|
5159
|
+
name: "setPoolStatusBatch",
|
|
5160
|
+
inputs: [
|
|
5161
|
+
{
|
|
5162
|
+
name: "pools",
|
|
5163
|
+
type: "tuple[]",
|
|
5164
|
+
internalType: "struct TraderJoePoolStatus[]",
|
|
5165
|
+
components: [
|
|
5166
|
+
{ name: "token0", type: "address", internalType: "address" },
|
|
5167
|
+
{ name: "token1", type: "address", internalType: "address" },
|
|
5168
|
+
{ name: "binStep", type: "uint256", internalType: "uint256" },
|
|
5169
|
+
{ name: "poolVersion", type: "uint8", internalType: "enum Version" },
|
|
5170
|
+
{ name: "allowed", type: "bool", internalType: "bool" }
|
|
5171
|
+
]
|
|
5172
|
+
}
|
|
5173
|
+
],
|
|
5174
|
+
outputs: [],
|
|
5175
|
+
stateMutability: "nonpayable"
|
|
5176
|
+
},
|
|
5177
|
+
{
|
|
5178
|
+
type: "function",
|
|
5179
|
+
name: "supportedPools",
|
|
5180
|
+
inputs: [],
|
|
5181
|
+
outputs: [
|
|
5182
|
+
{
|
|
5183
|
+
name: "pools",
|
|
5184
|
+
type: "tuple[]",
|
|
5185
|
+
internalType: "struct TraderJoePool[]",
|
|
5186
|
+
components: [
|
|
5187
|
+
{ name: "token0", type: "address", internalType: "address" },
|
|
5188
|
+
{ name: "token1", type: "address", internalType: "address" },
|
|
5189
|
+
{ name: "binStep", type: "uint256", internalType: "uint256" },
|
|
5190
|
+
{ name: "poolVersion", type: "uint8", internalType: "enum Version" }
|
|
5191
|
+
]
|
|
5192
|
+
}
|
|
5193
|
+
],
|
|
5194
|
+
stateMutability: "view"
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
type: "function",
|
|
5198
|
+
name: "swapDiffTokensForTokens",
|
|
5199
|
+
inputs: [
|
|
5200
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
5201
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" },
|
|
5202
|
+
{
|
|
5203
|
+
name: "path",
|
|
5204
|
+
type: "tuple",
|
|
5205
|
+
internalType: "struct Path",
|
|
5206
|
+
components: [
|
|
5207
|
+
{
|
|
5208
|
+
name: "pairBinSteps",
|
|
5209
|
+
type: "uint256[]",
|
|
5210
|
+
internalType: "uint256[]"
|
|
5211
|
+
},
|
|
5212
|
+
{ name: "versions", type: "uint8[]", internalType: "enum Version[]" },
|
|
5213
|
+
{
|
|
5214
|
+
name: "tokenPath",
|
|
5215
|
+
type: "address[]",
|
|
5216
|
+
internalType: "contract IERC20[]"
|
|
5217
|
+
}
|
|
5218
|
+
]
|
|
5219
|
+
},
|
|
5220
|
+
{ name: "deadline", type: "uint256", internalType: "uint256" }
|
|
5221
|
+
],
|
|
5222
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5223
|
+
stateMutability: "nonpayable"
|
|
5224
|
+
},
|
|
5225
|
+
{
|
|
5226
|
+
type: "function",
|
|
5227
|
+
name: "swapDiffTokensForTokensSupportingFeeOnTransferTokens",
|
|
5228
|
+
inputs: [
|
|
5229
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
5230
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" },
|
|
5231
|
+
{
|
|
5232
|
+
name: "path",
|
|
5233
|
+
type: "tuple",
|
|
5234
|
+
internalType: "struct Path",
|
|
5235
|
+
components: [
|
|
5236
|
+
{
|
|
5237
|
+
name: "pairBinSteps",
|
|
5238
|
+
type: "uint256[]",
|
|
5239
|
+
internalType: "uint256[]"
|
|
5240
|
+
},
|
|
5241
|
+
{ name: "versions", type: "uint8[]", internalType: "enum Version[]" },
|
|
5242
|
+
{
|
|
5243
|
+
name: "tokenPath",
|
|
5244
|
+
type: "address[]",
|
|
5245
|
+
internalType: "contract IERC20[]"
|
|
5246
|
+
}
|
|
5247
|
+
]
|
|
5248
|
+
},
|
|
5249
|
+
{ name: "deadline", type: "uint256", internalType: "uint256" }
|
|
5250
|
+
],
|
|
5251
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5252
|
+
stateMutability: "nonpayable"
|
|
5253
|
+
},
|
|
5254
|
+
{
|
|
5255
|
+
type: "function",
|
|
5256
|
+
name: "swapExactTokensForTokens",
|
|
5257
|
+
inputs: [
|
|
5258
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
5259
|
+
{ name: "amountOutMin", type: "uint256", internalType: "uint256" },
|
|
5260
|
+
{
|
|
5261
|
+
name: "path",
|
|
5262
|
+
type: "tuple",
|
|
5263
|
+
internalType: "struct Path",
|
|
5264
|
+
components: [
|
|
5265
|
+
{
|
|
5266
|
+
name: "pairBinSteps",
|
|
5267
|
+
type: "uint256[]",
|
|
5268
|
+
internalType: "uint256[]"
|
|
5269
|
+
},
|
|
5270
|
+
{ name: "versions", type: "uint8[]", internalType: "enum Version[]" },
|
|
5271
|
+
{
|
|
5272
|
+
name: "tokenPath",
|
|
5273
|
+
type: "address[]",
|
|
5274
|
+
internalType: "contract IERC20[]"
|
|
5275
|
+
}
|
|
5276
|
+
]
|
|
5277
|
+
},
|
|
5278
|
+
{ name: "_to", type: "address", internalType: "address" },
|
|
5279
|
+
{ name: "deadline", type: "uint256", internalType: "uint256" }
|
|
5280
|
+
],
|
|
5281
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5282
|
+
stateMutability: "nonpayable"
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5285
|
+
type: "function",
|
|
5286
|
+
name: "swapExactTokensForTokensSupportingFeeOnTransferTokens",
|
|
5287
|
+
inputs: [
|
|
5288
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
5289
|
+
{ name: "amountOutMin", type: "uint256", internalType: "uint256" },
|
|
5290
|
+
{
|
|
5291
|
+
name: "path",
|
|
5292
|
+
type: "tuple",
|
|
5293
|
+
internalType: "struct Path",
|
|
5294
|
+
components: [
|
|
5295
|
+
{
|
|
5296
|
+
name: "pairBinSteps",
|
|
5297
|
+
type: "uint256[]",
|
|
5298
|
+
internalType: "uint256[]"
|
|
5299
|
+
},
|
|
5300
|
+
{ name: "versions", type: "uint8[]", internalType: "enum Version[]" },
|
|
5301
|
+
{
|
|
5302
|
+
name: "tokenPath",
|
|
5303
|
+
type: "address[]",
|
|
5304
|
+
internalType: "contract IERC20[]"
|
|
5305
|
+
}
|
|
5306
|
+
]
|
|
5307
|
+
},
|
|
5308
|
+
{ name: "_to", type: "address", internalType: "address" },
|
|
5309
|
+
{ name: "deadline", type: "uint256", internalType: "uint256" }
|
|
5310
|
+
],
|
|
5311
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5312
|
+
stateMutability: "nonpayable"
|
|
5313
|
+
},
|
|
5314
|
+
{
|
|
5315
|
+
type: "function",
|
|
5316
|
+
name: "targetContract",
|
|
5317
|
+
inputs: [],
|
|
5318
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5319
|
+
stateMutability: "view"
|
|
5320
|
+
},
|
|
5321
|
+
{
|
|
5322
|
+
type: "function",
|
|
5323
|
+
name: "version",
|
|
5324
|
+
inputs: [],
|
|
5325
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
5326
|
+
stateMutability: "view"
|
|
5327
|
+
},
|
|
5328
|
+
{
|
|
5329
|
+
type: "event",
|
|
5330
|
+
name: "SetPoolStatus",
|
|
5331
|
+
inputs: [
|
|
5332
|
+
{
|
|
5333
|
+
name: "token0",
|
|
5334
|
+
type: "address",
|
|
5335
|
+
indexed: true,
|
|
5336
|
+
internalType: "address"
|
|
5337
|
+
},
|
|
5338
|
+
{
|
|
5339
|
+
name: "token1",
|
|
5340
|
+
type: "address",
|
|
5341
|
+
indexed: true,
|
|
5342
|
+
internalType: "address"
|
|
5343
|
+
},
|
|
5344
|
+
{
|
|
5345
|
+
name: "binStep",
|
|
5346
|
+
type: "uint256",
|
|
5347
|
+
indexed: false,
|
|
5348
|
+
internalType: "uint256"
|
|
5349
|
+
},
|
|
5350
|
+
{
|
|
5351
|
+
name: "poolVersion",
|
|
5352
|
+
type: "uint8",
|
|
5353
|
+
indexed: false,
|
|
5354
|
+
internalType: "enum Version"
|
|
5355
|
+
},
|
|
5356
|
+
{ name: "allowed", type: "bool", indexed: false, internalType: "bool" }
|
|
5357
|
+
],
|
|
5358
|
+
anonymous: false
|
|
5359
|
+
},
|
|
5360
|
+
{ type: "error", name: "InvalidPathException", inputs: [] }
|
|
5361
|
+
];
|
|
5362
|
+
const iUpshiftVaultAdapterAbi = [
|
|
5363
|
+
{
|
|
5364
|
+
type: "function",
|
|
5365
|
+
name: "asset",
|
|
5366
|
+
inputs: [],
|
|
5367
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5368
|
+
stateMutability: "view"
|
|
5369
|
+
},
|
|
5370
|
+
{
|
|
5371
|
+
type: "function",
|
|
5372
|
+
name: "claim",
|
|
5373
|
+
inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
|
|
5374
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5375
|
+
stateMutability: "nonpayable"
|
|
5376
|
+
},
|
|
5377
|
+
{
|
|
5378
|
+
type: "function",
|
|
5379
|
+
name: "contractType",
|
|
5380
|
+
inputs: [],
|
|
5381
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
5382
|
+
stateMutability: "view"
|
|
5383
|
+
},
|
|
5384
|
+
{
|
|
5385
|
+
type: "function",
|
|
5386
|
+
name: "creditManager",
|
|
5387
|
+
inputs: [],
|
|
5388
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5389
|
+
stateMutability: "view"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
type: "function",
|
|
5393
|
+
name: "deposit",
|
|
5394
|
+
inputs: [
|
|
5395
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
5396
|
+
{ name: "", type: "address", internalType: "address" }
|
|
5397
|
+
],
|
|
5398
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5399
|
+
stateMutability: "nonpayable"
|
|
5400
|
+
},
|
|
5401
|
+
{
|
|
5402
|
+
type: "function",
|
|
5403
|
+
name: "depositDiff",
|
|
5404
|
+
inputs: [
|
|
5405
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
5406
|
+
],
|
|
5407
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5408
|
+
stateMutability: "nonpayable"
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
type: "function",
|
|
5412
|
+
name: "depositPhantomToken",
|
|
5413
|
+
inputs: [
|
|
5414
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
5415
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
5416
|
+
],
|
|
5417
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5418
|
+
stateMutability: "nonpayable"
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
type: "function",
|
|
5422
|
+
name: "mint",
|
|
5423
|
+
inputs: [
|
|
5424
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
5425
|
+
{ name: "", type: "address", internalType: "address" }
|
|
5426
|
+
],
|
|
5427
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5428
|
+
stateMutability: "nonpayable"
|
|
5429
|
+
},
|
|
5430
|
+
{
|
|
5431
|
+
type: "function",
|
|
5432
|
+
name: "redeem",
|
|
5433
|
+
inputs: [
|
|
5434
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
5435
|
+
{ name: "", type: "address", internalType: "address" },
|
|
5436
|
+
{ name: "", type: "address", internalType: "address" }
|
|
5437
|
+
],
|
|
5438
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5439
|
+
stateMutability: "nonpayable"
|
|
5440
|
+
},
|
|
5441
|
+
{
|
|
5442
|
+
type: "function",
|
|
5443
|
+
name: "redeemDiff",
|
|
5444
|
+
inputs: [
|
|
5445
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
5446
|
+
],
|
|
5447
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5448
|
+
stateMutability: "nonpayable"
|
|
5449
|
+
},
|
|
5450
|
+
{
|
|
5451
|
+
type: "function",
|
|
5452
|
+
name: "requestRedeem",
|
|
5453
|
+
inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
|
|
5454
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
5455
|
+
stateMutability: "nonpayable"
|
|
5456
|
+
},
|
|
5457
|
+
{
|
|
5458
|
+
type: "function",
|
|
5459
|
+
name: "serialize",
|
|
5460
|
+
inputs: [],
|
|
5461
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
5462
|
+
stateMutability: "view"
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
type: "function",
|
|
5466
|
+
name: "stakedPhantomToken",
|
|
5467
|
+
inputs: [],
|
|
5468
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5469
|
+
stateMutability: "view"
|
|
5470
|
+
},
|
|
5471
|
+
{
|
|
5472
|
+
type: "function",
|
|
5473
|
+
name: "targetContract",
|
|
5474
|
+
inputs: [],
|
|
5475
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5476
|
+
stateMutability: "view"
|
|
5477
|
+
},
|
|
5478
|
+
{
|
|
5479
|
+
type: "function",
|
|
5480
|
+
name: "vault",
|
|
5481
|
+
inputs: [],
|
|
5482
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
5483
|
+
stateMutability: "view"
|
|
5484
|
+
},
|
|
5485
|
+
{
|
|
5486
|
+
type: "function",
|
|
5487
|
+
name: "version",
|
|
5488
|
+
inputs: [],
|
|
5489
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
5490
|
+
stateMutability: "view"
|
|
5491
|
+
},
|
|
5492
|
+
{
|
|
5493
|
+
type: "function",
|
|
5494
|
+
name: "withdraw",
|
|
5495
|
+
inputs: [
|
|
5496
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
5497
|
+
{ name: "", type: "address", internalType: "address" },
|
|
5498
|
+
{ name: "", type: "address", internalType: "address" }
|
|
5499
|
+
],
|
|
5500
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5501
|
+
stateMutability: "nonpayable"
|
|
5502
|
+
},
|
|
5503
|
+
{
|
|
5504
|
+
type: "function",
|
|
5505
|
+
name: "withdrawPhantomToken",
|
|
5506
|
+
inputs: [
|
|
5507
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
5508
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
5509
|
+
],
|
|
5510
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
5511
|
+
stateMutability: "nonpayable"
|
|
5512
|
+
},
|
|
5513
|
+
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] }
|
|
5514
|
+
];
|
|
4316
5515
|
export {
|
|
4317
5516
|
iBalancerV2VaultAdapterAbi,
|
|
4318
5517
|
iBalancerV3RouterAdapterAbi,
|
|
@@ -4328,18 +5527,26 @@ export {
|
|
|
4328
5527
|
iCurveV1_4AssetsAdapterAbi,
|
|
4329
5528
|
iDaiUsdsAdapterAbi,
|
|
4330
5529
|
iEqualizerRouterAdapterAbi,
|
|
5530
|
+
iFluidDexAdapterAbi,
|
|
5531
|
+
iInfraredVaultAdapterAbi,
|
|
5532
|
+
iKodiakIslandGatewayAdapterAbi,
|
|
4331
5533
|
iLidoV1AdapterAbi,
|
|
5534
|
+
iMellowClaimerAdapterAbi,
|
|
4332
5535
|
iMellowVaultAdapterAbi,
|
|
4333
5536
|
iMellowVaultAdapterEventsAbi,
|
|
4334
5537
|
iMellowVaultAdapterExceptionsAbi,
|
|
5538
|
+
iMellowWrapperAdapterAbi,
|
|
4335
5539
|
iPendleRouterAdapterAbi,
|
|
4336
5540
|
iPendleRouterAdapterEventsAbi,
|
|
4337
5541
|
iPendleRouterAdapterExceptionsAbi,
|
|
4338
5542
|
iStakingRewardsAdapterAbi,
|
|
5543
|
+
iTraderJoeRouterAdapterAbi,
|
|
4339
5544
|
iUniswapV2AdapterAbi,
|
|
4340
5545
|
iUniswapV3AdapterAbi,
|
|
5546
|
+
iUpshiftVaultAdapterAbi,
|
|
4341
5547
|
iVelodromeV2RouterAdapterAbi,
|
|
4342
5548
|
iYearnV2AdapterAbi,
|
|
4343
5549
|
ierc4626AdapterAbi,
|
|
4344
|
-
iwstEthv1AdapterAbi
|
|
5550
|
+
iwstEthv1AdapterAbi,
|
|
5551
|
+
mellowDVVAdapterAbi
|
|
4345
5552
|
};
|