@defillama/sdk 5.0.204 → 5.0.207
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/abi/multicall3.js +6 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +2 -1
- package/build/providers.json +1 -1
- package/build/util/cache.d.ts +3 -2
- package/build/util/cache.js +18 -3
- package/build/util/chainUtils/data.json +1082 -0
- package/build/util/chainUtils/index.d.ts +6 -0
- package/build/util/chainUtils/index.js +74 -0
- package/build/util/env.js +1 -1
- package/build/util/indexer.d.ts +0 -15
- package/build/util/indexer.js +37 -130
- package/build/util/updateProviderList.js +28 -0
- package/package.json +1 -1
package/build/abi/multicall3.js
CHANGED
|
@@ -207,6 +207,10 @@ const DEPLOYMENT_BLOCK = {
|
|
|
207
207
|
capx: 30800,
|
|
208
208
|
stable: 2423647,
|
|
209
209
|
megaeth: 1858081,
|
|
210
|
+
injective: 1,
|
|
211
|
+
occ: 1,
|
|
212
|
+
pepu: 1,
|
|
213
|
+
citrea: 1,
|
|
210
214
|
};
|
|
211
215
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
212
216
|
if (!functionABI)
|
|
@@ -334,4 +338,6 @@ const CUSTOM_MULTICALL_ADDRESSES = {
|
|
|
334
338
|
'xone': '0xe39d7BCDdaBBD0526D143185Fb7b459099Fd40c9',
|
|
335
339
|
'besc': '0xBcdb671cBC7711fE533E8B46E52EbC1470145F67',
|
|
336
340
|
'capx': '0x8E1cd29c79dD1Dd4966Cd6A05EeC7d25B5f47f2b',
|
|
341
|
+
'pepu': '0xBB6bf9447031408804af92aE6fBeDc002Dcb20aB',
|
|
342
|
+
'citrea': '0xA738e84fdE890Bc60b99AF7ccE43990E534304de',
|
|
337
343
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * as types from "./types";
|
|
|
17
17
|
export * as tron from "./abi/tron";
|
|
18
18
|
export * as erc20 from "./erc20";
|
|
19
19
|
export * as coins from "./util/coins";
|
|
20
|
+
export * as chainUtils from "./util/chainUtils";
|
|
20
21
|
export declare const log: typeof debugLog;
|
|
21
22
|
export declare const logTable: typeof debugTable;
|
|
22
23
|
export declare const humanizeNumber: typeof humanN.humanizeNumber;
|
package/build/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.humanizeNumber = exports.logTable = exports.log = exports.coins = exports.erc20 = exports.tron = exports.types = exports.indexer = exports.graph = exports.blocks = exports.api2 = exports.elastic = exports.api = exports.sdkCache = exports.getEventLogs = exports.cache = exports.util = exports.setProvider = exports.getProvider = exports.Balances = exports.ChainApi = void 0;
|
|
36
|
+
exports.humanizeNumber = exports.logTable = exports.log = exports.chainUtils = exports.coins = exports.erc20 = exports.tron = exports.types = exports.indexer = exports.graph = exports.blocks = exports.api2 = exports.elastic = exports.api = exports.sdkCache = exports.getEventLogs = exports.cache = exports.util = exports.setProvider = exports.getProvider = exports.Balances = exports.ChainApi = void 0;
|
|
37
37
|
const debugLog_1 = require("./util/debugLog");
|
|
38
38
|
var ChainApi_1 = require("./ChainApi");
|
|
39
39
|
Object.defineProperty(exports, "ChainApi", { enumerable: true, get: function () { return ChainApi_1.ChainApi; } });
|
|
@@ -58,6 +58,7 @@ exports.types = __importStar(require("./types"));
|
|
|
58
58
|
exports.tron = __importStar(require("./abi/tron"));
|
|
59
59
|
exports.erc20 = __importStar(require("./erc20"));
|
|
60
60
|
exports.coins = __importStar(require("./util/coins"));
|
|
61
|
+
exports.chainUtils = __importStar(require("./util/chainUtils"));
|
|
61
62
|
exports.log = debugLog_1.debugLog;
|
|
62
63
|
exports.logTable = debugLog_1.debugTable;
|
|
63
64
|
exports.humanizeNumber = humanN.humanizeNumber;
|