Skip to content

Commit

Permalink
add queryAuthority info (FISCO-BCOS#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaychen2005 authored Feb 21, 2020
1 parent e1309c6 commit 109245b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/manual/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ frozenContract Frozen the contract.
unfrozenContract Unfrozen the contract.
killContract Kill the contract.
queryContractStatus Query the status of the contract.
queryAuthority Query authority of the contract.
switch(s) Switch to a specific group by group ID.
[create sql] Create table by sql.
[delete sql] Remove records by sql.
Expand Down Expand Up @@ -1441,6 +1442,11 @@ Remove OK, 1 row affected.
- 删除记录sql语句的where子句必须提供表的主键字段值。
- 输入的值带标点符号、空格或者以数字开头的包含字母的字符串,需要加上双引号,双引号中不允许再用双引号。
```eval_rst
.. important::
执行`frozenContract``unfrozenContract``killContract`三个合约管理的控制台命令,需指定私钥启动控制台,用于进行操作权限判断。该私钥为部署指定合约时所用的账号私钥,即部署合约时也许指定私钥启动控制台。
```
### **frozenContract**
运行frozenContract,对指定合约进行冻结操作。参数:
Expand Down Expand Up @@ -1490,6 +1496,18 @@ Remove OK, 1 row affected.
The contract is available.
```
### **queryAuthority**
运行queryAuthority,查询能管理指定合约的权限账号列表。参数:
合约地址:部署合约可以获得合约地址,其中0x前缀非必须。
```text
[group:1]> queryAuthority 0x7f3c9ede6af9523a78df03b84c75a52561cb013c
[
"0xdfade505e286bf33644faa0204cbb0a86fd517ac"
]
```
## 附录:Java环境配置
### Ubuntu环境安装Java
Expand Down
19 changes: 19 additions & 0 deletions en/docs/manual/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ frozenContract Frozen the contract.
unfrozenContract Unfrozen the contract.
killContract Kill the contract.
queryContractStatus Query the status of the contract.
queryAuthority Query authority of the contract.
switch(s) Switch to a specific group by group ID.
[create sql] Create table by sql.
[delete sql] Remove records by sql.
Expand Down Expand Up @@ -1492,6 +1493,11 @@ Remove OK, 1 row affected.
- For deleting the where clause of recording sql statement, the primary key field value of the table in the where clause must be provided.
- The enter values with punctuation, spaces, or strings containing letters starting with a number requires double quotation marks, and no more double quotation marks are allowed inside.
```eval_rst
.. important::
The executing of the 'frozenContract'/ 'unfrozenContract'/'killContract' commands for contract management should specify the private key to start the console for permission.This private key is also the account private key used to deploy the specified contract. So a private key should be specified to launch the console when deploying the contract.
```
### **frozenContract**
To run frozenContract to freeze contract according contract address.
Parameter:
Expand Down Expand Up @@ -1545,6 +1551,19 @@ The prefix of 0x is not necessary.
The contract is available.
```
### **queryAuthority**
To run queryAuthority to query a list of authorized accounts that can manage a specified contract.
Parameter:
- Contract address: To deploy contract can get contract address.
The prefix of 0x is not necessary.
```text
[group:1]> queryAuthority 0x7f3c9ede6af9523a78df03b84c75a52561cb013c
[
"0xdfade505e286bf33644faa0204cbb0a86fd517ac"
]
```
## Appendix: Java environment configuration
### Install Java in ubuntu environment
Expand Down

0 comments on commit 109245b

Please sign in to comment.