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.25.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanomock-0.0.25-py3-none-any.whl (71.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nanomock-0.0.25.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for nanomock-0.0.25.tar.gz
Algorithm Hash digest
SHA256 a19dcc1a3cf16f729edd16d0bb16c2d61fe3f81c2cfbaf3eb8599b50bdf42e64
MD5 90e4b5476d89a8a4f8d488284e77b8d3
BLAKE2b-256 34025cad5f3efd7bf4d1a79ac8588674e2a5a29f7890803ece29bcaada772821

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nanomock-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for nanomock-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 ccef8cec115f530398ce6f345fd8bf0fae0ca659607838624521e8a11e5485b6
MD5 f412c89ee1361b9e190d625ba8e5707a
BLAKE2b-256 c20951378f2e4c02d58b7146c97b2f6325a070f86ac76a2a3735b229807f264e

See more details on using hashes here.

Supported by

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