@defillama/sdk 5.0.110 → 5.0.112
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.
- package/build/providers.json +1 -1
- package/build/util/indexer.js +6 -5
- package/package.json +1 -1
package/build/util/indexer.js
CHANGED
|
@@ -5,14 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getTokenTransfers = exports.isIndexerEnabled = exports.getLogs = exports.getTokens = exports.supportedChainSet = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
|
-
const
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const general_1 = require("../general");
|
|
10
|
+
const generalUtil_1 = require("../generalUtil");
|
|
11
|
+
const blocks_1 = require("./blocks");
|
|
9
12
|
const cache_1 = require("./cache");
|
|
10
13
|
const debugLog_1 = require("./debugLog");
|
|
11
|
-
const
|
|
12
|
-
const general_1 = require("../general");
|
|
13
|
-
const ethers_1 = require("ethers");
|
|
14
|
+
const env_1 = require("./env");
|
|
14
15
|
const logs_1 = require("./logs");
|
|
15
|
-
const blocks_1 = require("./blocks");
|
|
16
16
|
const indexerURL = (0, env_1.getEnvValue)('LLAMA_INDEXER_ENDPOINT');
|
|
17
17
|
const state = { chainIndexStatus: {} };
|
|
18
18
|
const cacheTime = 1 * 60 * 1000; // 1 minutes - we cache sync status for 1 minute
|
|
@@ -56,6 +56,7 @@ const indexerChainIdChainMapping = {
|
|
|
56
56
|
59144: 'linea',
|
|
57
57
|
81457: 'blast',
|
|
58
58
|
534352: 'scroll',
|
|
59
|
+
146: 'sonic'
|
|
59
60
|
};
|
|
60
61
|
exports.supportedChainSet = new Set(Object.values(indexerChainIdChainMapping));
|
|
61
62
|
const chainToIDMapping = {};
|