evmchains 0.1.5__tar.gz → 0.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- evmchains-0.1.7/.github/workflows/publish.yaml +22 -0
- evmchains-0.1.7/.github/workflows/test.yaml +54 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/.gitignore +3 -0
- evmchains-0.1.7/PKG-INFO +83 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains/__init__.py +2 -2
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains/chains.py +247 -69
- evmchains-0.1.7/evmchains/types.py +25 -0
- evmchains-0.1.5/evmchains/_meta.py → evmchains-0.1.7/evmchains/version.py +16 -3
- evmchains-0.1.7/evmchains.egg-info/PKG-INFO +83 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains.egg-info/SOURCES.txt +2 -4
- evmchains-0.1.7/evmchains.egg-info/requires.txt +1 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/pyproject.toml +43 -25
- {evmchains-0.1.5 → evmchains-0.1.7}/scripts/update.py +29 -12
- evmchains-0.1.7/setup.cfg +4 -0
- evmchains-0.1.5/.github/workflows/release.yaml +0 -60
- evmchains-0.1.5/.github/workflows/test.yaml +0 -78
- evmchains-0.1.5/PKG-INFO +0 -292
- evmchains-0.1.5/evmchains/types.py +0 -25
- evmchains-0.1.5/evmchains.egg-info/PKG-INFO +0 -292
- evmchains-0.1.5/evmchains.egg-info/requires.txt +0 -11
- evmchains-0.1.5/setup.cfg +0 -17
- evmchains-0.1.5/setup.py +0 -5
- {evmchains-0.1.5 → evmchains-0.1.7}/CONTRIBUTING.md +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/LICENSE +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/README.md +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains/py.typed +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains.egg-info/dependency_links.txt +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/evmchains.egg-info/top_level.txt +0 -0
- {evmchains-0.1.5 → evmchains-0.1.7}/tests/test_func.py +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
deploy:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v5
|
|
15
|
+
|
|
16
|
+
- uses: astral-sh/setup-uv@v7
|
|
17
|
+
|
|
18
|
+
- name: Build dist
|
|
19
|
+
run: uv build
|
|
20
|
+
|
|
21
|
+
- name: Publish Package
|
|
22
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
on: [push, pull_request]
|
|
2
|
+
|
|
3
|
+
name: Test
|
|
4
|
+
|
|
5
|
+
concurrency:
|
|
6
|
+
# Cancel older, in-progress jobs from the same PR, same workflow.
|
|
7
|
+
# use run_id if the job is triggered by a push to ensure
|
|
8
|
+
# push-triggered jobs to not get canceled.
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linting:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v5
|
|
18
|
+
- name: Setup uv
|
|
19
|
+
uses: astral-sh/setup-uv@v7
|
|
20
|
+
- name: Run linter
|
|
21
|
+
run: uv run --group lint ruff check .
|
|
22
|
+
- name: Run format check
|
|
23
|
+
run: uv run --group lint ruff format --check .
|
|
24
|
+
- name: Run mdformat
|
|
25
|
+
run: uv run --group lint mdformat *.md
|
|
26
|
+
|
|
27
|
+
type-check:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v5
|
|
32
|
+
- name: Setup uv
|
|
33
|
+
uses: astral-sh/setup-uv@v7
|
|
34
|
+
- name: Run MyPy
|
|
35
|
+
run: uv run --group lint mypy .
|
|
36
|
+
|
|
37
|
+
test:
|
|
38
|
+
runs-on: ${{ matrix.os }}
|
|
39
|
+
|
|
40
|
+
strategy:
|
|
41
|
+
matrix:
|
|
42
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
43
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v5
|
|
47
|
+
with:
|
|
48
|
+
fetch-depth: 0
|
|
49
|
+
- name: Setup uv
|
|
50
|
+
uses: astral-sh/setup-uv@v7
|
|
51
|
+
with:
|
|
52
|
+
python-version: ${{ matrix.python-version }}
|
|
53
|
+
- name: Run Tests
|
|
54
|
+
run: uv run --group test pytest
|
evmchains-0.1.7/PKG-INFO
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: evmchains
|
|
3
|
+
Version: 0.1.7
|
|
4
|
+
Summary: Packaged metadata on Ethereum Virtual Machine (EVM) chains
|
|
5
|
+
Author-email: ApeWorX <admin@apeworx.io>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/ApeWorX/evmchains
|
|
8
|
+
Project-URL: Documentation, https://github.com/ApeWorX/evmchains#readme
|
|
9
|
+
Project-URL: Issues, https://github.com/ApeWorX/evmchains/issues
|
|
10
|
+
Project-URL: Source, https://github.com/ApeWorX/evmchains
|
|
11
|
+
Keywords: ethereum,evm,blockchain
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Natural Language :: English
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: POSIX
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: pydantic<3,>=2.5.3
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# Python EVM Chains Metadata
|
|
31
|
+
|
|
32
|
+
Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.
|
|
33
|
+
|
|
34
|
+
Original source data: https://github.com/ethereum-lists/chains
|
|
35
|
+
|
|
36
|
+
## Quick Start
|
|
37
|
+
|
|
38
|
+
## Dependencies
|
|
39
|
+
|
|
40
|
+
- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
|
|
44
|
+
### via `pip`
|
|
45
|
+
|
|
46
|
+
You can install the latest release via [`pip`](https://pypi.org/project/pip/):
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install evmchains
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### via `setuptools`
|
|
53
|
+
|
|
54
|
+
You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
git clone https://github.com/ApeWorX/evmchains.git
|
|
58
|
+
cd evmchains
|
|
59
|
+
python3 setup.py install
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Quick Usage
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
from evmchains import get_chain_meta
|
|
66
|
+
chain = get_chain_meta("ethereum", "mainnet")
|
|
67
|
+
assert chain.chainId == 1
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Development
|
|
71
|
+
|
|
72
|
+
Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
|
|
73
|
+
Comments, questions, criticisms and pull requests are welcomed.
|
|
74
|
+
|
|
75
|
+
### Adding Chains
|
|
76
|
+
|
|
77
|
+
To add a chain to the metadata, please open a pull request with the following changes:
|
|
78
|
+
|
|
79
|
+
- Update `CHAIN_IDS` in `scripts/update.py` with the chain IDs you want to add
|
|
80
|
+
- Run `python scripts/update.py`
|
|
81
|
+
- Submit a PR with the updated script and updated `evmchain/chains.py` metdata file
|
|
82
|
+
|
|
83
|
+
**Do not edit `evmchain/chains.py` manually.** Any manual changes are likely to be overwritten later.
|
|
@@ -7,7 +7,7 @@ below utility functions.
|
|
|
7
7
|
import os
|
|
8
8
|
import random
|
|
9
9
|
import re
|
|
10
|
-
from typing import TYPE_CHECKING
|
|
10
|
+
from typing import TYPE_CHECKING
|
|
11
11
|
|
|
12
12
|
if TYPE_CHECKING:
|
|
13
13
|
from evmchains.types import Chain
|
|
@@ -29,7 +29,7 @@ def get_chain_meta(ecosystem: str, network: str) -> "Chain":
|
|
|
29
29
|
return Chain(**PUBLIC_CHAIN_META[ecosystem][network])
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
def get_rpcs(ecosystem: str, network: str) ->
|
|
32
|
+
def get_rpcs(ecosystem: str, network: str) -> list[str]:
|
|
33
33
|
"""Get a list of valid RPC endpoints for an ecosystem:network pair."""
|
|
34
34
|
rpcs = []
|
|
35
35
|
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!
|
|
4
4
|
!!!! DO NOT EDIT THIS FILE DIRECTLY! !!!!
|
|
5
5
|
!!!! This file is auto-generated by scripts/update.py !!!!
|
|
6
|
-
!!!!
|
|
6
|
+
!!!! 2026-02-02 19:03:24.333842+00:00 !!!!
|
|
7
7
|
!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
10
|
+
PUBLIC_CHAIN_META: dict[str, dict[str, dict]] = {
|
|
13
11
|
"abstract": {
|
|
14
12
|
"mainnet": {
|
|
15
13
|
"chain": "Abstract",
|
|
@@ -422,27 +420,62 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
422
420
|
},
|
|
423
421
|
},
|
|
424
422
|
"berachain": {
|
|
425
|
-
"
|
|
426
|
-
"chain": "Berachain
|
|
427
|
-
"chainId":
|
|
423
|
+
"bepolia": {
|
|
424
|
+
"chain": "Berachain",
|
|
425
|
+
"chainId": 80069,
|
|
428
426
|
"ens": None,
|
|
429
427
|
"explorers": [
|
|
430
428
|
{
|
|
431
429
|
"icon": "berachain",
|
|
432
430
|
"name": "Beratrail",
|
|
433
431
|
"standard": "none",
|
|
434
|
-
"url": "https://
|
|
432
|
+
"url": "https://bepolia.beratrail.io",
|
|
435
433
|
}
|
|
436
434
|
],
|
|
437
435
|
"faucets": [],
|
|
438
436
|
"features": None,
|
|
439
437
|
"icon": "berachain",
|
|
440
438
|
"infoURL": "https://www.berachain.com",
|
|
441
|
-
"name": "Berachain
|
|
439
|
+
"name": "Berachain Bepolia",
|
|
440
|
+
"nativeCurrency": {
|
|
441
|
+
"decimals": 18,
|
|
442
|
+
"name": "Testnet BERA Token",
|
|
443
|
+
"symbol": "BERA",
|
|
444
|
+
},
|
|
445
|
+
"networkId": 80069,
|
|
446
|
+
"rpc": ["https://bepolia.rpc.berachain.com"],
|
|
447
|
+
"shortName": "berachain-bepolia",
|
|
448
|
+
"slip44": None,
|
|
449
|
+
},
|
|
450
|
+
"mainnet": {
|
|
451
|
+
"chain": "Berachain",
|
|
452
|
+
"chainId": 80094,
|
|
453
|
+
"ens": None,
|
|
454
|
+
"explorers": [
|
|
455
|
+
{
|
|
456
|
+
"name": "Berascan",
|
|
457
|
+
"standard": "EIP3091",
|
|
458
|
+
"url": "https://berascan.com",
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "Beratrail",
|
|
462
|
+
"standard": "EIP3091",
|
|
463
|
+
"url": "https://beratrail.io",
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
"faucets": [],
|
|
467
|
+
"features": None,
|
|
468
|
+
"icon": "berachain",
|
|
469
|
+
"infoURL": "https://www.berachain.com",
|
|
470
|
+
"name": "Berachain",
|
|
442
471
|
"nativeCurrency": {"decimals": 18, "name": "BERA Token", "symbol": "BERA"},
|
|
443
|
-
"networkId":
|
|
444
|
-
"rpc": [
|
|
445
|
-
|
|
472
|
+
"networkId": 80094,
|
|
473
|
+
"rpc": [
|
|
474
|
+
"https://rpc.berachain.com",
|
|
475
|
+
"https://berachain-rpc.publicnode.com",
|
|
476
|
+
"https://rpc.berachain-apis.com",
|
|
477
|
+
],
|
|
478
|
+
"shortName": "berachain",
|
|
446
479
|
"slip44": None,
|
|
447
480
|
},
|
|
448
481
|
},
|
|
@@ -742,8 +775,8 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
742
775
|
},
|
|
743
776
|
{
|
|
744
777
|
"name": "blockscout",
|
|
745
|
-
"standard": "
|
|
746
|
-
"url": "https://
|
|
778
|
+
"standard": "EIP3091",
|
|
779
|
+
"url": "https://celo.blockscout.com",
|
|
747
780
|
},
|
|
748
781
|
],
|
|
749
782
|
"faucets": [],
|
|
@@ -1076,6 +1109,31 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1076
1109
|
"shortName": "holesky",
|
|
1077
1110
|
"slip44": 1,
|
|
1078
1111
|
},
|
|
1112
|
+
"hoodi": {
|
|
1113
|
+
"chain": "ETH",
|
|
1114
|
+
"chainId": 560048,
|
|
1115
|
+
"ens": None,
|
|
1116
|
+
"explorers": [
|
|
1117
|
+
{
|
|
1118
|
+
"name": "dora",
|
|
1119
|
+
"standard": "none",
|
|
1120
|
+
"url": "https://light-hoodi.beaconcha.in",
|
|
1121
|
+
}
|
|
1122
|
+
],
|
|
1123
|
+
"faucets": [
|
|
1124
|
+
"https://faucet.hoodi.ethpandaops.io",
|
|
1125
|
+
"https://hoodi-faucet.pk910.de/",
|
|
1126
|
+
],
|
|
1127
|
+
"features": [{"name": "EIP155"}, {"name": "EIP1559"}],
|
|
1128
|
+
"icon": "ethereum",
|
|
1129
|
+
"infoURL": "https://hoodi.ethpandaops.io",
|
|
1130
|
+
"name": "Ethereum Hoodi",
|
|
1131
|
+
"nativeCurrency": {"decimals": 18, "name": "Hoodi Ether", "symbol": "ETH"},
|
|
1132
|
+
"networkId": 560048,
|
|
1133
|
+
"rpc": ["https://rpc.hoodi.ethpandaops.io"],
|
|
1134
|
+
"shortName": "hoe",
|
|
1135
|
+
"slip44": 1,
|
|
1136
|
+
},
|
|
1079
1137
|
"sepolia": {
|
|
1080
1138
|
"chain": "ETH",
|
|
1081
1139
|
"chainId": 11155111,
|
|
@@ -1341,27 +1399,17 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1341
1399
|
"icon": "fraxtal",
|
|
1342
1400
|
"infoURL": "https://mainnet.frax.com",
|
|
1343
1401
|
"name": "Fraxtal",
|
|
1344
|
-
"nativeCurrency": {
|
|
1345
|
-
"decimals": 18,
|
|
1346
|
-
"name": "Frax Ether",
|
|
1347
|
-
"symbol": "frxETH",
|
|
1348
|
-
},
|
|
1402
|
+
"nativeCurrency": {"decimals": 18, "name": "Frax", "symbol": "FRAX"},
|
|
1349
1403
|
"networkId": 252,
|
|
1350
1404
|
"rpc": ["https://rpc.frax.com", "https://fraxtal-rpc.publicnode.com"],
|
|
1351
|
-
"shortName": "
|
|
1405
|
+
"shortName": "frax",
|
|
1352
1406
|
"slip44": None,
|
|
1353
1407
|
},
|
|
1354
1408
|
"holesky": {
|
|
1355
1409
|
"chain": "FRAX",
|
|
1356
1410
|
"chainId": 2522,
|
|
1357
1411
|
"ens": None,
|
|
1358
|
-
"explorers": [
|
|
1359
|
-
{
|
|
1360
|
-
"name": "fraxscan",
|
|
1361
|
-
"standard": "EIP3091",
|
|
1362
|
-
"url": "https://holesky.fraxscan.com",
|
|
1363
|
-
}
|
|
1364
|
-
],
|
|
1412
|
+
"explorers": [],
|
|
1365
1413
|
"faucets": [],
|
|
1366
1414
|
"features": None,
|
|
1367
1415
|
"icon": "fraxtal",
|
|
@@ -1369,10 +1417,7 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1369
1417
|
"name": "Fraxtal Testnet",
|
|
1370
1418
|
"nativeCurrency": {"decimals": 18, "name": "Frax", "symbol": "FRAX"},
|
|
1371
1419
|
"networkId": 2522,
|
|
1372
|
-
"rpc": [
|
|
1373
|
-
"https://rpc.testnet.frax.com",
|
|
1374
|
-
"https://fraxtal-holesky-rpc.publicnode.com",
|
|
1375
|
-
],
|
|
1420
|
+
"rpc": [],
|
|
1376
1421
|
"shortName": "fraxtal-testnet",
|
|
1377
1422
|
"slip44": 1,
|
|
1378
1423
|
},
|
|
@@ -1708,6 +1753,29 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1708
1753
|
"shortName": "lumiatestnet",
|
|
1709
1754
|
"slip44": None,
|
|
1710
1755
|
},
|
|
1756
|
+
"beam": {
|
|
1757
|
+
"chain": "ETH",
|
|
1758
|
+
"chainId": 2030232745,
|
|
1759
|
+
"ens": None,
|
|
1760
|
+
"explorers": [
|
|
1761
|
+
{
|
|
1762
|
+
"icon": "lumia",
|
|
1763
|
+
"name": "Lumia Beam Testnet Explorer",
|
|
1764
|
+
"standard": "EIP3091",
|
|
1765
|
+
"url": "https://beam-explorer.lumia.org",
|
|
1766
|
+
}
|
|
1767
|
+
],
|
|
1768
|
+
"faucets": ["https://beam-faucet.lumia.org/"],
|
|
1769
|
+
"features": [{"name": "EIP155"}, {"name": "EIP1559"}],
|
|
1770
|
+
"icon": "lumia",
|
|
1771
|
+
"infoURL": "https://lumia.org",
|
|
1772
|
+
"name": "Lumia Beam Testnet",
|
|
1773
|
+
"nativeCurrency": {"decimals": 18, "name": "Lumia", "symbol": "LUMIA"},
|
|
1774
|
+
"networkId": 2030232745,
|
|
1775
|
+
"rpc": ["https://beam-rpc.lumia.org"],
|
|
1776
|
+
"shortName": "lumia-beam-testnet",
|
|
1777
|
+
"slip44": None,
|
|
1778
|
+
},
|
|
1711
1779
|
},
|
|
1712
1780
|
"mantle": {
|
|
1713
1781
|
"mainnet": {
|
|
@@ -2333,7 +2401,7 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2333
2401
|
"features": None,
|
|
2334
2402
|
"icon": "polynomialSepolia",
|
|
2335
2403
|
"infoURL": "https://polynomial.fi",
|
|
2336
|
-
"name": "
|
|
2404
|
+
"name": "Polynomial Sepolia",
|
|
2337
2405
|
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2338
2406
|
"networkId": 80008,
|
|
2339
2407
|
"rpc": ["https://rpc.sepolia.polynomial.fi"],
|
|
@@ -2355,9 +2423,9 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2355
2423
|
}
|
|
2356
2424
|
],
|
|
2357
2425
|
"faucets": ["https://faucet.testnet.riselabs.xyz"],
|
|
2358
|
-
"features": [{"name": "EIP155"}, {"name": "EIP1559"}],
|
|
2426
|
+
"features": [{"name": "EIP155"}, {"name": "EIP1559"}, {"name": "EIP7702"}],
|
|
2359
2427
|
"icon": "rise",
|
|
2360
|
-
"infoURL": "https://
|
|
2428
|
+
"infoURL": "https://risechain.com/",
|
|
2361
2429
|
"name": "RISE Testnet",
|
|
2362
2430
|
"nativeCurrency": {
|
|
2363
2431
|
"decimals": 18,
|
|
@@ -2597,6 +2665,54 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2597
2665
|
"slip44": 1,
|
|
2598
2666
|
},
|
|
2599
2667
|
},
|
|
2668
|
+
"sophon": {
|
|
2669
|
+
"mainnet": {
|
|
2670
|
+
"chain": "Sophon",
|
|
2671
|
+
"chainId": 50104,
|
|
2672
|
+
"ens": None,
|
|
2673
|
+
"explorers": [
|
|
2674
|
+
{
|
|
2675
|
+
"icon": "sophon-testnet",
|
|
2676
|
+
"name": "Sophon Block Explorer",
|
|
2677
|
+
"standard": "none",
|
|
2678
|
+
"url": "https://explorer.sophon.xyz",
|
|
2679
|
+
}
|
|
2680
|
+
],
|
|
2681
|
+
"faucets": [],
|
|
2682
|
+
"features": None,
|
|
2683
|
+
"icon": None,
|
|
2684
|
+
"infoURL": "",
|
|
2685
|
+
"name": "Sophon",
|
|
2686
|
+
"nativeCurrency": {"decimals": 18, "name": "Sophon", "symbol": "SOPH"},
|
|
2687
|
+
"networkId": 50104,
|
|
2688
|
+
"rpc": ["https://rpc.sophon.xyz"],
|
|
2689
|
+
"shortName": "sophon",
|
|
2690
|
+
"slip44": None,
|
|
2691
|
+
},
|
|
2692
|
+
"sepolia": {
|
|
2693
|
+
"chain": "Sophon Testnet",
|
|
2694
|
+
"chainId": 531050104,
|
|
2695
|
+
"ens": None,
|
|
2696
|
+
"explorers": [
|
|
2697
|
+
{
|
|
2698
|
+
"icon": "sophon-testnet",
|
|
2699
|
+
"name": "Sophon Block Explorer",
|
|
2700
|
+
"standard": "none",
|
|
2701
|
+
"url": "https://explorer.testnet.sophon.xyz",
|
|
2702
|
+
}
|
|
2703
|
+
],
|
|
2704
|
+
"faucets": [],
|
|
2705
|
+
"features": None,
|
|
2706
|
+
"icon": None,
|
|
2707
|
+
"infoURL": "",
|
|
2708
|
+
"name": "Sophon Testnet",
|
|
2709
|
+
"nativeCurrency": {"decimals": 18, "name": "Sophon", "symbol": "SOPH"},
|
|
2710
|
+
"networkId": 531050104,
|
|
2711
|
+
"rpc": ["https://rpc.testnet.sophon.xyz"],
|
|
2712
|
+
"shortName": "sophon-testnet",
|
|
2713
|
+
"slip44": None,
|
|
2714
|
+
},
|
|
2715
|
+
},
|
|
2600
2716
|
"soneium": {
|
|
2601
2717
|
"minato": {
|
|
2602
2718
|
"chain": "ETH",
|
|
@@ -2627,12 +2743,18 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2627
2743
|
"chainId": 146,
|
|
2628
2744
|
"ens": None,
|
|
2629
2745
|
"explorers": [
|
|
2746
|
+
{
|
|
2747
|
+
"icon": "sonic",
|
|
2748
|
+
"name": "etherscan",
|
|
2749
|
+
"standard": "EIP3091",
|
|
2750
|
+
"url": "https://sonicscan.org",
|
|
2751
|
+
},
|
|
2630
2752
|
{
|
|
2631
2753
|
"icon": "sonic",
|
|
2632
2754
|
"name": "sonic",
|
|
2633
2755
|
"standard": "none",
|
|
2634
2756
|
"url": "https://explorer.soniclabs.com",
|
|
2635
|
-
}
|
|
2757
|
+
},
|
|
2636
2758
|
],
|
|
2637
2759
|
"faucets": [],
|
|
2638
2760
|
"features": [{"name": "EIP155"}],
|
|
@@ -2665,6 +2787,58 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2665
2787
|
"slip44": None,
|
|
2666
2788
|
},
|
|
2667
2789
|
},
|
|
2790
|
+
"swellchain": {
|
|
2791
|
+
"mainnet": {
|
|
2792
|
+
"chain": "ETH",
|
|
2793
|
+
"chainId": 1923,
|
|
2794
|
+
"ens": None,
|
|
2795
|
+
"explorers": [
|
|
2796
|
+
{
|
|
2797
|
+
"name": "Swellchain Explorer",
|
|
2798
|
+
"standard": "none",
|
|
2799
|
+
"url": "https://explorer.swellnetwork.io",
|
|
2800
|
+
}
|
|
2801
|
+
],
|
|
2802
|
+
"faucets": [],
|
|
2803
|
+
"features": None,
|
|
2804
|
+
"icon": "swell",
|
|
2805
|
+
"infoURL": "https://app.swellnetwork.io/layer2/swell-l2",
|
|
2806
|
+
"name": "Swellchain",
|
|
2807
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2808
|
+
"networkId": 1923,
|
|
2809
|
+
"rpc": [
|
|
2810
|
+
"https://swell-mainnet.alt.technology",
|
|
2811
|
+
"https://rpc.ankr.com/swell",
|
|
2812
|
+
],
|
|
2813
|
+
"shortName": "swellchain",
|
|
2814
|
+
"slip44": None,
|
|
2815
|
+
},
|
|
2816
|
+
"sepolia": {
|
|
2817
|
+
"chain": "ETH",
|
|
2818
|
+
"chainId": 1924,
|
|
2819
|
+
"ens": None,
|
|
2820
|
+
"explorers": [
|
|
2821
|
+
{
|
|
2822
|
+
"name": "Swellchain Testnet Explorer",
|
|
2823
|
+
"standard": "none",
|
|
2824
|
+
"url": "https://swell-testnet-explorer.alt.technology",
|
|
2825
|
+
}
|
|
2826
|
+
],
|
|
2827
|
+
"faucets": [],
|
|
2828
|
+
"features": None,
|
|
2829
|
+
"icon": "swell",
|
|
2830
|
+
"infoURL": "https://app.swellnetwork.io/layer2/swell-l2",
|
|
2831
|
+
"name": "Swellchain Testnet",
|
|
2832
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2833
|
+
"networkId": 1924,
|
|
2834
|
+
"rpc": [
|
|
2835
|
+
"https://swell-testnet.alt.technology",
|
|
2836
|
+
"https://rpc.ankr.com/swell-testnet",
|
|
2837
|
+
],
|
|
2838
|
+
"shortName": "swellchain-sep",
|
|
2839
|
+
"slip44": None,
|
|
2840
|
+
},
|
|
2841
|
+
},
|
|
2668
2842
|
"taiko": {
|
|
2669
2843
|
"mainnet": {
|
|
2670
2844
|
"chain": "ETH",
|
|
@@ -2700,29 +2874,15 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2700
2874
|
"chain": "ETH",
|
|
2701
2875
|
"chainId": 167009,
|
|
2702
2876
|
"ens": None,
|
|
2703
|
-
"explorers": [
|
|
2704
|
-
{
|
|
2705
|
-
"name": "blockscout",
|
|
2706
|
-
"standard": "EIP3091",
|
|
2707
|
-
"url": "https://blockscoutapi.hekla.taiko.xyz",
|
|
2708
|
-
},
|
|
2709
|
-
{
|
|
2710
|
-
"name": "Routescan",
|
|
2711
|
-
"standard": "EIP3091",
|
|
2712
|
-
"url": "https://hekla.taikoexplorer.com",
|
|
2713
|
-
},
|
|
2714
|
-
],
|
|
2877
|
+
"explorers": [],
|
|
2715
2878
|
"faucets": [],
|
|
2716
2879
|
"features": None,
|
|
2717
2880
|
"icon": "taiko",
|
|
2718
2881
|
"infoURL": "https://taiko.xyz",
|
|
2719
|
-
"name": "Taiko Hekla",
|
|
2882
|
+
"name": "Taiko Hekla (deprecated)",
|
|
2720
2883
|
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2721
2884
|
"networkId": 167009,
|
|
2722
|
-
"rpc": [
|
|
2723
|
-
"https://rpc.hekla.taiko.xyz",
|
|
2724
|
-
"https://taiko-hekla-rpc.publicnode.com",
|
|
2725
|
-
],
|
|
2885
|
+
"rpc": [],
|
|
2726
2886
|
"shortName": "tko-hekla",
|
|
2727
2887
|
"slip44": None,
|
|
2728
2888
|
},
|
|
@@ -2762,6 +2922,36 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2762
2922
|
"shortName": "unichain-sep",
|
|
2763
2923
|
"slip44": None,
|
|
2764
2924
|
},
|
|
2925
|
+
"mainnet": {
|
|
2926
|
+
"chain": "ETH",
|
|
2927
|
+
"chainId": 130,
|
|
2928
|
+
"ens": None,
|
|
2929
|
+
"explorers": [
|
|
2930
|
+
{
|
|
2931
|
+
"name": "Unichain Mainnet Explorer",
|
|
2932
|
+
"standard": "EIP3091",
|
|
2933
|
+
"url": "https://uniscan.xyz",
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"name": "Unichain Mainnet Explorer",
|
|
2937
|
+
"standard": "EIP3091",
|
|
2938
|
+
"url": "https://unichain.blockscout.com",
|
|
2939
|
+
},
|
|
2940
|
+
],
|
|
2941
|
+
"faucets": [],
|
|
2942
|
+
"features": None,
|
|
2943
|
+
"icon": "unichain",
|
|
2944
|
+
"infoURL": "https://unichain.org",
|
|
2945
|
+
"name": "Unichain",
|
|
2946
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2947
|
+
"networkId": 130,
|
|
2948
|
+
"rpc": [
|
|
2949
|
+
"https://mainnet.unichain.org",
|
|
2950
|
+
"https://unichain-rpc.publicnode.com",
|
|
2951
|
+
],
|
|
2952
|
+
"shortName": "unichain",
|
|
2953
|
+
"slip44": None,
|
|
2954
|
+
},
|
|
2765
2955
|
},
|
|
2766
2956
|
"wemix": {
|
|
2767
2957
|
"mainnet": {
|
|
@@ -2972,16 +3162,12 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2972
3162
|
"chainId": 7000,
|
|
2973
3163
|
"ens": None,
|
|
2974
3164
|
"explorers": [
|
|
2975
|
-
{
|
|
2976
|
-
"name": "ZetaChain Mainnet Explorer",
|
|
2977
|
-
"standard": "none",
|
|
2978
|
-
"url": "https://explorer.zetachain.com",
|
|
2979
|
-
}
|
|
3165
|
+
{"name": "ZetaScan", "standard": "none", "url": "https://zetascan.com"}
|
|
2980
3166
|
],
|
|
2981
3167
|
"faucets": [],
|
|
2982
3168
|
"features": None,
|
|
2983
3169
|
"icon": "zetachain",
|
|
2984
|
-
"infoURL": "https://zetachain.com/docs
|
|
3170
|
+
"infoURL": "https://zetachain.com/docs",
|
|
2985
3171
|
"name": "ZetaChain Mainnet",
|
|
2986
3172
|
"nativeCurrency": {"decimals": 18, "name": "Zeta", "symbol": "ZETA"},
|
|
2987
3173
|
"networkId": 7000,
|
|
@@ -3003,18 +3189,10 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
3003
3189
|
{
|
|
3004
3190
|
"name": "ZetaScan",
|
|
3005
3191
|
"standard": "none",
|
|
3006
|
-
"url": "https://
|
|
3007
|
-
}
|
|
3008
|
-
{
|
|
3009
|
-
"icon": "blockscout",
|
|
3010
|
-
"name": "Blockscout",
|
|
3011
|
-
"standard": "EIP3091",
|
|
3012
|
-
"url": "https://zetachain-athens-3.blockscout.com",
|
|
3013
|
-
},
|
|
3014
|
-
],
|
|
3015
|
-
"faucets": [
|
|
3016
|
-
"https://www.zetachain.com/docs/reference/apps/get-testnet-zeta/"
|
|
3192
|
+
"url": "https://testnet.zetascan.com",
|
|
3193
|
+
}
|
|
3017
3194
|
],
|
|
3195
|
+
"faucets": ["https://zetachain.com/docs/reference/faucet"],
|
|
3018
3196
|
"features": None,
|
|
3019
3197
|
"icon": "zetachain",
|
|
3020
3198
|
"infoURL": "https://zetachain.com/docs",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Types used in the evmchains package."""
|
|
2
|
+
|
|
3
|
+
# ruff: noqa: N815
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Chain(BaseModel):
|
|
10
|
+
"""Chain object format for chain data from ethereum-lists/chains."""
|
|
11
|
+
|
|
12
|
+
chainId: int
|
|
13
|
+
networkId: int
|
|
14
|
+
name: str
|
|
15
|
+
shortName: str
|
|
16
|
+
chain: str
|
|
17
|
+
infoURL: str
|
|
18
|
+
rpc: list[str]
|
|
19
|
+
faucets: list[str]
|
|
20
|
+
nativeCurrency: dict[str, Any]
|
|
21
|
+
explorers: list[dict[str, str]] = []
|
|
22
|
+
icon: str | None = None
|
|
23
|
+
features: list[dict[str, str]] | None = None
|
|
24
|
+
slip44: int | None = None
|
|
25
|
+
ens: dict[str, str] | None = None
|