@defisaver/positions-sdk 2.0.10-dev-linea-1 → 2.0.10

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 (104) 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 +33 -194
  6. package/cjs/config/contracts.js +1 -18
  7. package/cjs/contracts.d.ts +293 -1283
  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 +0 -4
  11. package/cjs/markets/aave/marketAssets.js +1 -5
  12. package/cjs/markets/compound/index.js +0 -11
  13. package/cjs/markets/compound/marketsAssets.d.ts +0 -7
  14. package/cjs/markets/compound/marketsAssets.js +0 -7
  15. package/cjs/markets/spark/marketAssets.d.ts +0 -1
  16. package/cjs/markets/spark/marketAssets.js +0 -1
  17. package/cjs/portfolio/index.js +2 -2
  18. package/cjs/services/viem.d.ts +0 -46
  19. package/cjs/services/viem.js +0 -2
  20. package/cjs/types/common.d.ts +1 -2
  21. package/cjs/types/common.js +0 -1
  22. package/esm/aaveV3/index.js +1 -1
  23. package/esm/config/contracts.d.ts +33 -194
  24. package/esm/config/contracts.js +1 -18
  25. package/esm/contracts.d.ts +293 -1283
  26. package/esm/helpers/morphoBlueHelpers/index.js +66 -66
  27. package/esm/markets/aave/index.js +1 -1
  28. package/esm/markets/aave/marketAssets.d.ts +0 -4
  29. package/esm/markets/aave/marketAssets.js +0 -4
  30. package/esm/markets/compound/index.js +0 -11
  31. package/esm/markets/compound/marketsAssets.d.ts +0 -7
  32. package/esm/markets/compound/marketsAssets.js +0 -7
  33. package/esm/markets/spark/marketAssets.d.ts +0 -1
  34. package/esm/markets/spark/marketAssets.js +0 -1
  35. package/esm/portfolio/index.js +2 -2
  36. package/esm/services/viem.d.ts +0 -46
  37. package/esm/services/viem.js +1 -3
  38. package/esm/types/common.d.ts +1 -2
  39. package/esm/types/common.js +0 -1
  40. package/package.json +47 -47
  41. package/src/aaveV2/index.ts +236 -236
  42. package/src/aaveV3/index.ts +489 -489
  43. package/src/compoundV2/index.ts +240 -240
  44. package/src/compoundV3/index.ts +270 -270
  45. package/src/config/contracts.ts +1090 -1107
  46. package/src/constants/index.ts +6 -6
  47. package/src/contracts.ts +107 -107
  48. package/src/curveUsd/index.ts +250 -250
  49. package/src/eulerV2/index.ts +314 -314
  50. package/src/exchange/index.ts +25 -25
  51. package/src/fluid/index.ts +1568 -1568
  52. package/src/helpers/aaveHelpers/index.ts +170 -170
  53. package/src/helpers/compoundHelpers/index.ts +261 -261
  54. package/src/helpers/curveUsdHelpers/index.ts +40 -40
  55. package/src/helpers/eulerHelpers/index.ts +259 -259
  56. package/src/helpers/fluidHelpers/index.ts +324 -324
  57. package/src/helpers/index.ts +10 -10
  58. package/src/helpers/liquityV2Helpers/index.ts +80 -80
  59. package/src/helpers/llamaLendHelpers/index.ts +53 -53
  60. package/src/helpers/makerHelpers/index.ts +52 -52
  61. package/src/helpers/morphoBlueHelpers/index.ts +390 -390
  62. package/src/helpers/sparkHelpers/index.ts +155 -155
  63. package/src/index.ts +45 -45
  64. package/src/liquity/index.ts +104 -104
  65. package/src/liquityV2/index.ts +408 -408
  66. package/src/llamaLend/index.ts +296 -296
  67. package/src/maker/index.ts +223 -223
  68. package/src/markets/aave/index.ts +116 -116
  69. package/src/markets/aave/marketAssets.ts +44 -49
  70. package/src/markets/compound/index.ts +216 -227
  71. package/src/markets/compound/marketsAssets.ts +83 -90
  72. package/src/markets/curveUsd/index.ts +69 -69
  73. package/src/markets/euler/index.ts +26 -26
  74. package/src/markets/fluid/index.ts +2456 -2456
  75. package/src/markets/index.ts +25 -25
  76. package/src/markets/liquityV2/index.ts +102 -102
  77. package/src/markets/llamaLend/contractAddresses.ts +141 -141
  78. package/src/markets/llamaLend/index.ts +235 -235
  79. package/src/markets/morphoBlue/index.ts +895 -895
  80. package/src/markets/spark/index.ts +29 -29
  81. package/src/markets/spark/marketAssets.ts +10 -11
  82. package/src/moneymarket/moneymarketCommonService.ts +80 -80
  83. package/src/morphoBlue/index.ts +222 -222
  84. package/src/portfolio/index.ts +285 -285
  85. package/src/services/priceService.ts +159 -159
  86. package/src/services/utils.ts +63 -63
  87. package/src/services/viem.ts +30 -32
  88. package/src/setup.ts +8 -8
  89. package/src/spark/index.ts +456 -456
  90. package/src/staking/staking.ts +192 -192
  91. package/src/types/aave.ts +194 -194
  92. package/src/types/common.ts +87 -88
  93. package/src/types/compound.ts +136 -136
  94. package/src/types/curveUsd.ts +121 -121
  95. package/src/types/euler.ts +174 -174
  96. package/src/types/fluid.ts +450 -450
  97. package/src/types/index.ts +11 -11
  98. package/src/types/liquity.ts +30 -30
  99. package/src/types/liquityV2.ts +126 -126
  100. package/src/types/llamaLend.ts +157 -157
  101. package/src/types/maker.ts +63 -63
  102. package/src/types/morphoBlue.ts +194 -194
  103. package/src/types/portfolio.ts +60 -60
  104. 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, common_1.NetworkNumber.Linea];
61
+ const networksWithIncentives = [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt];
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,11 +23639,6 @@ 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
- };
23647
23642
  };
23648
23643
  };
23649
23644
  export declare const AaveV3PoolAddressesProvider: {
@@ -24101,9 +24096,6 @@ export declare const AaveV3PoolAddressesProvider: {
24101
24096
  readonly "8453": {
24102
24097
  readonly address: "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D";
24103
24098
  };
24104
- readonly "59144": {
24105
- readonly address: "0x89502c3731F69DDC95B65753708A07F8Cd0373F4";
24106
- };
24107
24099
  };
24108
24100
  };
24109
24101
  export declare const AaveV3LidoPoolAddressesProvider: {
@@ -26471,9 +26463,6 @@ export declare const AaveV3LendingPool: {
26471
26463
  readonly "8453": {
26472
26464
  readonly address: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5";
26473
26465
  };
26474
- readonly "59144": {
26475
- readonly address: "0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac";
26476
- };
26477
26466
  };
26478
26467
  };
26479
26468
  export declare const AaveV3LidoLendingPool: {
@@ -29805,9 +29794,6 @@ export declare const AaveV3ProtocolDataProvider: {
29805
29794
  readonly "8453": {
29806
29795
  readonly address: "0x2d8A3C5677189723C4cB8873CfC9C8976FDF38Ac";
29807
29796
  };
29808
- readonly "59144": {
29809
- readonly address: "0x47cd4b507B81cB831669c71c7077f4daF6762FF4";
29810
- };
29811
29797
  };
29812
29798
  };
29813
29799
  export declare const AaveV3LidoProtocolDataProvider: {
@@ -30612,12 +30598,8 @@ export declare const AaveUiIncentiveDataProviderV3: {
30612
30598
  readonly internalType: "contract IPoolAddressesProvider";
30613
30599
  readonly name: "provider";
30614
30600
  readonly type: "address";
30615
- }, {
30616
- readonly internalType: "address";
30617
- readonly name: "user";
30618
- readonly type: "address";
30619
30601
  }];
30620
- readonly name: "getFullReservesIncentiveData";
30602
+ readonly name: "getReservesIncentivesData";
30621
30603
  readonly outputs: readonly [{
30622
30604
  readonly components: readonly [{
30623
30605
  readonly internalType: "address";
@@ -30747,15 +30729,6 @@ export declare const AaveUiIncentiveDataProviderV3: {
30747
30729
  readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
30748
30730
  readonly name: "vIncentiveData";
30749
30731
  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";
30759
30732
  }, {
30760
30733
  readonly components: readonly [{
30761
30734
  readonly internalType: "address";
@@ -30772,69 +30745,27 @@ export declare const AaveUiIncentiveDataProviderV3: {
30772
30745
  readonly type: "string";
30773
30746
  }, {
30774
30747
  readonly internalType: "address";
30775
- readonly name: "rewardOracleAddress";
30748
+ readonly name: "rewardTokenAddress";
30776
30749
  readonly type: "address";
30777
30750
  }, {
30778
30751
  readonly internalType: "address";
30779
- readonly name: "rewardTokenAddress";
30752
+ readonly name: "rewardOracleAddress";
30780
30753
  readonly type: "address";
30781
30754
  }, {
30782
30755
  readonly internalType: "uint256";
30783
- readonly name: "userUnclaimedRewards";
30756
+ readonly name: "emissionPerSecond";
30784
30757
  readonly type: "uint256";
30785
30758
  }, {
30786
30759
  readonly internalType: "uint256";
30787
- readonly name: "tokenIncentivesUserIndex";
30760
+ readonly name: "incentivesLastUpdateTimestamp";
30788
30761
  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";
30831
30762
  }, {
30832
30763
  readonly internalType: "uint256";
30833
- readonly name: "userUnclaimedRewards";
30764
+ readonly name: "tokenIncentivesIndex";
30834
30765
  readonly type: "uint256";
30835
30766
  }, {
30836
30767
  readonly internalType: "uint256";
30837
- readonly name: "tokenIncentivesUserIndex";
30768
+ readonly name: "emissionEndTimestamp";
30838
30769
  readonly type: "uint256";
30839
30770
  }, {
30840
30771
  readonly internalType: "int256";
@@ -30842,22 +30773,26 @@ export declare const AaveUiIncentiveDataProviderV3: {
30842
30773
  readonly type: "int256";
30843
30774
  }, {
30844
30775
  readonly internalType: "uint8";
30845
- readonly name: "priceFeedDecimals";
30776
+ readonly name: "rewardTokenDecimals";
30846
30777
  readonly type: "uint8";
30847
30778
  }, {
30848
30779
  readonly internalType: "uint8";
30849
- readonly name: "rewardTokenDecimals";
30780
+ readonly name: "precision";
30781
+ readonly type: "uint8";
30782
+ }, {
30783
+ readonly internalType: "uint8";
30784
+ readonly name: "priceFeedDecimals";
30850
30785
  readonly type: "uint8";
30851
30786
  }];
30852
- readonly internalType: "struct IUiIncentiveDataProviderV3.UserRewardInfo[]";
30853
- readonly name: "userRewardsInformation";
30787
+ readonly internalType: "struct IUiIncentiveDataProviderV3.RewardInfo[]";
30788
+ readonly name: "rewardsTokenInformation";
30854
30789
  readonly type: "tuple[]";
30855
30790
  }];
30856
- readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30857
- readonly name: "vTokenIncentivesUserData";
30791
+ readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
30792
+ readonly name: "sIncentiveData";
30858
30793
  readonly type: "tuple";
30859
30794
  }];
30860
- readonly internalType: "struct IUiIncentiveDataProviderV3.UserReserveIncentiveData[]";
30795
+ readonly internalType: "struct IUiIncentiveDataProviderV3.AggregatedReserveIncentiveData[]";
30861
30796
  readonly name: "";
30862
30797
  readonly type: "tuple[]";
30863
30798
  }];
@@ -30868,8 +30803,12 @@ export declare const AaveUiIncentiveDataProviderV3: {
30868
30803
  readonly internalType: "contract IPoolAddressesProvider";
30869
30804
  readonly name: "provider";
30870
30805
  readonly type: "address";
30806
+ }, {
30807
+ readonly internalType: "address";
30808
+ readonly name: "user";
30809
+ readonly type: "address";
30871
30810
  }];
30872
- readonly name: "getReservesIncentivesData";
30811
+ readonly name: "getUserReservesIncentivesData";
30873
30812
  readonly outputs: readonly [{
30874
30813
  readonly components: readonly [{
30875
30814
  readonly internalType: "address";
@@ -30889,91 +30828,21 @@ export declare const AaveUiIncentiveDataProviderV3: {
30889
30828
  readonly internalType: "string";
30890
30829
  readonly name: "rewardTokenSymbol";
30891
30830
  readonly type: "string";
30892
- }, {
30893
- readonly internalType: "address";
30894
- readonly name: "rewardTokenAddress";
30895
- readonly type: "address";
30896
30831
  }, {
30897
30832
  readonly internalType: "address";
30898
30833
  readonly name: "rewardOracleAddress";
30899
30834
  readonly type: "address";
30900
- }, {
30901
- readonly internalType: "uint256";
30902
- readonly name: "emissionPerSecond";
30903
- readonly type: "uint256";
30904
- }, {
30905
- readonly internalType: "uint256";
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";
30915
- readonly type: "uint256";
30916
- }, {
30917
- readonly internalType: "int256";
30918
- readonly name: "rewardPriceFeed";
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";
30928
- }, {
30929
- readonly internalType: "uint8";
30930
- readonly name: "priceFeedDecimals";
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
30835
  }, {
30955
30836
  readonly internalType: "address";
30956
30837
  readonly name: "rewardTokenAddress";
30957
30838
  readonly type: "address";
30958
- }, {
30959
- readonly internalType: "address";
30960
- readonly name: "rewardOracleAddress";
30961
- readonly type: "address";
30962
30839
  }, {
30963
30840
  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";
30841
+ readonly name: "userUnclaimedRewards";
30973
30842
  readonly type: "uint256";
30974
30843
  }, {
30975
30844
  readonly internalType: "uint256";
30976
- readonly name: "emissionEndTimestamp";
30845
+ readonly name: "tokenIncentivesUserIndex";
30977
30846
  readonly type: "uint256";
30978
30847
  }, {
30979
30848
  readonly internalType: "int256";
@@ -30981,47 +30850,20 @@ export declare const AaveUiIncentiveDataProviderV3: {
30981
30850
  readonly type: "int256";
30982
30851
  }, {
30983
30852
  readonly internalType: "uint8";
30984
- readonly name: "rewardTokenDecimals";
30985
- readonly type: "uint8";
30986
- }, {
30987
- readonly internalType: "uint8";
30988
- readonly name: "precision";
30853
+ readonly name: "priceFeedDecimals";
30989
30854
  readonly type: "uint8";
30990
30855
  }, {
30991
30856
  readonly internalType: "uint8";
30992
- readonly name: "priceFeedDecimals";
30857
+ readonly name: "rewardTokenDecimals";
30993
30858
  readonly type: "uint8";
30994
30859
  }];
30995
- readonly internalType: "struct IUiIncentiveDataProviderV3.RewardInfo[]";
30996
- readonly name: "rewardsTokenInformation";
30860
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserRewardInfo[]";
30861
+ readonly name: "userRewardsInformation";
30997
30862
  readonly type: "tuple[]";
30998
30863
  }];
30999
- readonly internalType: "struct IUiIncentiveDataProviderV3.IncentiveData";
31000
- readonly name: "vIncentiveData";
30864
+ readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
30865
+ readonly name: "aTokenIncentivesUserData";
31001
30866
  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";
31025
30867
  }, {
31026
30868
  readonly components: readonly [{
31027
30869
  readonly internalType: "address";
@@ -31070,7 +30912,7 @@ export declare const AaveUiIncentiveDataProviderV3: {
31070
30912
  readonly type: "tuple[]";
31071
30913
  }];
31072
30914
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
31073
- readonly name: "aTokenIncentivesUserData";
30915
+ readonly name: "vTokenIncentivesUserData";
31074
30916
  readonly type: "tuple";
31075
30917
  }, {
31076
30918
  readonly components: readonly [{
@@ -31120,7 +30962,7 @@ export declare const AaveUiIncentiveDataProviderV3: {
31120
30962
  readonly type: "tuple[]";
31121
30963
  }];
31122
30964
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserIncentiveData";
31123
- readonly name: "vTokenIncentivesUserData";
30965
+ readonly name: "sTokenIncentivesUserData";
31124
30966
  readonly type: "tuple";
31125
30967
  }];
31126
30968
  readonly internalType: "struct IUiIncentiveDataProviderV3.UserReserveIncentiveData[]";
@@ -31143,9 +30985,6 @@ export declare const AaveUiIncentiveDataProviderV3: {
31143
30985
  readonly "42161": {
31144
30986
  readonly address: "0xE92cd6164CE7DC68e740765BC1f2a091B6CBc3e4";
31145
30987
  };
31146
- readonly "59144": {
31147
- readonly address: "0x117684358D990E42Eb1649E7e8C4691951dc1E71";
31148
- };
31149
30988
  };
31150
30989
  };
31151
30990
  export declare const cUSDCv3: {