Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Shibarium chain support #14

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.

Original soure data: https://github.com/ethereum-lists/chains
Original source data: https://github.com/ethereum-lists/chains

## Quick Start

## Dependencies

- [python3](https://www.python.org/downloads) version 3.8 up to 3.11.
- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.

## Installation

Expand Down
197 changes: 124 additions & 73 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.py
# 2024-05-30 20:30:00.884580
# 2024-06-14 15:00:06.554669
# Do not edit this file directly.
from typing import Any, Dict

Expand Down Expand Up @@ -253,6 +253,7 @@
"https://blast.din.dev/rpc",
"https://blastl2-mainnet.public.blastapi.io",
"https://blast.blockpi.network/v1/rpc/public",
"https://blast-rpc.publicnode.com",
],
"shortName": "blastmainnet",
"slip44": None,
Expand Down Expand Up @@ -652,6 +653,78 @@
"slip44": 700,
},
},
"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,
},
},
"optimism": {
"mainnet": {
"chain": "ETH",
Expand Down Expand Up @@ -912,78 +985,6 @@
"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,
},
},
"rootstock": {
"mainnet": {
"chain": "Rootstock",
Expand Down Expand Up @@ -1047,4 +1048,54 @@
"slip44": 1,
},
},
"shibarium": {
"mainnet": {
"chain": "Shibarium",
"chainId": 109,
"ens": None,
"explorers": [
{
"name": "shibariumscan",
"standard": "none",
"url": "https://www.shibariumscan.io",
}
],
"faucets": [],
"features": None,
"icon": "shibarium",
"infoURL": "https://shibariumecosystem.com",
"name": "Shibarium",
"nativeCurrency": {
"decimals": 18,
"name": "BONE Shibarium",
"symbol": "BONE",
},
"networkId": 109,
"rpc": ["https://www.shibrpc.com"],
"shortName": "shibariumecosystem",
"slip44": None,
},
"puppynet": {
"chain": "Puppynet Shibarium",
"chainId": 157,
"ens": None,
"explorers": [
{
"name": "puppyscan",
"standard": "none",
"url": "https://puppyscan.shib.io",
}
],
"faucets": ["https://beta.shibariumtech.com/faucet"],
"features": None,
"icon": "shibarium",
"infoURL": "https://shibariumecosystem.com",
"name": "Puppynet Shibarium",
"nativeCurrency": {"decimals": 18, "name": "BONE", "symbol": "BONE"},
"networkId": 157,
"rpc": ["https://puppynet.shibrpc.com"],
"shortName": "puppynet",
"slip44": None,
},
},
}
12 changes: 8 additions & 4 deletions scripts/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"gnosis": {
"mainnet": 100,
},
"linea": {
"mainnet": 59144,
"sepolia": 59141,
},
"optimism": {
"mainnet": 10,
"goerli": 420,
Expand All @@ -73,14 +77,14 @@
"mainnet": 1101,
"testnet": 1442,
},
"linea": {
"mainnet": 59144,
"sepolia": 59141,
},
"rootstock": {
"mainnet": 30,
"testnet": 31,
},
"shibarium": {
"mainnet": 109,
"puppynet": 157,
}
}

pp = PrettyPrinter(indent=4)
Expand Down
Loading