@gearbox-protocol/sdk 3.0.0-vfour.263 → 3.0.0-vfour.264
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/sdk/index.cjs +353 -339
- package/dist/cjs/sdk/index.d.ts +784 -446
- package/dist/esm/sdk/index.d.mts +784 -446
- package/dist/esm/sdk/index.mjs +353 -340
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -9433,328 +9433,6 @@ var batchesChainAbi = [
|
|
|
9433
9433
|
stateMutability: "view"
|
|
9434
9434
|
}
|
|
9435
9435
|
];
|
|
9436
|
-
var botListV3Abi = [
|
|
9437
|
-
{
|
|
9438
|
-
type: "constructor",
|
|
9439
|
-
inputs: [
|
|
9440
|
-
{ name: "addressProvider", internalType: "address", type: "address" }
|
|
9441
|
-
],
|
|
9442
|
-
stateMutability: "nonpayable"
|
|
9443
|
-
},
|
|
9444
|
-
{
|
|
9445
|
-
type: "function",
|
|
9446
|
-
inputs: [],
|
|
9447
|
-
name: "acl",
|
|
9448
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
9449
|
-
stateMutability: "view"
|
|
9450
|
-
},
|
|
9451
|
-
{
|
|
9452
|
-
type: "function",
|
|
9453
|
-
inputs: [
|
|
9454
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9455
|
-
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
9456
|
-
],
|
|
9457
|
-
name: "activeBots",
|
|
9458
|
-
outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
|
|
9459
|
-
stateMutability: "view"
|
|
9460
|
-
},
|
|
9461
|
-
{
|
|
9462
|
-
type: "function",
|
|
9463
|
-
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
9464
|
-
name: "approvedCreditManager",
|
|
9465
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
9466
|
-
stateMutability: "view"
|
|
9467
|
-
},
|
|
9468
|
-
{
|
|
9469
|
-
type: "function",
|
|
9470
|
-
inputs: [{ name: "bot", internalType: "address", type: "address" }],
|
|
9471
|
-
name: "botForbiddenStatus",
|
|
9472
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
9473
|
-
stateMutability: "view"
|
|
9474
|
-
},
|
|
9475
|
-
{
|
|
9476
|
-
type: "function",
|
|
9477
|
-
inputs: [
|
|
9478
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9479
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9480
|
-
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
9481
|
-
],
|
|
9482
|
-
name: "botPermissions",
|
|
9483
|
-
outputs: [{ name: "", internalType: "uint192", type: "uint192" }],
|
|
9484
|
-
stateMutability: "view"
|
|
9485
|
-
},
|
|
9486
|
-
{
|
|
9487
|
-
type: "function",
|
|
9488
|
-
inputs: [
|
|
9489
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9490
|
-
{ name: "creditManager", internalType: "address", type: "address" }
|
|
9491
|
-
],
|
|
9492
|
-
name: "botSpecialPermissions",
|
|
9493
|
-
outputs: [{ name: "", internalType: "uint192", type: "uint192" }],
|
|
9494
|
-
stateMutability: "view"
|
|
9495
|
-
},
|
|
9496
|
-
{
|
|
9497
|
-
type: "function",
|
|
9498
|
-
inputs: [],
|
|
9499
|
-
name: "contractsRegister",
|
|
9500
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
9501
|
-
stateMutability: "view"
|
|
9502
|
-
},
|
|
9503
|
-
{
|
|
9504
|
-
type: "function",
|
|
9505
|
-
inputs: [],
|
|
9506
|
-
name: "controller",
|
|
9507
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
9508
|
-
stateMutability: "view"
|
|
9509
|
-
},
|
|
9510
|
-
{
|
|
9511
|
-
type: "function",
|
|
9512
|
-
inputs: [
|
|
9513
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9514
|
-
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
9515
|
-
],
|
|
9516
|
-
name: "eraseAllBotPermissions",
|
|
9517
|
-
outputs: [],
|
|
9518
|
-
stateMutability: "nonpayable"
|
|
9519
|
-
},
|
|
9520
|
-
{
|
|
9521
|
-
type: "function",
|
|
9522
|
-
inputs: [
|
|
9523
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9524
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9525
|
-
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
9526
|
-
],
|
|
9527
|
-
name: "getBotStatus",
|
|
9528
|
-
outputs: [
|
|
9529
|
-
{ name: "permissions", internalType: "uint192", type: "uint192" },
|
|
9530
|
-
{ name: "forbidden", internalType: "bool", type: "bool" },
|
|
9531
|
-
{ name: "hasSpecialPermissions", internalType: "bool", type: "bool" }
|
|
9532
|
-
],
|
|
9533
|
-
stateMutability: "view"
|
|
9534
|
-
},
|
|
9535
|
-
{
|
|
9536
|
-
type: "function",
|
|
9537
|
-
inputs: [],
|
|
9538
|
-
name: "pause",
|
|
9539
|
-
outputs: [],
|
|
9540
|
-
stateMutability: "nonpayable"
|
|
9541
|
-
},
|
|
9542
|
-
{
|
|
9543
|
-
type: "function",
|
|
9544
|
-
inputs: [],
|
|
9545
|
-
name: "paused",
|
|
9546
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
9547
|
-
stateMutability: "view"
|
|
9548
|
-
},
|
|
9549
|
-
{
|
|
9550
|
-
type: "function",
|
|
9551
|
-
inputs: [
|
|
9552
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9553
|
-
{ name: "forbidden", internalType: "bool", type: "bool" }
|
|
9554
|
-
],
|
|
9555
|
-
name: "setBotForbiddenStatus",
|
|
9556
|
-
outputs: [],
|
|
9557
|
-
stateMutability: "nonpayable"
|
|
9558
|
-
},
|
|
9559
|
-
{
|
|
9560
|
-
type: "function",
|
|
9561
|
-
inputs: [
|
|
9562
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9563
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9564
|
-
{ name: "creditAccount", internalType: "address", type: "address" },
|
|
9565
|
-
{ name: "permissions", internalType: "uint192", type: "uint192" }
|
|
9566
|
-
],
|
|
9567
|
-
name: "setBotPermissions",
|
|
9568
|
-
outputs: [
|
|
9569
|
-
{ name: "activeBotsRemaining", internalType: "uint256", type: "uint256" }
|
|
9570
|
-
],
|
|
9571
|
-
stateMutability: "nonpayable"
|
|
9572
|
-
},
|
|
9573
|
-
{
|
|
9574
|
-
type: "function",
|
|
9575
|
-
inputs: [
|
|
9576
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
9577
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9578
|
-
{ name: "permissions", internalType: "uint192", type: "uint192" }
|
|
9579
|
-
],
|
|
9580
|
-
name: "setBotSpecialPermissions",
|
|
9581
|
-
outputs: [],
|
|
9582
|
-
stateMutability: "nonpayable"
|
|
9583
|
-
},
|
|
9584
|
-
{
|
|
9585
|
-
type: "function",
|
|
9586
|
-
inputs: [
|
|
9587
|
-
{ name: "newController", internalType: "address", type: "address" }
|
|
9588
|
-
],
|
|
9589
|
-
name: "setController",
|
|
9590
|
-
outputs: [],
|
|
9591
|
-
stateMutability: "nonpayable"
|
|
9592
|
-
},
|
|
9593
|
-
{
|
|
9594
|
-
type: "function",
|
|
9595
|
-
inputs: [
|
|
9596
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
9597
|
-
{ name: "approved", internalType: "bool", type: "bool" }
|
|
9598
|
-
],
|
|
9599
|
-
name: "setCreditManagerApprovedStatus",
|
|
9600
|
-
outputs: [],
|
|
9601
|
-
stateMutability: "nonpayable"
|
|
9602
|
-
},
|
|
9603
|
-
{
|
|
9604
|
-
type: "function",
|
|
9605
|
-
inputs: [],
|
|
9606
|
-
name: "unpause",
|
|
9607
|
-
outputs: [],
|
|
9608
|
-
stateMutability: "nonpayable"
|
|
9609
|
-
},
|
|
9610
|
-
{
|
|
9611
|
-
type: "function",
|
|
9612
|
-
inputs: [],
|
|
9613
|
-
name: "version",
|
|
9614
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
9615
|
-
stateMutability: "view"
|
|
9616
|
-
},
|
|
9617
|
-
{
|
|
9618
|
-
type: "event",
|
|
9619
|
-
anonymous: false,
|
|
9620
|
-
inputs: [
|
|
9621
|
-
{ name: "bot", internalType: "address", type: "address", indexed: true },
|
|
9622
|
-
{
|
|
9623
|
-
name: "creditManager",
|
|
9624
|
-
internalType: "address",
|
|
9625
|
-
type: "address",
|
|
9626
|
-
indexed: true
|
|
9627
|
-
},
|
|
9628
|
-
{
|
|
9629
|
-
name: "creditAccount",
|
|
9630
|
-
internalType: "address",
|
|
9631
|
-
type: "address",
|
|
9632
|
-
indexed: true
|
|
9633
|
-
}
|
|
9634
|
-
],
|
|
9635
|
-
name: "EraseBot"
|
|
9636
|
-
},
|
|
9637
|
-
{
|
|
9638
|
-
type: "event",
|
|
9639
|
-
anonymous: false,
|
|
9640
|
-
inputs: [
|
|
9641
|
-
{
|
|
9642
|
-
name: "newController",
|
|
9643
|
-
internalType: "address",
|
|
9644
|
-
type: "address",
|
|
9645
|
-
indexed: true
|
|
9646
|
-
}
|
|
9647
|
-
],
|
|
9648
|
-
name: "NewController"
|
|
9649
|
-
},
|
|
9650
|
-
{
|
|
9651
|
-
type: "event",
|
|
9652
|
-
anonymous: false,
|
|
9653
|
-
inputs: [
|
|
9654
|
-
{
|
|
9655
|
-
name: "account",
|
|
9656
|
-
internalType: "address",
|
|
9657
|
-
type: "address",
|
|
9658
|
-
indexed: false
|
|
9659
|
-
}
|
|
9660
|
-
],
|
|
9661
|
-
name: "Paused"
|
|
9662
|
-
},
|
|
9663
|
-
{
|
|
9664
|
-
type: "event",
|
|
9665
|
-
anonymous: false,
|
|
9666
|
-
inputs: [
|
|
9667
|
-
{ name: "bot", internalType: "address", type: "address", indexed: true },
|
|
9668
|
-
{ name: "forbidden", internalType: "bool", type: "bool", indexed: false }
|
|
9669
|
-
],
|
|
9670
|
-
name: "SetBotForbiddenStatus"
|
|
9671
|
-
},
|
|
9672
|
-
{
|
|
9673
|
-
type: "event",
|
|
9674
|
-
anonymous: false,
|
|
9675
|
-
inputs: [
|
|
9676
|
-
{ name: "bot", internalType: "address", type: "address", indexed: true },
|
|
9677
|
-
{
|
|
9678
|
-
name: "creditManager",
|
|
9679
|
-
internalType: "address",
|
|
9680
|
-
type: "address",
|
|
9681
|
-
indexed: true
|
|
9682
|
-
},
|
|
9683
|
-
{
|
|
9684
|
-
name: "creditAccount",
|
|
9685
|
-
internalType: "address",
|
|
9686
|
-
type: "address",
|
|
9687
|
-
indexed: true
|
|
9688
|
-
},
|
|
9689
|
-
{
|
|
9690
|
-
name: "permissions",
|
|
9691
|
-
internalType: "uint192",
|
|
9692
|
-
type: "uint192",
|
|
9693
|
-
indexed: false
|
|
9694
|
-
}
|
|
9695
|
-
],
|
|
9696
|
-
name: "SetBotPermissions"
|
|
9697
|
-
},
|
|
9698
|
-
{
|
|
9699
|
-
type: "event",
|
|
9700
|
-
anonymous: false,
|
|
9701
|
-
inputs: [
|
|
9702
|
-
{ name: "bot", internalType: "address", type: "address", indexed: true },
|
|
9703
|
-
{
|
|
9704
|
-
name: "creditManager",
|
|
9705
|
-
internalType: "address",
|
|
9706
|
-
type: "address",
|
|
9707
|
-
indexed: true
|
|
9708
|
-
},
|
|
9709
|
-
{
|
|
9710
|
-
name: "permissions",
|
|
9711
|
-
internalType: "uint192",
|
|
9712
|
-
type: "uint192",
|
|
9713
|
-
indexed: false
|
|
9714
|
-
}
|
|
9715
|
-
],
|
|
9716
|
-
name: "SetBotSpecialPermissions"
|
|
9717
|
-
},
|
|
9718
|
-
{
|
|
9719
|
-
type: "event",
|
|
9720
|
-
anonymous: false,
|
|
9721
|
-
inputs: [
|
|
9722
|
-
{
|
|
9723
|
-
name: "creditManager",
|
|
9724
|
-
internalType: "address",
|
|
9725
|
-
type: "address",
|
|
9726
|
-
indexed: true
|
|
9727
|
-
},
|
|
9728
|
-
{ name: "approved", internalType: "bool", type: "bool", indexed: false }
|
|
9729
|
-
],
|
|
9730
|
-
name: "SetCreditManagerApprovedStatus"
|
|
9731
|
-
},
|
|
9732
|
-
{
|
|
9733
|
-
type: "event",
|
|
9734
|
-
anonymous: false,
|
|
9735
|
-
inputs: [
|
|
9736
|
-
{
|
|
9737
|
-
name: "account",
|
|
9738
|
-
internalType: "address",
|
|
9739
|
-
type: "address",
|
|
9740
|
-
indexed: false
|
|
9741
|
-
}
|
|
9742
|
-
],
|
|
9743
|
-
name: "Unpaused"
|
|
9744
|
-
},
|
|
9745
|
-
{
|
|
9746
|
-
type: "error",
|
|
9747
|
-
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
9748
|
-
name: "AddressIsNotContractException"
|
|
9749
|
-
},
|
|
9750
|
-
{ type: "error", inputs: [], name: "CallerNotConfiguratorException" },
|
|
9751
|
-
{ type: "error", inputs: [], name: "CallerNotCreditFacadeException" },
|
|
9752
|
-
{ type: "error", inputs: [], name: "CallerNotPausableAdminException" },
|
|
9753
|
-
{ type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
|
|
9754
|
-
{ type: "error", inputs: [], name: "InvalidBotException" },
|
|
9755
|
-
{ type: "error", inputs: [], name: "RegisteredCreditManagerOnlyException" },
|
|
9756
|
-
{ type: "error", inputs: [], name: "ZeroAddressException" }
|
|
9757
|
-
];
|
|
9758
9436
|
var camelotV3AdapterAbi = [
|
|
9759
9437
|
{
|
|
9760
9438
|
type: "constructor",
|
|
@@ -48070,6 +47748,221 @@ var iAddressProviderV300Abi = [
|
|
|
48070
47748
|
anonymous: false
|
|
48071
47749
|
}
|
|
48072
47750
|
];
|
|
47751
|
+
var iBotListV300Abi = [
|
|
47752
|
+
{
|
|
47753
|
+
type: "function",
|
|
47754
|
+
name: "activeBots",
|
|
47755
|
+
inputs: [
|
|
47756
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47757
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
47758
|
+
],
|
|
47759
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
47760
|
+
stateMutability: "view"
|
|
47761
|
+
},
|
|
47762
|
+
{
|
|
47763
|
+
type: "function",
|
|
47764
|
+
name: "approvedCreditManager",
|
|
47765
|
+
inputs: [
|
|
47766
|
+
{ name: "creditManager", type: "address", internalType: "address" }
|
|
47767
|
+
],
|
|
47768
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
47769
|
+
stateMutability: "view"
|
|
47770
|
+
},
|
|
47771
|
+
{
|
|
47772
|
+
type: "function",
|
|
47773
|
+
name: "botForbiddenStatus",
|
|
47774
|
+
inputs: [{ name: "bot", type: "address", internalType: "address" }],
|
|
47775
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
47776
|
+
stateMutability: "view"
|
|
47777
|
+
},
|
|
47778
|
+
{
|
|
47779
|
+
type: "function",
|
|
47780
|
+
name: "botPermissions",
|
|
47781
|
+
inputs: [
|
|
47782
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47783
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47784
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
47785
|
+
],
|
|
47786
|
+
outputs: [{ name: "", type: "uint192", internalType: "uint192" }],
|
|
47787
|
+
stateMutability: "view"
|
|
47788
|
+
},
|
|
47789
|
+
{
|
|
47790
|
+
type: "function",
|
|
47791
|
+
name: "botSpecialPermissions",
|
|
47792
|
+
inputs: [
|
|
47793
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47794
|
+
{ name: "creditManager", type: "address", internalType: "address" }
|
|
47795
|
+
],
|
|
47796
|
+
outputs: [{ name: "", type: "uint192", internalType: "uint192" }],
|
|
47797
|
+
stateMutability: "view"
|
|
47798
|
+
},
|
|
47799
|
+
{
|
|
47800
|
+
type: "function",
|
|
47801
|
+
name: "eraseAllBotPermissions",
|
|
47802
|
+
inputs: [
|
|
47803
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47804
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
47805
|
+
],
|
|
47806
|
+
outputs: [],
|
|
47807
|
+
stateMutability: "nonpayable"
|
|
47808
|
+
},
|
|
47809
|
+
{
|
|
47810
|
+
type: "function",
|
|
47811
|
+
name: "getBotStatus",
|
|
47812
|
+
inputs: [
|
|
47813
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47814
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47815
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
47816
|
+
],
|
|
47817
|
+
outputs: [
|
|
47818
|
+
{ name: "permissions", type: "uint192", internalType: "uint192" },
|
|
47819
|
+
{ name: "forbidden", type: "bool", internalType: "bool" },
|
|
47820
|
+
{ name: "hasSpecialPermissions", type: "bool", internalType: "bool" }
|
|
47821
|
+
],
|
|
47822
|
+
stateMutability: "view"
|
|
47823
|
+
},
|
|
47824
|
+
{
|
|
47825
|
+
type: "function",
|
|
47826
|
+
name: "setBotForbiddenStatus",
|
|
47827
|
+
inputs: [
|
|
47828
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47829
|
+
{ name: "forbidden", type: "bool", internalType: "bool" }
|
|
47830
|
+
],
|
|
47831
|
+
outputs: [],
|
|
47832
|
+
stateMutability: "nonpayable"
|
|
47833
|
+
},
|
|
47834
|
+
{
|
|
47835
|
+
type: "function",
|
|
47836
|
+
name: "setBotPermissions",
|
|
47837
|
+
inputs: [
|
|
47838
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47839
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47840
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
47841
|
+
{ name: "permissions", type: "uint192", internalType: "uint192" }
|
|
47842
|
+
],
|
|
47843
|
+
outputs: [
|
|
47844
|
+
{ name: "activeBotsRemaining", type: "uint256", internalType: "uint256" }
|
|
47845
|
+
],
|
|
47846
|
+
stateMutability: "nonpayable"
|
|
47847
|
+
},
|
|
47848
|
+
{
|
|
47849
|
+
type: "function",
|
|
47850
|
+
name: "setBotSpecialPermissions",
|
|
47851
|
+
inputs: [
|
|
47852
|
+
{ name: "bot", type: "address", internalType: "address" },
|
|
47853
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47854
|
+
{ name: "permissions", type: "uint192", internalType: "uint192" }
|
|
47855
|
+
],
|
|
47856
|
+
outputs: [],
|
|
47857
|
+
stateMutability: "nonpayable"
|
|
47858
|
+
},
|
|
47859
|
+
{
|
|
47860
|
+
type: "function",
|
|
47861
|
+
name: "setCreditManagerApprovedStatus",
|
|
47862
|
+
inputs: [
|
|
47863
|
+
{ name: "creditManager", type: "address", internalType: "address" },
|
|
47864
|
+
{ name: "approved", type: "bool", internalType: "bool" }
|
|
47865
|
+
],
|
|
47866
|
+
outputs: [],
|
|
47867
|
+
stateMutability: "nonpayable"
|
|
47868
|
+
},
|
|
47869
|
+
{
|
|
47870
|
+
type: "function",
|
|
47871
|
+
name: "version",
|
|
47872
|
+
inputs: [],
|
|
47873
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
47874
|
+
stateMutability: "view"
|
|
47875
|
+
},
|
|
47876
|
+
{
|
|
47877
|
+
type: "event",
|
|
47878
|
+
name: "EraseBot",
|
|
47879
|
+
inputs: [
|
|
47880
|
+
{ name: "bot", type: "address", indexed: true, internalType: "address" },
|
|
47881
|
+
{
|
|
47882
|
+
name: "creditManager",
|
|
47883
|
+
type: "address",
|
|
47884
|
+
indexed: true,
|
|
47885
|
+
internalType: "address"
|
|
47886
|
+
},
|
|
47887
|
+
{
|
|
47888
|
+
name: "creditAccount",
|
|
47889
|
+
type: "address",
|
|
47890
|
+
indexed: true,
|
|
47891
|
+
internalType: "address"
|
|
47892
|
+
}
|
|
47893
|
+
],
|
|
47894
|
+
anonymous: false
|
|
47895
|
+
},
|
|
47896
|
+
{
|
|
47897
|
+
type: "event",
|
|
47898
|
+
name: "SetBotForbiddenStatus",
|
|
47899
|
+
inputs: [
|
|
47900
|
+
{ name: "bot", type: "address", indexed: true, internalType: "address" },
|
|
47901
|
+
{ name: "forbidden", type: "bool", indexed: false, internalType: "bool" }
|
|
47902
|
+
],
|
|
47903
|
+
anonymous: false
|
|
47904
|
+
},
|
|
47905
|
+
{
|
|
47906
|
+
type: "event",
|
|
47907
|
+
name: "SetBotPermissions",
|
|
47908
|
+
inputs: [
|
|
47909
|
+
{ name: "bot", type: "address", indexed: true, internalType: "address" },
|
|
47910
|
+
{
|
|
47911
|
+
name: "creditManager",
|
|
47912
|
+
type: "address",
|
|
47913
|
+
indexed: true,
|
|
47914
|
+
internalType: "address"
|
|
47915
|
+
},
|
|
47916
|
+
{
|
|
47917
|
+
name: "creditAccount",
|
|
47918
|
+
type: "address",
|
|
47919
|
+
indexed: true,
|
|
47920
|
+
internalType: "address"
|
|
47921
|
+
},
|
|
47922
|
+
{
|
|
47923
|
+
name: "permissions",
|
|
47924
|
+
type: "uint192",
|
|
47925
|
+
indexed: false,
|
|
47926
|
+
internalType: "uint192"
|
|
47927
|
+
}
|
|
47928
|
+
],
|
|
47929
|
+
anonymous: false
|
|
47930
|
+
},
|
|
47931
|
+
{
|
|
47932
|
+
type: "event",
|
|
47933
|
+
name: "SetBotSpecialPermissions",
|
|
47934
|
+
inputs: [
|
|
47935
|
+
{ name: "bot", type: "address", indexed: true, internalType: "address" },
|
|
47936
|
+
{
|
|
47937
|
+
name: "creditManager",
|
|
47938
|
+
type: "address",
|
|
47939
|
+
indexed: true,
|
|
47940
|
+
internalType: "address"
|
|
47941
|
+
},
|
|
47942
|
+
{
|
|
47943
|
+
name: "permissions",
|
|
47944
|
+
type: "uint192",
|
|
47945
|
+
indexed: false,
|
|
47946
|
+
internalType: "uint192"
|
|
47947
|
+
}
|
|
47948
|
+
],
|
|
47949
|
+
anonymous: false
|
|
47950
|
+
},
|
|
47951
|
+
{
|
|
47952
|
+
type: "event",
|
|
47953
|
+
name: "SetCreditManagerApprovedStatus",
|
|
47954
|
+
inputs: [
|
|
47955
|
+
{
|
|
47956
|
+
name: "creditManager",
|
|
47957
|
+
type: "address",
|
|
47958
|
+
indexed: true,
|
|
47959
|
+
internalType: "address"
|
|
47960
|
+
},
|
|
47961
|
+
{ name: "approved", type: "bool", indexed: false, internalType: "bool" }
|
|
47962
|
+
],
|
|
47963
|
+
anonymous: false
|
|
47964
|
+
}
|
|
47965
|
+
];
|
|
48073
47966
|
var iCreditConfiguratorV300Abi = [
|
|
48074
47967
|
{
|
|
48075
47968
|
type: "function",
|
|
@@ -51683,6 +51576,124 @@ var iAddressProviderV310Abi = [
|
|
|
51683
51576
|
name: "ZeroAddressException"
|
|
51684
51577
|
}
|
|
51685
51578
|
];
|
|
51579
|
+
var iBotListV310Abi = [
|
|
51580
|
+
{
|
|
51581
|
+
type: "function",
|
|
51582
|
+
inputs: [
|
|
51583
|
+
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
51584
|
+
],
|
|
51585
|
+
name: "activeBots",
|
|
51586
|
+
outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
|
|
51587
|
+
stateMutability: "view"
|
|
51588
|
+
},
|
|
51589
|
+
{
|
|
51590
|
+
type: "function",
|
|
51591
|
+
inputs: [{ name: "bot", internalType: "address", type: "address" }],
|
|
51592
|
+
name: "botForbiddenStatus",
|
|
51593
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
51594
|
+
stateMutability: "view"
|
|
51595
|
+
},
|
|
51596
|
+
{
|
|
51597
|
+
type: "function",
|
|
51598
|
+
inputs: [
|
|
51599
|
+
{ name: "bot", internalType: "address", type: "address" },
|
|
51600
|
+
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
51601
|
+
],
|
|
51602
|
+
name: "botPermissions",
|
|
51603
|
+
outputs: [{ name: "", internalType: "uint192", type: "uint192" }],
|
|
51604
|
+
stateMutability: "view"
|
|
51605
|
+
},
|
|
51606
|
+
{
|
|
51607
|
+
type: "function",
|
|
51608
|
+
inputs: [],
|
|
51609
|
+
name: "contractType",
|
|
51610
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
51611
|
+
stateMutability: "view"
|
|
51612
|
+
},
|
|
51613
|
+
{
|
|
51614
|
+
type: "function",
|
|
51615
|
+
inputs: [
|
|
51616
|
+
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
51617
|
+
],
|
|
51618
|
+
name: "eraseAllBotPermissions",
|
|
51619
|
+
outputs: [],
|
|
51620
|
+
stateMutability: "nonpayable"
|
|
51621
|
+
},
|
|
51622
|
+
{
|
|
51623
|
+
type: "function",
|
|
51624
|
+
inputs: [{ name: "bot", internalType: "address", type: "address" }],
|
|
51625
|
+
name: "forbidBot",
|
|
51626
|
+
outputs: [],
|
|
51627
|
+
stateMutability: "nonpayable"
|
|
51628
|
+
},
|
|
51629
|
+
{
|
|
51630
|
+
type: "function",
|
|
51631
|
+
inputs: [
|
|
51632
|
+
{ name: "bot", internalType: "address", type: "address" },
|
|
51633
|
+
{ name: "creditAccount", internalType: "address", type: "address" }
|
|
51634
|
+
],
|
|
51635
|
+
name: "getBotStatus",
|
|
51636
|
+
outputs: [
|
|
51637
|
+
{ name: "permissions", internalType: "uint192", type: "uint192" },
|
|
51638
|
+
{ name: "forbidden", internalType: "bool", type: "bool" }
|
|
51639
|
+
],
|
|
51640
|
+
stateMutability: "view"
|
|
51641
|
+
},
|
|
51642
|
+
{
|
|
51643
|
+
type: "function",
|
|
51644
|
+
inputs: [
|
|
51645
|
+
{ name: "bot", internalType: "address", type: "address" },
|
|
51646
|
+
{ name: "creditAccount", internalType: "address", type: "address" },
|
|
51647
|
+
{ name: "permissions", internalType: "uint192", type: "uint192" }
|
|
51648
|
+
],
|
|
51649
|
+
name: "setBotPermissions",
|
|
51650
|
+
outputs: [
|
|
51651
|
+
{ name: "activeBotsRemaining", internalType: "uint256", type: "uint256" }
|
|
51652
|
+
],
|
|
51653
|
+
stateMutability: "nonpayable"
|
|
51654
|
+
},
|
|
51655
|
+
{
|
|
51656
|
+
type: "function",
|
|
51657
|
+
inputs: [],
|
|
51658
|
+
name: "version",
|
|
51659
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
51660
|
+
stateMutability: "view"
|
|
51661
|
+
},
|
|
51662
|
+
{
|
|
51663
|
+
type: "event",
|
|
51664
|
+
anonymous: false,
|
|
51665
|
+
inputs: [
|
|
51666
|
+
{ name: "bot", internalType: "address", type: "address", indexed: true }
|
|
51667
|
+
],
|
|
51668
|
+
name: "ForbidBot"
|
|
51669
|
+
},
|
|
51670
|
+
{
|
|
51671
|
+
type: "event",
|
|
51672
|
+
anonymous: false,
|
|
51673
|
+
inputs: [
|
|
51674
|
+
{ name: "bot", internalType: "address", type: "address", indexed: true },
|
|
51675
|
+
{
|
|
51676
|
+
name: "creditManager",
|
|
51677
|
+
internalType: "address",
|
|
51678
|
+
type: "address",
|
|
51679
|
+
indexed: true
|
|
51680
|
+
},
|
|
51681
|
+
{
|
|
51682
|
+
name: "creditAccount",
|
|
51683
|
+
internalType: "address",
|
|
51684
|
+
type: "address",
|
|
51685
|
+
indexed: true
|
|
51686
|
+
},
|
|
51687
|
+
{
|
|
51688
|
+
name: "permissions",
|
|
51689
|
+
internalType: "uint192",
|
|
51690
|
+
type: "uint192",
|
|
51691
|
+
indexed: false
|
|
51692
|
+
}
|
|
51693
|
+
],
|
|
51694
|
+
name: "SetBotPermissions"
|
|
51695
|
+
}
|
|
51696
|
+
];
|
|
51686
51697
|
var iCreditConfiguratorV310Abi = [
|
|
51687
51698
|
{
|
|
51688
51699
|
type: "function",
|
|
@@ -56675,8 +56686,7 @@ var ADDRESS_PROVIDER_BLOCK = {
|
|
|
56675
56686
|
Arbitrum: 184650310n,
|
|
56676
56687
|
Optimism: 118410666n,
|
|
56677
56688
|
Base: 0n,
|
|
56678
|
-
Sonic:
|
|
56679
|
-
// TODO: this is arbitrary block, to avoid staring from zero
|
|
56689
|
+
Sonic: 9779380n
|
|
56680
56690
|
};
|
|
56681
56691
|
var BLOCK_DURATION_BY_NETWORK = {
|
|
56682
56692
|
Mainnet: 12.05,
|
|
@@ -56840,12 +56850,12 @@ var json_parse = (s) => {
|
|
|
56840
56850
|
function createRawTx(to, parameters, description) {
|
|
56841
56851
|
const { args } = parameters;
|
|
56842
56852
|
const fname = parameters.functionName;
|
|
56843
|
-
const { abi:
|
|
56853
|
+
const { abi: abi36, functionName } = (() => {
|
|
56844
56854
|
if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
|
|
56845
56855
|
return parameters;
|
|
56846
56856
|
return viem.prepareEncodeFunctionData(parameters);
|
|
56847
56857
|
})();
|
|
56848
|
-
const abiItem =
|
|
56858
|
+
const abiItem = abi36[0];
|
|
56849
56859
|
const signature = functionName;
|
|
56850
56860
|
const data = "inputs" in abiItem && abiItem.inputs ? viem.encodeAbiParameters(abiItem.inputs, args ?? []) : undefined;
|
|
56851
56861
|
const functionEncodedData = viem.concatHex([signature, data ?? "0x"]);
|
|
@@ -58532,9 +58542,9 @@ async function simulateMulticall(client, parameters) {
|
|
|
58532
58542
|
let currentChunk = 0;
|
|
58533
58543
|
let currentChunkSize = 0;
|
|
58534
58544
|
for (const contract of contracts) {
|
|
58535
|
-
const { abi:
|
|
58545
|
+
const { abi: abi36, address, args, functionName } = contract;
|
|
58536
58546
|
try {
|
|
58537
|
-
const callData = viem.encodeFunctionData({ abi:
|
|
58547
|
+
const callData = viem.encodeFunctionData({ abi: abi36, args, functionName });
|
|
58538
58548
|
currentChunkSize += (callData.length - 2) / 2;
|
|
58539
58549
|
if (
|
|
58540
58550
|
// Check if batching is enabled.
|
|
@@ -58556,7 +58566,7 @@ async function simulateMulticall(client, parameters) {
|
|
|
58556
58566
|
];
|
|
58557
58567
|
} catch (err) {
|
|
58558
58568
|
const error = viem.getContractError(err, {
|
|
58559
|
-
abi:
|
|
58569
|
+
abi: abi36,
|
|
58560
58570
|
address,
|
|
58561
58571
|
args,
|
|
58562
58572
|
docsPath: "/docs/contract/multicall",
|
|
@@ -58613,12 +58623,12 @@ async function simulateMulticall(client, parameters) {
|
|
|
58613
58623
|
for (let j = 0; j < aggregate3Result.length; j++) {
|
|
58614
58624
|
const { returnData, success } = aggregate3Result[j];
|
|
58615
58625
|
const { callData } = chunkedCalls[i][j];
|
|
58616
|
-
const { abi:
|
|
58626
|
+
const { abi: abi36, address, functionName, args } = contracts[results.length];
|
|
58617
58627
|
try {
|
|
58618
58628
|
if (callData === "0x") throw new viem.AbiDecodingZeroDataError();
|
|
58619
58629
|
if (!success) throw new viem.RawContractError({ data: returnData });
|
|
58620
58630
|
const result2 = viem.decodeFunctionResult({
|
|
58621
|
-
abi:
|
|
58631
|
+
abi: abi36,
|
|
58622
58632
|
args,
|
|
58623
58633
|
data: returnData,
|
|
58624
58634
|
functionName
|
|
@@ -58626,7 +58636,7 @@ async function simulateMulticall(client, parameters) {
|
|
|
58626
58636
|
results.push(allowFailure ? { result: result2, status: "success" } : result2);
|
|
58627
58637
|
} catch (err) {
|
|
58628
58638
|
const error = viem.getContractError(err, {
|
|
58629
|
-
abi:
|
|
58639
|
+
abi: abi36,
|
|
58630
58640
|
address,
|
|
58631
58641
|
args,
|
|
58632
58642
|
docsPath: "/docs/contract/multicall",
|
|
@@ -72150,13 +72160,15 @@ var AbstractAddressProviderContract = class extends BaseContract {
|
|
|
72150
72160
|
this.#addresses = addresses;
|
|
72151
72161
|
}
|
|
72152
72162
|
setInternalAddress(key, address, version) {
|
|
72153
|
-
|
|
72154
|
-
|
|
72163
|
+
let k = viem.isHex(key) ? viem.hexToString(key, { size: 32 }) : key;
|
|
72164
|
+
if (!this.#addresses[k]) {
|
|
72165
|
+
this.#addresses[k] = {};
|
|
72155
72166
|
}
|
|
72156
|
-
this.#addresses[
|
|
72157
|
-
if (!this.#latest[
|
|
72158
|
-
this.#latest[
|
|
72167
|
+
this.#addresses[k][version] = address;
|
|
72168
|
+
if (!this.#latest[k] || version > this.#latest[key]) {
|
|
72169
|
+
this.#latest[k] = version;
|
|
72159
72170
|
}
|
|
72171
|
+
this.logger?.debug(`Set address for ${k}@${version} to ${address}`);
|
|
72160
72172
|
}
|
|
72161
72173
|
getAddress(contract, version = NO_VERSION) {
|
|
72162
72174
|
if (!this.#addresses[contract]) {
|
|
@@ -72368,11 +72380,12 @@ async function getAddressProvider(sdk, address, options) {
|
|
|
72368
72380
|
}
|
|
72369
72381
|
|
|
72370
72382
|
// src/sdk/core/BotListV3Contract.ts
|
|
72383
|
+
var abi35 = iBotListV300Abi;
|
|
72371
72384
|
var BotListContract = class extends BaseContract {
|
|
72372
72385
|
#approvedCreditManagers;
|
|
72373
72386
|
#currentBlock;
|
|
72374
72387
|
constructor(sdk, address) {
|
|
72375
|
-
super(sdk, { addr: address, name: "BotListV3", abi:
|
|
72388
|
+
super(sdk, { addr: address, name: "BotListV3", abi: abi35 });
|
|
72376
72389
|
this.#currentBlock = ADDRESS_PROVIDER_BLOCK[sdk.provider.networkType];
|
|
72377
72390
|
}
|
|
72378
72391
|
parseFunctionParams(params) {
|
|
@@ -73104,7 +73117,6 @@ exports.balancerV2VaultAdapterAbi = balancerV2VaultAdapterAbi;
|
|
|
73104
73117
|
exports.balancesMap = balancesMap;
|
|
73105
73118
|
exports.batchLiquidationEstimatorAbi = batchLiquidationEstimatorAbi;
|
|
73106
73119
|
exports.batchesChainAbi = batchesChainAbi;
|
|
73107
|
-
exports.botListV3Abi = botListV3Abi;
|
|
73108
73120
|
exports.botPermissionsToString = botPermissionsToString;
|
|
73109
73121
|
exports.boundedPriceFeedAbi = boundedPriceFeedAbi;
|
|
73110
73122
|
exports.bptStablePriceFeedAbi = bptStablePriceFeedAbi;
|
|
@@ -73199,6 +73211,8 @@ exports.iAuraL2CoordinatorAbi = iAuraL2CoordinatorAbi;
|
|
|
73199
73211
|
exports.iBalancerStablePoolAbi = iBalancerStablePoolAbi;
|
|
73200
73212
|
exports.iBalancerWeightedPoolAbi = iBalancerWeightedPoolAbi;
|
|
73201
73213
|
exports.iBaseRewardPoolAbi = iBaseRewardPoolAbi;
|
|
73214
|
+
exports.iBotListV300Abi = iBotListV300Abi;
|
|
73215
|
+
exports.iBotListV310Abi = iBotListV310Abi;
|
|
73202
73216
|
exports.iCamelotV3QuoterAbi = iCamelotV3QuoterAbi;
|
|
73203
73217
|
exports.iConvexTokenAbi = iConvexTokenAbi;
|
|
73204
73218
|
exports.iCreditAccountCompressorAbi = iCreditAccountCompressorAbi;
|