An open API service indexing awesome lists of open source software.

https://github.com/second-state/devchain-config


https://github.com/second-state/devchain-config

Last synced: 8 months ago
JSON representation

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
```