https://github.com/second-state/devchain-config
https://github.com/second-state/devchain-config
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/second-state/devchain-config
- Owner: second-state
- Created: 2019-05-11T01:56:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T18:43:09.000Z (about 5 years ago)
- Last Synced: 2025-09-15T15:37:04.191Z (9 months ago)
- Language: JavaScript
- Size: 202 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```