I started learning Eris chain and in the deploying section, they use .yaml file and for making the chain definition file they use .toml file. I searched the internet and what I found was they both are configuration files. So why not use only 1 file type.
2 Answers
The prior answer regarding the file types is correct.
- The TOML format is simpler and is used throughout Eris (Monax) configuration files, e.g. chain configuration or docker image versions (~/.eris/eris.toml).
- The YAML format supports the complexity better that is needed to define the "jobs" that are run be the package manager (EPM) for contract deployment and contract invocation.
One correction regarding FrenchieiSverige's answer above: The Eris blockchain is a permissioned blockchain design and it uses Tendermint's POS consensus instead Ethereum's POW, so there is no mining happening on the validator nodes. Ether still exists and can be assigned via administrators, but it is typically not used as a value token.
I think you have to different types of configuration files because:
.yaml
file is to configure the smart contracts.toml
file is to configure the blockchain itself with thegenesis.json
file.
Once the blockchain is running, you can create a miner, and start doploying your smart contracts using the Ether you just mined with your miner.