Skip to content

Commit

Permalink
feat: add linea tokens (#21)
Browse files Browse the repository at this point in the history
Add token addresses from here
https://docs.linea.build/use-mainnet/info-contracts

Closes ACX-1932
  • Loading branch information
dohaki authored Mar 1, 2024
1 parent 72f3fd2 commit cdd23f6
Show file tree
Hide file tree
Showing 2 changed files with 13 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-v2",
"version": "1.0.11",
"version": "1.0.12",
"description": "Export commonly re-used values for Across repositories",
"repository": "https://github.com/across-protocol/constants-v2.git",
"author": "[email protected]",
Expand Down
12 changes: 12 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const TESTNET_GOERLI_CHAIN_IDs = {
MUMBAI: 80001,
BASE_GOERLI: 84531,
ARBITRUM_GOERLI: 421613,
LINEA_GOERLI: 59140
};

export const TESTNET_CHAIN_IDs = {
Expand All @@ -30,6 +31,7 @@ export const MAINNET_CHAIN_IDs = {
ZK_SYNC: 324,
BASE: 8453,
ARBITRUM: 42161,
LINEA: 59144
};

export const CHAIN_IDs = {
Expand Down Expand Up @@ -63,6 +65,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.POLYGON]: "0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3",
[CHAIN_IDs.ARBITRUM]: "0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8",
[CHAIN_IDs.BASE]: "0x4158734D47Fc9692176B5085E0F52ee0Da5d47F1",
[CHAIN_IDs.LINEA]: "0x660edb0A46c3f69be9eFF5446318593b9469F9e2"
},
},
BADGER: {
Expand Down Expand Up @@ -99,6 +102,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.GOERLI]: "0x5C221E77624690fff6dd741493D735a17716c26B",
// [CHAIN_IDs.GOERLI]: "0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844", // Uncomment for Optimism/Base testnet usage.
[CHAIN_IDs.BASE_GOERLI]: "0x174956bDfbCEb6e53089297cce4fE2825E58d92C",
[CHAIN_IDs.LINEA]: "0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5",
[CHAIN_IDs.LINEA_GOERLI]: "0x8741Ba6225A6BF91f9D73531A98A89807857a2B3"
},
},
ETH: {
Expand All @@ -120,6 +125,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_GOERLI]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LINEA]: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
[CHAIN_IDs.LINEA_GOERLI]: "0x2C1b868d6596a18e32E61B901E4060C872647b6C",
},
},
MATIC: {
Expand Down Expand Up @@ -185,6 +192,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.BASE]: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
[CHAIN_IDs.BASE_GOERLI]: "0x853154e2A5604E5C74a2546E2871Ad44932eB92C",
[CHAIN_IDs.BASE_SEPOLIA]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
[CHAIN_IDs.LINEA]: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff",
[CHAIN_IDs.LINEA_GOERLI]: "0xB4257F31750961C8e536f5cfCBb3079437700416",
},
},
USDT: {
Expand Down Expand Up @@ -212,6 +221,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.ARBITRUM]: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
[CHAIN_IDs.ZK_SYNC]: "0xBBeB516fb02a01611cBBE0453Fe3c580D7281011",
[CHAIN_IDs.ZK_SYNC_GOERLI]: "0x0BfcE1D53451B4a8175DD94e6e029F7d8a701e9c",
[CHAIN_IDs.LINEA]: "0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4",
},
},
WETH: {
Expand All @@ -237,6 +247,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_GOERLI]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LINEA]: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
[CHAIN_IDs.LINEA_GOERLI]: "0x2C1b868d6596a18e32E61B901E4060C872647b6C",
},
},
WMATIC: {
Expand Down

0 comments on commit cdd23f6

Please sign in to comment.