Support a proposal JSON file in submit-proposal

Closes #1852.
Closes #1776.
This commit is contained in:
Matthew Slipper
2018-08-21 14:34:15 -07:00
parent 204762b2a1
commit f7d8675234
4 changed files with 163 additions and 7 deletions
@@ -6,6 +6,23 @@ Uuse the CLI to create a new proposal:
simplegovcli propose --title="Voting Period update" --description="Should we change the proposal voting period to 3 weeks?" --deposit=300Atoms
```
Or, via a json file:
```bash
simplegovcli propose --proposal="path/to/proposal.json"
```
Where proposal.json contains:
```json
{
"title": "Voting Period Update",
"description": "Should we change the proposal voting period to 3 weeks?",
"type": "Text",
"deposit": "300Atoms"
}
```
Get the details of your newly created proposal:
```bash