From 1b1d75896534eb605c2f7f2946277cff65e239e5 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Tue, 27 Jun 2023 19:42:24 +1000 Subject: [PATCH] Remove docker and test networks --- src/lib/config/docker/contracts.ts | 27 ------ src/lib/config/docker/index.ts | 101 ---------------------- src/lib/config/docker/tokens.ts | 21 ----- src/lib/config/index.ts | 8 +- src/lib/config/test/index.ts | 134 ----------------------------- src/lib/config/test/keys.ts | 8 -- src/lib/config/types.ts | 2 +- 7 files changed, 2 insertions(+), 299 deletions(-) delete mode 100644 src/lib/config/docker/contracts.ts delete mode 100644 src/lib/config/docker/index.ts delete mode 100644 src/lib/config/docker/tokens.ts delete mode 100644 src/lib/config/test/index.ts delete mode 100644 src/lib/config/test/keys.ts diff --git a/src/lib/config/docker/contracts.ts b/src/lib/config/docker/contracts.ts deleted file mode 100644 index 59a75880ce..0000000000 --- a/src/lib/config/docker/contracts.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Contracts } from '../types'; - -const contracts: Contracts = { - merkleRedeem: '', - merkleOrchard: '', - merkleOrchardV2: '', - multicall: '0xfe17B701A8F44D9D18D4f83dB71Bf9442D0003f1', - authorizer: '0x6Bff77238256fFF717e5Cc9A96640dC0D068b14D', - vault: '0x293f6758Fe4a4343E367Ac8E6A697eC6315fBEd7', - weightedPoolFactory: '0xE48Aae4178612fdF77af25C83fa1099491A8AD1B', - stablePoolFactory: '0xb4F97F452D71C3bba3c30c554305A7250c08b23A', - lidoRelayer: '', - balancerHelpers: '', - batchRelayer: '', - veBAL: '', - gaugeController: '', - gaugeFactory: '', - balancerMinter: '', - tokenAdmin: '', - veDelegationProxy: '', - veBALHelpers: '', - feeDistributor: '', - feeDistributorDeprecated: '', - faucet: '', -}; - -export default contracts; diff --git a/src/lib/config/docker/index.ts b/src/lib/config/docker/index.ts deleted file mode 100644 index bb9b74609b..0000000000 --- a/src/lib/config/docker/index.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Config } from '../types'; -import contracts from './contracts'; -import tokens from './tokens'; - -const config: Config = { - key: '17', - chainId: 17, - chainName: 'Ethereum', - name: 'Docker localhost 8545', - shortName: 'dockerLocalhost', - slug: 'docker', - network: 'docker localhost', - unknown: false, - visibleInUI: false, - testNetwork: true, - rpc: 'http://localhost:8545', - ws: 'ws://localhost:8546', - explorer: '', - explorerName: '', - subgraph: 'http://localhost:8000/subgraphs/name/balancer-labs/balancer-v2', - poolsUrlV2: '', - subgraphs: { - main: ['http://localhost:8000/subgraphs/name/balancer-labs/balancer-v2'], - aave: '', - gauge: '', - blocks: '', - }, - bridgeUrl: '', - supportsEIP1559: false, - blockTime: 12, - nativeAsset: { - name: 'Ether', - address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - symbol: 'ETH', - decimals: 18, - deeplinkId: 'ether', - logoURI: 'tokens/eth.png', - minTransactionBuffer: '0.05', - }, - thirdParty: { - coingecko: { - nativeAssetId: 'ethereum', - platformId: 'ethereum', - }, - }, - addresses: { - ...contracts, - }, - gauges: { - type: 1, - weight: 100, - }, - pools: { - IdsMap: {}, - Pagination: { - PerPage: 10, - PerPool: 10, - PerPoolInitial: 5, - }, - BoostsEnabled: false, - DelegateOwner: '', - ZeroAddress: '', - DynamicFees: { - Gauntlet: [], - }, - BlockList: [], - IncludedPoolTypes: [], - Stable: { - AllowList: [], - }, - Investment: { - AllowList: [], - }, - Weighted: { - AllowList: [], - }, - Factories: {}, - Stakable: { - VotingGaugePools: [], - AllowList: [], - }, - Metadata: {}, - Deep: [], - BoostedApr: [], - DisabledJoins: [], - BrandedRedirect: {}, - }, - tokens, - keys: {}, - supportsElementPools: false, - tokenlists: { - Balancer: { - Default: '', - Vetted: '', - }, - External: [], - }, - rateProviders: {}, -}; - -export default config; diff --git a/src/lib/config/docker/tokens.ts b/src/lib/config/docker/tokens.ts deleted file mode 100644 index 6558a7c79e..0000000000 --- a/src/lib/config/docker/tokens.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { TokenConstants } from '../types'; - -const tokens: TokenConstants = { - Popular: { - Symbols: ['WBTC', 'DAI', 'USDC', 'BAL', 'AAVE', 'WETH'], - }, - InitialSwapTokens: { - input: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - output: '0x6B175474E89094C44Da98b954EedeAC495271d0F', - }, - Addresses: { - nativeAsset: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - wNativeAsset: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', - WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', - BAL: '0xba100000625a3754423978a60c9317c58a424e3d', - bbaUSD: '0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2', - bbaUSDv2: '0xA13a9247ea42D743238089903570127DdA72fE44', - }, -}; - -export default tokens; diff --git a/src/lib/config/index.ts b/src/lib/config/index.ts index fc964b3f3c..28b8332a0a 100644 --- a/src/lib/config/index.ts +++ b/src/lib/config/index.ts @@ -1,14 +1,12 @@ import { Config } from './types'; import arbitrum from './arbitrum'; -import docker from './docker'; import goerli from './goerli'; +import gnosisChain from './gnosis-chain'; import mainnet from './mainnet'; import optimism from './optimism'; import polygon from './polygon'; -import gnosisChain from './gnosis-chain'; import zkevm from './zkevm'; -import test from './test'; // We don't import Network from sdk to avoid extra bundle size when loading app (while the SDK is not tree-shakable) export enum Network { @@ -34,10 +32,6 @@ const config: Record = { [Network.OPTIMISM]: optimism, [Network.GNOSIS]: gnosisChain, [Network.ZKEVM]: zkevm, - // @ts-ignore - 12345: test, - // @ts-ignore - 17: docker, }; export default config; diff --git a/src/lib/config/test/index.ts b/src/lib/config/test/index.ts deleted file mode 100644 index 7b76064c44..0000000000 --- a/src/lib/config/test/index.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { Config } from '../types'; -import keys from './keys'; - -const config: Config = { - key: '12345', - chainId: 12345, - chainName: 'test', - name: 'test', - shortName: 'test', - slug: 'test', - network: 'test', - unknown: false, - visibleInUI: false, - testNetwork: true, - rpc: `https://mainnet.infura.io/v3/${keys.infura}`, - ws: 'ws://balancer.fi:1234', - explorer: 'https://etherscan.io', - explorerName: 'Etherscan', - subgraph: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2', - poolsUrlV2: - 'https://storageapi.fleek.co/johngrantuk-team-bucket/poolsV2.json', - subgraphs: { - main: ['https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2'], - aave: '', - gauge: '', - blocks: '', - }, - bridgeUrl: '', - supportsEIP1559: true, - supportsElementPools: true, - blockTime: 12, - nativeAsset: { - name: 'Ether', - address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', - symbol: 'ETH', - decimals: 18, - deeplinkId: 'ether', - logoURI: 'tokens/eth.png', - minTransactionBuffer: '0.05', - }, - thirdParty: { - coingecko: { - nativeAssetId: 'ethereum', - platformId: 'ethereum', - }, - }, - addresses: { - merkleRedeem: '0x6d19b2bF3A36A61530909Ae65445a906D98A2Fa8', - merkleOrchard: '', - multicall: '0xeefba1e63905ef1d7acba5a8513c70307c1ce441', - authorizer: '0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6', - vault: '0xBA12222222228d8Ba445958a75a0704d566BF2C8', - weightedPoolFactory: '0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9', - stablePoolFactory: '0xc66Ba2B6595D3613CCab350C886aCE23866EDe24', - lidoRelayer: '', - balancerHelpers: '0x5aDDCCa35b7A0D07C74063c48700C8590E87864E', - batchRelayer: '', - gaugeFactory: '', - balancerMinter: '', - gaugeController: '', - tokenAdmin: '', - veBAL: '', - veDelegationProxy: '', - veBALHelpers: '', - feeDistributor: '', - feeDistributorDeprecated: '', - faucet: '', - }, - keys, - gauges: { - type: 1, - weight: 100, - }, - pools: { - IdsMap: {}, - Pagination: { - PerPage: 10, - PerPool: 10, - PerPoolInitial: 5, - }, - BoostsEnabled: true, - DelegateOwner: '', - ZeroAddress: '', - DynamicFees: { - Gauntlet: [], - }, - BlockList: [], - IncludedPoolTypes: [], - Stable: { - AllowList: [], - }, - Investment: { - AllowList: [], - }, - Weighted: { - AllowList: [], - }, - Factories: {}, - Stakable: { - VotingGaugePools: [], - AllowList: [], - }, - Deep: [], - BoostedApr: [], - Metadata: {}, - DisabledJoins: [], - BrandedRedirect: {}, - }, - tokens: { - Popular: { - Symbols: [], - }, - InitialSwapTokens: { - input: '', - output: '', - }, - Addresses: { - nativeAsset: '', - wNativeAsset: '', - WETH: '', - BAL: '', - }, - }, - tokenlists: { - Balancer: { - Default: '', - Vetted: '', - }, - External: [], - }, - rateProviders: {}, -}; - -export default config; diff --git a/src/lib/config/test/keys.ts b/src/lib/config/test/keys.ts deleted file mode 100644 index 0785f6131b..0000000000 --- a/src/lib/config/test/keys.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Keys } from '../types'; - -const keys: Keys = { - infura: 'daaa68ec242643719749dd1caba2fc66', - alchemy: 'cQGZUiTLRCFsQS7kbRxPJK4eH4fTTu88', -}; - -export default keys; diff --git a/src/lib/config/types.ts b/src/lib/config/types.ts index 4df53defe4..a9612f48f4 100644 --- a/src/lib/config/types.ts +++ b/src/lib/config/types.ts @@ -68,7 +68,7 @@ export interface Keys { export interface Config { key: string; - chainId: Network | 12345 | 17; + chainId: Network; chainName: string; name: string; shortName: string;