@defillama/sdk 5.0.134 → 5.0.136
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.
|
@@ -312,6 +312,6 @@ function getMedianBlockValue(blocks) {
|
|
|
312
312
|
process.on('exit', () => {
|
|
313
313
|
if (Object.keys(rpcRequestCounter).length > 7) {
|
|
314
314
|
(0, debugLog_1.debugLog)('RPC request count per chain');
|
|
315
|
-
|
|
315
|
+
(0, debugLog_1.debugTable)(rpcRequestCounter);
|
|
316
316
|
}
|
|
317
317
|
});
|
package/build/util/indexer.js
CHANGED
|
@@ -203,6 +203,10 @@ async function getLogs({ chain = 'ethereum', topic, topics, fromBlock, toBlock,
|
|
|
203
203
|
offset,
|
|
204
204
|
};
|
|
205
205
|
const { data: { logs: _logs, totalCount } } = await axiosIndexer(`/logs`, { params, });
|
|
206
|
+
// getLogs uses 'address' field to return log source, so we add the field here to make it compatible
|
|
207
|
+
_logs.forEach((l) => {
|
|
208
|
+
l.address = l.source;
|
|
209
|
+
});
|
|
206
210
|
_logAgg.push(..._logs.filter((l) => {
|
|
207
211
|
if (!addressSet.size)
|
|
208
212
|
return true;
|
|
@@ -79,9 +79,6 @@ async function main() {
|
|
|
79
79
|
continue;
|
|
80
80
|
providerList[key] = providerList[shorName];
|
|
81
81
|
}
|
|
82
|
-
if (providerList.hyperliquid) {
|
|
83
|
-
providerList.hyperliquid.rpc.push('https://hyperliquid.cloud.blockscout.com/api/eth-rpc');
|
|
84
|
-
}
|
|
85
82
|
const droppedChains = Object.keys(oldProviders).filter(oldChain => providerList[oldChain] === undefined);
|
|
86
83
|
if (droppedChains.length > 20) {
|
|
87
84
|
throw new Error(`Following chains used to be included but is not anymore, can the devs fix please?\n${droppedChains.join('\n')}`);
|