@defillama/sdk 5.0.208 → 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.
@@ -12,6 +12,7 @@
12
12
  "airdao": "AirDAO",
13
13
  "akash": "Akash",
14
14
  "aleph_zero": "Aleph Zero EVM",
15
+ "aleph_zero_evm": "Aleph Zero EVM",
15
16
  "alephium": "Alephium",
16
17
  "algorand": "Algorand",
17
18
  "alienx": "AlienX",
@@ -57,6 +58,7 @@
57
58
  "bittensor_evm": "Bittensor EVM",
58
59
  "bittorrent": "Bittorrent",
59
60
  "blast": "Blast",
61
+ "blockdag": "BlockDAG",
60
62
  "bob": "BOB",
61
63
  "boba": "Boba",
62
64
  "boba_avax": "Boba_Avax",
@@ -74,6 +76,7 @@
74
76
  "camp": "Camp Network",
75
77
  "candle": "Candle",
76
78
  "canto": "Canto",
79
+ "canton": "Canton",
77
80
  "capx": "Capx Chain",
78
81
  "carbon": "Carbon",
79
82
  "cardano": "Cardano",
@@ -81,6 +84,7 @@
81
84
  "celo": "Celo",
82
85
  "chainflip": "Chainflip",
83
86
  "chainx": "BEVM",
87
+ "chia": "Chia",
84
88
  "chihuahua": "Chihuahua",
85
89
  "chromia": "Chromia",
86
90
  "chz": "Chiliz",
@@ -129,7 +133,7 @@
129
133
  "echelon": "Echelon",
130
134
  "echelon_initia": "Echelon Initia",
131
135
  "eclipse": "Eclipse",
132
- "edgex": "edgeX",
136
+ "edgex": "edgeX L1",
133
137
  "elastos": "Elastos",
134
138
  "elrond": "MultiversX",
135
139
  "elsm": "Elysium",
@@ -156,6 +160,7 @@
156
160
  "etn": "Electroneum",
157
161
  "europa": "SKALE Europa",
158
162
  "eventum": "Eventum",
163
+ "everclear": "Everclear",
159
164
  "everscale": "Everscale",
160
165
  "evmos": "Evmos",
161
166
  "fantom": "Fantom",
@@ -203,6 +208,7 @@
203
208
  "hibachi": "Hibachi",
204
209
  "hoo": "Hoo",
205
210
  "horizen eon": "Horizen EON",
211
+ "hotstuff": "Hotstuff",
206
212
  "hpb": "HPB",
207
213
  "hpp": "HPP",
208
214
  "hsk": "HashKey Chain",
@@ -214,6 +220,7 @@
214
220
  "icon": "Icon",
215
221
  "icp": "ICP",
216
222
  "idex": "XCHAIN",
223
+ "igra": "Igra",
217
224
  "immutablex": "Immutable X",
218
225
  "imx": "Immutable zkEVM",
219
226
  "inertia": "Inertia",
@@ -307,6 +314,7 @@
307
314
  "neo": "NEO",
308
315
  "neo3": "Neo3",
309
316
  "neon_evm": "Neon",
317
+ "neony": "Neony",
310
318
  "neox": "Neo X Mainnet",
311
319
  "neutron": "Neutron",
312
320
  "new": "AB",
@@ -371,6 +379,7 @@
371
379
  "pryzm": "Pryzm",
372
380
  "pulse": "PulseChain",
373
381
  "q": "Q Protocol",
382
+ "qiev3": "QIE",
374
383
  "qom": "QL1",
375
384
  "quai": "Quai",
376
385
  "quasar": "Quasar",
@@ -424,6 +433,7 @@
424
433
  "soon_bsc": "svmBNB",
425
434
  "sophon": "Sophon",
426
435
  "sora": "Sora",
436
+ "space_and_time": "Space and Time",
427
437
  "spark": "Spark",
428
438
  "spn": "Superposition",
429
439
  "sseed": "Superseed",
@@ -452,6 +462,7 @@
452
462
  "taiko": "Taiko",
453
463
  "tara": "Taraxa",
454
464
  "telos": "Telos",
465
+ "tempo": "Tempo",
455
466
  "tenet": "Tenet",
456
467
  "terra": "Terra Classic",
457
468
  "terra2": "Terra2",
@@ -482,11 +493,13 @@
482
493
  "virbicoin": "VirBiCoin",
483
494
  "vision": "Vision",
484
495
  "vite": "Vite",
496
+ "voi": "Voi Network",
485
497
  "wan": "Wanchain",
486
498
  "water": "Waterfall",
487
499
  "waves": "Waves",
488
500
  "wax": "Wax",
489
501
  "wc": "World Chain",
502
+ "wchain": "W Chain",
490
503
  "wemix": "WEMIX3.0",
491
504
  "winr": "WINR",
492
505
  "witnet": "Witnet",
@@ -581,6 +594,7 @@
581
594
  "Bittensor EVM": "bittensor_evm",
582
595
  "Bittorrent": "bittorrent",
583
596
  "Blast": "blast",
597
+ "BlockDAG": "blockdag",
584
598
  "Boba": "boba",
585
599
  "Boba_Avax": "boba_avax",
586
600
  "Boba_Bnb": "boba_bnb",
@@ -599,12 +613,14 @@
599
613
  "Camp Network": "camp",
600
614
  "Candle": "candle",
601
615
  "Canto": "canto",
616
+ "Canton": "canton",
602
617
  "Capx Chain": "capx",
603
618
  "Carbon": "carbon",
604
619
  "Cardano": "cardano",
605
620
  "Celestia": "celestia",
606
621
  "Celo": "celo",
607
622
  "Chainflip": "chainflip",
623
+ "Chia": "chia",
608
624
  "Chihuahua": "chihuahua",
609
625
  "Chiliz": "chz",
610
626
  "Chromia": "chromia",
@@ -676,6 +692,7 @@
676
692
  "Etherlink": "etlk",
677
693
  "Europa": "europa",
678
694
  "Eventum": "eventum",
695
+ "Everclear": "everclear",
679
696
  "Everscale": "everscale",
680
697
  "Evmos": "evmos",
681
698
  "FSC": "fsc",
@@ -729,6 +746,7 @@
729
746
  "Hibachi": "hibachi",
730
747
  "Hoo": "hoo",
731
748
  "Horizen EON": "eon",
749
+ "Hotstuff": "hotstuff",
732
750
  "Hydra": "hydra",
733
751
  "Hydra Chain": "hydragon",
734
752
  "HydraDX": "hydradx",
@@ -740,6 +758,7 @@
740
758
  "IOTA": "iota",
741
759
  "IOTA EVM": "iotaevm",
742
760
  "Icon": "icon",
761
+ "Igra": "igra",
743
762
  "Immutable X": "immutablex",
744
763
  "Immutable zkEVM": "imx",
745
764
  "Inertia": "inertia",
@@ -840,6 +859,7 @@
840
859
  "Neo X Mainnet": "neox",
841
860
  "Neo3": "neo3",
842
861
  "Neon": "neon_evm",
862
+ "Neony": "neony",
843
863
  "Neutron": "neutron",
844
864
  "Newton": "new",
845
865
  "Nibiru": "nibiru",
@@ -910,6 +930,7 @@
910
930
  "Pulse": "pulse",
911
931
  "PulseChain": "pulse",
912
932
  "Q Protocol": "q",
933
+ "QIE": "qiev3",
913
934
  "QL1": "qom",
914
935
  "Quai": "quai",
915
936
  "Quasar": "quasar",
@@ -966,6 +987,7 @@
966
987
  "Soon Network": "soon",
967
988
  "Sophon": "sophon",
968
989
  "Sora": "sora",
990
+ "Space and Time": "space_and_time",
969
991
  "Spark": "spark",
970
992
  "Stable": "stable",
971
993
  "Stacks": "stacks",
@@ -992,6 +1014,7 @@
992
1014
  "Taiko": "taiko",
993
1015
  "Taraxa": "tara",
994
1016
  "Telos": "telos",
1017
+ "Tempo": "tempo",
995
1018
  "Tenet": "tenet",
996
1019
  "Terra": "terra",
997
1020
  "Terra Classic": "terra",
@@ -1026,6 +1049,8 @@
1026
1049
  "VirBiCoin": "virbicoin",
1027
1050
  "Vision": "vision",
1028
1051
  "Vite": "vite",
1052
+ "Voi Network": "voi",
1053
+ "W Chain": "wchain",
1029
1054
  "WEMIX": "wemix",
1030
1055
  "WEMIX3.0": "wemix",
1031
1056
  "WINR": "winr",
@@ -1065,6 +1090,7 @@
1065
1090
  "chain-breakdown": "chain-breakdown",
1066
1091
  "dYdX": "dydx",
1067
1092
  "edgeX": "edgex",
1093
+ "edgeX L1": "edgex",
1068
1094
  "exSat": "xsat",
1069
1095
  "inEVM": "inevm",
1070
1096
  "opBNB": "op_bnb",
@@ -42,7 +42,8 @@ async function writeLog(index, log) {
42
42
  if (!client)
43
43
  return;
44
44
  index = addYearAndMonth(index);
45
- log.timestamp = +Date.now();
45
+ if (!log.hasOwnProperty('timestamp'))
46
+ log.timestamp = +Date.now();
46
47
  try {
47
48
  await client.index({ index, body: log });
48
49
  }
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.208",
3
+ "version": "5.0.211",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {