@hyperbridge/core 1.5.0 → 1.5.1

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.
@@ -23,20 +23,6 @@ import {TokenInfo} from "./IntentGatewayV2.sol";
23
23
  * @dev Only supports same-token swaps across chains
24
24
  */
25
25
  interface IIntentPriceOracle {
26
- /**
27
- * @notice Struct to track cumulative spread data for weighted average calculation
28
- */
29
- struct CumulativeSpreadData {
30
- /// @dev Sum of (spread * volume) for all fills
31
- int256 weightedSpreadSum;
32
- /// @dev Total volume in normalized token units (18 decimals)
33
- uint256 totalVolume;
34
- /// @dev Number of fills
35
- uint256 fillCount;
36
- /// @dev Last update timestamp
37
- uint256 lastUpdate;
38
- }
39
-
40
26
  /**
41
27
  * @notice Event emitted when spread is recorded for a filled order
42
28
  * @param commitment The order commitment hash
@@ -81,5 +67,5 @@ interface IIntentPriceOracle {
81
67
  * @param token The token address
82
68
  * @return data The cumulative spread data
83
69
  */
84
- function spread(bytes memory sourceChain, address token) external view returns (CumulativeSpreadData memory data);
70
+ function spread(bytes memory sourceChain, address token) external view returns (int256 data);
85
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbridge/core",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Hyperbridge Solidity SDK for dispatching & receiving cross-chain messages",
5
5
  "author": "Polytope Labs <hello@polytope.technology>",
6
6
  "license": "Apache-2.0",