Skip to content

ampleforth/frg-ethereum-runners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Runners

This project is collection of bash scripts to run and manage local instances of the Ethereum blockchain, to deploy and test uFragments contracts. The local instances are instantiated with 10 hardcoded wallets with 1M ETH each at genesis.

Table of Contents

Install

# Install dependencies for only unit testing
# Ganache & TestRPC
./bin/setup-local-chains 'lite'

#Install all dependencies
# Ganache, TestRPC & Geth
./bin/setup-local-chains

Usage

# ./config/network_config.json lists the supported environments.
# network-ref => The network reference is the concatenation of
#                the Ethereum implementation and the local environment.
#                (eg) [ganache + UnitTest] ~ local ganache chain in the UnitTest environment.
# Supported Networks include [ganacheUnitTest|ganacheIntegration|gethUnitTest|gethIntegration|testrpcCoverage]
./bin/start-chain [network-ref]
./bin/stop-chain [network-ref]

The 10 hardcoded wallets are hierarchical deterministic wallets generated with the mnemonic "fragments". To regenerate a different set of 10 hardcoded wallets you can update the SEED_PHRASE variable in the ./gen_hd_wallets.js script and rerun it.

# Run once and keys are committed (seed=fragments, n=10 hardcoded)
# NOTE: Check-in the updated keys
./gen_hd_wallets.js

Contribute

Currently supports:

  • Ganache-CLI (ganache)
  • Go Ethereum (geth)

Plans to support:

  • Parity

PRs accepted.

License

MIT (c) 2018 Fragments, Inc.

About

A collection of bash scripts to manage local instances of the Ethereum blockchain.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published