-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from cffls/master
Support config file
- Loading branch information
Showing
17 changed files
with
289 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Configurations | ||
|
||
`matic-cli` can boostrap a local network with a configuration file. The file could be in yaml or json format. | ||
|
||
## Usage | ||
|
||
```bash | ||
matic-cli setup devnet -c path/to/config.yaml | ||
``` | ||
|
||
## Option details with examples | ||
|
||
```yaml | ||
# The root target directory where everything related to the network will be created | ||
# If not specified, current directory where the CLI is run will be used. | ||
targetDirectory: /absolute/path/to/target/directory | ||
|
||
# Default stake for each validator (in matic) | ||
defaultStake: 10000 | ||
|
||
# Default amount of fee to topup heimdall validator | ||
defaultFee: 2000 | ||
|
||
# ChainID of bor | ||
borChainId: "15001" | ||
|
||
# ChainID of heimdall | ||
heimdallChainId: heimdall-15001 | ||
|
||
# Branch of bor to use. Repository: https://github.com/maticnetwork/bor | ||
borBranch: v0.2.16 | ||
|
||
# Docker build context for bor. When specified, borBranch will be ignore. | ||
# e.g. https://github.com/maticnetwork/bor.git#v0.3.0-dev | ||
borDockerBuildContext: "" | ||
|
||
# Branch of Heimdall to use. Repository: https://github.com/maticnetwork/heimdall | ||
heimdallBranch: v0.2.9 | ||
|
||
# Docker build context for heimdall. When specified, heimdallBranch will be ignore. | ||
# e.g. https://github.com/maticnetwork/heimdall.git#v0.3.0-dev | ||
heimdallDockerBuildContext: "" | ||
|
||
# Branch of contract to use. Repostiory: https://github.com/maticnetwork/contracts | ||
contractsBranch: arpit/v0.3.1-backport | ||
|
||
# Number of validators to create | ||
numOfValidators: 2 | ||
|
||
# Number of non-validators (sentry node) to create | ||
numOfNonValidators: 0 | ||
|
||
# URL to Ethereum RPC | ||
ethURL: http://ganache:9545 | ||
|
||
# Devnet type, choose from [docker, remote] | ||
devnetType: docker | ||
|
||
# IPs of hosts where bor will run. Only effective when devnetType is remote. | ||
devnetBorHosts: | ||
- 172.20.1.100 | ||
- 172.20.1.101 | ||
|
||
# IPs of hosts where heimdall will run. Only effective when devnetType is remote. | ||
devnetHeimdallHosts: | ||
- 172.20.1.100 | ||
- 172.20.1.101 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
defaultStake: 10000 | ||
defaultFee: 2000 | ||
borChainId: "15001" | ||
heimdallChainId: heimdall-15001 | ||
borBranch: v0.2.16 | ||
heimdallBranch: v0.2.9 | ||
contractsBranch: arpit/v0.3.1-backport | ||
numOfValidators: 2 | ||
numOfNonValidators: 0 | ||
ethURL: http://ganache:9545 | ||
devnetType: docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defaultStake: 10000 | ||
defaultFee: 2000 | ||
borChainId: "15001" | ||
heimdallChainId: heimdall-15001 | ||
borBranch: v0.2.16 | ||
heimdallBranch: v0.2.9 | ||
contractsBranch: arpit/v0.3.1-backport | ||
numOfValidators: 2 | ||
numOfNonValidators: 0 | ||
ethURL: http://172.20.1.100:9545 | ||
devnetType: remote | ||
devnetBorHosts: | ||
- 172.20.1.100 | ||
- 172.20.1.101 | ||
devnetHeimdallHosts: | ||
- 172.20.1.100 | ||
- 172.20.1.101 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.