@defisaver/positions-sdk 2.1.63 → 2.1.65
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/cjs/config/contracts.d.ts +636 -20
- package/cjs/config/contracts.js +7 -3
- package/cjs/contracts.d.ts +21 -3625
- package/cjs/markets/morphoBlue/index.d.ts +2 -0
- package/cjs/markets/morphoBlue/index.js +18 -1
- package/cjs/types/morphoBlue.d.ts +2 -1
- package/cjs/types/morphoBlue.js +1 -0
- package/esm/config/contracts.d.ts +636 -20
- package/esm/config/contracts.js +7 -3
- package/esm/contracts.d.ts +21 -3625
- package/esm/markets/morphoBlue/index.d.ts +2 -0
- package/esm/markets/morphoBlue/index.js +16 -0
- package/esm/types/morphoBlue.d.ts +2 -1
- package/esm/types/morphoBlue.js +1 -0
- package/package.json +1 -1
- package/src/config/contracts.ts +8 -4
- package/src/markets/morphoBlue/index.ts +17 -0
- package/src/types/morphoBlue.ts +2 -1
|
@@ -55582,30 +55582,646 @@ export declare const AaveLoanInfoV2: {
|
|
|
55582
55582
|
}];
|
|
55583
55583
|
readonly stateMutability: "view";
|
|
55584
55584
|
readonly type: "function";
|
|
55585
|
-
}, {
|
|
55586
|
-
readonly inputs: readonly [{
|
|
55587
|
-
readonly internalType: "address";
|
|
55588
|
-
readonly name: "_market";
|
|
55589
|
-
readonly type: "address";
|
|
55590
|
-
}, {
|
|
55591
|
-
readonly internalType: "address";
|
|
55592
|
-
readonly name: "_tokenAddr";
|
|
55593
|
-
readonly type: "address";
|
|
55594
|
-
}, {
|
|
55595
|
-
readonly internalType: "uint256";
|
|
55596
|
-
readonly name: "_rateMode";
|
|
55597
|
-
readonly type: "uint256";
|
|
55598
|
-
}];
|
|
55599
|
-
readonly name: "switchRateMode";
|
|
55600
|
-
readonly outputs: readonly [];
|
|
55601
|
-
readonly stateMutability: "nonpayable";
|
|
55602
|
-
readonly type: "function";
|
|
55603
55585
|
}];
|
|
55604
55586
|
readonly networks: {
|
|
55605
55587
|
readonly "1": {
|
|
55606
|
-
readonly address: "
|
|
55607
|
-
readonly createdBlock:
|
|
55588
|
+
readonly address: "0x792c56838Ab06015da7E298e4bD2Cc31248a18Aa";
|
|
55589
|
+
readonly createdBlock: 24447855;
|
|
55608
55590
|
readonly oldVersions: {
|
|
55591
|
+
readonly "20368468": {
|
|
55592
|
+
readonly abi: readonly [{
|
|
55593
|
+
readonly inputs: readonly [];
|
|
55594
|
+
readonly name: "AAVE_REFERRAL_CODE";
|
|
55595
|
+
readonly outputs: readonly [{
|
|
55596
|
+
readonly internalType: "uint16";
|
|
55597
|
+
readonly name: "";
|
|
55598
|
+
readonly type: "uint16";
|
|
55599
|
+
}];
|
|
55600
|
+
readonly stateMutability: "view";
|
|
55601
|
+
readonly type: "function";
|
|
55602
|
+
}, {
|
|
55603
|
+
readonly inputs: readonly [];
|
|
55604
|
+
readonly name: "AaveIncentivesController";
|
|
55605
|
+
readonly outputs: readonly [{
|
|
55606
|
+
readonly internalType: "contract IAaveIncentivesController";
|
|
55607
|
+
readonly name: "";
|
|
55608
|
+
readonly type: "address";
|
|
55609
|
+
}];
|
|
55610
|
+
readonly stateMutability: "view";
|
|
55611
|
+
readonly type: "function";
|
|
55612
|
+
}, {
|
|
55613
|
+
readonly inputs: readonly [];
|
|
55614
|
+
readonly name: "DATA_PROVIDER_ID";
|
|
55615
|
+
readonly outputs: readonly [{
|
|
55616
|
+
readonly internalType: "bytes32";
|
|
55617
|
+
readonly name: "";
|
|
55618
|
+
readonly type: "bytes32";
|
|
55619
|
+
}];
|
|
55620
|
+
readonly stateMutability: "view";
|
|
55621
|
+
readonly type: "function";
|
|
55622
|
+
}, {
|
|
55623
|
+
readonly inputs: readonly [];
|
|
55624
|
+
readonly name: "StakedToken";
|
|
55625
|
+
readonly outputs: readonly [{
|
|
55626
|
+
readonly internalType: "contract IStakedToken";
|
|
55627
|
+
readonly name: "";
|
|
55628
|
+
readonly type: "address";
|
|
55629
|
+
}];
|
|
55630
|
+
readonly stateMutability: "view";
|
|
55631
|
+
readonly type: "function";
|
|
55632
|
+
}, {
|
|
55633
|
+
readonly inputs: readonly [{
|
|
55634
|
+
readonly internalType: "address";
|
|
55635
|
+
readonly name: "_market";
|
|
55636
|
+
readonly type: "address";
|
|
55637
|
+
}, {
|
|
55638
|
+
readonly internalType: "address";
|
|
55639
|
+
readonly name: "_tokenAddr";
|
|
55640
|
+
readonly type: "address";
|
|
55641
|
+
}, {
|
|
55642
|
+
readonly internalType: "bool";
|
|
55643
|
+
readonly name: "_useAsCollateral";
|
|
55644
|
+
readonly type: "bool";
|
|
55645
|
+
}];
|
|
55646
|
+
readonly name: "enableAsCollateral";
|
|
55647
|
+
readonly outputs: readonly [];
|
|
55648
|
+
readonly stateMutability: "nonpayable";
|
|
55649
|
+
readonly type: "function";
|
|
55650
|
+
}, {
|
|
55651
|
+
readonly inputs: readonly [{
|
|
55652
|
+
readonly internalType: "address";
|
|
55653
|
+
readonly name: "_market";
|
|
55654
|
+
readonly type: "address";
|
|
55655
|
+
}, {
|
|
55656
|
+
readonly components: readonly [{
|
|
55657
|
+
readonly internalType: "address";
|
|
55658
|
+
readonly name: "reserveAddress";
|
|
55659
|
+
readonly type: "address";
|
|
55660
|
+
}, {
|
|
55661
|
+
readonly internalType: "uint256";
|
|
55662
|
+
readonly name: "liquidityAdded";
|
|
55663
|
+
readonly type: "uint256";
|
|
55664
|
+
}, {
|
|
55665
|
+
readonly internalType: "uint256";
|
|
55666
|
+
readonly name: "liquidityTaken";
|
|
55667
|
+
readonly type: "uint256";
|
|
55668
|
+
}, {
|
|
55669
|
+
readonly internalType: "bool";
|
|
55670
|
+
readonly name: "isDebtAsset";
|
|
55671
|
+
readonly type: "bool";
|
|
55672
|
+
}];
|
|
55673
|
+
readonly internalType: "struct AaveView.LiquidityChangeParams[]";
|
|
55674
|
+
readonly name: "_reserveParams";
|
|
55675
|
+
readonly type: "tuple[]";
|
|
55676
|
+
}];
|
|
55677
|
+
readonly name: "getApyAfterValuesEstimation";
|
|
55678
|
+
readonly outputs: readonly [{
|
|
55679
|
+
readonly components: readonly [{
|
|
55680
|
+
readonly internalType: "address";
|
|
55681
|
+
readonly name: "reserveAddress";
|
|
55682
|
+
readonly type: "address";
|
|
55683
|
+
}, {
|
|
55684
|
+
readonly internalType: "uint256";
|
|
55685
|
+
readonly name: "supplyRate";
|
|
55686
|
+
readonly type: "uint256";
|
|
55687
|
+
}, {
|
|
55688
|
+
readonly internalType: "uint256";
|
|
55689
|
+
readonly name: "variableBorrowRate";
|
|
55690
|
+
readonly type: "uint256";
|
|
55691
|
+
}];
|
|
55692
|
+
readonly internalType: "struct AaveView.EstimatedRates[]";
|
|
55693
|
+
readonly name: "";
|
|
55694
|
+
readonly type: "tuple[]";
|
|
55695
|
+
}];
|
|
55696
|
+
readonly stateMutability: "view";
|
|
55697
|
+
readonly type: "function";
|
|
55698
|
+
}, {
|
|
55699
|
+
readonly inputs: readonly [{
|
|
55700
|
+
readonly internalType: "address";
|
|
55701
|
+
readonly name: "_market";
|
|
55702
|
+
readonly type: "address";
|
|
55703
|
+
}, {
|
|
55704
|
+
readonly internalType: "address[]";
|
|
55705
|
+
readonly name: "_tokens";
|
|
55706
|
+
readonly type: "address[]";
|
|
55707
|
+
}];
|
|
55708
|
+
readonly name: "getCollFactors";
|
|
55709
|
+
readonly outputs: readonly [{
|
|
55710
|
+
readonly internalType: "uint256[]";
|
|
55711
|
+
readonly name: "collFactors";
|
|
55712
|
+
readonly type: "uint256[]";
|
|
55713
|
+
}];
|
|
55714
|
+
readonly stateMutability: "view";
|
|
55715
|
+
readonly type: "function";
|
|
55716
|
+
}, {
|
|
55717
|
+
readonly inputs: readonly [{
|
|
55718
|
+
readonly internalType: "address";
|
|
55719
|
+
readonly name: "_market";
|
|
55720
|
+
readonly type: "address";
|
|
55721
|
+
}, {
|
|
55722
|
+
readonly internalType: "address[]";
|
|
55723
|
+
readonly name: "_tokenAddresses";
|
|
55724
|
+
readonly type: "address[]";
|
|
55725
|
+
}];
|
|
55726
|
+
readonly name: "getFullTokensInfo";
|
|
55727
|
+
readonly outputs: readonly [{
|
|
55728
|
+
readonly components: readonly [{
|
|
55729
|
+
readonly internalType: "address";
|
|
55730
|
+
readonly name: "aTokenAddress";
|
|
55731
|
+
readonly type: "address";
|
|
55732
|
+
}, {
|
|
55733
|
+
readonly internalType: "address";
|
|
55734
|
+
readonly name: "underlyingTokenAddress";
|
|
55735
|
+
readonly type: "address";
|
|
55736
|
+
}, {
|
|
55737
|
+
readonly internalType: "uint256";
|
|
55738
|
+
readonly name: "supplyRate";
|
|
55739
|
+
readonly type: "uint256";
|
|
55740
|
+
}, {
|
|
55741
|
+
readonly internalType: "uint256";
|
|
55742
|
+
readonly name: "borrowRateVariable";
|
|
55743
|
+
readonly type: "uint256";
|
|
55744
|
+
}, {
|
|
55745
|
+
readonly internalType: "uint256";
|
|
55746
|
+
readonly name: "borrowRateStable";
|
|
55747
|
+
readonly type: "uint256";
|
|
55748
|
+
}, {
|
|
55749
|
+
readonly internalType: "uint256";
|
|
55750
|
+
readonly name: "totalSupply";
|
|
55751
|
+
readonly type: "uint256";
|
|
55752
|
+
}, {
|
|
55753
|
+
readonly internalType: "uint256";
|
|
55754
|
+
readonly name: "availableLiquidity";
|
|
55755
|
+
readonly type: "uint256";
|
|
55756
|
+
}, {
|
|
55757
|
+
readonly internalType: "uint256";
|
|
55758
|
+
readonly name: "totalBorrow";
|
|
55759
|
+
readonly type: "uint256";
|
|
55760
|
+
}, {
|
|
55761
|
+
readonly internalType: "uint256";
|
|
55762
|
+
readonly name: "collateralFactor";
|
|
55763
|
+
readonly type: "uint256";
|
|
55764
|
+
}, {
|
|
55765
|
+
readonly internalType: "uint256";
|
|
55766
|
+
readonly name: "liquidationRatio";
|
|
55767
|
+
readonly type: "uint256";
|
|
55768
|
+
}, {
|
|
55769
|
+
readonly internalType: "uint256";
|
|
55770
|
+
readonly name: "price";
|
|
55771
|
+
readonly type: "uint256";
|
|
55772
|
+
}, {
|
|
55773
|
+
readonly internalType: "uint256";
|
|
55774
|
+
readonly name: "totalBorrowVar";
|
|
55775
|
+
readonly type: "uint256";
|
|
55776
|
+
}, {
|
|
55777
|
+
readonly internalType: "uint256";
|
|
55778
|
+
readonly name: "totalBorrowStab";
|
|
55779
|
+
readonly type: "uint256";
|
|
55780
|
+
}, {
|
|
55781
|
+
readonly internalType: "bool";
|
|
55782
|
+
readonly name: "isActive";
|
|
55783
|
+
readonly type: "bool";
|
|
55784
|
+
}, {
|
|
55785
|
+
readonly internalType: "bool";
|
|
55786
|
+
readonly name: "isFrozen";
|
|
55787
|
+
readonly type: "bool";
|
|
55788
|
+
}, {
|
|
55789
|
+
readonly internalType: "bool";
|
|
55790
|
+
readonly name: "usageAsCollateralEnabled";
|
|
55791
|
+
readonly type: "bool";
|
|
55792
|
+
}, {
|
|
55793
|
+
readonly internalType: "bool";
|
|
55794
|
+
readonly name: "borrowingEnabled";
|
|
55795
|
+
readonly type: "bool";
|
|
55796
|
+
}, {
|
|
55797
|
+
readonly internalType: "bool";
|
|
55798
|
+
readonly name: "stableBorrowRateEnabled";
|
|
55799
|
+
readonly type: "bool";
|
|
55800
|
+
}];
|
|
55801
|
+
readonly internalType: "struct AaveView.TokenInfoFull[]";
|
|
55802
|
+
readonly name: "tokens";
|
|
55803
|
+
readonly type: "tuple[]";
|
|
55804
|
+
}];
|
|
55805
|
+
readonly stateMutability: "view";
|
|
55806
|
+
readonly type: "function";
|
|
55807
|
+
}, {
|
|
55808
|
+
readonly inputs: readonly [{
|
|
55809
|
+
readonly internalType: "address[]";
|
|
55810
|
+
readonly name: "_assets";
|
|
55811
|
+
readonly type: "address[]";
|
|
55812
|
+
}, {
|
|
55813
|
+
readonly internalType: "address";
|
|
55814
|
+
readonly name: "_user";
|
|
55815
|
+
readonly type: "address";
|
|
55816
|
+
}];
|
|
55817
|
+
readonly name: "getIncentivesRewardsBalance";
|
|
55818
|
+
readonly outputs: readonly [{
|
|
55819
|
+
readonly internalType: "uint256";
|
|
55820
|
+
readonly name: "";
|
|
55821
|
+
readonly type: "uint256";
|
|
55822
|
+
}];
|
|
55823
|
+
readonly stateMutability: "view";
|
|
55824
|
+
readonly type: "function";
|
|
55825
|
+
}, {
|
|
55826
|
+
readonly inputs: readonly [{
|
|
55827
|
+
readonly internalType: "address";
|
|
55828
|
+
readonly name: "_market";
|
|
55829
|
+
readonly type: "address";
|
|
55830
|
+
}, {
|
|
55831
|
+
readonly internalType: "address";
|
|
55832
|
+
readonly name: "_user";
|
|
55833
|
+
readonly type: "address";
|
|
55834
|
+
}];
|
|
55835
|
+
readonly name: "getLoanData";
|
|
55836
|
+
readonly outputs: readonly [{
|
|
55837
|
+
readonly components: readonly [{
|
|
55838
|
+
readonly internalType: "address";
|
|
55839
|
+
readonly name: "user";
|
|
55840
|
+
readonly type: "address";
|
|
55841
|
+
}, {
|
|
55842
|
+
readonly internalType: "uint128";
|
|
55843
|
+
readonly name: "ratio";
|
|
55844
|
+
readonly type: "uint128";
|
|
55845
|
+
}, {
|
|
55846
|
+
readonly internalType: "address[]";
|
|
55847
|
+
readonly name: "collAddr";
|
|
55848
|
+
readonly type: "address[]";
|
|
55849
|
+
}, {
|
|
55850
|
+
readonly internalType: "bool[]";
|
|
55851
|
+
readonly name: "enabledAsColl";
|
|
55852
|
+
readonly type: "bool[]";
|
|
55853
|
+
}, {
|
|
55854
|
+
readonly internalType: "address[]";
|
|
55855
|
+
readonly name: "borrowAddr";
|
|
55856
|
+
readonly type: "address[]";
|
|
55857
|
+
}, {
|
|
55858
|
+
readonly internalType: "uint256[]";
|
|
55859
|
+
readonly name: "collAmounts";
|
|
55860
|
+
readonly type: "uint256[]";
|
|
55861
|
+
}, {
|
|
55862
|
+
readonly internalType: "uint256[]";
|
|
55863
|
+
readonly name: "borrowStableAmounts";
|
|
55864
|
+
readonly type: "uint256[]";
|
|
55865
|
+
}, {
|
|
55866
|
+
readonly internalType: "uint256[]";
|
|
55867
|
+
readonly name: "borrowVariableAmounts";
|
|
55868
|
+
readonly type: "uint256[]";
|
|
55869
|
+
}];
|
|
55870
|
+
readonly internalType: "struct AaveView.LoanData";
|
|
55871
|
+
readonly name: "data";
|
|
55872
|
+
readonly type: "tuple";
|
|
55873
|
+
}];
|
|
55874
|
+
readonly stateMutability: "view";
|
|
55875
|
+
readonly type: "function";
|
|
55876
|
+
}, {
|
|
55877
|
+
readonly inputs: readonly [{
|
|
55878
|
+
readonly internalType: "address";
|
|
55879
|
+
readonly name: "_market";
|
|
55880
|
+
readonly type: "address";
|
|
55881
|
+
}, {
|
|
55882
|
+
readonly internalType: "address[]";
|
|
55883
|
+
readonly name: "_users";
|
|
55884
|
+
readonly type: "address[]";
|
|
55885
|
+
}];
|
|
55886
|
+
readonly name: "getLoanDataArr";
|
|
55887
|
+
readonly outputs: readonly [{
|
|
55888
|
+
readonly components: readonly [{
|
|
55889
|
+
readonly internalType: "address";
|
|
55890
|
+
readonly name: "user";
|
|
55891
|
+
readonly type: "address";
|
|
55892
|
+
}, {
|
|
55893
|
+
readonly internalType: "uint128";
|
|
55894
|
+
readonly name: "ratio";
|
|
55895
|
+
readonly type: "uint128";
|
|
55896
|
+
}, {
|
|
55897
|
+
readonly internalType: "address[]";
|
|
55898
|
+
readonly name: "collAddr";
|
|
55899
|
+
readonly type: "address[]";
|
|
55900
|
+
}, {
|
|
55901
|
+
readonly internalType: "bool[]";
|
|
55902
|
+
readonly name: "enabledAsColl";
|
|
55903
|
+
readonly type: "bool[]";
|
|
55904
|
+
}, {
|
|
55905
|
+
readonly internalType: "address[]";
|
|
55906
|
+
readonly name: "borrowAddr";
|
|
55907
|
+
readonly type: "address[]";
|
|
55908
|
+
}, {
|
|
55909
|
+
readonly internalType: "uint256[]";
|
|
55910
|
+
readonly name: "collAmounts";
|
|
55911
|
+
readonly type: "uint256[]";
|
|
55912
|
+
}, {
|
|
55913
|
+
readonly internalType: "uint256[]";
|
|
55914
|
+
readonly name: "borrowStableAmounts";
|
|
55915
|
+
readonly type: "uint256[]";
|
|
55916
|
+
}, {
|
|
55917
|
+
readonly internalType: "uint256[]";
|
|
55918
|
+
readonly name: "borrowVariableAmounts";
|
|
55919
|
+
readonly type: "uint256[]";
|
|
55920
|
+
}];
|
|
55921
|
+
readonly internalType: "struct AaveView.LoanData[]";
|
|
55922
|
+
readonly name: "loans";
|
|
55923
|
+
readonly type: "tuple[]";
|
|
55924
|
+
}];
|
|
55925
|
+
readonly stateMutability: "view";
|
|
55926
|
+
readonly type: "function";
|
|
55927
|
+
}, {
|
|
55928
|
+
readonly inputs: readonly [{
|
|
55929
|
+
readonly internalType: "address";
|
|
55930
|
+
readonly name: "_market";
|
|
55931
|
+
readonly type: "address";
|
|
55932
|
+
}, {
|
|
55933
|
+
readonly internalType: "address[]";
|
|
55934
|
+
readonly name: "_tokens";
|
|
55935
|
+
readonly type: "address[]";
|
|
55936
|
+
}];
|
|
55937
|
+
readonly name: "getPrices";
|
|
55938
|
+
readonly outputs: readonly [{
|
|
55939
|
+
readonly internalType: "uint256[]";
|
|
55940
|
+
readonly name: "prices";
|
|
55941
|
+
readonly type: "uint256[]";
|
|
55942
|
+
}];
|
|
55943
|
+
readonly stateMutability: "view";
|
|
55944
|
+
readonly type: "function";
|
|
55945
|
+
}, {
|
|
55946
|
+
readonly inputs: readonly [{
|
|
55947
|
+
readonly internalType: "address";
|
|
55948
|
+
readonly name: "_market";
|
|
55949
|
+
readonly type: "address";
|
|
55950
|
+
}, {
|
|
55951
|
+
readonly internalType: "address";
|
|
55952
|
+
readonly name: "_user";
|
|
55953
|
+
readonly type: "address";
|
|
55954
|
+
}];
|
|
55955
|
+
readonly name: "getRatio";
|
|
55956
|
+
readonly outputs: readonly [{
|
|
55957
|
+
readonly internalType: "uint256";
|
|
55958
|
+
readonly name: "";
|
|
55959
|
+
readonly type: "uint256";
|
|
55960
|
+
}];
|
|
55961
|
+
readonly stateMutability: "view";
|
|
55962
|
+
readonly type: "function";
|
|
55963
|
+
}, {
|
|
55964
|
+
readonly inputs: readonly [{
|
|
55965
|
+
readonly internalType: "address";
|
|
55966
|
+
readonly name: "_market";
|
|
55967
|
+
readonly type: "address";
|
|
55968
|
+
}, {
|
|
55969
|
+
readonly internalType: "address[]";
|
|
55970
|
+
readonly name: "_users";
|
|
55971
|
+
readonly type: "address[]";
|
|
55972
|
+
}];
|
|
55973
|
+
readonly name: "getRatios";
|
|
55974
|
+
readonly outputs: readonly [{
|
|
55975
|
+
readonly internalType: "uint256[]";
|
|
55976
|
+
readonly name: "ratios";
|
|
55977
|
+
readonly type: "uint256[]";
|
|
55978
|
+
}];
|
|
55979
|
+
readonly stateMutability: "view";
|
|
55980
|
+
readonly type: "function";
|
|
55981
|
+
}, {
|
|
55982
|
+
readonly inputs: readonly [{
|
|
55983
|
+
readonly internalType: "address";
|
|
55984
|
+
readonly name: "_market";
|
|
55985
|
+
readonly type: "address";
|
|
55986
|
+
}, {
|
|
55987
|
+
readonly internalType: "address";
|
|
55988
|
+
readonly name: "_user";
|
|
55989
|
+
readonly type: "address";
|
|
55990
|
+
}];
|
|
55991
|
+
readonly name: "getSafetyRatio";
|
|
55992
|
+
readonly outputs: readonly [{
|
|
55993
|
+
readonly internalType: "uint256";
|
|
55994
|
+
readonly name: "";
|
|
55995
|
+
readonly type: "uint256";
|
|
55996
|
+
}];
|
|
55997
|
+
readonly stateMutability: "view";
|
|
55998
|
+
readonly type: "function";
|
|
55999
|
+
}, {
|
|
56000
|
+
readonly inputs: readonly [{
|
|
56001
|
+
readonly internalType: "address";
|
|
56002
|
+
readonly name: "_staker";
|
|
56003
|
+
readonly type: "address";
|
|
56004
|
+
}];
|
|
56005
|
+
readonly name: "getStakingRewardsBalance";
|
|
56006
|
+
readonly outputs: readonly [{
|
|
56007
|
+
readonly internalType: "uint256";
|
|
56008
|
+
readonly name: "";
|
|
56009
|
+
readonly type: "uint256";
|
|
56010
|
+
}];
|
|
56011
|
+
readonly stateMutability: "view";
|
|
56012
|
+
readonly type: "function";
|
|
56013
|
+
}, {
|
|
56014
|
+
readonly inputs: readonly [{
|
|
56015
|
+
readonly internalType: "address";
|
|
56016
|
+
readonly name: "_market";
|
|
56017
|
+
readonly type: "address";
|
|
56018
|
+
}, {
|
|
56019
|
+
readonly internalType: "address";
|
|
56020
|
+
readonly name: "_user";
|
|
56021
|
+
readonly type: "address";
|
|
56022
|
+
}, {
|
|
56023
|
+
readonly internalType: "address[]";
|
|
56024
|
+
readonly name: "_tokens";
|
|
56025
|
+
readonly type: "address[]";
|
|
56026
|
+
}];
|
|
56027
|
+
readonly name: "getTokenBalances";
|
|
56028
|
+
readonly outputs: readonly [{
|
|
56029
|
+
readonly components: readonly [{
|
|
56030
|
+
readonly internalType: "address";
|
|
56031
|
+
readonly name: "token";
|
|
56032
|
+
readonly type: "address";
|
|
56033
|
+
}, {
|
|
56034
|
+
readonly internalType: "uint256";
|
|
56035
|
+
readonly name: "balance";
|
|
56036
|
+
readonly type: "uint256";
|
|
56037
|
+
}, {
|
|
56038
|
+
readonly internalType: "uint256";
|
|
56039
|
+
readonly name: "borrowsStable";
|
|
56040
|
+
readonly type: "uint256";
|
|
56041
|
+
}, {
|
|
56042
|
+
readonly internalType: "uint256";
|
|
56043
|
+
readonly name: "borrowsVariable";
|
|
56044
|
+
readonly type: "uint256";
|
|
56045
|
+
}, {
|
|
56046
|
+
readonly internalType: "uint256";
|
|
56047
|
+
readonly name: "stableBorrowRate";
|
|
56048
|
+
readonly type: "uint256";
|
|
56049
|
+
}, {
|
|
56050
|
+
readonly internalType: "bool";
|
|
56051
|
+
readonly name: "enabledAsCollateral";
|
|
56052
|
+
readonly type: "bool";
|
|
56053
|
+
}];
|
|
56054
|
+
readonly internalType: "struct AaveView.UserToken[]";
|
|
56055
|
+
readonly name: "userTokens";
|
|
56056
|
+
readonly type: "tuple[]";
|
|
56057
|
+
}];
|
|
56058
|
+
readonly stateMutability: "view";
|
|
56059
|
+
readonly type: "function";
|
|
56060
|
+
}, {
|
|
56061
|
+
readonly inputs: readonly [{
|
|
56062
|
+
readonly internalType: "contract IAaveProtocolDataProviderV2";
|
|
56063
|
+
readonly name: "_dataProvider";
|
|
56064
|
+
readonly type: "address";
|
|
56065
|
+
}, {
|
|
56066
|
+
readonly internalType: "address";
|
|
56067
|
+
readonly name: "_priceOracleAddress";
|
|
56068
|
+
readonly type: "address";
|
|
56069
|
+
}, {
|
|
56070
|
+
readonly internalType: "address";
|
|
56071
|
+
readonly name: "_token";
|
|
56072
|
+
readonly type: "address";
|
|
56073
|
+
}];
|
|
56074
|
+
readonly name: "getTokenInfoFull";
|
|
56075
|
+
readonly outputs: readonly [{
|
|
56076
|
+
readonly components: readonly [{
|
|
56077
|
+
readonly internalType: "address";
|
|
56078
|
+
readonly name: "aTokenAddress";
|
|
56079
|
+
readonly type: "address";
|
|
56080
|
+
}, {
|
|
56081
|
+
readonly internalType: "address";
|
|
56082
|
+
readonly name: "underlyingTokenAddress";
|
|
56083
|
+
readonly type: "address";
|
|
56084
|
+
}, {
|
|
56085
|
+
readonly internalType: "uint256";
|
|
56086
|
+
readonly name: "supplyRate";
|
|
56087
|
+
readonly type: "uint256";
|
|
56088
|
+
}, {
|
|
56089
|
+
readonly internalType: "uint256";
|
|
56090
|
+
readonly name: "borrowRateVariable";
|
|
56091
|
+
readonly type: "uint256";
|
|
56092
|
+
}, {
|
|
56093
|
+
readonly internalType: "uint256";
|
|
56094
|
+
readonly name: "borrowRateStable";
|
|
56095
|
+
readonly type: "uint256";
|
|
56096
|
+
}, {
|
|
56097
|
+
readonly internalType: "uint256";
|
|
56098
|
+
readonly name: "totalSupply";
|
|
56099
|
+
readonly type: "uint256";
|
|
56100
|
+
}, {
|
|
56101
|
+
readonly internalType: "uint256";
|
|
56102
|
+
readonly name: "availableLiquidity";
|
|
56103
|
+
readonly type: "uint256";
|
|
56104
|
+
}, {
|
|
56105
|
+
readonly internalType: "uint256";
|
|
56106
|
+
readonly name: "totalBorrow";
|
|
56107
|
+
readonly type: "uint256";
|
|
56108
|
+
}, {
|
|
56109
|
+
readonly internalType: "uint256";
|
|
56110
|
+
readonly name: "collateralFactor";
|
|
56111
|
+
readonly type: "uint256";
|
|
56112
|
+
}, {
|
|
56113
|
+
readonly internalType: "uint256";
|
|
56114
|
+
readonly name: "liquidationRatio";
|
|
56115
|
+
readonly type: "uint256";
|
|
56116
|
+
}, {
|
|
56117
|
+
readonly internalType: "uint256";
|
|
56118
|
+
readonly name: "price";
|
|
56119
|
+
readonly type: "uint256";
|
|
56120
|
+
}, {
|
|
56121
|
+
readonly internalType: "uint256";
|
|
56122
|
+
readonly name: "totalBorrowVar";
|
|
56123
|
+
readonly type: "uint256";
|
|
56124
|
+
}, {
|
|
56125
|
+
readonly internalType: "uint256";
|
|
56126
|
+
readonly name: "totalBorrowStab";
|
|
56127
|
+
readonly type: "uint256";
|
|
56128
|
+
}, {
|
|
56129
|
+
readonly internalType: "bool";
|
|
56130
|
+
readonly name: "isActive";
|
|
56131
|
+
readonly type: "bool";
|
|
56132
|
+
}, {
|
|
56133
|
+
readonly internalType: "bool";
|
|
56134
|
+
readonly name: "isFrozen";
|
|
56135
|
+
readonly type: "bool";
|
|
56136
|
+
}, {
|
|
56137
|
+
readonly internalType: "bool";
|
|
56138
|
+
readonly name: "usageAsCollateralEnabled";
|
|
56139
|
+
readonly type: "bool";
|
|
56140
|
+
}, {
|
|
56141
|
+
readonly internalType: "bool";
|
|
56142
|
+
readonly name: "borrowingEnabled";
|
|
56143
|
+
readonly type: "bool";
|
|
56144
|
+
}, {
|
|
56145
|
+
readonly internalType: "bool";
|
|
56146
|
+
readonly name: "stableBorrowRateEnabled";
|
|
56147
|
+
readonly type: "bool";
|
|
56148
|
+
}];
|
|
56149
|
+
readonly internalType: "struct AaveView.TokenInfoFull";
|
|
56150
|
+
readonly name: "_tokenInfo";
|
|
56151
|
+
readonly type: "tuple";
|
|
56152
|
+
}];
|
|
56153
|
+
readonly stateMutability: "view";
|
|
56154
|
+
readonly type: "function";
|
|
56155
|
+
}, {
|
|
56156
|
+
readonly inputs: readonly [{
|
|
56157
|
+
readonly internalType: "address";
|
|
56158
|
+
readonly name: "_market";
|
|
56159
|
+
readonly type: "address";
|
|
56160
|
+
}, {
|
|
56161
|
+
readonly internalType: "address[]";
|
|
56162
|
+
readonly name: "_tokenAddresses";
|
|
56163
|
+
readonly type: "address[]";
|
|
56164
|
+
}];
|
|
56165
|
+
readonly name: "getTokensInfo";
|
|
56166
|
+
readonly outputs: readonly [{
|
|
56167
|
+
readonly components: readonly [{
|
|
56168
|
+
readonly internalType: "address";
|
|
56169
|
+
readonly name: "aTokenAddress";
|
|
56170
|
+
readonly type: "address";
|
|
56171
|
+
}, {
|
|
56172
|
+
readonly internalType: "address";
|
|
56173
|
+
readonly name: "underlyingTokenAddress";
|
|
56174
|
+
readonly type: "address";
|
|
56175
|
+
}, {
|
|
56176
|
+
readonly internalType: "uint256";
|
|
56177
|
+
readonly name: "collateralFactor";
|
|
56178
|
+
readonly type: "uint256";
|
|
56179
|
+
}, {
|
|
56180
|
+
readonly internalType: "uint256";
|
|
56181
|
+
readonly name: "price";
|
|
56182
|
+
readonly type: "uint256";
|
|
56183
|
+
}];
|
|
56184
|
+
readonly internalType: "struct AaveView.TokenInfo[]";
|
|
56185
|
+
readonly name: "tokens";
|
|
56186
|
+
readonly type: "tuple[]";
|
|
56187
|
+
}];
|
|
56188
|
+
readonly stateMutability: "view";
|
|
56189
|
+
readonly type: "function";
|
|
56190
|
+
}, {
|
|
56191
|
+
readonly inputs: readonly [{
|
|
56192
|
+
readonly internalType: "address";
|
|
56193
|
+
readonly name: "_user";
|
|
56194
|
+
readonly type: "address";
|
|
56195
|
+
}];
|
|
56196
|
+
readonly name: "getUserUnclaimedRewards";
|
|
56197
|
+
readonly outputs: readonly [{
|
|
56198
|
+
readonly internalType: "uint256";
|
|
56199
|
+
readonly name: "";
|
|
56200
|
+
readonly type: "uint256";
|
|
56201
|
+
}];
|
|
56202
|
+
readonly stateMutability: "view";
|
|
56203
|
+
readonly type: "function";
|
|
56204
|
+
}, {
|
|
56205
|
+
readonly inputs: readonly [{
|
|
56206
|
+
readonly internalType: "address";
|
|
56207
|
+
readonly name: "_market";
|
|
56208
|
+
readonly type: "address";
|
|
56209
|
+
}, {
|
|
56210
|
+
readonly internalType: "address";
|
|
56211
|
+
readonly name: "_tokenAddr";
|
|
56212
|
+
readonly type: "address";
|
|
56213
|
+
}, {
|
|
56214
|
+
readonly internalType: "uint256";
|
|
56215
|
+
readonly name: "_rateMode";
|
|
56216
|
+
readonly type: "uint256";
|
|
56217
|
+
}];
|
|
56218
|
+
readonly name: "switchRateMode";
|
|
56219
|
+
readonly outputs: readonly [];
|
|
56220
|
+
readonly stateMutability: "nonpayable";
|
|
56221
|
+
readonly type: "function";
|
|
56222
|
+
}];
|
|
56223
|
+
readonly address: "0xd0ba40a400f9e045d54978e3b78cd9ad9fa92144";
|
|
56224
|
+
};
|
|
55609
56225
|
readonly "11374778": {
|
|
55610
56226
|
readonly abi: readonly [{
|
|
55611
56227
|
readonly inputs: readonly [{
|