0.1.10 • Published 5 years ago

@laborx/command-ganache-plugin v0.1.10

Weekly downloads
1
License
AGPL-3.0
Repository
gitlab
Last release
5 years ago

Ganache plugin for Command

Provides an extension of Ganache for Command.

Install

yarn add -D @laborx/command-ganache-plugin

Usage

  1. Create testrpc.json (or with other config filename) and specify ganache configuration, for example:
{
  "network_id": 666,
  "host": "127.0.0.1",
  "port": 8546,
  "db_path": "./data/blockchain",
  "gasPrice": 1,
  "gasLimit": 8000000,
  "account_keys_path": "./test-accounts.json",
  "mnemonic": "brave dry ride escape panther wave wife coin input come cash survey"
}

Other options from ganache-cli specification could be added as-is.

CLI

Run from command line with the following syntax

npx -p @laborx/command-ganache-plugin ganache-runner ganache --config=./testrpc.json

or in package.json

{
  "scripts": {
    "ganache-runner": "ganache-runner",
    "ganache": "yarn ganache-runner ganache --config=./testrpc.json"
  }
}

From code

import { runGanache } from "@laborx/command-ganache-plugin";

const server = runGanache({ config: "./testrpc.json" })
0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago