-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mh739025250/main
[doc] identity contract document
- Loading branch information
Showing
4 changed files
with
119 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Identity Contract Document | ||
|
||
## Contract Methods | ||
|
||
### join | ||
|
||
Node join in the task network. | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| url | string | node server url | | ||
| name | string | node display name | | ||
|
||
### updateUrl | ||
|
||
Update node server url | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| url | string | server url | | ||
|
||
### updateName | ||
|
||
Update node display name | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| name | string | node display name | | ||
|
||
### leave | ||
|
||
Node leave the task network | ||
|
||
params: | ||
|
||
None | ||
|
||
### getNodeInfo | ||
|
||
Get node information by node address. | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| address | address | node address | | ||
|
||
returns: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| info | tuple[string, string ] | url and name | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# 身份合约方法文档 | ||
|
||
## 合约函数 | ||
|
||
### join | ||
|
||
节点加入任务网络 | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| url | string | 服务器的url | | ||
| name | string | 节点的显示名称 | | ||
|
||
### updateUrl | ||
|
||
更新节点的url | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| url | string | 服务器新的url | | ||
|
||
### updateName | ||
|
||
更新节点的名称 | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| name | string | 节点新的显示名称 | | ||
|
||
### leave | ||
|
||
节点退出任务网络 | ||
|
||
params: | ||
|
||
None | ||
|
||
### getNodeInfo | ||
|
||
通过节点地址获取节点信息 | ||
|
||
params: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| address | address | 节点的地址 | | ||
|
||
returns: | ||
|
||
| name | type | description | | ||
| --- | --- | --- | | ||
| info | tuple[string, string ] | url和name | | ||
|