evmchains 0.0.4__tar.gz → 0.0.5__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.0.4 → evmchains-0.0.5}/.github/workflows/test.yaml +1 -1
- evmchains-0.0.5/CONTRIBUTING.md +49 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/PKG-INFO +12 -1
- {evmchains-0.0.4 → evmchains-0.0.5}/README.md +10 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains/_meta.py +2 -2
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains.egg-info/PKG-INFO +12 -1
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains.egg-info/SOURCES.txt +1 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/pyproject.toml +2 -1
- {evmchains-0.0.4 → evmchains-0.0.5}/scripts/update.py +1 -1
- {evmchains-0.0.4 → evmchains-0.0.5}/.github/workflows/release.yaml +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/.gitignore +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/LICENSE +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains/__init__.py +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains/chains.py +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains/py.typed +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains/types.py +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains.egg-info/dependency_links.txt +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains.egg-info/requires.txt +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/evmchains.egg-info/top_level.txt +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/setup.cfg +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/setup.py +0 -0
- {evmchains-0.0.4 → evmchains-0.0.5}/tests/test_func.py +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Development
|
|
2
|
+
|
|
3
|
+
To get started with working on the codebase, use the following steps prepare your local environment:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
# clone the github repo and navigate into the folder
|
|
7
|
+
git clone https://github.com/ApeWorX/evmchains.git
|
|
8
|
+
cd evmchains
|
|
9
|
+
|
|
10
|
+
# create and load a virtual environment
|
|
11
|
+
python3 -m venv venv
|
|
12
|
+
source venv/bin/activate
|
|
13
|
+
|
|
14
|
+
# install evmchains into the virtual environment
|
|
15
|
+
python setup.py install
|
|
16
|
+
|
|
17
|
+
# install the developer dependencies (-e is interactive mode)
|
|
18
|
+
pip install -e .'[dev]'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Pre-Commit Hooks
|
|
22
|
+
|
|
23
|
+
We use [`pre-commit`](https://pre-commit.com/) hooks to simplify linting and ensure consistent formatting among contributors.
|
|
24
|
+
Use of `pre-commit` is not a requirement, but is highly recommended.
|
|
25
|
+
|
|
26
|
+
Install `pre-commit` locally from the root folder:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install pre-commit
|
|
30
|
+
pre-commit install
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Committing will now automatically run the local hooks and ensure that your commit passes all lint checks.
|
|
34
|
+
|
|
35
|
+
## Pull Requests
|
|
36
|
+
|
|
37
|
+
Pull requests are welcomed! Please adhere to the following:
|
|
38
|
+
|
|
39
|
+
- Ensure your pull request passes our linting checks
|
|
40
|
+
- Include test cases for any new functionality
|
|
41
|
+
- Include any relevant documentation updates
|
|
42
|
+
|
|
43
|
+
It's a good idea to make pull requests early on.
|
|
44
|
+
A pull request represents the start of a discussion, and doesn't necessarily need to be the final, finished submission.
|
|
45
|
+
|
|
46
|
+
If you are opening a work-in-progress pull request to verify that it passes CI tests, please consider
|
|
47
|
+
[marking it as a draft](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests).
|
|
48
|
+
|
|
49
|
+
Join the ApeWorX [Discord](https://discord.gg/apeworx) if you have any questions.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: evmchains
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Packaged metadata on Ethereum Virtual Machine (EVM) chains
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -218,6 +218,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
218
218
|
Classifier: Programming Language :: Python :: 3.9
|
|
219
219
|
Classifier: Programming Language :: Python :: 3.10
|
|
220
220
|
Classifier: Programming Language :: Python :: 3.11
|
|
221
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
221
222
|
Requires-Python: >=3.8
|
|
222
223
|
Description-Content-Type: text/markdown
|
|
223
224
|
License-File: LICENSE
|
|
@@ -277,3 +278,13 @@ assert chain.chainId == 1
|
|
|
277
278
|
|
|
278
279
|
Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
|
|
279
280
|
Comments, questions, criticisms and pull requests are welcomed.
|
|
281
|
+
|
|
282
|
+
### Adding Chains
|
|
283
|
+
|
|
284
|
+
To add a chain to the metadata, please open a pull request with the following changes:
|
|
285
|
+
|
|
286
|
+
- Update `CHAIN_IDS` in `scripts/update.py` with the chain IDs you want to add
|
|
287
|
+
- Run `python scripts/update.py`
|
|
288
|
+
- Submit a PR with the updated script and updated `evmchain/chains.py` metdata file
|
|
289
|
+
|
|
290
|
+
**Do not edit `evmchain/chains.py` manually.** Any manual changes are likely to be overwritten later.
|
|
@@ -42,3 +42,13 @@ assert chain.chainId == 1
|
|
|
42
42
|
|
|
43
43
|
Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
|
|
44
44
|
Comments, questions, criticisms and pull requests are welcomed.
|
|
45
|
+
|
|
46
|
+
### Adding Chains
|
|
47
|
+
|
|
48
|
+
To add a chain to the metadata, please open a pull request with the following changes:
|
|
49
|
+
|
|
50
|
+
- Update `CHAIN_IDS` in `scripts/update.py` with the chain IDs you want to add
|
|
51
|
+
- Run `python scripts/update.py`
|
|
52
|
+
- Submit a PR with the updated script and updated `evmchain/chains.py` metdata file
|
|
53
|
+
|
|
54
|
+
**Do not edit `evmchain/chains.py` manually.** Any manual changes are likely to be overwritten later.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: evmchains
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Packaged metadata on Ethereum Virtual Machine (EVM) chains
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -218,6 +218,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
218
218
|
Classifier: Programming Language :: Python :: 3.9
|
|
219
219
|
Classifier: Programming Language :: Python :: 3.10
|
|
220
220
|
Classifier: Programming Language :: Python :: 3.11
|
|
221
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
221
222
|
Requires-Python: >=3.8
|
|
222
223
|
Description-Content-Type: text/markdown
|
|
223
224
|
License-File: LICENSE
|
|
@@ -277,3 +278,13 @@ assert chain.chainId == 1
|
|
|
277
278
|
|
|
278
279
|
Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
|
|
279
280
|
Comments, questions, criticisms and pull requests are welcomed.
|
|
281
|
+
|
|
282
|
+
### Adding Chains
|
|
283
|
+
|
|
284
|
+
To add a chain to the metadata, please open a pull request with the following changes:
|
|
285
|
+
|
|
286
|
+
- Update `CHAIN_IDS` in `scripts/update.py` with the chain IDs you want to add
|
|
287
|
+
- Run `python scripts/update.py`
|
|
288
|
+
- Submit a PR with the updated script and updated `evmchain/chains.py` metdata file
|
|
289
|
+
|
|
290
|
+
**Do not edit `evmchain/chains.py` manually.** Any manual changes are likely to be overwritten later.
|
|
@@ -23,6 +23,7 @@ classifiers = [
|
|
|
23
23
|
"Programming Language :: Python :: 3.9",
|
|
24
24
|
"Programming Language :: Python :: 3.10",
|
|
25
25
|
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
26
27
|
]
|
|
27
28
|
dependencies = [
|
|
28
29
|
"pydantic~=2.5.3",
|
|
@@ -54,7 +55,7 @@ write_to = "evmchains/_meta.py"
|
|
|
54
55
|
# character.
|
|
55
56
|
|
|
56
57
|
[tool.black]
|
|
57
|
-
target-version = ['py38', 'py39', 'py310', 'py311']
|
|
58
|
+
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
|
|
58
59
|
include = '\.pyi?$'
|
|
59
60
|
|
|
60
61
|
[tool.pytest.ini_options]
|
|
@@ -132,7 +132,7 @@ def fetch_chains() -> Dict[str, Dict[str, Chain]]:
|
|
|
132
132
|
|
|
133
133
|
def write_chain_const(chains: Dict[str, Dict[str, Chain]]):
|
|
134
134
|
"""Write the file with Python constant"""
|
|
135
|
-
file_str = "# This file is auto-generated by scripts/
|
|
135
|
+
file_str = "# This file is auto-generated by scripts/update.py\n"
|
|
136
136
|
file_str += f"# {stamp()}\n"
|
|
137
137
|
file_str += "# Do not edit this file directly.\n"
|
|
138
138
|
file_str += "from typing import Any, Dict\n\n"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|