From cfa78e7add51ad2a7b16dd923ae303ef81f2c918 Mon Sep 17 00:00:00 2001 From: arman37 Date: Mon, 10 Jan 2022 21:43:17 +0600 Subject: [PATCH] Remove redundant code --- sdk/api.js | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/sdk/api.js b/sdk/api.js index 0d6c7c9d..ee6b4b08 100644 --- a/sdk/api.js +++ b/sdk/api.js @@ -281,47 +281,6 @@ module.exports = { chunk: { param: 'targets', length: 1000, combine: 'balances' }, }), }, - util: { - getLogs: (options) => util('getLogs', { ...options }), - supportedTokens: () => util('supportedTokens'), - tokenList: () => util('tokenList'), - kyberTokens: () => util('kyberTokens'), - getEthCallCount: () => util('getEthCallCount'), - resetEthCallCount: () => util('resetEthCallCount'), - toSymbols: (data, chain = null) => util('toSymbols', { data, chain }), - unwrap: (options) => util('unwrap', { ...options }), - lookupBlock: _lookupBlock, - /** - * - * @param {Number} block - * @param {Number} timestamp - * @param {Object} project - * @param {Object} tokenBalanceMap - * @returns {Promise<*>} - */ - testAdapter: ((block, timestamp, project, tokenBalanceMap) => { - return _testAdapter(block, timestamp, project, tokenBalanceMap); - }), - /** - * - * @param {Number} timestamp - * @param {String} depositor - * @returns {Promise<*>} - */ - testStakingAdapter: ((timestamp, depositor) => { - return _testStakingAdapter(timestamp, depositor); - }), - /** - * - */ - isCallable: _isCallable, - /** - * - * @param {String} str - * @returns {boolean} - */ - isString: (str) => typeof str === 'string', - }, aave: { getAssetsLocked: (options) => aave('getAssetsLocked', { ...options, @@ -338,7 +297,7 @@ module.exports = { resetEthCallCount: () => util('resetEthCallCount'), toSymbols: (data, chain = null) => util('toSymbols', { data, chain }), unwrap: (options) => util('unwrap', { ...options }), - lookupBlock: (timestamp) => util('lookupBlock', { timestamp }), + lookupBlock: _lookupBlock, /** * * @param {Number} block