Skip to content

Commit

Permalink
chore: Add World Chain definitions (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl authored Oct 7, 2024
1 parent 88eb501 commit aa01611
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@across-protocol/constants",
"version": "3.1.15",
"version": "3.1.16",
"description": "Export commonly re-used values for Across repositories",
"repository": "https://github.com/across-protocol/constants.git",
"author": "[email protected]",
Expand Down
7 changes: 7 additions & 0 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const MAINNET_CHAIN_IDs = {
POLYGON: 137,
REDSTONE: 690,
SCROLL: 534352,
WORLD_CHAIN: 480,
ZK_SYNC: 324,
ZORA: 7777777
};
Expand Down Expand Up @@ -117,6 +118,12 @@ export const PRODUCTION_NETWORKS: { [chainId: number]: PublicNetwork } = {
nativeToken: "ETH",
blockExplorer: "https://scrollscan.com"
},
[CHAIN_IDs.WORLD_CHAIN]: {
name: "World Chain",
nativeToken: "ETH",
blockExplorer: "https://worldchain-mainnet-explorer.alchemy.com",
family: OP_STACK
},
[CHAIN_IDs.ZK_SYNC]: {
name: "zkSync",
nativeToken: "ETH",
Expand Down
4 changes: 4 additions & 0 deletions src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.SCROLL]: "0x5300000000000000000000000000000000000004",
[CHAIN_IDs.SCROLL_SEPOLIA]: "0x5300000000000000000000000000000000000004",
[CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
[CHAIN_IDs.WORLD_CHAIN]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",
[CHAIN_IDs.ZK_SYNC_SEPOLIA]: "0x2D6Db36B3117802E996f13073A08A685D3FeF7eD",
[CHAIN_IDs.ZORA]: "0x4200000000000000000000000000000000000006",
Expand Down Expand Up @@ -220,6 +221,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.OPTIMISM]: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
[CHAIN_IDs.OPTIMISM_SEPOLIA]: "0x9552a0a6624A23B848060AE5901659CDDa1f83f8",
[CHAIN_IDs.POLYGON]: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
[CHAIN_IDs.WORLD_CHAIN]: "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
[CHAIN_IDs.ZK_SYNC]: "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
},
coingeckoId: "usd-coin-ethereum-bridged",
Expand Down Expand Up @@ -277,6 +279,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.MODE]: "0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF",
[CHAIN_IDs.OPTIMISM]: "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
[CHAIN_IDs.POLYGON]: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
[CHAIN_IDs.WORLD_CHAIN]: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
[CHAIN_IDs.SCROLL]: "0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1",
[CHAIN_IDs.ZK_SYNC]: "0xBBeB516fb02a01611cBBE0453Fe3c580D7281011",
},
Expand Down Expand Up @@ -308,6 +311,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.SCROLL]: "0x5300000000000000000000000000000000000004",
[CHAIN_IDs.SCROLL_SEPOLIA]: "0x5300000000000000000000000000000000000004",
[CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
[CHAIN_IDs.WORLD_CHAIN]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",
[CHAIN_IDs.ZK_SYNC_SEPOLIA]: "0x2D6Db36B3117802E996f13073A08A685D3FeF7eD",
[CHAIN_IDs.ZORA]: "0x4200000000000000000000000000000000000006",
Expand Down

0 comments on commit aa01611

Please sign in to comment.