From d0c92521068b6eb9976d4dc93387b3c3f81071d2 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Tue, 6 Aug 2024 09:48:54 +0200 Subject: [PATCH] feat: Add Zora definitions --- package.json | 2 +- src/networks.ts | 9 ++++++++- src/tokens.ts | 12 ++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7124347..45517f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/constants", - "version": "3.1.12", + "version": "3.1.13", "description": "Export commonly re-used values for Across repositories", "repository": "https://github.com/across-protocol/constants.git", "author": "hello@umaproject.org", diff --git a/src/networks.ts b/src/networks.ts index ac1cbb4..0832482 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -29,7 +29,8 @@ export const MAINNET_CHAIN_IDs = { POLYGON: 137, REDSTONE: 690, SCROLL: 534352, - ZK_SYNC: 324 + ZK_SYNC: 324, + ZORA: 7777777 }; export const CHAIN_IDs = { @@ -120,6 +121,12 @@ export const PRODUCTION_NETWORKS: { [chainId: number]: PublicNetwork } = { name: "zkSync", nativeToken: "ETH", blockExplorer: "https://era.zksync.network" + }, + [CHAIN_IDs.ZORA]: { + name: "Zora", + nativeToken: "ETH", + blockExplorer: "https://zorascan.xyz", + family: OP_STACK } }; diff --git a/src/tokens.ts b/src/tokens.ts index cc122a4..209aee3 100644 --- a/src/tokens.ts +++ b/src/tokens.ts @@ -106,6 +106,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", [CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", [CHAIN_IDs.ZK_SYNC_SEPOLIA]: "0x2D6Db36B3117802E996f13073A08A685D3FeF7eD", + [CHAIN_IDs.ZORA]: "0x4200000000000000000000000000000000000006", }, coingeckoId: "ethereum", }, @@ -233,6 +234,16 @@ export const TOKEN_SYMBOLS_MAP = { }, coingeckoId: "bridged-usd-coin-base", }, + USDzC: { + name: "USD Coin (bridged)", + symbol: "USDzC", + decimals: 6, + addresses: { + [CHAIN_IDs.MAINNET]: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + [CHAIN_IDs.ZORA]: "0xCccCCccc7021b32EBb4e8C08314bD62F7c653EC4", + }, + coingeckoId: "usd-coin-ethereum-bridged", + }, USDT: { name: "Tether USD", symbol: "USDT", @@ -298,6 +309,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", [CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", [CHAIN_IDs.ZK_SYNC_SEPOLIA]: "0x2D6Db36B3117802E996f13073A08A685D3FeF7eD", + [CHAIN_IDs.ZORA]: "0x4200000000000000000000000000000000000006", }, coingeckoId: "weth", },