@gearbox-protocol/periphery-v3 1.7.0-next.43 → 1.7.0-next.44

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.
@@ -30,6 +30,9 @@ import {IStakingRewards} from "@gearbox-protocol/integrations-v3/contracts/integ
30
30
  contract RewardsCompressor is IRewardsCompressor {
31
31
  using RewardInfoLib for RewardInfo[];
32
32
 
33
+ uint256 public constant override version = 3_10;
34
+ bytes32 public constant override contractType = "REWARDS_COMPRESSOR";
35
+
33
36
  /// @notice Returns array of earned rewards for a credit account across all adapters
34
37
  /// @param creditAccount Address of the credit account to check
35
38
  /// @return rewards Array of RewardInfo structs containing reward information
@@ -3,6 +3,8 @@
3
3
  // (c) Gearbox Foundation, 2024.
4
4
  pragma solidity ^0.8.23;
5
5
 
6
+ import {IVersion} from "@gearbox-protocol/core-v3/contracts/interfaces/base/IVersion.sol";
7
+
6
8
  /// @title Reward info struct
7
9
  struct RewardInfo {
8
10
  uint256 amount;
@@ -70,7 +72,7 @@ interface IConvexToken {
70
72
 
71
73
  /// @title Rewards compressor interface
72
74
  /// @notice Compresses information about earned rewards for various staking adapters
73
- interface IRewardsCompressor {
75
+ interface IRewardsCompressor is IVersion {
74
76
  /// @notice Returns array of earned rewards for a credit account across all adapters
75
77
  /// @param creditAccount Address of the credit account to check
76
78
  /// @return rewards Array of RewardInfo structs containing reward information
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/periphery-v3",
3
- "version": "1.7.0-next.43",
3
+ "version": "1.7.0-next.44",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:Gearbox-protocol/periphery-v3.git",
6
6
  "author": "Mikael <26343374+0xmikko@users.noreply.github.com>",