Substrate utility library providing functionality for multi-signature trading.
Project description
substrate-utils
Substrate utility library providing functionality for multi-signature trading, originally built for LocalCoinSwap
Installation
pip install substrate-utils
Quick start
from substrateutils import Kusama
kusama = Kusama()
Documentation
https://localcoinswap.github.io/kusama-utils/
Local development
Pre-requisites
- Python 3.8.1 (preferred)
We suggest using pyenv
to easily manage python versions. Some of the following commands use pyenv
.
Use pyenv-installer for easy installation. Then add pyenv-virtualenv plugin to it.
Configure local development setup
-
Install and activate python 3.8.1 in the root directory
pyenv install 3.8.1
pyenv virtualenv 3.8.1 substrateutils
pyenv local substrateutils
-
Install project requirements
pip install -r requirements.txt
-
Install precommit hook
pre-commit install
You're all set to hack!
Before making changes, let's ensure tests run successfully on local.
Running Tests
- Run all tests with coverage
coverage run -m pytest -v
- Show report in terminal
coverage report -m
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
substrate-utils-0.2.0.tar.gz
(22.6 kB
view hashes)
Built Distribution
Close
Hashes for substrate_utils-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b297f95f9cb69559657872b51efc87729ae5065aec4c8225dcf5e11677cdb06 |
|
MD5 | fbf79b6d9fea3ece5faf8bd67af8b9c9 |
|
BLAKE2b-256 | affe24843bec6e6946cd81a13ff93648a5340d612ec8bc966410094ca1eaef11 |