@defillama/sdk 5.0.209 → 5.0.211
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.
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"bittensor_evm": "Bittensor EVM",
|
|
59
59
|
"bittorrent": "Bittorrent",
|
|
60
60
|
"blast": "Blast",
|
|
61
|
+
"blockdag": "BlockDAG",
|
|
61
62
|
"bob": "BOB",
|
|
62
63
|
"boba": "Boba",
|
|
63
64
|
"boba_avax": "Boba_Avax",
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
"celo": "Celo",
|
|
84
85
|
"chainflip": "Chainflip",
|
|
85
86
|
"chainx": "BEVM",
|
|
87
|
+
"chia": "Chia",
|
|
86
88
|
"chihuahua": "Chihuahua",
|
|
87
89
|
"chromia": "Chromia",
|
|
88
90
|
"chz": "Chiliz",
|
|
@@ -131,7 +133,7 @@
|
|
|
131
133
|
"echelon": "Echelon",
|
|
132
134
|
"echelon_initia": "Echelon Initia",
|
|
133
135
|
"eclipse": "Eclipse",
|
|
134
|
-
"edgex": "edgeX",
|
|
136
|
+
"edgex": "edgeX L1",
|
|
135
137
|
"elastos": "Elastos",
|
|
136
138
|
"elrond": "MultiversX",
|
|
137
139
|
"elsm": "Elysium",
|
|
@@ -206,6 +208,7 @@
|
|
|
206
208
|
"hibachi": "Hibachi",
|
|
207
209
|
"hoo": "Hoo",
|
|
208
210
|
"horizen eon": "Horizen EON",
|
|
211
|
+
"hotstuff": "Hotstuff",
|
|
209
212
|
"hpb": "HPB",
|
|
210
213
|
"hpp": "HPP",
|
|
211
214
|
"hsk": "HashKey Chain",
|
|
@@ -217,6 +220,7 @@
|
|
|
217
220
|
"icon": "Icon",
|
|
218
221
|
"icp": "ICP",
|
|
219
222
|
"idex": "XCHAIN",
|
|
223
|
+
"igra": "Igra",
|
|
220
224
|
"immutablex": "Immutable X",
|
|
221
225
|
"imx": "Immutable zkEVM",
|
|
222
226
|
"inertia": "Inertia",
|
|
@@ -590,6 +594,7 @@
|
|
|
590
594
|
"Bittensor EVM": "bittensor_evm",
|
|
591
595
|
"Bittorrent": "bittorrent",
|
|
592
596
|
"Blast": "blast",
|
|
597
|
+
"BlockDAG": "blockdag",
|
|
593
598
|
"Boba": "boba",
|
|
594
599
|
"Boba_Avax": "boba_avax",
|
|
595
600
|
"Boba_Bnb": "boba_bnb",
|
|
@@ -615,6 +620,7 @@
|
|
|
615
620
|
"Celestia": "celestia",
|
|
616
621
|
"Celo": "celo",
|
|
617
622
|
"Chainflip": "chainflip",
|
|
623
|
+
"Chia": "chia",
|
|
618
624
|
"Chihuahua": "chihuahua",
|
|
619
625
|
"Chiliz": "chz",
|
|
620
626
|
"Chromia": "chromia",
|
|
@@ -740,6 +746,7 @@
|
|
|
740
746
|
"Hibachi": "hibachi",
|
|
741
747
|
"Hoo": "hoo",
|
|
742
748
|
"Horizen EON": "eon",
|
|
749
|
+
"Hotstuff": "hotstuff",
|
|
743
750
|
"Hydra": "hydra",
|
|
744
751
|
"Hydra Chain": "hydragon",
|
|
745
752
|
"HydraDX": "hydradx",
|
|
@@ -751,6 +758,7 @@
|
|
|
751
758
|
"IOTA": "iota",
|
|
752
759
|
"IOTA EVM": "iotaevm",
|
|
753
760
|
"Icon": "icon",
|
|
761
|
+
"Igra": "igra",
|
|
754
762
|
"Immutable X": "immutablex",
|
|
755
763
|
"Immutable zkEVM": "imx",
|
|
756
764
|
"Inertia": "inertia",
|
|
@@ -1082,6 +1090,7 @@
|
|
|
1082
1090
|
"chain-breakdown": "chain-breakdown",
|
|
1083
1091
|
"dYdX": "dydx",
|
|
1084
1092
|
"edgeX": "edgex",
|
|
1093
|
+
"edgeX L1": "edgex",
|
|
1085
1094
|
"exSat": "xsat",
|
|
1086
1095
|
"inEVM": "inevm",
|
|
1087
1096
|
"opBNB": "op_bnb",
|
package/build/util/elastic.js
CHANGED
|
@@ -42,7 +42,8 @@ async function writeLog(index, log) {
|
|
|
42
42
|
if (!client)
|
|
43
43
|
return;
|
|
44
44
|
index = addYearAndMonth(index);
|
|
45
|
-
log.timestamp
|
|
45
|
+
if (!log.hasOwnProperty('timestamp'))
|
|
46
|
+
log.timestamp = +Date.now();
|
|
46
47
|
try {
|
|
47
48
|
await client.index({ index, body: log });
|
|
48
49
|
}
|
package/build/util/indexer.js
CHANGED
|
@@ -211,6 +211,10 @@ async function getLogs(options) {
|
|
|
211
211
|
const breakBlock = lastIndexedBlock - 50; // small buffer
|
|
212
212
|
const indexerLogs = await getLogs({ ...options, fromBlock, toBlock: breakBlock });
|
|
213
213
|
const rpcLogs = await (0, logs_1.getLogs)({ ...options, fromBlock: breakBlock + 1, toBlock, skipIndexer: true });
|
|
214
|
+
// When flatten=false, preserve per-target buckets: merge RPC logs into their corresponding indexer bucket so the result still maintains one element per target.
|
|
215
|
+
if (!flatten) {
|
|
216
|
+
return indexerLogs.map((bucket, i) => bucket.concat(rpcLogs[i]));
|
|
217
|
+
}
|
|
214
218
|
return indexerLogs.concat(rpcLogs);
|
|
215
219
|
}
|
|
216
220
|
// Re-curse if the requested range is too large
|