@defillama/sdk 5.0.146 → 5.0.147
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/generalUtil.d.ts +1 -1
- package/build/generalUtil.js +2 -1
- package/build/providers.json +1 -1
- package/build/util/cache.d.ts +4 -2
- package/build/util/cache.js +30 -16
- package/build/util/index.d.ts +1 -0
- package/build/util/index.js +32 -1
- package/build/util/indexer.d.ts +16 -13
- package/build/util/indexer.js +295 -352
- package/build/util/logs.d.ts +19 -1
- package/build/util/logs.js +258 -122
- package/package.json +1 -1
package/build/generalUtil.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as blocks from "./computeTVL/blocks";
|
|
2
2
|
import * as humanizeNumber from "./computeTVL/humanizeNumber";
|
|
3
3
|
import type { Balances, StringNumber, Address } from "./types";
|
|
4
|
-
export { sliceIntoChunks, normalizeAddress, getTimestamp, } from "./util";
|
|
4
|
+
export { sliceIntoChunks, normalizeAddress, getTimestamp, tableToString, } from "./util";
|
|
5
5
|
export declare function convertToBigInt(value: any): bigint;
|
|
6
6
|
export declare function sumMultiBalanceOf(balances: Balances, results: {
|
|
7
7
|
ethCallCount?: number;
|
package/build/generalUtil.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.formError = exports.formErrorString = exports.getProviderUrl = exports.getUniqueAddresses = exports.humanizeNumber = exports.blocks = exports.sumChainTvls = exports.removeTokenBalance = exports.mergeBalances = exports.sumSingleBalance = exports.sumMultiBalanceOf = exports.convertToBigInt = exports.getTimestamp = exports.normalizeAddress = exports.sliceIntoChunks = void 0;
|
|
26
|
+
exports.formError = exports.formErrorString = exports.getProviderUrl = exports.getUniqueAddresses = exports.humanizeNumber = exports.blocks = exports.sumChainTvls = exports.removeTokenBalance = exports.mergeBalances = exports.sumSingleBalance = exports.sumMultiBalanceOf = exports.convertToBigInt = exports.tableToString = exports.getTimestamp = exports.normalizeAddress = exports.sliceIntoChunks = void 0;
|
|
27
27
|
const blocks = __importStar(require("./computeTVL/blocks"));
|
|
28
28
|
exports.blocks = blocks;
|
|
29
29
|
const humanizeNumber = __importStar(require("./computeTVL/humanizeNumber"));
|
|
@@ -33,6 +33,7 @@ var util_1 = require("./util");
|
|
|
33
33
|
Object.defineProperty(exports, "sliceIntoChunks", { enumerable: true, get: function () { return util_1.sliceIntoChunks; } });
|
|
34
34
|
Object.defineProperty(exports, "normalizeAddress", { enumerable: true, get: function () { return util_1.normalizeAddress; } });
|
|
35
35
|
Object.defineProperty(exports, "getTimestamp", { enumerable: true, get: function () { return util_1.getTimestamp; } });
|
|
36
|
+
Object.defineProperty(exports, "tableToString", { enumerable: true, get: function () { return util_1.tableToString; } });
|
|
36
37
|
// We ignore `sum` as it's never used (only in some SDK wrapper code)
|
|
37
38
|
function convertToBigInt(value) {
|
|
38
39
|
const balance = value;
|