Code Monkey home page Code Monkey logo

devchain-config's Introduction

devchain-config

Configuration of Genesis (genesis.json)

// with custom path of genesis.json
node index.js --type genesis --config_path ./genesis.json.template

// default genesis.json template
node index.js --type genesis

Upsert Validators(Update or Insert another validator, default only one validator)

node index.js --type genesis --config_path ./genesis.json.template --validators.1.pub_key test1 --validators.1.power 101 --validators.2.pub_key test2 --validators.1.power 102

Update Chain ID

node index.js --type genesis --config_path ./genesis.json.template --chain_id test --params.foundation_address 23 --validators.1.pub_key test1 --validators.1.power 100 --validators.1.comp_rate 1/6

Update Validators Parameters

node index.js --type genesis --config_path ./genesis.json.template --validators.1.pub_key testzt3RvqxU7wooagyTygEjZHnHUr0g6Z3T/gWPnh0  --validators.1.power 1234

Update Params

node index.js --type genesis --config_path ./genesis.json.template --params.foundation_address 0x0000000000000000000000000000000000000001 --params.gas_price 12345

Configuration of Node(config.toml)

// with custom path of cofig.toml
node index.js --type config --config_path ./config.toml.template

// default config.toml template
node index.js --type config

Update Moniker

node index.js --type config  --config_path ./config.toml.template --moniker test

Update vm/consensus etc

node index.js --type config  --config_path ./config.toml.template --vm.$key1 $value1 --vm.$key1 $value2
node index.js --type config  --config_path ./config.toml.template --consensus.$key1 $value2

devchain-config's People

Contributors

shenzhun avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.