Configuration
To run dough, you need a config file as system configuration. It's required to be written in terms of haskell's record structure as in the following example.
Config exmaple
ClientConfig
{ nodeAddress = "node1.lax.tezos.org.sg"
, who = "dotblack"
, burnCap = 10
, ptclTNS = "9chsTNS-0.0.1"
, ptclTNRS = "9chsTNRS-0.0.1"
, cTNRSAddr = "KT1P4fir3MtexzztWbybNxonCv28Fu6hwmGA"
}
It contains 2 parts. The 1st part contains 3 fields and is for tezos-client:
nodeAddress
- the node addresswho
- the role who dough is acting asburnCap
- how many burn-cap you want to setup for deploying or interacting with a contract.
The 2nd part includes 3 fields and is for teznames (doc) only:
ptclTNS
- the protocol version of teznamesptclTNRS
- the protocol version of teznames record contractcTNRSAddr
- address of tezname record contract
Tip
The path to this config file can be passed to any dough commands as its first argument. For example,
dough show -c /dir1/dir2/dough.config
Or, if it was not specified, dough will assume it's located in the home directory and named as dough.config
.