Skip to content

Commit

Permalink
feat: add Linea (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasmoeller committed Aug 29, 2023
1 parent 2d9a506 commit 806597a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/chains/supported.chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,29 @@ export const supportedEVMChains: EVMChain[] = [
rpcUrls: ['https://mainnet.base.org'],
},
},
{
key: ChainKey.LNA,
chainType: ChainType.EVM,
name: 'Linea',
coin: CoinKey.ETH,
id: 59144,
mainnet: true,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
multicallAddress: multicallAddresses[ChainId.LNA],

metamask: {
chainId: prefixChainId(59144),
blockExplorerUrls: ['https://lineascan.build/'],
chainName: 'LINEA',
nativeCurrency: {
name: 'ETH',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: ['https://rpc.linea.build'],
},
},

// TESTNETS
// 5 - Goerli
Expand Down
29 changes: 29 additions & 0 deletions src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const basicCoins: BasicCoin[] = [
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.LNA]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.FTM]: {
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
decimals: 18,
Expand Down Expand Up @@ -590,6 +594,11 @@ const basicCoins: BasicCoin[] = [
decimals: 6,
name: 'Multichain USDT',
},
[ChainId.LNA]: {
address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
decimals: 6,
name: 'USDT',
},

// Testnets
[ChainId.GOR]: {
Expand Down Expand Up @@ -916,6 +925,11 @@ const basicCoins: BasicCoin[] = [
decimals: 6,
name: 'Multichain USDC',
},
[ChainId.LNA]: {
address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
decimals: 6,
name: 'USDC.e',
},

// Testnets
[ChainId.GOR]: {
Expand Down Expand Up @@ -1194,6 +1208,10 @@ const basicCoins: BasicCoin[] = [
address: '0x4200000000000000000000000000000000000006',
decimals: 18,
},
[ChainId.LNA]: {
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
decimals: 18,
},
[ChainId.AVA]: {
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
decimals: 18,
Expand Down Expand Up @@ -1687,6 +1705,17 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
logoURI:
'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
},
[ChainId.LNA]: {
// https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.LNA,
coinKey: CoinKey.WETH,
name: 'Wrapped Ether',
logoURI:
'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
},
[ChainId.FTM]: {
//
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
Expand Down

0 comments on commit 806597a

Please sign in to comment.