@gearbox-protocol/sdk 8.24.0 → 8.24.2
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/updates/PythUpdater.js +4 -1
- package/dist/cjs/sdk/market/pricefeeds/updates/RedstoneUpdater.js +4 -1
- package/dist/esm/sdk/market/pricefeeds/updates/PythUpdater.js +4 -1
- package/dist/esm/sdk/market/pricefeeds/updates/RedstoneUpdater.js +4 -1
- package/package.json +1 -1
|
@@ -70,6 +70,9 @@ class PythUpdater extends import_base.SDKConstruct {
|
|
|
70
70
|
const ts = opts.historicTimestamp;
|
|
71
71
|
if (ts) {
|
|
72
72
|
this.#historicalTimestamp = ts === true ? Number(this.sdk.timestamp) : ts;
|
|
73
|
+
this.#logger?.debug(
|
|
74
|
+
`using historical timestamp ${this.#historicalTimestamp}`
|
|
75
|
+
);
|
|
73
76
|
}
|
|
74
77
|
this.#cache = new import_PriceUpdatesCache.PriceUpdatesCache({
|
|
75
78
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -103,7 +106,7 @@ class PythUpdater extends import_base.SDKConstruct {
|
|
|
103
106
|
});
|
|
104
107
|
this.#logger?.debug(
|
|
105
108
|
logContext,
|
|
106
|
-
`generated ${results.length} update transactions for pyth price feeds`
|
|
109
|
+
`generated ${results.length} update transactions for pyth price feeds: ${Array.from(pythFeeds.keys()).join(", ")}`
|
|
107
110
|
);
|
|
108
111
|
return results;
|
|
109
112
|
}
|
|
@@ -76,6 +76,9 @@ class RedstoneUpdater extends import_base.SDKConstruct {
|
|
|
76
76
|
if (ts) {
|
|
77
77
|
ts = ts === true ? Number(this.sdk.timestamp) * 1e3 : ts;
|
|
78
78
|
this.#historicalTimestampMs = 6e4 * Math.floor(ts / 6e4);
|
|
79
|
+
this.#logger?.debug(
|
|
80
|
+
`using historical timestamp ${this.#historicalTimestampMs}`
|
|
81
|
+
);
|
|
79
82
|
}
|
|
80
83
|
this.#cache = new import_PriceUpdatesCache.PriceUpdatesCache({
|
|
81
84
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -134,7 +137,7 @@ class RedstoneUpdater extends import_base.SDKConstruct {
|
|
|
134
137
|
}
|
|
135
138
|
this.#logger?.debug(
|
|
136
139
|
logContext,
|
|
137
|
-
`generated ${results.length} update transactions for redstone price feeds`
|
|
140
|
+
`generated ${results.length} update transactions for redstone price feeds: ${Array.from(priceFeeds.keys()).join(", ")}`
|
|
138
141
|
);
|
|
139
142
|
return results;
|
|
140
143
|
}
|
|
@@ -50,6 +50,9 @@ class PythUpdater extends SDKConstruct {
|
|
|
50
50
|
const ts = opts.historicTimestamp;
|
|
51
51
|
if (ts) {
|
|
52
52
|
this.#historicalTimestamp = ts === true ? Number(this.sdk.timestamp) : ts;
|
|
53
|
+
this.#logger?.debug(
|
|
54
|
+
`using historical timestamp ${this.#historicalTimestamp}`
|
|
55
|
+
);
|
|
53
56
|
}
|
|
54
57
|
this.#cache = new PriceUpdatesCache({
|
|
55
58
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -83,7 +86,7 @@ class PythUpdater extends SDKConstruct {
|
|
|
83
86
|
});
|
|
84
87
|
this.#logger?.debug(
|
|
85
88
|
logContext,
|
|
86
|
-
`generated ${results.length} update transactions for pyth price feeds`
|
|
89
|
+
`generated ${results.length} update transactions for pyth price feeds: ${Array.from(pythFeeds.keys()).join(", ")}`
|
|
87
90
|
);
|
|
88
91
|
return results;
|
|
89
92
|
}
|
|
@@ -52,6 +52,9 @@ class RedstoneUpdater extends SDKConstruct {
|
|
|
52
52
|
if (ts) {
|
|
53
53
|
ts = ts === true ? Number(this.sdk.timestamp) * 1e3 : ts;
|
|
54
54
|
this.#historicalTimestampMs = 6e4 * Math.floor(ts / 6e4);
|
|
55
|
+
this.#logger?.debug(
|
|
56
|
+
`using historical timestamp ${this.#historicalTimestampMs}`
|
|
57
|
+
);
|
|
55
58
|
}
|
|
56
59
|
this.#cache = new PriceUpdatesCache({
|
|
57
60
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -110,7 +113,7 @@ class RedstoneUpdater extends SDKConstruct {
|
|
|
110
113
|
}
|
|
111
114
|
this.#logger?.debug(
|
|
112
115
|
logContext,
|
|
113
|
-
`generated ${results.length} update transactions for redstone price feeds`
|
|
116
|
+
`generated ${results.length} update transactions for redstone price feeds: ${Array.from(priceFeeds.keys()).join(", ")}`
|
|
114
117
|
);
|
|
115
118
|
return results;
|
|
116
119
|
}
|