From 5b16a9543383b8d2290f1f3c005e8ef1d16e2e77 Mon Sep 17 00:00:00 2001 From: Mark Hinschberger Date: Fri, 16 Aug 2024 13:46:39 -0400 Subject: [PATCH] chore: zksync network [skip cypress] (#2154) --- public/icons/networks/zksync.svg | 1 + src/ui-config/governanceConfig.ts | 1 + src/ui-config/networksConfig.ts | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 public/icons/networks/zksync.svg diff --git a/public/icons/networks/zksync.svg b/public/icons/networks/zksync.svg new file mode 100644 index 0000000000..2ae9452deb --- /dev/null +++ b/public/icons/networks/zksync.svg @@ -0,0 +1 @@ + diff --git a/src/ui-config/governanceConfig.ts b/src/ui-config/governanceConfig.ts index 80dca3bf4b..bb3397daf1 100644 --- a/src/ui-config/governanceConfig.ts +++ b/src/ui-config/governanceConfig.ts @@ -134,6 +134,7 @@ export const governanceChainConfig: GovernanceChainConfig = { [ChainId.metis_andromeda]: GovernanceV3Metis.PC_DATA_HELPER, [ChainId.bnb]: GovernanceV3BNB.PC_DATA_HELPER, [ChainId.scroll]: GovernanceV3Scroll.PC_DATA_HELPER, + [324]: '0xe28A3235DCF1Acb8397B546bd588bAAFD7081505', }, votingAssets: { aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING, diff --git a/src/ui-config/networksConfig.ts b/src/ui-config/networksConfig.ts index cfb629ccee..aa04ea96ba 100644 --- a/src/ui-config/networksConfig.ts +++ b/src/ui-config/networksConfig.ts @@ -450,4 +450,22 @@ export const networkConfigs: Record = { }, ratesHistoryApiUrl, }, + [324]: { + name: 'ZkSync', + // privateJsonRPCUrl: 'https://scroll-mainnet.rpc.grove.city/v1/62b3314e123e6f00397f19ca', + publicJsonRPCUrl: ['https://1rpc.io/zksync2-era', 'https://zksync.drpc.org'], + publicJsonRPCWSUrl: 'wss://zksync.drpc.org', + baseAssetSymbol: 'ETH', + wrappedBaseAssetSymbol: 'WETH', + baseAssetDecimals: 18, + explorerLink: 'https://explorer.zksync.io/', + isTestnet: false, + networkLogoPath: '/icons/networks/zksync.svg', + bridge: { + icon: '/icons/networks/zksync.svg', + name: 'Zksync Bridge', + url: 'https://portal.zksync.io/bridge/', + }, + ratesHistoryApiUrl, + }, } as const;