Skip to main content

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 nanomockto download the latest version from PyPi

This gives you access to nanomock {command} command which will use your_current_diras 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanomock-0.0.21.tar.gz (72.8 kB view details)

Uploaded Source

Built Distribution

nanomock-0.0.21-py3-none-any.whl (120.0 kB view details)

Uploaded Python 3

File details

Details for the file nanomock-0.0.21.tar.gz.

File metadata

  • Download URL: nanomock-0.0.21.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

Hashes for nanomock-0.0.21.tar.gz
Algorithm Hash digest
SHA256 248b4181dc07bc00c7ca68c9b076c214d0f2c5d6712c6679058b8f737a27a104
MD5 eac3569c06399986e25faa45805049e1
BLAKE2b-256 ac22653b91f01a127a1a091237cf2d95b0c28c80bf27a97a46781be9f002aa3e

See more details on using hashes here.

File details

Details for the file nanomock-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: nanomock-0.0.21-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

Hashes for nanomock-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 11e6822ddbf5d856b997a47faf10afff269b0f267ac5c0e43e58e6be56b910d6
MD5 ee251d6f7a7431ff18598056b363a07b
BLAKE2b-256 4f87c5076c1cbd0fe6eda728f4b4b45c8eb37caf7bf382ed01a5b180250c7036

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page