@defillama/sdk 5.0.217 → 5.0.219
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/multicall.js +1 -0
- package/build/abi/multicall3.js +6 -0
- package/build/index.d.ts +7 -0
- package/build/index.js +6 -1
- package/build/providers.json +1 -1
- package/build/util/cache.js +34 -12
- package/build/util/chainUtils/data.json +73 -2
- package/build/util/chainUtils/index.d.ts +3 -0
- package/build/util/chainUtils/index.js +31 -0
- package/build/util/coins.js +20 -5
- package/build/util/env.d.ts +1 -0
- package/build/util/env.js +4 -4
- package/build/util/r2.d.ts +3 -1
- package/build/util/r2.js +3 -1
- package/package.json +1 -1
package/build/abi/multicall.js
CHANGED
|
@@ -374,6 +374,7 @@ function multicallAddress(chainId) {
|
|
|
374
374
|
case 38833: return '0x7B2Fa3e6CE90Ce6037395630a4C6DF45B7ef25Af'; // igra
|
|
375
375
|
case 8721: return '0x965b692662d431cc4714f4E6d1191b0B18733243'; // ebchain
|
|
376
376
|
case 7119: return '0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9'; // sentrix
|
|
377
|
+
case 36900: return '0x73df6E8F0D112D22bD672952323b43d6893AB6D2'; // adi
|
|
377
378
|
default:
|
|
378
379
|
return null;
|
|
379
380
|
}
|
package/build/abi/multicall3.js
CHANGED
|
@@ -218,6 +218,10 @@ const DEPLOYMENT_BLOCK = {
|
|
|
218
218
|
fluent: 754598,
|
|
219
219
|
pharos: 1,
|
|
220
220
|
anubi: 1,
|
|
221
|
+
robinhood: 1,
|
|
222
|
+
srx: 1,
|
|
223
|
+
xo: 1,
|
|
224
|
+
rls: 1,
|
|
221
225
|
};
|
|
222
226
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
223
227
|
if (!functionABI)
|
|
@@ -348,4 +352,6 @@ const CUSTOM_MULTICALL_ADDRESSES = {
|
|
|
348
352
|
'ebc': '0x965b692662d431cc4714f4E6d1191b0B18733243',
|
|
349
353
|
'citrea': '0xA738e84fdE890Bc60b99AF7ccE43990E534304de',
|
|
350
354
|
'anubi': '0x2BaB36196519Ce9Cc31Bc4899FCBB8124A413b02',
|
|
355
|
+
'srx': '0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9',
|
|
356
|
+
'xo': '0x7c6d6eAafF566E3B8a6D072ca1825E8F18141fDb',
|
|
351
357
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -21,3 +21,10 @@ export * as chainUtils from "./util/chainUtils";
|
|
|
21
21
|
export declare const log: typeof debugLog;
|
|
22
22
|
export declare const logTable: typeof debugTable;
|
|
23
23
|
export declare const humanizeNumber: typeof humanN.humanizeNumber;
|
|
24
|
+
export declare const providerListJSON: {
|
|
25
|
+
[chain: string]: {
|
|
26
|
+
rpc: string[];
|
|
27
|
+
chainId: number;
|
|
28
|
+
explorer?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
package/build/index.js
CHANGED
|
@@ -32,8 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
39
|
+
exports.providerListJSON = 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
40
|
const debugLog_1 = require("./util/debugLog");
|
|
38
41
|
var ChainApi_1 = require("./ChainApi");
|
|
39
42
|
Object.defineProperty(exports, "ChainApi", { enumerable: true, get: function () { return ChainApi_1.ChainApi; } });
|
|
@@ -59,6 +62,8 @@ exports.tron = __importStar(require("./abi/tron"));
|
|
|
59
62
|
exports.erc20 = __importStar(require("./erc20"));
|
|
60
63
|
exports.coins = __importStar(require("./util/coins"));
|
|
61
64
|
exports.chainUtils = __importStar(require("./util/chainUtils"));
|
|
65
|
+
const providers_json_1 = __importDefault(require("./providers.json"));
|
|
62
66
|
exports.log = debugLog_1.debugLog;
|
|
63
67
|
exports.logTable = debugLog_1.debugTable;
|
|
64
68
|
exports.humanizeNumber = humanN.humanizeNumber;
|
|
69
|
+
exports.providerListJSON = providers_json_1.default;
|