evmchains 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
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/__init__.py +2 -2
- evmchains/chains.py +220 -13
- evmchains/types.py +9 -9
- evmchains/{_meta.py → version.py} +16 -3
- evmchains-0.1.6.dist-info/METADATA +83 -0
- evmchains-0.1.6.dist-info/RECORD +10 -0
- evmchains-0.1.5.dist-info/METADATA +0 -292
- evmchains-0.1.5.dist-info/RECORD +0 -10
- {evmchains-0.1.5.dist-info → evmchains-0.1.6.dist-info}/WHEEL +0 -0
- {evmchains-0.1.5.dist-info → evmchains-0.1.6.dist-info}/licenses/LICENSE +0 -0
- {evmchains-0.1.5.dist-info → evmchains-0.1.6.dist-info}/top_level.txt +0 -0
evmchains/__init__.py
CHANGED
|
@@ -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
|
|
evmchains/chains.py
CHANGED
|
@@ -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
|
-
!!!! 2025-06
|
|
6
|
+
!!!! 2025-12-06 00:53:08.602106+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,6 +420,33 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
422
420
|
},
|
|
423
421
|
},
|
|
424
422
|
"berachain": {
|
|
423
|
+
"testnet": {
|
|
424
|
+
"chain": "Berachain",
|
|
425
|
+
"chainId": 80069,
|
|
426
|
+
"ens": None,
|
|
427
|
+
"explorers": [
|
|
428
|
+
{
|
|
429
|
+
"icon": "berachain",
|
|
430
|
+
"name": "Beratrail",
|
|
431
|
+
"standard": "none",
|
|
432
|
+
"url": "https://bepolia.beratrail.io",
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"faucets": [],
|
|
436
|
+
"features": None,
|
|
437
|
+
"icon": "berachain",
|
|
438
|
+
"infoURL": "https://www.berachain.com",
|
|
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
|
+
},
|
|
425
450
|
"bartio": {
|
|
426
451
|
"chain": "Berachain bArtio",
|
|
427
452
|
"chainId": 80084,
|
|
@@ -445,6 +470,37 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
445
470
|
"shortName": "berachainbArtio",
|
|
446
471
|
"slip44": None,
|
|
447
472
|
},
|
|
473
|
+
"mainnet": {
|
|
474
|
+
"chain": "Berachain",
|
|
475
|
+
"chainId": 80094,
|
|
476
|
+
"ens": None,
|
|
477
|
+
"explorers": [
|
|
478
|
+
{
|
|
479
|
+
"name": "Berascan",
|
|
480
|
+
"standard": "EIP3091",
|
|
481
|
+
"url": "https://berascan.com",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "Beratrail",
|
|
485
|
+
"standard": "EIP3091",
|
|
486
|
+
"url": "https://beratrail.io",
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
"faucets": [],
|
|
490
|
+
"features": None,
|
|
491
|
+
"icon": "berachain",
|
|
492
|
+
"infoURL": "https://www.berachain.com",
|
|
493
|
+
"name": "Berachain",
|
|
494
|
+
"nativeCurrency": {"decimals": 18, "name": "BERA Token", "symbol": "BERA"},
|
|
495
|
+
"networkId": 80094,
|
|
496
|
+
"rpc": [
|
|
497
|
+
"https://rpc.berachain.com",
|
|
498
|
+
"https://berachain-rpc.publicnode.com",
|
|
499
|
+
"https://rpc.berachain-apis.com",
|
|
500
|
+
],
|
|
501
|
+
"shortName": "berachain",
|
|
502
|
+
"slip44": None,
|
|
503
|
+
},
|
|
448
504
|
},
|
|
449
505
|
"blast": {
|
|
450
506
|
"mainnet": {
|
|
@@ -742,8 +798,8 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
742
798
|
},
|
|
743
799
|
{
|
|
744
800
|
"name": "blockscout",
|
|
745
|
-
"standard": "
|
|
746
|
-
"url": "https://
|
|
801
|
+
"standard": "EIP3091",
|
|
802
|
+
"url": "https://celo.blockscout.com",
|
|
747
803
|
},
|
|
748
804
|
],
|
|
749
805
|
"faucets": [],
|
|
@@ -1076,6 +1132,31 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1076
1132
|
"shortName": "holesky",
|
|
1077
1133
|
"slip44": 1,
|
|
1078
1134
|
},
|
|
1135
|
+
"hoodi": {
|
|
1136
|
+
"chain": "ETH",
|
|
1137
|
+
"chainId": 560048,
|
|
1138
|
+
"ens": None,
|
|
1139
|
+
"explorers": [
|
|
1140
|
+
{
|
|
1141
|
+
"name": "dora",
|
|
1142
|
+
"standard": "none",
|
|
1143
|
+
"url": "https://light-hoodi.beaconcha.in",
|
|
1144
|
+
}
|
|
1145
|
+
],
|
|
1146
|
+
"faucets": [
|
|
1147
|
+
"https://faucet.hoodi.ethpandaops.io",
|
|
1148
|
+
"https://hoodi-faucet.pk910.de/",
|
|
1149
|
+
],
|
|
1150
|
+
"features": [{"name": "EIP155"}, {"name": "EIP1559"}],
|
|
1151
|
+
"icon": "ethereum",
|
|
1152
|
+
"infoURL": "https://hoodi.ethpandaops.io",
|
|
1153
|
+
"name": "Ethereum Hoodi",
|
|
1154
|
+
"nativeCurrency": {"decimals": 18, "name": "Hoodi Ether", "symbol": "ETH"},
|
|
1155
|
+
"networkId": 560048,
|
|
1156
|
+
"rpc": ["https://rpc.hoodi.ethpandaops.io"],
|
|
1157
|
+
"shortName": "hoe",
|
|
1158
|
+
"slip44": 1,
|
|
1159
|
+
},
|
|
1079
1160
|
"sepolia": {
|
|
1080
1161
|
"chain": "ETH",
|
|
1081
1162
|
"chainId": 11155111,
|
|
@@ -1341,14 +1422,10 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
1341
1422
|
"icon": "fraxtal",
|
|
1342
1423
|
"infoURL": "https://mainnet.frax.com",
|
|
1343
1424
|
"name": "Fraxtal",
|
|
1344
|
-
"nativeCurrency": {
|
|
1345
|
-
"decimals": 18,
|
|
1346
|
-
"name": "Frax Ether",
|
|
1347
|
-
"symbol": "frxETH",
|
|
1348
|
-
},
|
|
1425
|
+
"nativeCurrency": {"decimals": 18, "name": "Frax", "symbol": "FRAX"},
|
|
1349
1426
|
"networkId": 252,
|
|
1350
1427
|
"rpc": ["https://rpc.frax.com", "https://fraxtal-rpc.publicnode.com"],
|
|
1351
|
-
"shortName": "
|
|
1428
|
+
"shortName": "frax",
|
|
1352
1429
|
"slip44": None,
|
|
1353
1430
|
},
|
|
1354
1431
|
"holesky": {
|
|
@@ -2333,7 +2410,7 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2333
2410
|
"features": None,
|
|
2334
2411
|
"icon": "polynomialSepolia",
|
|
2335
2412
|
"infoURL": "https://polynomial.fi",
|
|
2336
|
-
"name": "
|
|
2413
|
+
"name": "Polynomial Sepolia",
|
|
2337
2414
|
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2338
2415
|
"networkId": 80008,
|
|
2339
2416
|
"rpc": ["https://rpc.sepolia.polynomial.fi"],
|
|
@@ -2597,6 +2674,54 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2597
2674
|
"slip44": 1,
|
|
2598
2675
|
},
|
|
2599
2676
|
},
|
|
2677
|
+
"sophon": {
|
|
2678
|
+
"mainnet": {
|
|
2679
|
+
"chain": "Sophon",
|
|
2680
|
+
"chainId": 50104,
|
|
2681
|
+
"ens": None,
|
|
2682
|
+
"explorers": [
|
|
2683
|
+
{
|
|
2684
|
+
"icon": "sophon-testnet",
|
|
2685
|
+
"name": "Sophon Block Explorer",
|
|
2686
|
+
"standard": "none",
|
|
2687
|
+
"url": "https://explorer.sophon.xyz",
|
|
2688
|
+
}
|
|
2689
|
+
],
|
|
2690
|
+
"faucets": [],
|
|
2691
|
+
"features": None,
|
|
2692
|
+
"icon": None,
|
|
2693
|
+
"infoURL": "",
|
|
2694
|
+
"name": "Sophon",
|
|
2695
|
+
"nativeCurrency": {"decimals": 18, "name": "Sophon", "symbol": "SOPH"},
|
|
2696
|
+
"networkId": 50104,
|
|
2697
|
+
"rpc": ["https://rpc.sophon.xyz"],
|
|
2698
|
+
"shortName": "sophon",
|
|
2699
|
+
"slip44": None,
|
|
2700
|
+
},
|
|
2701
|
+
"sepolia": {
|
|
2702
|
+
"chain": "Sophon Testnet",
|
|
2703
|
+
"chainId": 531050104,
|
|
2704
|
+
"ens": None,
|
|
2705
|
+
"explorers": [
|
|
2706
|
+
{
|
|
2707
|
+
"icon": "sophon-testnet",
|
|
2708
|
+
"name": "Sophon Block Explorer",
|
|
2709
|
+
"standard": "none",
|
|
2710
|
+
"url": "https://explorer.testnet.sophon.xyz",
|
|
2711
|
+
}
|
|
2712
|
+
],
|
|
2713
|
+
"faucets": [],
|
|
2714
|
+
"features": None,
|
|
2715
|
+
"icon": None,
|
|
2716
|
+
"infoURL": "",
|
|
2717
|
+
"name": "Sophon Testnet",
|
|
2718
|
+
"nativeCurrency": {"decimals": 18, "name": "Sophon", "symbol": "SOPH"},
|
|
2719
|
+
"networkId": 531050104,
|
|
2720
|
+
"rpc": ["https://rpc.testnet.sophon.xyz"],
|
|
2721
|
+
"shortName": "sophon-testnet",
|
|
2722
|
+
"slip44": None,
|
|
2723
|
+
},
|
|
2724
|
+
},
|
|
2600
2725
|
"soneium": {
|
|
2601
2726
|
"minato": {
|
|
2602
2727
|
"chain": "ETH",
|
|
@@ -2665,6 +2790,58 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2665
2790
|
"slip44": None,
|
|
2666
2791
|
},
|
|
2667
2792
|
},
|
|
2793
|
+
"swellchain": {
|
|
2794
|
+
"mainnet": {
|
|
2795
|
+
"chain": "ETH",
|
|
2796
|
+
"chainId": 1923,
|
|
2797
|
+
"ens": None,
|
|
2798
|
+
"explorers": [
|
|
2799
|
+
{
|
|
2800
|
+
"name": "Swellchain Explorer",
|
|
2801
|
+
"standard": "none",
|
|
2802
|
+
"url": "https://explorer.swellnetwork.io",
|
|
2803
|
+
}
|
|
2804
|
+
],
|
|
2805
|
+
"faucets": [],
|
|
2806
|
+
"features": None,
|
|
2807
|
+
"icon": "swell",
|
|
2808
|
+
"infoURL": "https://app.swellnetwork.io/layer2/swell-l2",
|
|
2809
|
+
"name": "Swellchain",
|
|
2810
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2811
|
+
"networkId": 1923,
|
|
2812
|
+
"rpc": [
|
|
2813
|
+
"https://swell-mainnet.alt.technology",
|
|
2814
|
+
"https://rpc.ankr.com/swell",
|
|
2815
|
+
],
|
|
2816
|
+
"shortName": "swellchain",
|
|
2817
|
+
"slip44": None,
|
|
2818
|
+
},
|
|
2819
|
+
"sepolia": {
|
|
2820
|
+
"chain": "ETH",
|
|
2821
|
+
"chainId": 1924,
|
|
2822
|
+
"ens": None,
|
|
2823
|
+
"explorers": [
|
|
2824
|
+
{
|
|
2825
|
+
"name": "Swellchain Testnet Explorer",
|
|
2826
|
+
"standard": "none",
|
|
2827
|
+
"url": "https://swell-testnet-explorer.alt.technology",
|
|
2828
|
+
}
|
|
2829
|
+
],
|
|
2830
|
+
"faucets": [],
|
|
2831
|
+
"features": None,
|
|
2832
|
+
"icon": "swell",
|
|
2833
|
+
"infoURL": "https://app.swellnetwork.io/layer2/swell-l2",
|
|
2834
|
+
"name": "Swellchain Testnet",
|
|
2835
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2836
|
+
"networkId": 1924,
|
|
2837
|
+
"rpc": [
|
|
2838
|
+
"https://swell-testnet.alt.technology",
|
|
2839
|
+
"https://rpc.ankr.com/swell-testnet",
|
|
2840
|
+
],
|
|
2841
|
+
"shortName": "swellchain-sep",
|
|
2842
|
+
"slip44": None,
|
|
2843
|
+
},
|
|
2844
|
+
},
|
|
2668
2845
|
"taiko": {
|
|
2669
2846
|
"mainnet": {
|
|
2670
2847
|
"chain": "ETH",
|
|
@@ -2762,6 +2939,36 @@ PUBLIC_CHAIN_META: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
2762
2939
|
"shortName": "unichain-sep",
|
|
2763
2940
|
"slip44": None,
|
|
2764
2941
|
},
|
|
2942
|
+
"mainnet": {
|
|
2943
|
+
"chain": "ETH",
|
|
2944
|
+
"chainId": 130,
|
|
2945
|
+
"ens": None,
|
|
2946
|
+
"explorers": [
|
|
2947
|
+
{
|
|
2948
|
+
"name": "Unichain Mainnet Explorer",
|
|
2949
|
+
"standard": "EIP3091",
|
|
2950
|
+
"url": "https://uniscan.xyz",
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
"name": "Unichain Mainnet Explorer",
|
|
2954
|
+
"standard": "EIP3091",
|
|
2955
|
+
"url": "https://unichain.blockscout.com",
|
|
2956
|
+
},
|
|
2957
|
+
],
|
|
2958
|
+
"faucets": [],
|
|
2959
|
+
"features": None,
|
|
2960
|
+
"icon": "unichain",
|
|
2961
|
+
"infoURL": "https://unichain.org",
|
|
2962
|
+
"name": "Unichain",
|
|
2963
|
+
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
|
|
2964
|
+
"networkId": 130,
|
|
2965
|
+
"rpc": [
|
|
2966
|
+
"https://mainnet.unichain.org",
|
|
2967
|
+
"https://unichain-rpc.publicnode.com",
|
|
2968
|
+
],
|
|
2969
|
+
"shortName": "unichain",
|
|
2970
|
+
"slip44": None,
|
|
2971
|
+
},
|
|
2765
2972
|
},
|
|
2766
2973
|
"wemix": {
|
|
2767
2974
|
"mainnet": {
|
evmchains/types.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Types used in the evmchains package."""
|
|
2
2
|
|
|
3
3
|
# ruff: noqa: N815
|
|
4
|
-
from typing import Any
|
|
4
|
+
from typing import Any
|
|
5
5
|
|
|
6
6
|
from pydantic import BaseModel
|
|
7
7
|
|
|
@@ -15,11 +15,11 @@ class Chain(BaseModel):
|
|
|
15
15
|
shortName: str
|
|
16
16
|
chain: str
|
|
17
17
|
infoURL: str
|
|
18
|
-
rpc:
|
|
19
|
-
faucets:
|
|
20
|
-
nativeCurrency:
|
|
21
|
-
explorers:
|
|
22
|
-
icon:
|
|
23
|
-
features:
|
|
24
|
-
slip44:
|
|
25
|
-
ens:
|
|
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
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '0.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
31
|
+
__version__ = version = '0.1.6'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 1, 6)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: evmchains
|
|
3
|
+
Version: 0.1.6
|
|
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.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
evmchains/__init__.py,sha256=r2dYMmTbXseVAt0yUMGK8nrjkyC9c6-dA-oVzfFMrWQ,2026
|
|
2
|
+
evmchains/chains.py,sha256=2t-TNS9W3AjdE8_clFDmEMLSobclMTxQfvJpqOlPx6c,115406
|
|
3
|
+
evmchains/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
evmchains/types.py,sha256=flc8YAW7UJaGj3ZzlTVJ9YJm_iTlZ368Qs5a1JNkPfU,582
|
|
5
|
+
evmchains/version.py,sha256=riGXiVTWXmtdoju9hVCWvTxpszEMAAIK0sZZWoLKlnU,704
|
|
6
|
+
evmchains-0.1.6.dist-info/licenses/LICENSE,sha256=wKVouzimXmZeaCj3f48Vua0vk91U4vjrrt2Ax0u3qBs,11342
|
|
7
|
+
evmchains-0.1.6.dist-info/METADATA,sha256=OF8MG1UNyv1RR-oc8cklxOkumUkSeCrHOm-Xq9T8FlM,2609
|
|
8
|
+
evmchains-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
evmchains-0.1.6.dist-info/top_level.txt,sha256=qwbaOucZ5qXfj0eTHrIujLTezgtcInyR_U-Ef2P4oic,10
|
|
10
|
+
evmchains-0.1.6.dist-info/RECORD,,
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: evmchains
|
|
3
|
-
Version: 0.1.5
|
|
4
|
-
Summary: Packaged metadata on Ethereum Virtual Machine (EVM) chains
|
|
5
|
-
License: Apache License
|
|
6
|
-
Version 2.0, January 2004
|
|
7
|
-
http://www.apache.org/licenses/
|
|
8
|
-
|
|
9
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
10
|
-
|
|
11
|
-
1. Definitions.
|
|
12
|
-
|
|
13
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
14
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
15
|
-
|
|
16
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
17
|
-
the copyright owner that is granting the License.
|
|
18
|
-
|
|
19
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
20
|
-
other entities that control, are controlled by, or are under common
|
|
21
|
-
control with that entity. For the purposes of this definition,
|
|
22
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
23
|
-
direction or management of such entity, whether by contract or
|
|
24
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
25
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
26
|
-
|
|
27
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
28
|
-
exercising permissions granted by this License.
|
|
29
|
-
|
|
30
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
31
|
-
including but not limited to software source code, documentation
|
|
32
|
-
source, and configuration files.
|
|
33
|
-
|
|
34
|
-
"Object" form shall mean any form resulting from mechanical
|
|
35
|
-
transformation or translation of a Source form, including but
|
|
36
|
-
not limited to compiled object code, generated documentation,
|
|
37
|
-
and conversions to other media types.
|
|
38
|
-
|
|
39
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
40
|
-
Object form, made available under the License, as indicated by a
|
|
41
|
-
copyright notice that is included in or attached to the work
|
|
42
|
-
(an example is provided in the Appendix below).
|
|
43
|
-
|
|
44
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
45
|
-
form, that is based on (or derived from) the Work and for which the
|
|
46
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
47
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
48
|
-
of this License, Derivative Works shall not include works that remain
|
|
49
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
50
|
-
the Work and Derivative Works thereof.
|
|
51
|
-
|
|
52
|
-
"Contribution" shall mean any work of authorship, including
|
|
53
|
-
the original version of the Work and any modifications or additions
|
|
54
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
55
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
56
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
57
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
58
|
-
means any form of electronic, verbal, or written communication sent
|
|
59
|
-
to the Licensor or its representatives, including but not limited to
|
|
60
|
-
communication on electronic mailing lists, source code control systems,
|
|
61
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
62
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
63
|
-
excluding communication that is conspicuously marked or otherwise
|
|
64
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
65
|
-
|
|
66
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
67
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
68
|
-
subsequently incorporated within the Work.
|
|
69
|
-
|
|
70
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
71
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
72
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
73
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
74
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
75
|
-
Work and such Derivative Works in Source or Object form.
|
|
76
|
-
|
|
77
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
78
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
79
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
80
|
-
(except as stated in this section) patent license to make, have made,
|
|
81
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
82
|
-
where such license applies only to those patent claims licensable
|
|
83
|
-
by such Contributor that are necessarily infringed by their
|
|
84
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
85
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
86
|
-
institute patent litigation against any entity (including a
|
|
87
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
88
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
89
|
-
or contributory patent infringement, then any patent licenses
|
|
90
|
-
granted to You under this License for that Work shall terminate
|
|
91
|
-
as of the date such litigation is filed.
|
|
92
|
-
|
|
93
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
94
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
95
|
-
modifications, and in Source or Object form, provided that You
|
|
96
|
-
meet the following conditions:
|
|
97
|
-
|
|
98
|
-
(a) You must give any other recipients of the Work or
|
|
99
|
-
Derivative Works a copy of this License; and
|
|
100
|
-
|
|
101
|
-
(b) You must cause any modified files to carry prominent notices
|
|
102
|
-
stating that You changed the files; and
|
|
103
|
-
|
|
104
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
105
|
-
that You distribute, all copyright, patent, trademark, and
|
|
106
|
-
attribution notices from the Source form of the Work,
|
|
107
|
-
excluding those notices that do not pertain to any part of
|
|
108
|
-
the Derivative Works; and
|
|
109
|
-
|
|
110
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
111
|
-
distribution, then any Derivative Works that You distribute must
|
|
112
|
-
include a readable copy of the attribution notices contained
|
|
113
|
-
within such NOTICE file, excluding those notices that do not
|
|
114
|
-
pertain to any part of the Derivative Works, in at least one
|
|
115
|
-
of the following places: within a NOTICE text file distributed
|
|
116
|
-
as part of the Derivative Works; within the Source form or
|
|
117
|
-
documentation, if provided along with the Derivative Works; or,
|
|
118
|
-
within a display generated by the Derivative Works, if and
|
|
119
|
-
wherever such third-party notices normally appear. The contents
|
|
120
|
-
of the NOTICE file are for informational purposes only and
|
|
121
|
-
do not modify the License. You may add Your own attribution
|
|
122
|
-
notices within Derivative Works that You distribute, alongside
|
|
123
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
124
|
-
that such additional attribution notices cannot be construed
|
|
125
|
-
as modifying the License.
|
|
126
|
-
|
|
127
|
-
You may add Your own copyright statement to Your modifications and
|
|
128
|
-
may provide additional or different license terms and conditions
|
|
129
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
130
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
131
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
132
|
-
the conditions stated in this License.
|
|
133
|
-
|
|
134
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
135
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
136
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
137
|
-
this License, without any additional terms or conditions.
|
|
138
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
139
|
-
the terms of any separate license agreement you may have executed
|
|
140
|
-
with Licensor regarding such Contributions.
|
|
141
|
-
|
|
142
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
143
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
144
|
-
except as required for reasonable and customary use in describing the
|
|
145
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
146
|
-
|
|
147
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
148
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
149
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
150
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
151
|
-
implied, including, without limitation, any warranties or conditions
|
|
152
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
153
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
154
|
-
appropriateness of using or redistributing the Work and assume any
|
|
155
|
-
risks associated with Your exercise of permissions under this License.
|
|
156
|
-
|
|
157
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
158
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
159
|
-
unless required by applicable law (such as deliberate and grossly
|
|
160
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
161
|
-
liable to You for damages, including any direct, indirect, special,
|
|
162
|
-
incidental, or consequential damages of any character arising as a
|
|
163
|
-
result of this License or out of the use or inability to use the
|
|
164
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
165
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
166
|
-
other commercial damages or losses), even if such Contributor
|
|
167
|
-
has been advised of the possibility of such damages.
|
|
168
|
-
|
|
169
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
170
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
171
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
172
|
-
or other liability obligations and/or rights consistent with this
|
|
173
|
-
License. However, in accepting such obligations, You may act only
|
|
174
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
175
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
176
|
-
defend, and hold each Contributor harmless for any liability
|
|
177
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
178
|
-
of your accepting any such warranty or additional liability.
|
|
179
|
-
|
|
180
|
-
END OF TERMS AND CONDITIONS
|
|
181
|
-
|
|
182
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
183
|
-
|
|
184
|
-
To apply the Apache License to your work, attach the following
|
|
185
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
186
|
-
replaced with your own identifying information. (Don't include
|
|
187
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
188
|
-
comment syntax for the file format. We also recommend that a
|
|
189
|
-
file or class name and description of purpose be included on the
|
|
190
|
-
same "printed page" as the copyright notice for easier
|
|
191
|
-
identification within third-party archives.
|
|
192
|
-
|
|
193
|
-
Copyright 2021 ApeWorX Ltd.
|
|
194
|
-
|
|
195
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
196
|
-
you may not use this file except in compliance with the License.
|
|
197
|
-
You may obtain a copy of the License at
|
|
198
|
-
|
|
199
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
200
|
-
|
|
201
|
-
Unless required by applicable law or agreed to in writing, software
|
|
202
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
203
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
204
|
-
See the License for the specific language governing permissions and
|
|
205
|
-
limitations under the License.
|
|
206
|
-
|
|
207
|
-
Project-URL: source, https://github.com/ApeWorx/evmchains
|
|
208
|
-
Keywords: ethereum,evm,blockchain
|
|
209
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
210
|
-
Classifier: Intended Audience :: Developers
|
|
211
|
-
Classifier: Intended Audience :: End Users/Desktop
|
|
212
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
213
|
-
Classifier: Natural Language :: English
|
|
214
|
-
Classifier: Operating System :: MacOS
|
|
215
|
-
Classifier: Operating System :: POSIX
|
|
216
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
217
|
-
Classifier: Programming Language :: Python :: 3
|
|
218
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
219
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
220
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
221
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
222
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
223
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
224
|
-
Requires-Python: >=3.8
|
|
225
|
-
Description-Content-Type: text/markdown
|
|
226
|
-
License-File: LICENSE
|
|
227
|
-
Requires-Dist: pydantic<3,>=2.5.3
|
|
228
|
-
Provides-Extra: dev
|
|
229
|
-
Requires-Dist: black~=23.12.1; extra == "dev"
|
|
230
|
-
Requires-Dist: build~=1.0.3; extra == "dev"
|
|
231
|
-
Requires-Dist: mypy~=1.8.0; extra == "dev"
|
|
232
|
-
Requires-Dist: pytest~=7.4.4; extra == "dev"
|
|
233
|
-
Requires-Dist: requests~=2.31.0; extra == "dev"
|
|
234
|
-
Requires-Dist: ruff~=0.6.8; extra == "dev"
|
|
235
|
-
Requires-Dist: setuptools-scm~=8.0.4; extra == "dev"
|
|
236
|
-
Requires-Dist: types-requests>=2.31.0.20240106; extra == "dev"
|
|
237
|
-
Dynamic: license-file
|
|
238
|
-
|
|
239
|
-
# Python EVM Chains Metadata
|
|
240
|
-
|
|
241
|
-
Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.
|
|
242
|
-
|
|
243
|
-
Original source data: https://github.com/ethereum-lists/chains
|
|
244
|
-
|
|
245
|
-
## Quick Start
|
|
246
|
-
|
|
247
|
-
## Dependencies
|
|
248
|
-
|
|
249
|
-
- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.
|
|
250
|
-
|
|
251
|
-
## Installation
|
|
252
|
-
|
|
253
|
-
### via `pip`
|
|
254
|
-
|
|
255
|
-
You can install the latest release via [`pip`](https://pypi.org/project/pip/):
|
|
256
|
-
|
|
257
|
-
```bash
|
|
258
|
-
pip install evmchains
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### via `setuptools`
|
|
262
|
-
|
|
263
|
-
You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:
|
|
264
|
-
|
|
265
|
-
```bash
|
|
266
|
-
git clone https://github.com/ApeWorX/evmchains.git
|
|
267
|
-
cd evmchains
|
|
268
|
-
python3 setup.py install
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
## Quick Usage
|
|
272
|
-
|
|
273
|
-
```
|
|
274
|
-
from evmchains import get_chain_meta
|
|
275
|
-
chain = get_chain_meta("ethereum", "mainnet")
|
|
276
|
-
assert chain.chainId == 1
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
## Development
|
|
280
|
-
|
|
281
|
-
Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
|
|
282
|
-
Comments, questions, criticisms and pull requests are welcomed.
|
|
283
|
-
|
|
284
|
-
### Adding Chains
|
|
285
|
-
|
|
286
|
-
To add a chain to the metadata, please open a pull request with the following changes:
|
|
287
|
-
|
|
288
|
-
- Update `CHAIN_IDS` in `scripts/update.py` with the chain IDs you want to add
|
|
289
|
-
- Run `python scripts/update.py`
|
|
290
|
-
- Submit a PR with the updated script and updated `evmchain/chains.py` metdata file
|
|
291
|
-
|
|
292
|
-
**Do not edit `evmchain/chains.py` manually.** Any manual changes are likely to be overwritten later.
|
evmchains-0.1.5.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
evmchains/__init__.py,sha256=5peEtD7gzxFVFTq1bWGV5-RRyuyH4dbU5mM7NNxOr18,2032
|
|
2
|
-
evmchains/_meta.py,sha256=Y4jy4bEMmwl_qNPCmiMFnlQ2ofMoqyG37hp8uwI3m10,511
|
|
3
|
-
evmchains/chains.py,sha256=I2JwMWZDxF-5j77H5ZAmtTVPqr9MYDHdBOrVWo-Q6YY,108281
|
|
4
|
-
evmchains/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
evmchains/types.py,sha256=5z0yDMMgbofSjwExbraYpKccvb36IYAlGnqvyw6G7Tw,616
|
|
6
|
-
evmchains-0.1.5.dist-info/licenses/LICENSE,sha256=wKVouzimXmZeaCj3f48Vua0vk91U4vjrrt2Ax0u3qBs,11342
|
|
7
|
-
evmchains-0.1.5.dist-info/METADATA,sha256=zDkgDoi0UTDf-l6Cn09cwukKW0MDSiq_nKPYwO_gJ-U,15855
|
|
8
|
-
evmchains-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
evmchains-0.1.5.dist-info/top_level.txt,sha256=qwbaOucZ5qXfj0eTHrIujLTezgtcInyR_U-Ef2P4oic,10
|
|
10
|
-
evmchains-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|