Moved gas-tracker.ts into ./helpers and updated references

This commit is contained in:
Zer0dot 2021-02-04 17:57:03 -05:00
parent f590040c60
commit 039e00fdb0
9 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@ import { Artifact as BuidlerArtifact } from '@nomiclabs/buidler/types';
import { verifyContract } from './etherscan-verification'; import { verifyContract } from './etherscan-verification';
import { getIErc20Detailed } from './contracts-getters'; import { getIErc20Detailed } from './contracts-getters';
import { usingTenderly } from './tenderly-utils'; import { usingTenderly } from './tenderly-utils';
import { addGas, totalGas } from '../gas-tracker'; import { addGas, totalGas } from './gas-tracker';
export type MockTokenMap = { [symbol: string]: MintableERC20 }; export type MockTokenMap = { [symbol: string]: MintableERC20 };

View File

@ -26,7 +26,7 @@ import {
} from './contracts-deployments'; } from './contracts-deployments';
import { ZERO_ADDRESS } from './constants'; import { ZERO_ADDRESS } from './constants';
import { isZeroAddress } from 'ethereumjs-util'; import { isZeroAddress } from 'ethereumjs-util';
import { addGas } from '../gas-tracker'; import { addGas } from './gas-tracker';
import { getTreasuryAddress } from './configuration'; import { getTreasuryAddress } from './configuration';
export const chooseATokenDeployment = (id: eContractid) => { export const chooseATokenDeployment = (id: eContractid) => {

View File

@ -13,7 +13,7 @@ import {MockAggregator} from '../types/MockAggregator';
import {deployMockAggregator} from './contracts-deployments'; import {deployMockAggregator} from './contracts-deployments';
import {chunk, waitForTx} from './misc-utils'; import {chunk, waitForTx} from './misc-utils';
import {getStableAndVariableTokensHelper} from './contracts-getters'; import {getStableAndVariableTokensHelper} from './contracts-getters';
import { addGas } from '../gas-tracker'; import { addGas } from './gas-tracker';
export const setInitialMarketRatesInRatesOracleByHelper = async ( export const setInitialMarketRatesInRatesOracleByHelper = async (
marketRates: iMultiPoolsAssets<IMarketRates>, marketRates: iMultiPoolsAssets<IMarketRates>,

View File

@ -20,7 +20,7 @@ import { formatEther, isAddress, parseEther } from 'ethers/lib/utils';
import { isZeroAddress } from 'ethereumjs-util'; import { isZeroAddress } from 'ethereumjs-util';
import { Signer, BigNumber } from 'ethers'; import { Signer, BigNumber } from 'ethers';
import { parse } from 'path'; import { parse } from 'path';
import { addGas } from '../../gas-tracker'; import { addGas } from '../../helpers/gas-tracker';
//import BigNumber from 'bignumber.js'; //import BigNumber from 'bignumber.js';
task( task(

View File

@ -17,7 +17,7 @@ import {
getLendingRateOracle, getLendingRateOracle,
getPairsTokenAggregator, getPairsTokenAggregator,
} from '../../helpers/contracts-getters'; } from '../../helpers/contracts-getters';
import { addGas } from '../../gas-tracker'; import { addGas } from '../../helpers/gas-tracker';
task('full:deploy-oracles', 'Deploy oracles for dev enviroment') task('full:deploy-oracles', 'Deploy oracles for dev enviroment')
.addFlag('verify', 'Verify contracts at Etherscan') .addFlag('verify', 'Verify contracts at Etherscan')

View File

@ -21,7 +21,7 @@ import {
getLendingPoolAddressesProvider, getLendingPoolAddressesProvider,
} from '../../helpers/contracts-getters'; } from '../../helpers/contracts-getters';
import { ZERO_ADDRESS } from '../../helpers/constants'; import { ZERO_ADDRESS } from '../../helpers/constants';
import { addGas } from '../../gas-tracker'; import { addGas } from '../../helpers/gas-tracker';
task('full:initialize-lending-pool', 'Initialize lending pool configuration.') task('full:initialize-lending-pool', 'Initialize lending pool configuration.')
.addFlag('verify', 'Verify contracts at Etherscan') .addFlag('verify', 'Verify contracts at Etherscan')

View File

@ -3,7 +3,7 @@ import { checkVerification } from '../../helpers/etherscan-verification';
import { ConfigNames } from '../../helpers/configuration'; import { ConfigNames } from '../../helpers/configuration';
import { printContracts } from '../../helpers/misc-utils'; import { printContracts } from '../../helpers/misc-utils';
import { usingTenderly } from '../../helpers/tenderly-utils'; import { usingTenderly } from '../../helpers/tenderly-utils';
import {totalGas} from '../../gas-tracker'; import {totalGas} from '../../helpers/gas-tracker';
task('aave:mainnet', 'Deploy development enviroment') task('aave:mainnet', 'Deploy development enviroment')
.addFlag('verify', 'Verify contracts at Etherscan') .addFlag('verify', 'Verify contracts at Etherscan')

View File

@ -4,7 +4,7 @@ import {checkVerification} from '../../helpers/etherscan-verification';
import {ConfigNames} from '../../helpers/configuration'; import {ConfigNames} from '../../helpers/configuration';
import {EthereumNetworkNames} from '../../helpers/types'; import {EthereumNetworkNames} from '../../helpers/types';
import {printContracts} from '../../helpers/misc-utils'; import {printContracts} from '../../helpers/misc-utils';
import {totalGas} from '../../gas-tracker'; import {totalGas} from '../../helpers/gas-tracker';
task('uniswap:mainnet', 'Deploy development enviroment') task('uniswap:mainnet', 'Deploy development enviroment')
.addFlag('verify', 'Verify contracts at Etherscan') .addFlag('verify', 'Verify contracts at Etherscan')