Skip to content

Commit

Permalink
Update chains.py to contain Linea data (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: VGau <[email protected]>
Co-authored-by: Victorien Gauch <[email protected]>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent 4ac9e34 commit 163cf39
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 7 deletions.
99 changes: 92 additions & 7 deletions evmchains/chains.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is auto-generated by scripts/update_rpc.py
# 2024-03-08 22:05:08.915228
# This file is auto-generated by scripts/update.py
# 2024-04-09 14:08:35.326760
# Do not edit this file directly.
from typing import Any, Dict

Expand Down Expand Up @@ -280,7 +280,7 @@
"symbol": "ETH",
},
"networkId": 168587773,
"rpc": ["https://sepolia.blast.io"],
"rpc": ["https://sepolia.blast.io", "https://blast-sepolia.drpc.org"],
"shortName": "blastsepolia",
"slip44": None,
},
Expand Down Expand Up @@ -410,6 +410,7 @@
"https://rpc.mevblocker.io/fast",
"https://rpc.mevblocker.io/noreverts",
"https://rpc.mevblocker.io/fullprivacy",
"https://eth.drpc.org",
],
"shortName": "eth",
"slip44": 60,
Expand Down Expand Up @@ -488,6 +489,7 @@
"https://sepolia.infura.io/v3/${INFURA_API_KEY}",
"https://sepolia.gateway.tenderly.co",
"https://ethereum-sepolia-rpc.publicnode.com",
"https://sepolia.drpc.org",
],
"shortName": "sep",
"slip44": 1,
Expand Down Expand Up @@ -519,7 +521,11 @@
"name": "Fantom Opera",
"nativeCurrency": {"decimals": 18, "name": "Fantom", "symbol": "FTM"},
"networkId": 250,
"rpc": ["https://rpc.ftm.tools", "https://fantom-rpc.publicnode.com"],
"rpc": [
"https://rpc.ftm.tools",
"https://fantom-rpc.publicnode.com",
"https://fantom.drpc.org",
],
"shortName": "ftm",
"slip44": None,
},
Expand All @@ -545,6 +551,7 @@
"rpc": [
"https://rpc.testnet.fantom.network",
"https://fantom-testnet-rpc.publicnode.com",
"https://fantom-testnet.drpc.org",
],
"shortName": "tftm",
"slip44": 1,
Expand Down Expand Up @@ -636,6 +643,7 @@
"https://mainnet.optimism.io",
"https://optimism-rpc.publicnode.com",
"https://optimism.gateway.tenderly.co",
"https://optimism.drpc.org",
],
"shortName": "oeth",
"slip44": None,
Expand Down Expand Up @@ -663,6 +671,7 @@
"https://goerli.optimism.io",
"https://optimism-goerli-rpc.publicnode.com",
"https://optimism-goerli.gateway.tenderly.co",
"https://optimism-testnet.drpc.org",
],
"shortName": "ogor",
"slip44": 1,
Expand Down Expand Up @@ -690,7 +699,7 @@
"symbol": "ETH",
},
"networkId": 11155420,
"rpc": ["https://sepolia.optimism.io"],
"rpc": ["https://sepolia.optimism.io", "https://optimism-sepolia.drpc.org"],
"shortName": "opsep",
"slip44": 1,
},
Expand Down Expand Up @@ -777,6 +786,7 @@
"https://matic-mainnet-full-rpc.bwarelabs.com",
"https://polygon-bor-rpc.publicnode.com",
"https://polygon.gateway.tenderly.co",
"https://polygon.drpc.org",
],
"shortName": "matic",
"slip44": 966,
Expand Down Expand Up @@ -828,7 +838,7 @@
"name": "Polygon zkEVM",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 1101,
"rpc": ["https://zkevm-rpc.com"],
"rpc": ["https://zkevm-rpc.com", "https://polygon-zkevm.drpc.org"],
"shortName": "zkevm",
"slip44": None,
},
Expand All @@ -850,9 +860,84 @@
"name": "Polygon zkEVM Testnet",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 1442,
"rpc": ["https://rpc.public.zkevm-test.net"],
"rpc": [
"https://rpc.public.zkevm-test.net",
"https://polygon-zkevm-testnet.drpc.org",
],
"shortName": "testnet-zkEVM-mango",
"slip44": 1,
},
},
"linea": {
"mainnet": {
"chain": "ETH",
"chainId": 59144,
"ens": None,
"explorers": [
{
"icon": "linea",
"name": "Etherscan",
"standard": "EIP3091",
"url": "https://lineascan.build",
},
{
"icon": "linea",
"name": "Blockscout",
"standard": "EIP3091",
"url": "https://explorer.linea.build",
},
{
"icon": "linea",
"name": "L2scan",
"standard": "EIP3091",
"url": "https://linea.l2scan.co",
},
],
"faucets": [],
"features": None,
"icon": "linea",
"infoURL": "https://linea.build",
"name": "Linea",
"nativeCurrency": {"decimals": 18, "name": "Linea Ether", "symbol": "ETH"},
"networkId": 59144,
"rpc": [
"https://rpc.linea.build",
"https://linea-mainnet.infura.io/v3/${INFURA_API_KEY}",
],
"shortName": "linea",
"slip44": None,
},
"sepolia": {
"chain": "ETH",
"chainId": 59141,
"ens": None,
"explorers": [
{
"icon": "linea",
"name": "Etherscan",
"standard": "EIP3091",
"url": "https://sepolia.lineascan.build",
},
{
"icon": "linea",
"name": "Blockscout",
"standard": "EIP3091",
"url": "https://explorer.sepolia.linea.build",
},
],
"faucets": [],
"features": None,
"icon": "linea",
"infoURL": "https://linea.build",
"name": "Linea Sepolia",
"nativeCurrency": {"decimals": 18, "name": "Linea Ether", "symbol": "ETH"},
"networkId": 59141,
"rpc": [
"https://rpc.sepolia.linea.build",
"https://linea-sepolia.infura.io/v3/${INFURA_API_KEY}",
],
"shortName": "linea-sepolia",
"slip44": 1,
},
},
}
4 changes: 4 additions & 0 deletions scripts/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"mainnet": 1101,
"testnet": 1442,
},
"linea": {
"mainnet": 59144,
"sepolia": 59141,
},
}

pp = PrettyPrinter(indent=4)
Expand Down

0 comments on commit 163cf39

Please sign in to comment.