From 0d81846e71a850a9453f206992ca73e266e34f7d Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 26 Jul 2023 21:42:20 +1000 Subject: [PATCH] Add Base config --- balancer-js/src/lib/constants/addresses.json | 55 ++++++++++++++++++++ balancer-js/src/lib/constants/config.ts | 37 +++++++++++++ balancer-js/src/lib/constants/network.ts | 1 + 3 files changed, 93 insertions(+) diff --git a/balancer-js/src/lib/constants/addresses.json b/balancer-js/src/lib/constants/addresses.json index 1157c4d6b..2e70ee6fc 100644 --- a/balancer-js/src/lib/constants/addresses.json +++ b/balancer-js/src/lib/constants/addresses.json @@ -473,6 +473,61 @@ }, "tokens": {} }, + "8453": { + "contracts": { + "aaveLinearPoolFactory": "0x687b8c9b41e01be8b591725fac5d5f52d0564d79", + "authorizer": "0x809b79b53f18e9bc08a961ed4678b901ac93213a", + "authorizerAdaptor": "0x6cad2ea22bfa7f4c14aae92e47f510cd5c509bc7", + "authorizerAdaptorEntrypoint": "0x9129e834e15ea19b6069e8f08a8ecfc13686b8dc", + "authorizerWithAdaptorValidation": "0xa69e0ccf150a29369d8bbc0b3f510849db7e8eee", + "bal": "0x7c6b91d9be155a6db01f749217d76ff02a7227f2", + "balancerHelpers": "0x8e9aa87e45e92bad84d5f8dd1bff34fb92637de9", + "balancerQueries": "0x300ab2038eac391f26d9f895dc61f8f66a548833", + "balancerRelayer": "0x76f7204b62f554b79d444588edac9dfa7032c71a", + "batchRelayerLibrary": "0xdf9b5b00ef9bca66e9902bd813db14e4343be025", + "childChainGauge": "0x59562f93c447656f6e4799fc1fc7c3d977c3324f", + "childChainGaugeFactory": "0x2498a2b0d6462d2260eac50ae1c3e03f4829ba95", + "circuitBreakerLib": "0xef454a7b3f965d3f6723e462405246f8cd865425", + "composableStablePoolFactory": "0x8df317a729fcaa260306d7de28888932cb579b88", + "erc4626LinearPoolFactory": "0x161f4014c27773840ccb4ec1957113e6dd028846", + "externalWeightedMath": "0x7920bfa1b2041911b354747ca7a6cdd2dfc50cfd", + "gaugeWorkingBalanceHelper": "0xa7d524046ef89de9f8e4f2d7b029f66ccb738d48", + "gearboxLinearPoolFactory": "0x9dd32684176638d977883448a4c914311c07bd62", + "l2BalancerPseudoMinter": "0xc7e5ed1054a24ef31d827e6f86caa58b3bc168d7", + "l2LayerZeroBridgeForwarder": "0x8ea89804145c007e7d226001a96955ad53836087", + "managedPoolAddRemoveTokenLib": "0xb19382073c7a0addbb56ac6af1808fa49e377b75", + "managedPoolAmmLib": "0x7d2248f194755dca9a1887099394f39476d28c9a", + "managedPoolFactory": "0x9a62c91626d39d0216b3959112f9d4678e20134d", + "mockAaveLendingPool": "0x88ed12a90142fdbfe2a28f7d5b48927254c7e760", + "mockAaveLinearPool": "0x712e23a9b91aa30ee7997d1c7a1a285d4c7912d1", + "mockComposableStablePool": "0x7f6e9d6a4093af9d09bae92d24bfe42fc5369ae6", + "mockErc4626LinearPool": "0x1cc2e10c486ffb7228810b9c7c183d0cd92cdf44", + "mockErc4626Token": "0x4638ab64022927c9bd5947607459d13f57f1551c", + "mockGearboxDieselToken": "0xb521dd5c8e13fe202626cac98873fea2b7760ce4", + "mockGearboxLinearPool": "0x3c28a59356b473847aaa5e0b6f561636079213a6", + "mockGearboxVault": "0x79e435875ccee3cd9e8da23fe34f9a011d05ea6c", + "mockLiquidityBootstrappingPool": "", + "mockManagedPool": "0xe50ad96af9370d05d3c1ce85f17c31557b29c4ee", + "mockStaticAToken": "0x698caed853be9cea96c268f565e2b61d3b2bcda4", + "mockWeightedPool": "0xd9dbbfaa703f3c33838365ae00fe4eb22cdf8d46", + "mockYearnLinearPool": "0x369877467fc3b6774de4e11e0c0abbde70eb40fd", + "mockYearnTokenVault": "0xdbf7b9f1d2bfba14e42709f84dda3187ee410e38", + "noProtocolFeeLiquidityBootstrappingPoolFactory": "0x0c6052254551eae3ecac77b01dfcf1025418828f", + "nullVotingEscrow": "0x475d18169be8a89357a9ee3ab00ca386d20fa229", + "poolRecoveryHelper": "0x03f3fb107e74f2eac9358862e91ad3c692712054", + "protocolFeePercentagesProvider": "0xded7fef7d8ecdcb74f22f0169e1a9ec696e6695d", + "protocolFeesCollector": "0xce88686553686da562ce7cea497ce749da109f9f", + "protocolFeesWithdrawer": "0xacf05be5134d64d150d153818f8c67ee36996650", + "protocolIdRegistry": "0x682f0ddbfd41d1272982f64a499fb62d80e27589", + "recoveryModeHelper": "0x313a8d36b1d90a4cba3a505fdc3480c3870be053", + "vault": "0xba12222222228d8ba445958a75a0704d566bf2c8", + "votingEscrowDelegationProxy": "0xd87f44df0159dc78029ab9ca7d7e57e7249f5acd", + "weightedPoolFactory": "0x4c32a8a8fda4e24139b51b456b42290f51d6a1c4", + "weth": "0x4200000000000000000000000000000000000006", + "yearnLinearPoolFactory": "0x44d33798dddcdabc93fe6a40c80588033dc502d3" + }, + "tokens": {} + }, "42161": { "contracts": { "aaveLinearPoolFactory": "0x7396f99b48e7436b152427bfa3dd6aa8c7c6d05b", diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index 4f8c2da0e..89a1b57f2 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -443,6 +443,43 @@ export const BALANCER_NETWORK_CONFIG: Record = { poolsToIgnore: [], sorConnectingTokens: [], }, + [Network.BASE]: { + chainId: Network.BASE, //8453 + addresses: { + contracts: { + balancerMinter: '0xc7E5ED1054A24Ef31D827E6F86caA58B3Bc168d7', + multicall: '0xcA11bde05977b3631167028862bE2a173976CA11', + poolDataQueries: '', + ...addressesByNetwork[Network.BASE].contracts, + }, + tokens: { + bal: addressesByNetwork[Network.BASE].contracts.bal, + wrappedNativeAsset: addressesByNetwork[Network.BASE].contracts.weth, + ...addressesByNetwork[Network.BASE].tokens, + }, + }, + urls: { + subgraph: + 'https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest', + gaugesSubgraph: + 'https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest', + }, + thirdParty: { + coingecko: { + nativeAssetId: 'eth', + platformId: 'base', + }, + }, + averageBlockTime: 2, + pools: {}, + poolsToIgnore: [], + sorConnectingTokens: [ + { + symbol: 'weth', + address: '0x4200000000000000000000000000000000000006', + }, + ], + }, }; export const networkAddresses = ( diff --git a/balancer-js/src/lib/constants/network.ts b/balancer-js/src/lib/constants/network.ts index 87ea07a22..b26c025e9 100644 --- a/balancer-js/src/lib/constants/network.ts +++ b/balancer-js/src/lib/constants/network.ts @@ -6,6 +6,7 @@ export enum Network { GNOSIS = 100, POLYGON = 137, FANTOM = 250, + BASE = 8453, ZKEVM = 1101, ARBITRUM = 42161, AVALANCHE = 43114,