1.1.23 • Published 3 years ago

spacemesh-local-testnet v1.1.23

Weekly downloads
138
License
MIT
Repository
github
Last release
3 years ago

README

A programmable Cryptocurrency

https://spacemesh.io/content/images/2019/05/black_logo_hp.png

Spacemesh Local Testnet (Localnet)

This repo contains the CLI for running a 10 node Spacemesh testnet locally on one computer. To learn more about the Spacemesh cryptocurrency visit https://spacemesh.io .

Prerequisites

  • OS X or Linux or Windows
  • Docker
  • NPM
  • Docker Compose

Installing CLI

The local testnet is 100% built from open source code from the Spacemesh github repos, and doesn’t use any prepackaged pre-built binaries.

Install the CLI locally using the following command

npm install -g spacemesh-local-testnet

Running

To create a local network run the below command:

spacemesh-local-testnet create

And to delete the network run the below command:

spacemesh-local-testnet delete

You can enter spacemesh-local-testnet --help to see the available options.

Create Network using Local Go Spacemesh Build

To create a network using go-spacemesh local code, first run the below command in go-spacemesh directory:

docker build -t spacemesh:local .

Then run the following command to use the image build above:

spacemesh-local-testnet create --go-sm-image=spacemesh:local

Executing Transactions using CLI Wallet

Using CLI wallet you can import cli-wallet.json file and use the account to create token transfer transactions. The account is pre-filled in the genesis configuration.

Update NPM (Devs Only)

Run the following command locally to publish new version to npm

npm run build
cd dist && npm publish
1.1.23

3 years ago

1.1.19

3 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.12

3 years ago

1.1.13

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago