This is a simple wrapper over https://github.com/polkascan/py-substrate-interface used to facilitate writing code for applications using Gear.
Vara Network: https://vara.network/
pip3 install vara-interface
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
- Install poetry
- Git clone the repository
- Install requirements with
poetry install
Installing substrate_interface
may require Rust and
Rustup nightly.
- Add functions/edit code/fix issues.
- Make a PR.
- ...
- Profit!
- If needed, install dependencies with
poetry add <lib>
- Use
ReStructuredText
docstrings. - Respect typing annotation.
- Add documentation. Please take in consideration that if a new class was created, add it to
docs/source/modules.rst
. Other functionality is better to be described indocs/source/usage.rst
- Black it:
black -l 120 <modified_file>
- Check how the docs look via
make html
from thedocs
folder and checking thedocs/build/html/index.html
page. - Do not bump version.
- One may test the code by
# in project root
poetry build
pip3 uninstall vara_interface -y #if was installed previously
pip3 install pip3 install dist/vara_interface-<version>-py3-none-any.whl
python3 <testing_script>