diff --git a/modules/vebal/debug-voting-list.spec.ts b/modules/vebal/debug-voting-list.spec.ts index 4a9f0331a..efe46aa70 100644 --- a/modules/vebal/debug-voting-list.spec.ts +++ b/modules/vebal/debug-voting-list.spec.ts @@ -4,13 +4,13 @@ import { VotingGaugesRepository } from './voting-gauges.repository'; import { VeBalVotingListService } from './vebal-voting-list.service'; import { initRequestScopedContext, setRequestScopedContextValue } from '../context/request-scoped-context'; import { AllNetworkConfigs } from '../network/network-config'; -import { mainnetNetworkConfig } from '../network/mainnet'; +import { MainnetNetworkConfig } from '../network/mainnet'; const defaultAnvilRpcUrl = 'http://127.0.0.1:8555'; setMainnetRpcProviderForTesting(defaultAnvilRpcUrl); // TODO: understand why mainnetConfig is undefined in test context -AllNetworkConfigs['1'] = mainnetNetworkConfig; +AllNetworkConfigs['1'] = MainnetNetworkConfig; beforeEach(() => { initRequestScopedContext(); diff --git a/modules/vebal/voting-gauges.repository.ts b/modules/vebal/voting-gauges.repository.ts index 4485a35bf..369161b0f 100644 --- a/modules/vebal/voting-gauges.repository.ts +++ b/modules/vebal/voting-gauges.repository.ts @@ -4,7 +4,7 @@ import { keyBy, mapValues } from 'lodash'; import { formatFixed } from '@ethersproject/bignumber'; import { BigNumber, Contract } from 'ethers'; import { formatEther } from 'ethers/lib/utils'; -import { mainnetNetworkConfig } from '../network/mainnet'; +import { MainnetNetworkConfig } from '../network/mainnet'; import gaugeControllerAbi from './abi/gaugeController.json'; import gaugeControllerHelperAbi from './abi/gaugeControllerHelper.json'; import rootGaugeAbi from './abi/rootGauge.json'; @@ -15,9 +15,9 @@ import { v1RootGaugeRecipients } from './special-pools/streamer-v1-gauges'; import { Multicaller3 } from '../web3/multicaller3'; import { networkContext } from '../network/network-context.service'; -const gaugeControllerAddress = mainnetNetworkConfig.data.gaugeControllerAddress!; +const gaugeControllerAddress = MainnetNetworkConfig.data.gaugeControllerAddress!; // Helper contract that wraps gaugeControllerAddress contract to allow checkpointing and getting the updated relative weight -const gaugeControllerHelperAddress = mainnetNetworkConfig.data.gaugeControllerHelperAddress!; +const gaugeControllerHelperAddress = MainnetNetworkConfig.data.gaugeControllerHelperAddress!; export type VotingGauge = { gaugeAddress: string; @@ -236,7 +236,7 @@ export class VotingGaugesRepository { } getGaugeControllerContract() { - return new Contract(gaugeControllerAddress, gaugeControllerAbi, mainnetNetworkConfig.provider); + return new Contract(gaugeControllerAddress, gaugeControllerAbi, MainnetNetworkConfig.provider); } async fetchGaugeAddresses(totalGauges: number) { diff --git a/test/utils.ts b/test/utils.ts index cb46bb5d1..e825905c5 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -1,5 +1,5 @@ import { providers } from 'ethers'; -import { mainnetNetworkConfig } from '../modules/network/mainnet'; +import { MainnetNetworkConfig } from '../modules/network/mainnet'; // anvil --fork-url https://eth-mainnet.alchemyapi.io/v2/7gYoDJEw6-QyVP5hd2UfZyelzDIDemGz --port 8555 --fork-block-number=17878719 @@ -9,7 +9,7 @@ const defaultAnvilRpcUrl = 'http://127.0.0.1:8555'; export function setMainnetRpcProviderForTesting(httpRpc = defaultAnvilRpcUrl) { console.log(`🤖 Integration tests using ${httpRpc} as rpc url`); - mainnetNetworkConfig.provider = getRpcProvider(httpRpc); + MainnetNetworkConfig.provider = getRpcProvider(httpRpc); } export function getRpcProvider(httpRpc = defaultAnvilRpcUrl) {