Skip to content

Commit 8b55ea5

Browse files
authored
Merge pull request #5 from chengwenxi/release0.9
fix service cli test
2 parents a78ef3a + 9ec433f commit 8b55ea5

39 files changed

+224
-175
lines changed

docs/cli-client/gov/submit-proposal.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,6 @@ iriscli gov submit-proposal --help
3333

3434
## Examples
3535

36-
### Submit a 'Text' type proposal
37-
38-
```shell
39-
iriscli gov submit-proposal --chain-id=test --title="notice proposal" --type=Text --description="a new text proposal" --from=node0 --fee=0.01iris
40-
```
41-
42-
After you enter the correct password, you're done with submitting a new proposal, and then remember to back up your proposal-id, it's the only way to retrieve your proposal.
43-
44-
```txt
45-
Committed at block 13 (tx hash: 234463E89B5641F9271113D72B28CA088F641DD8A63DB57257B7CAF90ED5A1C3, response:
46-
{
47-
"code": 0,
48-
"data": "MQ==",
49-
"log": "Msg 0: ",
50-
"info": "",
51-
"gas_wanted": 200000,
52-
"gas_used": 6608,
53-
"codespace": "",
54-
"tags": {
55-
"action": "submit_proposal",
56-
"param": "",
57-
"proposal-id": "1",
58-
"proposer": "faa1x25y3ltr4jvp89upymegvfx7n0uduz5kmh5xuz"
59-
}
60-
})
61-
```
62-
6336
### Submit a 'ParameterChange' type proposal
6437

6538
```shell

docs/cli-client/service/bind.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ iriscli service bind [flags]
2626
## Examples
2727

2828
### Add a binding to an existing service definition
29+
In service binding, you need to define `deposit`, minimum deposit = `price` of this service * `MinDepositMultiple` in genesis file
30+
31+
2932
```shell
30-
iriscli service bind --chain-id=test --from=node0 --fee=0.004iris --service-name=test-service --def-chain-id=test --bind-type=Local --deposit=1iris --prices=1iris --avg-rsp-time=10000 --usable-time=100
33+
iriscli service bind --chain-id=test --from=node0 --fee=0.004iris --service-name=test-service --def-chain-id=test --bind-type=Local --deposit=1000iris --prices=1iris --avg-rsp-time=10000 --usable-time=100
3134
```
3235

3336
After that, you're done with adding a binding to an existing service definition.

docs/cli-client/stake/delegations-to.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ iriscli stake delegations-to --help
1818

1919
Query all delegations to one validator
2020
```
21-
iriscli stake delegations-to [validator-address]
21+
iriscli stake delegations-to fva1yclscskdtqu9rgufgws293wxp3njsesx7s40m2
2222
```
2323

2424
After that, you will get all detailed info of delegations from the specified delegator address.
@@ -27,7 +27,7 @@ After that, you will get all detailed info of delegations from the specified del
2727
[
2828
{
2929
"delegator_addr": "faa13lcwnxpyn2ea3skzmek64vvnp97jsk8qmhl6vx",
30-
"validator_addr": "fva15grv3xg3ekxh9xrf79zd0w077krgv5xf6d6thd",
30+
"validator_addr": "fva1yclscskdtqu9rgufgws293wxp3njsesx7s40m2",
3131
"shares": "0.2000000000",
3232
"height": "290"
3333
}

docs/cli-client/upgrade/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ iriscli upgrade [command]
1515
| Name | Description |
1616
| ------------- | ------------------------------------- |
1717
| [info](info.md) | Query the information of upgrade module |
18+
|[query-signals](query-signals.md)|Query the information of signals |
1819

1920
## Flags
2021

docs/cli-client/upgrade/query-signals.md

Whitespace-only changes.

docs/features/basic-concepts/bech32-prefix.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Bech32 is a new Bitcoin address format proposed by Pieter Wuille and Greg Maxwel
1212
|fap| IRISnet Account Public Key|
1313
|fva| IRISnet Validator's Operator Address|
1414
|fvp| IRISnet Validator's Operator Public Key|
15-
|fca| IRISnet Consensus Address|
16-
|fcp| IRISnet Consensus Public Key|
15+
|fca| Tendermint Consensus Address|
16+
|fcp| Tendermint Consensus Public Key|
1717

1818
## Encoding
1919

@@ -22,7 +22,7 @@ Not all interfaces to users IRISnet should be exposed as bech32 interfaces. Many
2222
To covert between other binary reprsentation of addresses and keys, it is important to first apply the Amino enocoding process before bech32 encoding.
2323

2424

25-
## Example
25+
## Account Key Example
2626

2727
Once you create a new address, you should see the following:
2828

@@ -32,3 +32,16 @@ test1 local faa18ekc4dswwrh2a6lfyev4tr25h5y76jkpqsz7kl fap1addwnpepqgxa
3232
```
3333

3434
This means you have created a new address `faa18ekc4dswwrh2a6lfyev4tr25h5y76jkpqsz7kl`, its hrp is `faa`. And its public key could be encoded into `fap1addwnpepqgxa40ww28uy9q46gg48g6ulqdzwupyjcwfumgfjpvz7krmg5mrnw6zv8uv`, its hrp is `fap`.
35+
36+
## Validator Key Example
37+
38+
A Tendermint Consensus Public key is generated when the node is created with `iris init`.
39+
You can get this value with
40+
```
41+
iris tendermint show-validator
42+
```
43+
44+
Example output:
45+
```
46+
fcp1zcjduepqwh0tqpqrewe9lrr87ywgjq50gd3m82mgz0qwsmu62s83pukrqsfs5lv2kw
47+
```

docs/features/basic-concepts/fee.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ The total gas needed for executing the transaction is the sum of gas needed for
1818

1919
Example
2020
```
21-
iriscli stake unbond complete --from=test --address-validator=faa1mahw6ymzvt2q3lu4pjj5pau2e8krntklgarrxy --address-delegator=faa1mahw6ymzvt2q3lu4pjj5pau2e8krntklgarrxy --fee=2000000000000000iris --gas=20000 --chain-id=test
21+
iriscli stake unbond --from=test --address-validator=faa1mahw6ymzvt2q3lu4pjj5pau2e8krntklgarrxy --address-delegator=faa1mahw6ymzvt2q3lu4pjj5pau2e8krntklgarrxy --fee=0.02iris --gas=20000 --chain-id=test-irishub
2222
```
2323
This example is a transaction to complete the unbond operation. The maximum fee(--fee) is set to be 2000000000000000iris(2*10^15) and the maximum(--gas) gas is set to be 20000. Therefore, the gas price here is 10^11iris/gas. Suppose that 1500 gas is used to execute the transaction, then 1500000000000000 iris will be paid to validators and lefted 500000000000000 iris will be returned to user.

docs/features/basic-concepts/genesis-file.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Genesis File
22

33
The Genesis file is the basis for the entire network initialization,which contains most info for creating a Genesis block (such as ChainID, consensus params,app state), initialize account balances, parameters for each module, and validators info.
4+
The genesis file sets the initial parameters of any new IRIS network. Establishing a robust social consensus over the genesis file is critical to starting a network.
5+
6+
Each genesis state starts with a list of account balances. Social consensus on these account balances must be bootstrapped from some external process be it events on another blockchain to a token generation event.
47

58
## Basic State
69

@@ -50,4 +53,6 @@ The Genesis file is the basis for the entire network initialization,which cont
5053

5154
## Gentxs
5255

53-
Gentxs contains the transaction set of creating validators in genesis block.
56+
Gentxs contains the transaction set of creating validators in genesis block.
57+
The IRIS provides robust tools for bootstrapping the identities that will start chain via the gen-tx process. gen-tx or a Genesis Transaction are cryptographically signed transactions that are executed during chain initialization that generate a starting set of validators.
58+
The gen-txs are artifacts that prove that the holders of accounts consent in launching the network and that they putting capital at risk in the process.
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
# Gov Params
1+
# System Parameters
22

3-
In IRISnet, there are some special parameters can be modified through on-chain governance. All the IRIS holders are able to modify. If the community is not satisfied with certain modifiable parameters, it is available to set the proper values in governance module.
3+
In IRISnet, there are some special parameters can be modified through on-chain governance.
4+
All the IRIS holders are able to modify. If the community is not satisfied with certain modifiable
5+
parameters, it is available to put up a `parameter-change` proposal in governance module.
46

5-
## Gov Module
7+
## Parameters in Governance Module
68

7-
* `DepositProcedure` Parameters in deposit period (The minimum of deposit, deposit period)
8-
* `VotingProcedure` Parameters in voting period(Voting period)
9-
* `TallyingProcedure` Parameters in tallying period(The standards of voting)
9+
* In `DepositProcedure` step of governance procedure, the following parameters are up to on-chain governance:
10+
* Minimum of deposit as `min_deposit` in genesis file
11+
* Deposit period as `voting_period` in genesis file
12+
* In `VotingProcedure` step of governance procedure, the following parameters are up to on-chain governance:
13+
* Voting period as `voting_period` in genesis file
14+
* In `TallyingProcedure` step of governance procedure, the following parameters are up to on-chain governance:
15+
* Threshold as `threshold` in genesis file to pass a proposal
16+
* Veto percentage as `veto`in genesis file to stop a proposal
17+
* Participation percentage as `participation` in genesis file to make the results legitimate
1018

1119
Details in [gov](../governance.md)
1220

13-
## Service Module
21+
## Parameters in Service Module
1422

1523
* `MaxRequestTimeout` The maximum of waiting blocks for service invocation
1624
* `MinProviderDeposit` The minimum deposit for service binding
1725

1826
Details in [service](../service.md)
27+

docs/features/distribution.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,26 @@ This module is in charge of distributing collected transaction fee and inflated
3838
3939
3. Query reward token
4040
41-
Execute the command to get the earned tokens:
41+
Execute the command to get the estimated inflation rewards :
42+
4243
```bash
43-
iriscli bank account [withdraw address]
44-
```
44+
iriscli distribution withdraw-rewards --from=bob --dry-run --chain-id=test-irishub --fee=0.004iris --commit
45+
```
46+
47+
Output is the following,`withdraw-reward-total`is your estimated inflation rewards:
48+
49+
```bash
50+
estimated gas = 6032
51+
simulation code = 0
52+
simulation log = Msg 0:
53+
simulation gas wanted = 200000
54+
simulation gas used = 6032
55+
simulation fee amount = 0
56+
simulation fee denom =
57+
simulation tag action = withdraw-delegator-rewards-all
58+
simulation tag delegator = faa1yclscskdtqu9rgufgws293wxp3njsesxtplqxd
59+
simulation tag withdraw-reward-total = 1308135156755646iris-atto
60+
simulation tag withdraw-reward-from-validator-fva1yclscskdtqu9rgufgws293wxp3njsesx7s40m2 = 1308135156755646iris-atto
61+
simulation tag action = withdraw_delegation_rewards_all
62+
63+
```

docs/features/governance.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
## Basic Function Description
44

5+
56
1. On-chain governance proposals on text
67
2. On-chain governance proposals on parameter change
78
3. On-chain governance proposals on software upgrade
9+
4. On-chain governance proposals on software halt
10+
5. On-chain governance proposals on tax usage
811

912
## Interactive process
1013

@@ -186,4 +189,4 @@ iriscli gov vote --proposal-id=1 --option=Yes --from=x --chain-id=gov-test --fe
186189

187190
# Query the state of a proposal
188191
iriscli gov query-proposal --proposal-id=1
189-
```
192+
```

docs/features/service.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ iriscli service definition --def-chain-id=service-test --service-name=test-servi
4848
```
4949

5050
### Service Binding
51+
52+
In service binding, you need to define `deposit`, minimum deposit = `price` of this service * `MinDepositMultiple` in genesis file
5153
```
5254
# Service Binding
5355
iriscli service bind --chain-id=service-test --from=x --fee=0.004iris --service-name=test-service --def-chain-id=service-test --bind-type=Local --deposit=1iris --prices=1iris --avg-rsp-time=10000 --usable-time=100

docs/features/upgrade.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The module supports the infrastructure of the blockchain software upgrade. It wi
77
## Interaction Process
88

99
### Governance process of software upgrade proposal
10-
1. Submit a software upgrade proposal
10+
1. Submit a software upgrade proposal and vote to make the proposal pass
1111
2. More details about governance process is in GOV [User Guide](governance.md)
1212

1313
### The process of software upgrade
@@ -75,7 +75,7 @@ The operations in Scenario 1 haven't been implemented at the certain time (80 bl
7575
# 2. Close the old one
7676
kill -f iris
7777
78-
# 3. Install the new version iris1 and start it
78+
# 3. Install the new version iris1 and start it
7979
8080
iris1 start --home=iris
8181
@@ -89,27 +89,16 @@ iriscli upgrade info --trust-node
8989
iriscli gov submit-proposal --title=Upgrade --description="SoftwareUpgrade" --type="SoftwareUpgrade" --deposit=10iris --from=x --chain-id=upgrade-test --fee=0.05iris --gas=20000 --software=https://github.com/irisnet/irishub/tree/v0.9.0 --version=2 --switch-height=80
9090
```
9191

92-
* `--type` "SoftwareUpgrade" The type of Software upgrade proposals
93-
* `--version` The version of the new protocol
94-
* `--software` The software of the new protocol
92+
* `--type` "SoftwareUpgrade" The type of Software upgrade proposals
93+
* `--version` The version of the new protocol
94+
* `--software` The software of the new protocol
9595
* `--switch-height` The switchheight of the new protocol
9696
* Other parameters can be referrenced in [Gov User Guide](governance.md)
9797
* Only profiler can submit the software upgrade proposal.
9898

99-
```
100-
iriscli upgrade submit-switch --name=x --from=$VADDR --proposalID=1 --chain-id=upgrade-test --fee=0.05iris --gas=20000
101-
```
102-
103-
* `--proposalID` The ID of passed software upgrade proposals
104-
105-
```
106-
iris start --replay
107-
```
108-
109-
* Resynchronize the block, clean the dirty AppHash
99+
Query the version details of current software
110100

111101
```
112102
iriscli upgrade info --trust-node
113103
```
114104

115-
* Query the version details of current software

docs/get-started/Install-the-Software.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ Go to the download page:
2222

2323
https://github.com/irisnet/irishub/releases/
2424

25-
then get the release v0.7.0 on your computer.
25+
then get the release v0.9.0 on your computer.
2626
`unzip -C /usr/local/bin iris$VERSION.$OS-$ARCH.zip` to `/usr/local/bin/ `
2727

2828
You can verify you have the right version installed by running the following commands:
2929

3030
```
3131
$ iris version
32-
v0.7.0
32+
v0.9.0
3333
3434
$ iriscli version
35-
v0.7.0
35+
v0.9.0
3636
```
3737

3838
#### Compile Source Code
@@ -95,7 +95,7 @@ Make sure that you can access to google.com for that our project used some libra
9595
mkdir -p $GOPATH/src/github.com/irisnet
9696
cd $GOPATH/src/github.com/irisnet
9797
git clone https://github.com/irisnet/irishub
98-
cd irishub && git checkout v0.7.0
98+
cd irishub && git checkout v0.9.0
9999
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
100100
make all
101101
```
@@ -105,20 +105,20 @@ Now check your **Iris** version.
105105

106106
```
107107
$ iris version
108-
v0.7.0
108+
v0.9.0
109109
$ iriscli version
110-
v0.7.0
110+
v0.9.0
111111
```
112112

113113
### How to Update
114114

115115
Get latest code (you can also `git fetch` only the version desired), ensure the dependencies are up to date, then recompile.
116116

117117
```
118-
iris unsafe_reset_all --home
118+
iris unsafe-reset-all --home
119119
cd $GOPATH/src/github.com/irisnet/irishub
120120
git fetch -a origin
121-
git checkout v0.7.0
121+
git checkout v0.9.0
122122
make get_vendor_deps
123123
make install
124124
```

docs/get-started/Join-the-Testnet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ A validator is under the risk of being attacked. You could follow this [guide](.
3838

3939
## Fuxi Incentivized Testnet
4040
IRIS foundation plans to reward all the testnet participants who took part in the testnet. In Fuxi-3001 testnet,the community members have finished the tasks and they will receive their rewards in genesis allocation.
41-
* Task List for Fuxi-4000https://github.com/irisnet/testnets/blob/master/fuxi/fuxi-4000/README.md
42-
* Results for Fuxi-4000 tasks: https://github.com/irisnet/testnets/issues/176
41+
* Task List for Fuxi-6000https://github.com/irisnet/testnets/blob/master/fuxi/fuxi-6000/README.md
42+
* Results for Fuxi-6000 tasks: https://github.com/irisnet/testnets/issues/211
4343

4444
To get more people involved, IRIS foundation decides to send out more tasks in the latest iteration of testnet:Fuxi-5000.
45-
* Task List for Fuxi-5000: https://github.com/irisnet/testnets/blob/master/fuxi/fuxi-5000/README.md
45+
* Task List for Fuxi-7000: https://github.com/irisnet/testnets/blob/master/fuxi/fuxi-7000/README.md
4646

4747
## Useful Links
4848

docs/get-started/Validator-Node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ iriscli stake create-validator --chain-id=<chain-id> --from=<key name> --fee=0.0
7676
```
7777
Please note the **fee** can be the **decimal** of IRIS token, like `0.01iris`. And you could also use other coin-type like `iris-milli`
7878

79-
To read more about fee mechanism in IRISHub, go to this [doc](../)
79+
To read more about fee mechanism in IRISHub, go to this [doc](../features/basic-concepts/fee.md)
8080

8181

8282
In this way, to stake 1IRIS, you need to do:

docs/software/monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please refer to this [document](https://github.com/irisnet/irishub/blob/master/d
88
```
99
iristool monitor --validator-address=EAC535EC37EB3AE8D18C623BA4B4C8128BC082D2 \
1010
--account-address=faa1nwpzlrs35nawthal6vz2rjr4k8xjvn7k8l63st \
11-
--chain-id=<chain-id> --node=http://localhost:26657
11+
--chain-id=test-irishub--node=http://localhost:26657
1212
```
1313

1414
Parameters:

0 commit comments

Comments
 (0)