Skip to content

Commit

Permalink
Merge pull request #20 from yash-sharma1/main
Browse files Browse the repository at this point in the history
Update Secret CLI & Governance Docs
  • Loading branch information
dylanschultzie committed Nov 17, 2021
2 parents 26a526e + 67e201e commit 6d6d149
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 26 deletions.
9 changes: 4 additions & 5 deletions docs/cli/install-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
- Mac/Windows: Rename it from `secretcli-${VERSION}-${OS}` to `secretcli` or `secretcli.exe` and put it in your path.
- Ubuntu/Debian: `sudo dpkg -i secret*.deb`

Note - As per the recent changes in the Cosmos SDK, home directory for the CLI is now `~/.secretd` check more info [HERE](https://github.com/scrtlabs/SupernovaDocs/blob/master/app%20developers/cli.md)

3) Configure:

```bash
secretcli config chain-id secret-2
secretcli config chain-id secret-4
secretcli config output json
secretcli config indent true
secretcli config node tcp://api.scrt.network:26656
secretcli config trust-node true
secretcli config node http://api.scrt.network:26657
```

`secret-2.node.scrt.network` is not a real node though.
You currently have two options for getting your own secret node:
1. [Rent or use a free-tier node from figment](https://figment.io/datahub/secret-network/).
2. [Set up your own node](node-guides/run-full-node-mainnet.md).
Expand Down
29 changes: 8 additions & 21 deletions docs/guides/governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ For more information about the governance process and how it works, please check

## Create a Governance Proposal

In order to create a governance proposal, you must submit an initial deposit along with a title and description. Currently, in order to enter the voting period, a proposal must accumulate within a week deposits of at least [1000 `SCRT`](https://github.com/enigmampc/SecretNetwork/blob/b0792cc7f63a9264afe5de252a5821788c21834d/enigma-1-genesis.json#L1851-L1856).
In order to create a governance proposal, you must submit an initial deposit along with a title and description. Currently, in order to enter the voting period, a proposal must accumulate within a week deposits of at least [100 `SCRT`](https://secretnodes.com/secret/chains/secret-4/governance/proposals/32).

Note - Please remember through the duration of this guide that the secretcli counts SCRT in USCRT. 1 SCRT = 1,000,000 USCRT.

Various modules outside of governance may implement their own proposal types and handlers (eg. parameter changes), where the governance module itself supports `Text` proposals. Any module outside of governance has it's command mounted on top of `submit-proposal`.

Expand All @@ -35,7 +37,7 @@ secretcli tx gov submit-proposal \
--title <title> \
--description <description> \
--type Text \
--deposit 1000000uscrt \
--deposit 100000000uscrt \
--from <key_alias>
```

Expand All @@ -52,7 +54,7 @@ Where `proposal.json` is:
"type": "Text",
"title": "My Cool Proposal",
"description": "A description with line breaks \n and `code formatting`",
"deposit": "1000000uscrt"
"deposit": "100000000uscrt"
}
```

Expand All @@ -77,12 +79,7 @@ Where `proposal.json` is:
"value": 105
}
],
"deposit": [
{
"denom": "uscrt",
"amount": "10000000"
}
]
"deposit": "10000000uscrt"
}
```

Expand Down Expand Up @@ -156,18 +153,8 @@ Where `proposal.json` is:
"title": "Community Pool Spend",
"description": "Spend 10 SCRT with line breaks \n and `code formatting`",
"recipient": "secret1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"amount": [
{
"denom": "uscrt",
"amount": "10000000"
}
],
"deposit": [
{
"denom": "uscrt",
"amount": "10000000"
}
]
"amount": "100000000uscrt",
"deposit":"100000000uscrt"
}
```

Expand Down

0 comments on commit 6d6d149

Please sign in to comment.