@defisaver/positions-sdk 2.0.11 → 2.0.12

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.
Files changed (106) hide show
  1. package/.mocharc.json +4 -4
  2. package/.nvmrc +1 -1
  3. package/README.md +64 -64
  4. package/cjs/aaveV3/index.js +1 -1
  5. package/cjs/config/contracts.d.ts +194 -33
  6. package/cjs/config/contracts.js +18 -1
  7. package/cjs/contracts.d.ts +1283 -293
  8. package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
  9. package/cjs/markets/aave/index.js +1 -1
  10. package/cjs/markets/aave/marketAssets.d.ts +4 -0
  11. package/cjs/markets/aave/marketAssets.js +5 -1
  12. package/cjs/markets/compound/index.js +11 -0
  13. package/cjs/markets/compound/marketsAssets.d.ts +7 -0
  14. package/cjs/markets/compound/marketsAssets.js +7 -0
  15. package/cjs/markets/spark/marketAssets.d.ts +1 -0
  16. package/cjs/markets/spark/marketAssets.js +1 -0
  17. package/cjs/portfolio/index.js +2 -2
  18. package/cjs/services/utils.js +1 -1
  19. package/cjs/services/viem.d.ts +46 -0
  20. package/cjs/services/viem.js +2 -0
  21. package/cjs/types/common.d.ts +2 -1
  22. package/cjs/types/common.js +1 -0
  23. package/esm/aaveV3/index.js +1 -1
  24. package/esm/config/contracts.d.ts +194 -33
  25. package/esm/config/contracts.js +18 -1
  26. package/esm/contracts.d.ts +1283 -293
  27. package/esm/helpers/morphoBlueHelpers/index.js +66 -66
  28. package/esm/markets/aave/index.js +1 -1
  29. package/esm/markets/aave/marketAssets.d.ts +4 -0
  30. package/esm/markets/aave/marketAssets.js +4 -0
  31. package/esm/markets/compound/index.js +11 -0
  32. package/esm/markets/compound/marketsAssets.d.ts +7 -0
  33. package/esm/markets/compound/marketsAssets.js +7 -0
  34. package/esm/markets/spark/marketAssets.d.ts +1 -0
  35. package/esm/markets/spark/marketAssets.js +1 -0
  36. package/esm/portfolio/index.js +2 -2
  37. package/esm/services/utils.js +1 -1
  38. package/esm/services/viem.d.ts +46 -0
  39. package/esm/services/viem.js +3 -1
  40. package/esm/types/common.d.ts +2 -1
  41. package/esm/types/common.js +1 -0
  42. package/package.json +47 -47
  43. package/src/aaveV2/index.ts +236 -236
  44. package/src/aaveV3/index.ts +488 -489
  45. package/src/compoundV2/index.ts +240 -240
  46. package/src/compoundV3/index.ts +270 -270
  47. package/src/config/contracts.ts +1107 -1090
  48. package/src/constants/index.ts +6 -6
  49. package/src/contracts.ts +107 -107
  50. package/src/curveUsd/index.ts +250 -250
  51. package/src/eulerV2/index.ts +314 -314
  52. package/src/exchange/index.ts +25 -25
  53. package/src/fluid/index.ts +1568 -1568
  54. package/src/helpers/aaveHelpers/index.ts +170 -170
  55. package/src/helpers/compoundHelpers/index.ts +261 -261
  56. package/src/helpers/curveUsdHelpers/index.ts +40 -40
  57. package/src/helpers/eulerHelpers/index.ts +259 -259
  58. package/src/helpers/fluidHelpers/index.ts +324 -324
  59. package/src/helpers/index.ts +10 -10
  60. package/src/helpers/liquityV2Helpers/index.ts +80 -80
  61. package/src/helpers/llamaLendHelpers/index.ts +53 -53
  62. package/src/helpers/makerHelpers/index.ts +52 -52
  63. package/src/helpers/morphoBlueHelpers/index.ts +390 -390
  64. package/src/helpers/sparkHelpers/index.ts +155 -155
  65. package/src/index.ts +45 -45
  66. package/src/liquity/index.ts +104 -104
  67. package/src/liquityV2/index.ts +408 -408
  68. package/src/llamaLend/index.ts +296 -296
  69. package/src/maker/index.ts +223 -223
  70. package/src/markets/aave/index.ts +116 -116
  71. package/src/markets/aave/marketAssets.ts +49 -44
  72. package/src/markets/compound/index.ts +227 -216
  73. package/src/markets/compound/marketsAssets.ts +90 -83
  74. package/src/markets/curveUsd/index.ts +69 -69
  75. package/src/markets/euler/index.ts +26 -26
  76. package/src/markets/fluid/index.ts +2456 -2456
  77. package/src/markets/index.ts +25 -25
  78. package/src/markets/liquityV2/index.ts +102 -102
  79. package/src/markets/llamaLend/contractAddresses.ts +141 -141
  80. package/src/markets/llamaLend/index.ts +235 -235
  81. package/src/markets/morphoBlue/index.ts +895 -895
  82. package/src/markets/spark/index.ts +29 -29
  83. package/src/markets/spark/marketAssets.ts +11 -10
  84. package/src/moneymarket/moneymarketCommonService.ts +80 -80
  85. package/src/morphoBlue/index.ts +222 -222
  86. package/src/portfolio/index.ts +285 -285
  87. package/src/services/priceService.ts +159 -159
  88. package/src/services/utils.ts +63 -63
  89. package/src/services/viem.ts +32 -30
  90. package/src/setup.ts +8 -8
  91. package/src/spark/index.ts +456 -456
  92. package/src/staking/staking.ts +193 -193
  93. package/src/types/aave.ts +194 -194
  94. package/src/types/common.ts +88 -87
  95. package/src/types/compound.ts +136 -136
  96. package/src/types/curveUsd.ts +121 -121
  97. package/src/types/euler.ts +174 -174
  98. package/src/types/fluid.ts +450 -450
  99. package/src/types/index.ts +11 -11
  100. package/src/types/liquity.ts +30 -30
  101. package/src/types/liquityV2.ts +126 -126
  102. package/src/types/llamaLend.ts +157 -157
  103. package/src/types/maker.ts +63 -63
  104. package/src/types/morphoBlue.ts +194 -194
  105. package/src/types/portfolio.ts +60 -60
  106. package/src/types/spark.ts +137 -137
package/.mocharc.json CHANGED
@@ -1,4 +1,4 @@
1
- {
2
- "require": "ts-node/register",
3
- "extension": ["ts"]
4
- }
1
+ {
2
+ "require": "ts-node/register",
3
+ "extension": ["ts"]
4
+ }
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- v20.17.0
1
+ v20.17.0
package/README.md CHANGED
@@ -1,64 +1,64 @@
1
- # DeFi Saver Positions SDK
2
-
3
- Supported protocols:
4
- - [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
5
- - [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
6
- - [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
7
- - [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
8
- - [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
9
- - [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
10
- - [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
11
- - [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
12
-
13
- ## Setup
14
- Supported Node version is v10.
15
-
16
- - run `npm install` (first time)
17
- - run `npm run build`
18
-
19
- `build` command will generate contracts and build ejs and esm folders
20
-
21
- ## How to use
22
- [All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
23
-
24
- This is a Compound V3 example, and every other protocol is similar
25
- ```js
26
- import { compoundV3 } from '@defisaver/positions-sdk';
27
-
28
-
29
- // every protocol has market data and user data getters
30
- const {
31
- getCompoundV3MarketsData,
32
- getCompoundV3AccountData,
33
- } = compoundV3;
34
-
35
- const provider = 'Your RPC provider';
36
-
37
- const user = '0x123...';
38
-
39
- const { assetsData } = await getCompoundV3MarketsData(
40
- provider, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
41
- 1, // network
42
- selectedMarket, // market object like in /src/markets/compound/index.ts
43
- provider, // this must be mainnet rpc - used for getting prices onchain and calculating apys
44
- );
45
-
46
- const userData = await getCompoundV3AccountData(
47
- provider,
48
- 1, // network
49
- userAddress, // EOA or DSProxy
50
- '', // proxy address of the user, or just empty string if checking for EOA
51
- {
52
- selectedMarket, // market object as in /src/markets/compound/index.ts
53
- assetsData,
54
- }
55
- );
56
- ```
57
-
58
- More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
59
-
60
- ## Testing
61
-
62
- `npm run test` - Run all tests
63
-
64
- `npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
1
+ # DeFi Saver Positions SDK
2
+
3
+ Supported protocols:
4
+ - [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
5
+ - [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
6
+ - [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
7
+ - [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
8
+ - [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
9
+ - [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
10
+ - [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
11
+ - [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
12
+
13
+ ## Setup
14
+ Supported Node version is v10.
15
+
16
+ - run `npm install` (first time)
17
+ - run `npm run build`
18
+
19
+ `build` command will generate contracts and build ejs and esm folders
20
+
21
+ ## How to use
22
+ [All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
23
+
24
+ This is a Compound V3 example, and every other protocol is similar
25
+ ```js
26
+ import { compoundV3 } from '@defisaver/positions-sdk';
27
+
28
+
29
+ // every protocol has market data and user data getters
30
+ const {
31
+ getCompoundV3MarketsData,
32
+ getCompoundV3AccountData,
33
+ } = compoundV3;
34
+
35
+ const provider = 'Your RPC provider';
36
+
37
+ const user = '0x123...';
38
+
39
+ const { assetsData } = await getCompoundV3MarketsData(
40
+ provider, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
41
+ 1, // network
42
+ selectedMarket, // market object like in /src/markets/compound/index.ts
43
+ provider, // this must be mainnet rpc - used for getting prices onchain and calculating apys
44
+ );
45
+
46
+ const userData = await getCompoundV3AccountData(
47
+ provider,
48
+ 1, // network
49
+ userAddress, // EOA or DSProxy
50
+ '', // proxy address of the user, or just empty string if checking for EOA
51
+ {
52
+ selectedMarket, // market object as in /src/markets/compound/index.ts
53
+ assetsData,
54
+ }
55
+ );
56
+ ```
57
+
58
+ More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
59
+
60
+ ## Testing
61
+
62
+ `npm run test` - Run all tests
63
+
64
+ `npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
@@ -58,7 +58,7 @@ function _getAaveV3MarketData(provider_1, network_1, market_1) {
58
58
  const loanInfoContract = (0, contracts_1.AaveV3ViewContractViem)(provider, network);
59
59
  const aaveIncentivesContract = (0, contracts_1.AaveIncentiveDataProviderV3ContractViem)(provider, network);
60
60
  const marketAddress = market.providerAddress;
61
- const networksWithIncentives = [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt];
61
+ const networksWithIncentives = [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt, common_1.NetworkNumber.Linea];
62
62
  // eslint-disable-next-line prefer-const
63
63
  let [loanInfo, eModesInfo, isBorrowAllowed, rewardInfo] = yield Promise.all([
64
64
  loanInfoContract.read.getFullTokensInfo([marketAddress, _addresses], (0, viem_1.setViemBlockNumber)(blockNumber)),
@@ -23639,6 +23639,11 @@ export declare const AaveV3View: {
23639
23639
  };
23640
23640
  };
23641
23641
  };
23642
+ readonly "59144": {
23643
+ readonly address: "0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A";
23644
+ readonly createdBlock: 22819962;
23645
+ readonly oldVersions: {};
23646
+ };
23642
23647
  };
23643
23648
  };
23644
23649
  export declare const AaveV3PoolAddressesProvider: {
@@ -24096,6 +24101,9 @@ export declare const AaveV3PoolAddressesProvider: {
24096
24101
  readonly "8453": {
24097
24102
  readonly address: "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D";
24098
24103
  };
24104
+ readonly "59144": {
24105
+ readonly address: "0x89502c3731F69DDC95B65753708A07F8Cd0373F4";
24106
+ };
24099
24107
  };
24100
24108
  };
24101
24109
  export declare const AaveV3LidoPoolAddressesProvider: {
@@ -26463,6 +26471,9 @@ export declare const AaveV3LendingPool: {
26463
26471
  readonly "8453": {
26464
26472
  readonly address: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5";
26465
26473
  };
26474
+ readonly "59144": {
26475
+ readonly address: "0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac";
26476
+ };
26466
26477
  };
26467
26478
  };
26468
26479
  export declare const AaveV3LidoLendingPool: {
@@ -29794,6 +29805,9 @@ export declare const AaveV3ProtocolDataProvider: {
29794
29805
  readonly "8453": {
29795
29806
  readonly address: "0x2d8A3C5677189723C4cB8873CfC9C8976FDF38Ac";
29796
29807
  };
29808
+ readonly "59144": {
29809
+ readonly address: "0x47cd4b507B81cB831669c71c7077f4daF6762FF4";
29810
+ };
29797
29811
  };
29798
29812
  };
29799
29813
  export declare const AaveV3LidoProtocolDataProvider: {
@@ -30598,8 +30612,12 @@ export declare const AaveUiIncentiveDataProviderV3: {
30598
30612
  readonly internalType: "contract IPoolAddressesProvider";
30599
30613
  readonly name: "provider";
30600
30614
  readonly type: "address";
30615
+ }, {
30616
+ readonly internalType: "address";
30617
+ readonly name: "user";
30618
+ readonly type: "address";
30601
30619
  }];
30602
- readonly name: "getReservesIncentivesData";
30620
+ readonly name: "getFullReservesIncentiveData";
30603
30621
  readonly outputs: readonly [{
30604
30622
  readonly components: readonly [{
30605
30623
  readonly internalType: "address";
@@ -30729,6 +30747,15 @@ export declare const AaveUiIncentiveDataProviderV3: {
30729
30747
  readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
30730
30748
  readonly name: "vIncentiveData";
30731
30749
  readonly type: "tuple";
30750
+ }];
30751
+ readonly internalType: "struct IUiIncentiveDataProviderV3.AggregatedReserveIncentiveData[]";
30752
+ readonly name: "";
30753
+ readonly type: "tuple[]";
30754
+ }, {
30755
+ readonly components: readonly [{
30756
+ readonly internalType: "address";
30757
+ readonly name: "underlyingAsset";
30758
+ readonly type: "address";
30732
30759
  }, {
30733
30760
  readonly components: readonly [{
30734
30761
  readonly internalType: "address";
@@ -30745,27 +30772,69 @@ export declare const AaveUiIncentiveDataProviderV3: {
30745
30772
  readonly type: "string";
30746
30773
  }, {
30747
30774
  readonly internalType: "address";
30748
- readonly name: "rewardTokenAddress";
30775
+ readonly name: "rewardOracleAddress";
30749
30776
  readonly type: "address";
30750
30777
  }, {
30751
30778
  readonly internalType: "address";
30752
- readonly name: "rewardOracleAddress";
30779
+ readonly name: "rewardTokenAddress";
30753
30780
  readonly type: "address";
30754
30781
  }, {
30755
30782
  readonly internalType: "uint256";
30756
- readonly name: "emissionPerSecond";
30783
+ readonly name: "userUnclaimedRewards";
30757
30784
  readonly type: "uint256";
30758
30785
  }, {
30759
30786
  readonly internalType: "uint256";
30760
- readonly name: "incentivesLastUpdateTimestamp";
30787
+ readonly name: "tokenIncentivesUserIndex";
30761
30788
  readonly type: "uint256";
30789
+ }, {
30790
+ readonly internalType: "int256";
30791
+ readonly name: "rewardPriceFeed";
30792
+ readonly type: "int256";
30793
+ }, {
30794
+ readonly internalType: "uint8";
30795
+ readonly name: "priceFeedDecimals";
30796
+ readonly type: "uint8";
30797
+ }, {
30798
+ readonly internalType: "uint8";
30799
+ readonly name: "rewardTokenDecimals";
30800
+ readonly type: "uint8";
30801
+ }];
30802
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserRewardInfo[]";
30803
+ readonly name: "userRewardsInformation";
30804
+ readonly type: "tuple[]";
30805
+ }];
30806
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30807
+ readonly name: "aTokenIncentivesUserData";
30808
+ readonly type: "tuple";
30809
+ }, {
30810
+ readonly components: readonly [{
30811
+ readonly internalType: "address";
30812
+ readonly name: "tokenAddress";
30813
+ readonly type: "address";
30814
+ }, {
30815
+ readonly internalType: "address";
30816
+ readonly name: "incentiveControllerAddress";
30817
+ readonly type: "address";
30818
+ }, {
30819
+ readonly components: readonly [{
30820
+ readonly internalType: "string";
30821
+ readonly name: "rewardTokenSymbol";
30822
+ readonly type: "string";
30823
+ }, {
30824
+ readonly internalType: "address";
30825
+ readonly name: "rewardOracleAddress";
30826
+ readonly type: "address";
30827
+ }, {
30828
+ readonly internalType: "address";
30829
+ readonly name: "rewardTokenAddress";
30830
+ readonly type: "address";
30762
30831
  }, {
30763
30832
  readonly internalType: "uint256";
30764
- readonly name: "tokenIncentivesIndex";
30833
+ readonly name: "userUnclaimedRewards";
30765
30834
  readonly type: "uint256";
30766
30835
  }, {
30767
30836
  readonly internalType: "uint256";
30768
- readonly name: "emissionEndTimestamp";
30837
+ readonly name: "tokenIncentivesUserIndex";
30769
30838
  readonly type: "uint256";
30770
30839
  }, {
30771
30840
  readonly internalType: "int256";
@@ -30773,26 +30842,22 @@ export declare const AaveUiIncentiveDataProviderV3: {
30773
30842
  readonly type: "int256";
30774
30843
  }, {
30775
30844
  readonly internalType: "uint8";
30776
- readonly name: "rewardTokenDecimals";
30777
- readonly type: "uint8";
30778
- }, {
30779
- readonly internalType: "uint8";
30780
- readonly name: "precision";
30845
+ readonly name: "priceFeedDecimals";
30781
30846
  readonly type: "uint8";
30782
30847
  }, {
30783
30848
  readonly internalType: "uint8";
30784
- readonly name: "priceFeedDecimals";
30849
+ readonly name: "rewardTokenDecimals";
30785
30850
  readonly type: "uint8";
30786
30851
  }];
30787
- readonly internalType: "struct IUiIncentiveDataProviderV3.RewardInfo[]";
30788
- readonly name: "rewardsTokenInformation";
30852
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserRewardInfo[]";
30853
+ readonly name: "userRewardsInformation";
30789
30854
  readonly type: "tuple[]";
30790
30855
  }];
30791
- readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
30792
- readonly name: "sIncentiveData";
30856
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30857
+ readonly name: "vTokenIncentivesUserData";
30793
30858
  readonly type: "tuple";
30794
30859
  }];
30795
- readonly internalType: "struct IUiIncentiveDataProviderV3.AggregatedReserveIncentiveData[]";
30860
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserReserveIncentiveData[]";
30796
30861
  readonly name: "";
30797
30862
  readonly type: "tuple[]";
30798
30863
  }];
@@ -30803,12 +30868,8 @@ export declare const AaveUiIncentiveDataProviderV3: {
30803
30868
  readonly internalType: "contract IPoolAddressesProvider";
30804
30869
  readonly name: "provider";
30805
30870
  readonly type: "address";
30806
- }, {
30807
- readonly internalType: "address";
30808
- readonly name: "user";
30809
- readonly type: "address";
30810
30871
  }];
30811
- readonly name: "getUserReservesIncentivesData";
30872
+ readonly name: "getReservesIncentivesData";
30812
30873
  readonly outputs: readonly [{
30813
30874
  readonly components: readonly [{
30814
30875
  readonly internalType: "address";
@@ -30830,40 +30891,137 @@ export declare const AaveUiIncentiveDataProviderV3: {
30830
30891
  readonly type: "string";
30831
30892
  }, {
30832
30893
  readonly internalType: "address";
30833
- readonly name: "rewardOracleAddress";
30894
+ readonly name: "rewardTokenAddress";
30834
30895
  readonly type: "address";
30835
30896
  }, {
30836
30897
  readonly internalType: "address";
30837
- readonly name: "rewardTokenAddress";
30898
+ readonly name: "rewardOracleAddress";
30838
30899
  readonly type: "address";
30839
30900
  }, {
30840
30901
  readonly internalType: "uint256";
30841
- readonly name: "userUnclaimedRewards";
30902
+ readonly name: "emissionPerSecond";
30842
30903
  readonly type: "uint256";
30843
30904
  }, {
30844
30905
  readonly internalType: "uint256";
30845
- readonly name: "tokenIncentivesUserIndex";
30906
+ readonly name: "incentivesLastUpdateTimestamp";
30907
+ readonly type: "uint256";
30908
+ }, {
30909
+ readonly internalType: "uint256";
30910
+ readonly name: "tokenIncentivesIndex";
30911
+ readonly type: "uint256";
30912
+ }, {
30913
+ readonly internalType: "uint256";
30914
+ readonly name: "emissionEndTimestamp";
30846
30915
  readonly type: "uint256";
30847
30916
  }, {
30848
30917
  readonly internalType: "int256";
30849
30918
  readonly name: "rewardPriceFeed";
30850
30919
  readonly type: "int256";
30920
+ }, {
30921
+ readonly internalType: "uint8";
30922
+ readonly name: "rewardTokenDecimals";
30923
+ readonly type: "uint8";
30924
+ }, {
30925
+ readonly internalType: "uint8";
30926
+ readonly name: "precision";
30927
+ readonly type: "uint8";
30851
30928
  }, {
30852
30929
  readonly internalType: "uint8";
30853
30930
  readonly name: "priceFeedDecimals";
30854
30931
  readonly type: "uint8";
30932
+ }];
30933
+ readonly internalType: "struct IUiIncentiveDataProviderV3.RewardInfo[]";
30934
+ readonly name: "rewardsTokenInformation";
30935
+ readonly type: "tuple[]";
30936
+ }];
30937
+ readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
30938
+ readonly name: "aIncentiveData";
30939
+ readonly type: "tuple";
30940
+ }, {
30941
+ readonly components: readonly [{
30942
+ readonly internalType: "address";
30943
+ readonly name: "tokenAddress";
30944
+ readonly type: "address";
30945
+ }, {
30946
+ readonly internalType: "address";
30947
+ readonly name: "incentiveControllerAddress";
30948
+ readonly type: "address";
30949
+ }, {
30950
+ readonly components: readonly [{
30951
+ readonly internalType: "string";
30952
+ readonly name: "rewardTokenSymbol";
30953
+ readonly type: "string";
30954
+ }, {
30955
+ readonly internalType: "address";
30956
+ readonly name: "rewardTokenAddress";
30957
+ readonly type: "address";
30958
+ }, {
30959
+ readonly internalType: "address";
30960
+ readonly name: "rewardOracleAddress";
30961
+ readonly type: "address";
30962
+ }, {
30963
+ readonly internalType: "uint256";
30964
+ readonly name: "emissionPerSecond";
30965
+ readonly type: "uint256";
30966
+ }, {
30967
+ readonly internalType: "uint256";
30968
+ readonly name: "incentivesLastUpdateTimestamp";
30969
+ readonly type: "uint256";
30970
+ }, {
30971
+ readonly internalType: "uint256";
30972
+ readonly name: "tokenIncentivesIndex";
30973
+ readonly type: "uint256";
30974
+ }, {
30975
+ readonly internalType: "uint256";
30976
+ readonly name: "emissionEndTimestamp";
30977
+ readonly type: "uint256";
30978
+ }, {
30979
+ readonly internalType: "int256";
30980
+ readonly name: "rewardPriceFeed";
30981
+ readonly type: "int256";
30855
30982
  }, {
30856
30983
  readonly internalType: "uint8";
30857
30984
  readonly name: "rewardTokenDecimals";
30858
30985
  readonly type: "uint8";
30986
+ }, {
30987
+ readonly internalType: "uint8";
30988
+ readonly name: "precision";
30989
+ readonly type: "uint8";
30990
+ }, {
30991
+ readonly internalType: "uint8";
30992
+ readonly name: "priceFeedDecimals";
30993
+ readonly type: "uint8";
30859
30994
  }];
30860
- readonly internalType: "struct IUiIncentiveDataProviderV3.UserRewardInfo[]";
30861
- readonly name: "userRewardsInformation";
30995
+ readonly internalType: "struct IUiIncentiveDataProviderV3.RewardInfo[]";
30996
+ readonly name: "rewardsTokenInformation";
30862
30997
  readonly type: "tuple[]";
30863
30998
  }];
30864
- readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30865
- readonly name: "aTokenIncentivesUserData";
30999
+ readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
31000
+ readonly name: "vIncentiveData";
30866
31001
  readonly type: "tuple";
31002
+ }];
31003
+ readonly internalType: "struct IUiIncentiveDataProviderV3.AggregatedReserveIncentiveData[]";
31004
+ readonly name: "";
31005
+ readonly type: "tuple[]";
31006
+ }];
31007
+ readonly stateMutability: "view";
31008
+ readonly type: "function";
31009
+ }, {
31010
+ readonly inputs: readonly [{
31011
+ readonly internalType: "contract IPoolAddressesProvider";
31012
+ readonly name: "provider";
31013
+ readonly type: "address";
31014
+ }, {
31015
+ readonly internalType: "address";
31016
+ readonly name: "user";
31017
+ readonly type: "address";
31018
+ }];
31019
+ readonly name: "getUserReservesIncentivesData";
31020
+ readonly outputs: readonly [{
31021
+ readonly components: readonly [{
31022
+ readonly internalType: "address";
31023
+ readonly name: "underlyingAsset";
31024
+ readonly type: "address";
30867
31025
  }, {
30868
31026
  readonly components: readonly [{
30869
31027
  readonly internalType: "address";
@@ -30912,7 +31070,7 @@ export declare const AaveUiIncentiveDataProviderV3: {
30912
31070
  readonly type: "tuple[]";
30913
31071
  }];
30914
31072
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30915
- readonly name: "vTokenIncentivesUserData";
31073
+ readonly name: "aTokenIncentivesUserData";
30916
31074
  readonly type: "tuple";
30917
31075
  }, {
30918
31076
  readonly components: readonly [{
@@ -30962,7 +31120,7 @@ export declare const AaveUiIncentiveDataProviderV3: {
30962
31120
  readonly type: "tuple[]";
30963
31121
  }];
30964
31122
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30965
- readonly name: "sTokenIncentivesUserData";
31123
+ readonly name: "vTokenIncentivesUserData";
30966
31124
  readonly type: "tuple";
30967
31125
  }];
30968
31126
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserReserveIncentiveData[]";
@@ -30985,6 +31143,9 @@ export declare const AaveUiIncentiveDataProviderV3: {
30985
31143
  readonly "42161": {
30986
31144
  readonly address: "0xE92cd6164CE7DC68e740765BC1f2a091B6CBc3e4";
30987
31145
  };
31146
+ readonly "59144": {
31147
+ readonly address: "0x117684358D990E42Eb1649E7e8C4691951dc1E71";
31148
+ };
30988
31149
  };
30989
31150
  };
30990
31151
  export declare const cUSDCv3: {