Skip to content

Commit

Permalink
Merge pull request #108 from neo-project/Fix-some-broken-links
Browse files Browse the repository at this point in the history
fix broken links
  • Loading branch information
Celia18305 authored May 15, 2024
2 parents 2a4ccd6 + fb7bb7a commit 432ec86
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 11 deletions.
Binary file added docs/n3/gettingstarted/assets/extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/n3/gettingstarted/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Since many developers are concerned about how to publish their own contract asse

3. Run VS Code and install the C# extension as prompted.

![](../../zh-cn/gettingstarted/assets/extension.png)
![](assets/extension.png)

4. Open the `Nep17` folder to edit the Nep17 template。

Expand Down
1 change: 1 addition & 0 deletions docs/n3/reference/rpc/latest-version/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ You can modify the port in config.json in the RpcServer folder.
| [getunclaimedgas](api/getunclaimedgas.md) | <address\> | Get unclaimed gas of the specified address. |
| [invokefunction](api/invokefunction.md) | <script_hash\> <operation\> \[params] \[sender] \[signers] | Invokes a smart contract with the specified script hash, passing in the method name and its params. |
| [invokescript](api/invokescript.md) | <script\> \[sender] \[signers] | Runs a script through the virtual machine and returns the results. |
| [traverseiterator](api/traverseiterator.md) | \<session> \<iterator id> \<count> | Gets the Iterator type data. |

### Tool

Expand Down
93 changes: 93 additions & 0 deletions docs/n3/reference/rpc/latest-version/api/traverseiterator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# traverseiterator Method

Gets the Iterator value from `session` and `Iterator id` returned by [invokefunction](./invokefunction.md) or [invokescript](./invokescript.md) .

> [!Note]
>
> - This method queries Iterator type data and does not affect the blockchain data.
> - You must install the plugin [RpcServer](https://github.com/neo-project/neo-modules/releases) before you can invoke the method.
> - Before you can use the method, make sure that the `SessionEnabled` value in `config.json` of the plugin `RpcServer` is `true`, and you have obtained `Iterator id` and `session` by invoking [invokefunction](./invokefunction.md) or [invokescript](./invokescript.md).
## Parameters

- session: Cache id. It is `session` returned by [invokefunction](./invokefunction.md) or [invokescript](./invokescript.md) .
- iterator id: Iterator data id. It is the `id` of `stack` returned by [invokefunction](./invokefunction.md) or [invokescript](./invokescript.md).
- count: The number of values returned. It cannot exceed the value of the `MaxIteratorResultItems` field in config.json of the `RpcServer` plug-in.

> [!Note]
>
> The validity of the `session` and `iterator id` is set by `SessionExpirationTime` in the `config.json` file of the `RpcServer` plug-in, in seconds.
## Example

Request body:

```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "traverseiterator",
"params": [
"c5b628b6-10d9-4cc5-b850-3cfc0b659fcf",
"593b02c6-138d-4945-846d-1e5974091daa",
10
]
}


```

Response body:

```json
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"type": "ByteString",
"value": "AAUPmAOGDBtFrjhmByyKoaxgy9LvzyEh8qUiEU1gxTE="
},
{
"type": "ByteString",
"value": "ABX1SHTkVThVWpKlyFr3OO8swQXWfnRuqw99TTvi2UU="
},
{
"type": "ByteString",
"value": "ACj/5pqjP2Mko/2c0GSUKxkJlIyC3cwUbgETEZ5+5YI="
},
{
"type": "ByteString",
"value": "AF16dMuw8CAZBr/sgdJnW8XWrDDDxifHsa8myh+zsD0="
},
{
"type": "ByteString",
"value": "AF9luS6mW+nVUNwwlkKqqRLjgoXaIlk98NuhzLTZ2sI="
},
{
"type": "ByteString",
"value": "AHg1cOvi+r1ORjQcs9VD5bpBDCFtpzp/G4g0BMfsneo="
},
{
"type": "ByteString",
"value": "AM9ZDm7y7R4M5AicSk06sRv+AEmRPToxjoiHo5aeCfo="
},
{
"type": "ByteString",
"value": "AOqjq4sfaUcMBtXWVHKh6HqXZA3bOSiNc1VjIEi1auY="
},
{
"type": "ByteString",
"value": "AOsx7QOiuKZCB2bFBR1s/SjJnfvdbyVvC5ZvaTCFe2U="
},
{
"type": "ByteString",
"value": "APHR02jt/M9nkLF9z+5yRnRE8efjVhMvjIjDHAQeGV0="
}
]
}
```

Response Description:

The result is the first `count` of data traversed in the Iterator, and follow-up requests will continue traversing from `count + 1`.
20 changes: 10 additions & 10 deletions docs/n3/reference/scapi/framework/native.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ A series of native contract methods that can be invoked in the smart contract.

## Native Contract Classes

| Contract Name | Script Hash | Description |
| ------------------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------ |
| Contract Name | Script Hash | Description |
| -------------------------------------------------- | ------------------------------------------ | ------------------------------------------------------------ |
| [ContractManagement](native/ContractManagement.md) | 0xfffdc93764dbaddd97c48f252a53ea4643faa3fd | A native contract used to manage all deployed smart contracts |
| [CryptoLib](native/CryptoLib.md) | 0x726cb6e0cd8628a1350a611384688911ab75f51b | A native contract library that provides cryptographic algorithms |
| [GAS](native/GAS.md) | 0xd2a4cff31913016155e38e474a2c06d08be276cf | Represents the GAS token in the NEO system |
| [Ledger](native/Ledger.md) | 0xda65b600f7124ce6c79950c1772a36403104f2be | A native contract for storing all blocks and transactions |
| [NEO](native/NEO.md) | 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5 | Represents the NEO token in the Neo system |
| [Oracle](native/Oracle.md) | 0xfe924b7cfe89ddd271abaf7210a80a7e11178758 | The native Oracle service for Neo system |
| [Policy](native/Policy.md) | 0xcc5e4edd9f5f8dba8bb65734541df7a1c081c67b | A native contract that manages the system policies |
| [RoleManagement](native/RoleManagement.md) | 0x49cf4e5378ffcd4dec034fd98a174c5491e395e2 | A native contract for managing roles in Neo system |
| [StdLib](native/StdLib.md) | 0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0 | A native contract library that provides useful functions |
| [CryptoLib](native/CryptoLib.md) | 0x726cb6e0cd8628a1350a611384688911ab75f51b | A native contract library that provides cryptographic algorithms |
| [GAS](native/Gas.md) | 0xd2a4cff31913016155e38e474a2c06d08be276cf | Represents the GAS token in the NEO system |
| [Ledger](native/Ledger.md) | 0xda65b600f7124ce6c79950c1772a36403104f2be | A native contract for storing all blocks and transactions |
| [NEO](native/Neo.md) | 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5 | Represents the NEO token in the Neo system |
| [Oracle](native/Oracle.md) | 0xfe924b7cfe89ddd271abaf7210a80a7e11178758 | The native Oracle service for Neo system |
| [Policy](native/Policy.md) | 0xcc5e4edd9f5f8dba8bb65734541df7a1c081c67b | A native contract that manages the system policies |
| [RoleManagement](native/RoleManagement.md) | 0x49cf4e5378ffcd4dec034fd98a174c5491e395e2 | A native contract for managing roles in Neo system |
| [StdLib](native/StdLib.md) | 0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0 | A native contract library that provides useful functions |

## Enumeration

Expand Down

0 comments on commit 432ec86

Please sign in to comment.