@gearbox-protocol/sdk 9.12.6 → 9.12.8
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.
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -0
- package/dist/cjs/sdk/market/pricefeeds/updates/RedstoneUpdater.js +3 -0
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -0
- package/dist/esm/sdk/market/pricefeeds/updates/RedstoneUpdater.js +3 -0
- package/package.json +1 -1
|
@@ -109,6 +109,9 @@ class PriceFeedRegister extends import_base.SDKConstruct {
|
|
|
109
109
|
txs.push(tx);
|
|
110
110
|
latestUpdate.updates.push(data);
|
|
111
111
|
}
|
|
112
|
+
txs.sort(
|
|
113
|
+
(a, b) => a.raw.to.toLowerCase().localeCompare(b.raw.to.toLowerCase())
|
|
114
|
+
);
|
|
112
115
|
const result = { txs, timestamp: maxTimestamp };
|
|
113
116
|
const tsDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
|
|
114
117
|
this.logger?.debug(
|
|
@@ -222,6 +222,9 @@ class RedstoneUpdater extends import_base.SDKConstruct {
|
|
|
222
222
|
ignoreMissingFeed: this.#ignoreMissingFeeds,
|
|
223
223
|
enableEnhancedLogs: this.#enableLogging
|
|
224
224
|
});
|
|
225
|
+
wrapper.setMetadataTimestamp(
|
|
226
|
+
this.#historicalTimestampMs ?? Number(this.sdk.timestamp) * 1e3
|
|
227
|
+
);
|
|
225
228
|
const dataPayload = await (0, import_utils.retry)(
|
|
226
229
|
() => wrapper.prepareRedstonePayload(true),
|
|
227
230
|
{ attempts: 5, interval: this.#historicalTimestampMs ? 30500 : 250 }
|
|
@@ -98,6 +98,9 @@ class PriceFeedRegister extends SDKConstruct {
|
|
|
98
98
|
txs.push(tx);
|
|
99
99
|
latestUpdate.updates.push(data);
|
|
100
100
|
}
|
|
101
|
+
txs.sort(
|
|
102
|
+
(a, b) => a.raw.to.toLowerCase().localeCompare(b.raw.to.toLowerCase())
|
|
103
|
+
);
|
|
101
104
|
const result = { txs, timestamp: maxTimestamp };
|
|
102
105
|
const tsDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
|
|
103
106
|
this.logger?.debug(
|
|
@@ -200,6 +200,9 @@ class RedstoneUpdater extends SDKConstruct {
|
|
|
200
200
|
ignoreMissingFeed: this.#ignoreMissingFeeds,
|
|
201
201
|
enableEnhancedLogs: this.#enableLogging
|
|
202
202
|
});
|
|
203
|
+
wrapper.setMetadataTimestamp(
|
|
204
|
+
this.#historicalTimestampMs ?? Number(this.sdk.timestamp) * 1e3
|
|
205
|
+
);
|
|
203
206
|
const dataPayload = await retry(
|
|
204
207
|
() => wrapper.prepareRedstonePayload(true),
|
|
205
208
|
{ attempts: 5, interval: this.#historicalTimestampMs ? 30500 : 250 }
|