From 039e00fdb06f78d3be49e02e998e8e4794e2ab2e Mon Sep 17 00:00:00 2001
From: Zer0dot <zer0dot.dev@gmail.com>
Date: Thu, 4 Feb 2021 17:57:03 -0500
Subject: [PATCH] Moved gas-tracker.ts into ./helpers and updated references

---
 helpers/contracts-helpers.ts             | 2 +-
 gas-tracker.ts => helpers/gas-tracker.ts | 0
 helpers/init-helpers.ts                  | 2 +-
 helpers/oracles-helpers.ts               | 2 +-
 tasks/full/1_address_provider.ts         | 2 +-
 tasks/full/3_oracles.ts                  | 2 +-
 tasks/full/5_initialize.ts               | 2 +-
 tasks/migrations/aave.mainnet.ts         | 2 +-
 tasks/migrations/uniswap.mainnet.ts      | 2 +-
 9 files changed, 8 insertions(+), 8 deletions(-)
 rename gas-tracker.ts => helpers/gas-tracker.ts (100%)

diff --git a/helpers/contracts-helpers.ts b/helpers/contracts-helpers.ts
index 05cf018e..32efc460 100644
--- a/helpers/contracts-helpers.ts
+++ b/helpers/contracts-helpers.ts
@@ -18,7 +18,7 @@ import { Artifact as BuidlerArtifact } from '@nomiclabs/buidler/types';
 import { verifyContract } from './etherscan-verification';
 import { getIErc20Detailed } from './contracts-getters';
 import { usingTenderly } from './tenderly-utils';
-import { addGas, totalGas } from '../gas-tracker';
+import { addGas, totalGas } from './gas-tracker';
 
 export type MockTokenMap = { [symbol: string]: MintableERC20 };
 
diff --git a/gas-tracker.ts b/helpers/gas-tracker.ts
similarity index 100%
rename from gas-tracker.ts
rename to helpers/gas-tracker.ts
diff --git a/helpers/init-helpers.ts b/helpers/init-helpers.ts
index 98eee40d..a5b13aa0 100644
--- a/helpers/init-helpers.ts
+++ b/helpers/init-helpers.ts
@@ -26,7 +26,7 @@ import {
 } from './contracts-deployments';
 import { ZERO_ADDRESS } from './constants';
 import { isZeroAddress } from 'ethereumjs-util';
-import { addGas } from '../gas-tracker';
+import { addGas } from './gas-tracker';
 import { getTreasuryAddress } from './configuration';
 
 export const chooseATokenDeployment = (id: eContractid) => {
diff --git a/helpers/oracles-helpers.ts b/helpers/oracles-helpers.ts
index 18c5c2e3..a1373b76 100644
--- a/helpers/oracles-helpers.ts
+++ b/helpers/oracles-helpers.ts
@@ -13,7 +13,7 @@ import {MockAggregator} from '../types/MockAggregator';
 import {deployMockAggregator} from './contracts-deployments';
 import {chunk, waitForTx} from './misc-utils';
 import {getStableAndVariableTokensHelper} from './contracts-getters';
-import { addGas } from '../gas-tracker';
+import { addGas } from './gas-tracker';
 
 export const setInitialMarketRatesInRatesOracleByHelper = async (
   marketRates: iMultiPoolsAssets<IMarketRates>,
diff --git a/tasks/full/1_address_provider.ts b/tasks/full/1_address_provider.ts
index ad7fefd9..08cc7ea0 100644
--- a/tasks/full/1_address_provider.ts
+++ b/tasks/full/1_address_provider.ts
@@ -20,7 +20,7 @@ import { formatEther, isAddress, parseEther } from 'ethers/lib/utils';
 import { isZeroAddress } from 'ethereumjs-util';
 import { Signer, BigNumber } from 'ethers';
 import { parse } from 'path';
-import { addGas } from '../../gas-tracker';
+import { addGas } from '../../helpers/gas-tracker';
 //import BigNumber from 'bignumber.js';
 
 task(
diff --git a/tasks/full/3_oracles.ts b/tasks/full/3_oracles.ts
index edcef77d..ce830b8c 100644
--- a/tasks/full/3_oracles.ts
+++ b/tasks/full/3_oracles.ts
@@ -17,7 +17,7 @@ import {
   getLendingRateOracle,
   getPairsTokenAggregator,
 } from '../../helpers/contracts-getters';
-import { addGas } from '../../gas-tracker';
+import { addGas } from '../../helpers/gas-tracker';
 
 task('full:deploy-oracles', 'Deploy oracles for dev enviroment')
   .addFlag('verify', 'Verify contracts at Etherscan')
diff --git a/tasks/full/5_initialize.ts b/tasks/full/5_initialize.ts
index 77d97128..813a6a3e 100644
--- a/tasks/full/5_initialize.ts
+++ b/tasks/full/5_initialize.ts
@@ -21,7 +21,7 @@ import {
   getLendingPoolAddressesProvider,
 } from '../../helpers/contracts-getters';
 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.')
   .addFlag('verify', 'Verify contracts at Etherscan')
diff --git a/tasks/migrations/aave.mainnet.ts b/tasks/migrations/aave.mainnet.ts
index c06ec2f3..a987451c 100644
--- a/tasks/migrations/aave.mainnet.ts
+++ b/tasks/migrations/aave.mainnet.ts
@@ -3,7 +3,7 @@ import { checkVerification } from '../../helpers/etherscan-verification';
 import { ConfigNames } from '../../helpers/configuration';
 import { printContracts } from '../../helpers/misc-utils';
 import { usingTenderly } from '../../helpers/tenderly-utils';
-import {totalGas} from '../../gas-tracker';
+import {totalGas} from '../../helpers/gas-tracker';
 
 task('aave:mainnet', 'Deploy development enviroment')
   .addFlag('verify', 'Verify contracts at Etherscan')
diff --git a/tasks/migrations/uniswap.mainnet.ts b/tasks/migrations/uniswap.mainnet.ts
index ab795d23..86f3a4c2 100644
--- a/tasks/migrations/uniswap.mainnet.ts
+++ b/tasks/migrations/uniswap.mainnet.ts
@@ -4,7 +4,7 @@ import {checkVerification} from '../../helpers/etherscan-verification';
 import {ConfigNames} from '../../helpers/configuration';
 import {EthereumNetworkNames} from '../../helpers/types';
 import {printContracts} from '../../helpers/misc-utils';
-import {totalGas} from '../../gas-tracker';
+import {totalGas} from '../../helpers/gas-tracker';
 
 task('uniswap:mainnet', 'Deploy development enviroment')
   .addFlag('verify', 'Verify contracts at Etherscan')