@defillama/sdk 5.0.242 → 5.0.244

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.
@@ -44,6 +44,7 @@
44
44
  "assetchain": "Asset Chain",
45
45
  "assetmantle": "AssetMantle",
46
46
  "astar": "Astar",
47
+ "aster": "Aster",
47
48
  "astrzk": "Astar zkEVM",
48
49
  "aura": "Aura Network",
49
50
  "aurora": "Aurora",
@@ -90,6 +91,7 @@
90
91
  "btn": "Bitnet",
91
92
  "btnx": "Botanix",
92
93
  "btr": "Bitlayer",
94
+ "bulk": "BULK",
93
95
  "bullet": "Bullet",
94
96
  "bytomsidechain": "Bytomsidechain",
95
97
  "cabal": "Cabal",
@@ -101,6 +103,7 @@
101
103
  "capx": "Capx Chain",
102
104
  "carbon": "Carbon",
103
105
  "cardano": "Cardano",
106
+ "casper": "Casper",
104
107
  "celestia": "Celestia",
105
108
  "celo": "Celo",
106
109
  "chainflip": "Chainflip",
@@ -160,6 +163,7 @@
160
163
  "dsc": "DSC",
161
164
  "duckchain": "DuckChain",
162
165
  "dungeon": "Dungeon",
166
+ "dusk": "Dusk",
163
167
  "dydx": "dYdX",
164
168
  "dymension": "Dymension",
165
169
  "earnm": "Earnm",
@@ -209,6 +213,7 @@
209
213
  "flow": "Flow",
210
214
  "fluence": "Fluence",
211
215
  "fluent": "Fluent",
216
+ "flux": "Flux",
212
217
  "flynet": "Flynet",
213
218
  "fogo": "Fogo",
214
219
  "forma": "Forma",
@@ -230,6 +235,7 @@
230
235
  "gensyn": "Gensyn",
231
236
  "ggchain": "GGCHAIN",
232
237
  "glue": "Glue",
238
+ "gnoland": "Gno.land",
233
239
  "goat": "GOAT",
234
240
  "gochain": "GoChain",
235
241
  "godwoken": "Godwoken",
@@ -362,10 +368,12 @@
362
368
  "moonbeam": "Moonbeam",
363
369
  "moonriver": "Moonriver",
364
370
  "morph": "Morph",
371
+ "morph_tachyon": "Morph Tachyon",
365
372
  "move": "Movement",
366
373
  "mrt": "MyRx",
367
374
  "mtt_network": "MTT Network",
368
375
  "multivac": "MultiVAC",
376
+ "muster": "Muster",
369
377
  "muuchain": "MUUCHAIN",
370
378
  "mvc": "MVC",
371
379
  "mxczkevm": "Moonchain",
@@ -437,6 +445,7 @@
437
445
  "pi": "Pi Network",
438
446
  "planq": "Planq",
439
447
  "plasma": "Plasma",
448
+ "platon": "PlatON",
440
449
  "plume": "Plume",
441
450
  "plume_mainnet": "Plume Mainnet",
442
451
  "pokt": "Pokt",
@@ -505,6 +514,7 @@
505
514
  "shimmer_evm": "ShimmerEVM",
506
515
  "sifchain": "Sifchain",
507
516
  "silicon_zk": "Silicon zkEVM",
517
+ "sis": "Sis",
508
518
  "skale": "SKALE",
509
519
  "skate": "Skate",
510
520
  "smartbch": "smartBCH",
@@ -596,6 +606,7 @@
596
606
  "wemix": "WEMIX3.0",
597
607
  "winr": "WINR Chain",
598
608
  "witnet": "Witnet",
609
+ "world_mobile": "World Mobile",
599
610
  "wormchain": "Wormchain",
600
611
  "xai": "Xai",
601
612
  "xdai": "Gnosis",
@@ -671,6 +682,7 @@
671
682
  "AssetMantle": "assetmantle",
672
683
  "Astar": "astar",
673
684
  "Astar zkEVM": "astrzk",
685
+ "Aster": "aster",
674
686
  "Aura Network": "aura",
675
687
  "Aurora": "aurora",
676
688
  "Avalanche": "avax",
@@ -685,6 +697,7 @@
685
697
  "BSC": "bsc",
686
698
  "BSV Blockchain": "bsv",
687
699
  "BSquared": "bsquared",
700
+ "BULK": "bulk",
688
701
  "Babylon Genesis": "babylon",
689
702
  "Bahamut": "ftn",
690
703
  "BandChain": "band",
@@ -734,6 +747,7 @@
734
747
  "Capx Chain": "capx",
735
748
  "Carbon": "carbon",
736
749
  "Cardano": "cardano",
750
+ "Casper": "casper",
737
751
  "Celestia": "celestia",
738
752
  "Celo": "celo",
739
753
  "Chainflip": "chainflip",
@@ -791,6 +805,7 @@
791
805
  "Doma": "doma",
792
806
  "DuckChain": "duckchain",
793
807
  "Dungeon": "dungeon",
808
+ "Dusk": "dusk",
794
809
  "Dymension": "dymension",
795
810
  "EDU Chain": "occ",
796
811
  "ENI": "eni",
@@ -839,6 +854,7 @@
839
854
  "Flow": "flow",
840
855
  "Fluence": "fluence",
841
856
  "Fluent": "fluent",
857
+ "Flux": "flux",
842
858
  "Flynet": "flynet",
843
859
  "Fogo": "fogo",
844
860
  "Form Network": "formnetwork",
@@ -861,6 +877,7 @@
861
877
  "Genshiro": "genshiro",
862
878
  "Gensyn": "gensyn",
863
879
  "Glue": "glue",
880
+ "Gno.land": "gnoland",
864
881
  "Gnosis": "xdai",
865
882
  "GoChain": "gochain",
866
883
  "Goat": "goat",
@@ -1006,9 +1023,11 @@
1006
1023
  "Moonchain": "mxczkevm",
1007
1024
  "Moonriver": "moonriver",
1008
1025
  "Morph": "morph",
1026
+ "Morph Tachyon": "morph_tachyon",
1009
1027
  "Movement": "move",
1010
1028
  "MultiVAC": "multivac",
1011
1029
  "MultiversX": "elrond",
1030
+ "Muster": "muster",
1012
1031
  "MyRx": "mrt",
1013
1032
  "Mythos": "mythos",
1014
1033
  "N1": "n1",
@@ -1085,6 +1104,7 @@
1085
1104
  "Pi Network": "pi",
1086
1105
  "Planq": "planq",
1087
1106
  "Plasma": "plasma",
1107
+ "PlatON": "platon",
1088
1108
  "Plume": "plume",
1089
1109
  "Plume (Deprecated)": "plume",
1090
1110
  "Plume Mainnet": "plume_mainnet",
@@ -1163,6 +1183,7 @@
1163
1183
  "ShimmerEVM": "shimmer_evm",
1164
1184
  "Sifchain": "sifchain",
1165
1185
  "Silicon zkEVM": "silicon_zk",
1186
+ "Sis": "sis",
1166
1187
  "Skate": "skate",
1167
1188
  "Solana": "solana",
1168
1189
  "Sommelier": "sommelier",
@@ -1254,6 +1275,7 @@
1254
1275
  "Wax": "wax",
1255
1276
  "Witnet": "witnet",
1256
1277
  "World Chain": "wc",
1278
+ "World Mobile": "world_mobile",
1257
1279
  "Wormchain": "wormchain",
1258
1280
  "X Layer": "xlayer",
1259
1281
  "XCHAIN": "idex",
@@ -21,6 +21,7 @@ const StreamArray_1 = require("stream-json/streamers/StreamArray");
21
21
  const _1 = require(".");
22
22
  const blocks_1 = require("./blocks");
23
23
  const common_1 = require("./common");
24
+ const callStats_1 = require("./callStats");
24
25
  const debugLog_1 = require("./debugLog");
25
26
  const env_1 = require("./env");
26
27
  const logs_1 = require("./logs");
@@ -342,6 +343,9 @@ async function getLogs(options) {
342
343
  }
343
344
  // Ensure the indexer is synced far enough
344
345
  const indexerVersion = getChainIndexerVersion(chain);
346
+ // one logical getLogs query against the indexer (chunks over maxBlockRange recurse here and count separately)
347
+ if (blockRange <= effectiveMaxBlockRange)
348
+ (0, callStats_1.recordMethod)('indexerGetLogs', chain);
345
349
  checkIndexerConfig(indexerVersion);
346
350
  const chainId = getChainId(chain);
347
351
  const chainIndexStatus = await getChainIndexStatus(indexerVersion);
@@ -30,7 +30,7 @@ async function getChainData() {
30
30
  }
31
31
  async function main() {
32
32
  await (0, chainUtils_1.updateChainLabels)();
33
- const oldProviders = await (0, generalUtil_1.fetchJson)(`https://unpkg.com/@defillama/sdk@v5.0.238/build/providers.json`);
33
+ const oldProviders = await (0, generalUtil_1.fetchJson)(`https://unpkg.com/@defillama/sdk@latest/build/providers.json`);
34
34
  const currentChains = await (0, generalUtil_1.fetchJson)(`https://raw.githubusercontent.com/DefiLlama/DefiLlama-Adapters/refs/heads/main/projects/helper/chains.json`);
35
35
  const currentChainsSet = new Set(currentChains);
36
36
  let chainData = await getChainData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.242",
3
+ "version": "5.0.244",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {