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.23.tar.gz (73.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.23-py3-none-any.whl (120.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nanomock-0.0.23.tar.gz
  • Upload date:
  • Size: 73.0 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.23.tar.gz
Algorithm Hash digest
SHA256 f63340a7b4bafb8acd833d3df8f2c99eb62e274de6dc56879a34574591967bd3
MD5 d5d5a0c4cade385462260b50fd4bb7e3
BLAKE2b-256 ff219ac12fd03b5e2e8647f92c4eddab18e12ad44b3eb1ad9ee3dc1d5d9a7d4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nanomock-0.0.23-py3-none-any.whl
  • Upload date:
  • Size: 120.1 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.23-py3-none-any.whl
Algorithm Hash digest
SHA256 92810acd6a690de62fc87e78545c66182efe6a40399897d42fc7350f3c6bffad
MD5 d06e624e2b113ae95514b31b07704431
BLAKE2b-256 e66648cb5421262bb6816afbd525a5f104e4b18817b3cdb576304cd2080ed3ed

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