@defillama/sdk 5.0.150 → 5.0.151

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.
@@ -340,6 +340,8 @@ async function getTokenTransfers({ chain = "ethereum", fromAddressFilter, fromBl
340
340
  if (tokens) {
341
341
  if (typeof tokens === "string")
342
342
  tokens = [tokens];
343
+ if (!Array.isArray(tokens))
344
+ throw new Error("tokens must be a string or an array of strings");
343
345
  tokens = tokens.join(",").toLowerCase();
344
346
  }
345
347
  if (target)
@@ -118,6 +118,7 @@ const chainShortNameMapping = {
118
118
  hydradx: 'hdx',
119
119
  nibiru: 'cataclysm_1',
120
120
  elsm: 'ely',
121
+ tac: 'tacchain_239_1',
121
122
  };
122
123
  async function filterForWorkingRPCs(rpc, chain, chainId) {
123
124
  if (rpc.length < 10)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.150",
3
+ "version": "5.0.151",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {