-
Notifications
You must be signed in to change notification settings - Fork 22
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 #71 from neo-project/dev
master < dev
- Loading branch information
Showing
91 changed files
with
5,064 additions
and
2,718 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
2 changes: 1 addition & 1 deletion
2
docs/n3/neofs/_category_.json → docs/n3/Advances/neofs/_category_.json
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"label": "NeoFS", | ||
"position": 9 | ||
"position": 1 | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docs/n3/neons/_category_.json → docs/n3/Advances/neons/_category_.json
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"label": "NeoNS", | ||
"position": 10 | ||
"position": 2 | ||
} | ||
|
File renamed without changes.
118 changes: 59 additions & 59 deletions
118
docs/n3/neons/api/addRoot.md → docs/n3/Advances/neons/api/addRoot.md
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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
# addRoot | ||
|
||
Registers the top-level domain, which can be added by the Neo Committee only. You need to input the committee multi-signature address signature to generate a new transaction. | ||
|
||
:::note | ||
Currently only ".neo" is supported. | ||
::: | ||
|
||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Required | | ||
| :--- | ------ | -------------------------- | -------- | | ||
| root | String | The top-level domain name. | Required | | ||
|
||
### Example | ||
|
||
Request body | ||
|
||
```json5 | ||
curl --request POST \ | ||
--url http://seed1t4.neo.org:20332/ \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"jsonrpc": "2.0", | ||
"method": "invokefunction", | ||
"params": [ "0x152fa9ceeb2c83f40e3d3d6da6c1f8898dd4891a", "addRoot", | ||
[{"type":"String","value":"test"}], | ||
[ | ||
{ | ||
"account": "Nfm8y1ZQMmiMwBQhzYqS9cfu3sX4ESAT5g", | ||
"scopes": "CalledByEntry" | ||
} | ||
] | ||
], | ||
"id": 1 | ||
} | ||
' | ||
``` | ||
|
||
Response body | ||
|
||
```json5 | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"script": "DAR0ZXN0EcAfDAdhZGRSb290DBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", | ||
"state": "HALT", | ||
"gasconsumed": "524180", | ||
"exception": null, | ||
"stack": [ | ||
{ | ||
"type": "Any" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
# addRoot | ||
|
||
Registers the top-level domain, which can be added by the Neo Committee only. You need to input the committee multi-signature address signature to generate a new transaction. | ||
|
||
:::note | ||
Currently only ".neo" is supported. | ||
::: | ||
|
||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Required | | ||
| :--- | ------ | -------------------------- | -------- | | ||
| root | String | The top-level domain name. | Required | | ||
|
||
### Example | ||
|
||
Request body | ||
|
||
```json5 | ||
curl --request POST \ | ||
--url http://seed1t4.neo.org:20332/ \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"jsonrpc": "2.0", | ||
"method": "invokefunction", | ||
"params": [ "0x152fa9ceeb2c83f40e3d3d6da6c1f8898dd4891a", "addRoot", | ||
[{"type":"String","value":"test"}], | ||
[ | ||
{ | ||
"account": "Nfm8y1ZQMmiMwBQhzYqS9cfu3sX4ESAT5g", | ||
"scopes": "CalledByEntry" | ||
} | ||
] | ||
], | ||
"id": 1 | ||
} | ||
' | ||
``` | ||
|
||
Response body | ||
|
||
```json5 | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"script": "DAR0ZXN0EcAfDAdhZGRSb290DBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", | ||
"state": "HALT", | ||
"gasconsumed": "524180", | ||
"exception": null, | ||
"stack": [ | ||
{ | ||
"type": "Any" | ||
} | ||
] | ||
} | ||
} | ||
``` |
126 changes: 63 additions & 63 deletions
126
docs/n3/neons/api/balanceOf.md → docs/n3/Advances/neons/api/balanceOf.md
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 |
---|---|---|
@@ -1,63 +1,63 @@ | ||
# balanceOf | ||
|
||
Gets the number of second-level domain names of the given address. | ||
|
||
If the domain has expired, it counts still. | ||
|
||
|
||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Required | | ||
| ----- | ------- | -------------------------------- | -------- | | ||
| owner | Address | The address of the domain owner. | Required | | ||
|
||
### Example | ||
|
||
Request body | ||
|
||
```json5 | ||
curl --request POST \ | ||
--url http://seed1t4.neo.org:20332/ \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"jsonrpc": "2.0", | ||
"method": "invokefunction", | ||
"params": [ "0x152fa9ceeb2c83f40e3d3d6da6c1f8898dd4891a", "balanceOf", | ||
[ | ||
{ | ||
"type":"Hash160","value":"0x713c5666c9710bf6933572cf134a2a8f518f1a30" | ||
} | ||
], | ||
[ | ||
{ | ||
"account": "NMzaUBM56iumJ8pHfjjCuKsAepKxENkUqN", | ||
"scopes": "CalledByEntry" | ||
} | ||
] | ||
], | ||
"id": 1 | ||
} | ||
' | ||
``` | ||
|
||
Response body | ||
|
||
```json5 | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"script": "DBQwGo9RjypKE89yNZP2C3HJZlY8cRHAHwwJYmFsYW5jZU9mDBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", | ||
"state": "HALT", | ||
"gasconsumed": "265986", | ||
"exception": null, | ||
"stack": [ | ||
{ | ||
"type": "Integer", | ||
"value": "4" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
# balanceOf | ||
|
||
Gets the number of second-level domain names of the given address. | ||
|
||
If the domain has expired, it counts still. | ||
|
||
|
||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Required | | ||
| ----- | ------- | -------------------------------- | -------- | | ||
| owner | Address | The address of the domain owner. | Required | | ||
|
||
### Example | ||
|
||
Request body | ||
|
||
```json5 | ||
curl --request POST \ | ||
--url http://seed1t4.neo.org:20332/ \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"jsonrpc": "2.0", | ||
"method": "invokefunction", | ||
"params": [ "0x152fa9ceeb2c83f40e3d3d6da6c1f8898dd4891a", "balanceOf", | ||
[ | ||
{ | ||
"type":"Hash160","value":"0x713c5666c9710bf6933572cf134a2a8f518f1a30" | ||
} | ||
], | ||
[ | ||
{ | ||
"account": "NMzaUBM56iumJ8pHfjjCuKsAepKxENkUqN", | ||
"scopes": "CalledByEntry" | ||
} | ||
] | ||
], | ||
"id": 1 | ||
} | ||
' | ||
``` | ||
|
||
Response body | ||
|
||
```json5 | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"script": "DBQwGo9RjypKE89yNZP2C3HJZlY8cRHAHwwJYmFsYW5jZU9mDBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", | ||
"state": "HALT", | ||
"gasconsumed": "265986", | ||
"exception": null, | ||
"stack": [ | ||
{ | ||
"type": "Integer", | ||
"value": "4" | ||
} | ||
] | ||
} | ||
} | ||
``` |
Oops, something went wrong.