Skip to content

Commit

Permalink
fix docs error
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongcheng committed Dec 13, 2018
1 parent 0d81116 commit 81d37ae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 22 deletions.
6 changes: 3 additions & 3 deletions docs/cli-client/upgrade/query-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Query the switch information to know if someone have send the switch message for
## Usage

```
iriscli upgrade query-switch --proposalID <proposalID> --voter <voter address>
iriscli upgrade query-switch --proposal-id <proposalID> --voter <voter address>
```
Print help messages:
Expand All @@ -18,13 +18,13 @@ iriscli upgrade query-switch --help
| Name, shorthand | Default | Description | Required |
| --------------- | -------------------------- | ----------------------------------------------------------------- | -------- |
| --proposalID | | proposalID of upgrade swtich being queried | Yes |
| --proposal-id | | proposalID of upgrade swtich being queried | Yes |
| --voter | | Address sign the switch msg | Yes |
## Example
Query if the address `faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe` send the switch message for the software upgrade proposal whose ID is 5.
```
iriscli upgrade query-switch --proposalID=5 --voter=faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe
iriscli upgrade query-switch --proposal-id=5 --voter=faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe
```
4 changes: 2 additions & 2 deletions docs/cli-client/upgrade/submit-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ iriscli upgrade submit-switch --help
| Name, shorthand | Default | Description | Required |
| --------------- | --------- | ------------------------------------------------------------ | -------- |
| --proposalID | | proposalID of upgrade proposal | Yes |
| --proposal-id | | proposalID of upgrade proposal | Yes |
| --title | | title of switch | |
## Examples
Send a switch message for the software upgrade proposal whose `proposalID` is 5.
```
iriscli upgrade submit-switch --chain-id=IRISnet --from=x --fee=0.004iris --proposalID 5 --title="Run new verison"
iriscli upgrade submit-switch --chain-id=IRISnet --from=x --fee=0.004iris --proposal-id 5 --title="Run new verison"
```
7 changes: 1 addition & 6 deletions docs/software/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ Then you could see the account info has been added to genesis.json.
"accounts":[
{
"address": "faa13t6jugwm5uu3h835s5d4zggkklz6rpns59keju",
"coins": [
{
"denom": "iris-atto",
"amount": "150000000000000000000"
}
],
"coins": ["150iris"],
"sequence_number": "0",
"account_number": "0"
}
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/cli-client/upgrade/query-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## 用法

```
iriscli upgrade query-switch --proposalID <proposalID> --voter <voter address>
iriscli upgrade query-switch --proposal-id <proposalID> --voter <voter address>
```
打印帮助信息:

Expand All @@ -19,13 +19,13 @@ iriscli upgrade query-switch --help
| 名称, 速记 | 默认值 | 描述 | 必需 |
| --------------- | -------------------------- | ----------------------------------------------------------------- | -------- |
| --proposalID | | 软件升级提议的ID | 是 |
| --proposal-id | | 软件升级提议的ID | 是 |
| --voter | | 签名switch消息的地址 | 是 |
## 例子
查询用户`faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe`是否对升级提议(ID为5)发送了switch消息
```
iriscli upgrade query-switch --proposalID=5 --voter=faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe
iriscli upgrade query-switch --proposal-id=5 --voter=faa1qvt2r6hh9vyg3kh4tnwgx8wh0kpa7q2lsk03fe
```
4 changes: 2 additions & 2 deletions docs/zh/cli-client/upgrade/submit-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ iriscli upgrade submit-switch --help
| 名称, 缩写 | 默认值 | 描述 | 必需 |
| --------------- | --------- | ------------------------------------------------------------ | -------- |
| --proposalID | | 软件升级提议的ID | 是 |
| --proposal-id | | 软件升级提议的ID | 是 |
| --title | | switch消息对标题 | |
## 用例
发送对软件升级提议(ID为5)switch消息
```
iriscli upgrade submit-switch --chain-id=IRISnet --from=x --fee=0.004iris --proposalID 5 --title="Run new verison"
iriscli upgrade submit-switch --chain-id=IRISnet --from=x --fee=0.004iris --proposal-id 5 --title="Run new verison"
```
7 changes: 1 addition & 6 deletions docs/zh/software/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ iris add-genesis-account faa13t6jugwm5uu3h835s5d4zggkklz6rpns59keju 150iris
"accounts": [
{
"address": "faa13t6jugwm5uu3h835s5d4zggkklz6rpns59keju",
"coins": [
{
"denom": "iris-atto",
"amount": "150000000000000000000"
}
],
"coins": ["150iris"],
"sequence_number": "0",
"account_number": "0"
}
Expand Down

0 comments on commit 81d37ae

Please sign in to comment.