Skip to content

Commit

Permalink
Reorganize Build nav with Talk subsection for Rust SDK and related do…
Browse files Browse the repository at this point in the history
…cs (MystenLabs#3746)

* Reorganize Build nav with Talk subsection for Rust SDK and related docs

* Add See Sui JSON-RPC API reference to new Talk subsection
  • Loading branch information
Clay-Mysten authored Aug 4, 2022
1 parent 41a1798 commit dd37ce1
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 21 deletions.
2 changes: 1 addition & 1 deletion doc/src/build/cli-client.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Sui CLI Quick Start
title: Use Sui CLI to Start and Manage Network
---

Welcome to the Sui tutorial on the Sui CLI developed
Expand Down
13 changes: 13 additions & 0 deletions doc/src/build/comms/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Connect and Communicate with the Sui Network
---

Now that you have [installed Sui](../../build/install.md), [started the Sui network](../../build/cli-client.md), and learned how to [create smark contracts in Move](../../build/move/index.md) and [program Sui objects](../../build/programming-with-objects/index.md), it's time to let your apps talk to Sui. The pages in this section provide various options for communicating with Sui.

* Use the [Sui CLI client](../../build/cli-client.md) to start and set up the Sui network.
* Set up your own [local Sui RPC server and use the Sui JSON-RPC API](../../build/json-rpc.md) to interact with a local Sui network.
* Adhere to the [restrictions placed on JSON types](../../build/sui-json.md) to make them SuiJSON compatible.
* Interact with the Sui network via the [Sui Rust SDK](../../build/rust-sdk.md), a collection of Rust language JSON-RPC wrapper and crypto utilities.
* Sign transactions and interact with the Sui network using the [Sui TypeScript SDK](https://github.com/MystenLabs/sui/tree/main/sdk/typescript) built on the Sui JSON RPC API.
* Run a [Sui Fullnode](../../build/fullnode.md) yourself to store the full Sui blockchain state and history and qualify as a [potential validator](https://sui.io/resources-sui/validator-registration-open/).
* Filter and subscribe to a [real-time event stream](../../build/pubsub.md) on your Sui Fullnode using JSON-RPC notifications via the WebSocket API.
3 changes: 2 additions & 1 deletion doc/src/build/fullnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ transactions (or a block of transactions), the validator will push that block
to a fullnode (potentially a number of fullnodes) who will then in turn
disseminate it to the rest of the network.

**Important**: For potential validators, running a Sui fullnode is an absolute
**Important**: For [potential validators](https://sui.io/resources-sui/validator-registration-open/),
running a Sui fullnode is an absolute
prerequisite. We encourage auditors, bridges, state mirrors and other
interested parties to join us. At this time, we offer no guarantees on performance
or stability of our fullnode software. We expect things to evolve and stabilize
Expand Down
2 changes: 1 addition & 1 deletion doc/src/build/pubsub.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Subscribe to JSON-RPC Real-Time Events
---

Sui [fullnode](fullnode.md) supports publish / subscribe using [JSON-RPC](json-rpc.md) notifications via websocket.
Sui [fullnode](fullnode.md) supports publish / subscribe using [JSON-RPC](json-rpc.md) notifications via the WebSocket API.
This service allows clients to filter and subscribe to a real-time event stream generated from Move or from the Sui
network.

Expand Down
57 changes: 39 additions & 18 deletions doc/src/navconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@
"label": "Install Sui",
"fileName": "build/install"
},
{
"label": "Use Sui CLI to Start Network",
"fileName": "build/cli-client"
},
{
"label": "Create Smart Contracts with Move",
"fileName": "build/move/index",
Expand All @@ -135,10 +139,6 @@
}
]
},
{
"label": "Use Sui CLI",
"fileName": "build/cli-client"
},
{
"label": "Program with Objects",
"fileName": "build/programming-with-objects/index",
Expand Down Expand Up @@ -167,20 +167,41 @@
]
},
{
"label": "Use Sui RPC Server",
"fileName": "build/json-rpc"
},
{
"label": "Employ SuiJSON Format",
"fileName": "build/sui-json"
},
{
"label": "Run a Fullnode",
"fileName": "build/fullnode"
},
{
"label": "Subscribe to Events",
"fileName": "build/pubsub"
"label": "Talk with Sui",
"fileName": "build/comms/index",
"title": "Talk with Sui",
"items": [
{
"label": "Use Sui RPC Server",
"fileName": "build/json-rpc"
},
{
"label": "Employ SuiJSON Format",
"fileName": "build/sui-json"
},
{
"label": "See Sui JSON-RPC API reference",
"link": "https://docs.sui.io/sui-jsonrpc",
"external": true
},
{
"label": "Make calls with Rust SDK",
"fileName": "build/rust-sdk"
},
{
"label": "Write TypeScript/JavaScript",
"link": "https://github.com/MystenLabs/sui/tree/main/sdk/typescript",
"external": true
},
{
"label": "Run a Fullnode",
"fileName": "build/fullnode"
},
{
"label": "Subscribe to Events",
"fileName": "build/pubsub"
}
]
}
],
"explore": [
Expand Down

0 comments on commit dd37ce1

Please sign in to comment.