Create local dockerized nano-currency networks
Project description
nanomock
A one click nano-currency block-lattice environment on your local computer.
This project aims to easily spin up an integration environment with multiple nano nodes.
The local network is highly customizable.
All configuration is done inside the config file : nanonet/nl_config.toml
prerequisites
- python3.8+
- docker
- docker-compose 2
Quickstart :
Install the library :
To install the library you can
- clone the respository and run
pip3 install .
- or run
pip3 install nanomock
to download the latest version from PyPi
This gives you access to nanomock {command}
command which will use your_current_dir
as its entry point.
Spin up a network :
Action | Code | Description |
---|---|---|
create | $ nanomock create |
Create folders and node config |
start | $ nanomock start |
Start nodes (optional --nodes ) |
init | $ nanomock init |
Create Epochs Canary Burn and Vote weight distribution |
Manage the network network :
Action | Code | Description |
---|---|---|
status | $ nanomock status |
Get status and block count for each node |
stop | $ nanomock stop |
Stop nodes (optional --nodes ) |
restart | $ nanomock restart |
Restart all nodes |
reset | $ nanomock reset |
Delete data.ldb and wallets.ldb |
down | $ nanomock down |
Remove all nodes |
destroy | $ nanomock destroy |
Remove all nodes and data |
update | $ nanomock update |
Pull and build latest containers |
Query nodes :
Each node can be queried via RPC (see the official documentation )
Action | Code | Description |
---|---|---|
rpc | $ nanomock rpc --payload '{"action" : "any_rpc"}' |
Use nano_rpc commands (optional --nodes ) |
Configure the network :
nl_config.toml
define all aspects of the network : genesis account, burn_amount, number of nodes, versions,...
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
Built Distribution
File details
Details for the file nanomock-0.0.22.tar.gz
.
File metadata
- Download URL: nanomock-0.0.22.tar.gz
- Upload date:
- Size: 72.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44a1de74910bf212f6047feabe66f549591b5f61b58bbab6ec15154238e8801 |
|
MD5 | cfe962a8bdceff53d795864f1344a8c4 |
|
BLAKE2b-256 | f0b6db1307ef5cbc4db6b6bfb858589257ec4b81f024984d42ef0fad9dbb9742 |
File details
Details for the file nanomock-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: nanomock-0.0.22-py3-none-any.whl
- Upload date:
- Size: 120.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9ef68d284103dafa009b56f8e8c79ce6f65bb5c6d7b0d955454b7310fe27dc |
|
MD5 | df883412dcf0adcef8db7724816235bc |
|
BLAKE2b-256 | 2b9c98752ff4f7c3a106bb1f9ea42fa3e1063c3710693bb0c56fff38c0eeec64 |