@gearbox-protocol/sdk 8.26.4 → 8.26.5

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.
@@ -112,7 +112,9 @@ class PythUpdater extends import_base.SDKConstruct {
112
112
  }
113
113
  let tsRange = "";
114
114
  if (results.length) {
115
- tsRange = `, timestamp range: ${minTimestamp} - ${maxTimestamp}`;
115
+ const minDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
116
+ const maxDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
117
+ tsRange = `, timestamps ${minTimestamp} (${minDelta}) - ${maxTimestamp} (${maxDelta})`;
116
118
  }
117
119
  this.#logger?.debug(
118
120
  logContext,
@@ -140,7 +140,9 @@ class RedstoneUpdater extends import_base.SDKConstruct {
140
140
  }
141
141
  let tsRange = "";
142
142
  if (results.length) {
143
- tsRange = `, timestamp range: ${minTimestamp} - ${maxTimestamp}`;
143
+ const minDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
144
+ const maxDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
145
+ tsRange = `, timestamps ${minTimestamp} (${minDelta}) - ${maxTimestamp} (${maxDelta})`;
144
146
  }
145
147
  this.#logger?.debug(
146
148
  logContext,
@@ -92,7 +92,9 @@ class PythUpdater extends SDKConstruct {
92
92
  }
93
93
  let tsRange = "";
94
94
  if (results.length) {
95
- tsRange = `, timestamp range: ${minTimestamp} - ${maxTimestamp}`;
95
+ const minDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
96
+ const maxDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
97
+ tsRange = `, timestamps ${minTimestamp} (${minDelta}) - ${maxTimestamp} (${maxDelta})`;
96
98
  }
97
99
  this.#logger?.debug(
98
100
  logContext,
@@ -116,7 +116,9 @@ class RedstoneUpdater extends SDKConstruct {
116
116
  }
117
117
  let tsRange = "";
118
118
  if (results.length) {
119
- tsRange = `, timestamp range: ${minTimestamp} - ${maxTimestamp}`;
119
+ const minDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
120
+ const maxDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
121
+ tsRange = `, timestamps ${minTimestamp} (${minDelta}) - ${maxTimestamp} (${maxDelta})`;
120
122
  }
121
123
  this.#logger?.debug(
122
124
  logContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.26.4",
3
+ "version": "8.26.5",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",