Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
MohsenNz committed Jan 27, 2025
1 parent 1009c06 commit de88d2b
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 242 deletions.
Binary file modified src/assets/subnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
381 changes: 185 additions & 196 deletions src/assets/subnet.svg
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 src/guide/jungoai-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Here is a diagram of a Subnet:
And Here is an overview of JungoAI ecosystem:

<center>
<img src="../assets/overview.png" alt="figure 1" width="60%">
<img src="../assets/overview.png" alt="figure 1" width="70%">
</center>

For running subnet nodes see [here](guide/run-a-subnet-node.md).
Expand Down
8 changes: 8 additions & 0 deletions src/guide/register-uid.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ jucli wallet list
## Get Token

Currently to get token you can DM Mr.Bakhshandeh at Telegram ([@rbakhshandeh](https://t.me/rbakhshandeh)).

## Register UID

We are showing registering UID on subnet 1001 (echo subnet) on devnet (you can do it on any subnet you want):

```bash
jucli subnet register --name <your-coldkey> --hotkey <your-hotkey> --netuid 1001 --chain devnet
```
21 changes: 6 additions & 15 deletions src/guide/run-monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,23 @@ Before continuing make sure you have met [Registering UID](register-uid.md).
To demonstrate how to run a worker node, we are going to do it on subnet 1001 (echo subnet) on
devnet as an example.

In this tutorial we sometimes used term `<your-coldkey>` and `your-hotkey` in code blocks.
So you need replace them with your own.

Register a node in the echo-subnet (it's netuid 1001):

```
jucli subnet register --name <your-coldkey> --hotkey <your-hotkey> --netuid 1001 --chain devnet
```

Install echo-subnet:

```
rye install echo-subnet --git https://github.com/jungoai/jungo-echo-subnet.git
```

Note: you can install `rye` by `curl -sSf https://rye.astral.sh/get | bash`
*Note: you can install `rye` by `curl -sSf https://rye.astral.sh/get | bash`*

Run echo-worker:

```
echo-monitor \
--wallet.name <your-coldkey> \
--wallet.hotkey <your-hotkey> \
--netuid 1001 \
--chain_endpoint wss://devnet-rpc.jungoai.xyz \
--logging.debug
--wallet.name <your-coldkey> \
--wallet.hotkey <your-hotkey> \
--netuid 1001 \
--chain_endpoint wss://devnet-rpc.jungoai.xyz \
--logging.debug
```

The above command will run echo-worker on the UID that registered by coldkey and hotkey.
Expand Down
29 changes: 10 additions & 19 deletions src/guide/run-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,28 @@

Before continuing make sure you have met [Registering UID](register-uid.md).

To demonstrate how to run a worker node, we are going to do it on subnet 1001 (echo subnet) on
To demonstrate how to run a monitor node, we are going to do it on subnet 1001 (echo subnet) on
devnet as an example.

In this tutorial we sometimes used term `<your-coldkey>` and `your-hotkey` in code blocks.
So you need replace them with your own.

Register a node in the echo-subnet (it's netuid 1001):

```
jucli subnet register --name <your-coldkey> --hotkey <your-hotkey> --netuid 1001 --chain devnet
```

Install echo-subnet:

```
rye install echo-subnet --git https://github.com/jungoai/jungo-echo-subnet.git
```

Note: you can install `rye` by `curl -sSf https://rye.astral.sh/get | bash`
*Note: you can install `rye` by `curl -sSf https://rye.astral.sh/get | bash`*

Run echo-monitor:

```
echo-worker \
--ip <your-public-host-ip> \
--port <your-host-port> \
--wallet.name <your-coldkey> \
--wallet.hotkey <your-hotkey> \
--netuid 1001 \
--chain_endpoint wss://devnet-rpc.jungoai.xyz \
--logging.debug
--ip <your-public-host-ip> \
--port <your-host-port> \
--wallet.name <your-coldkey> \
--wallet.hotkey <your-hotkey> \
--netuid 1001 \
--chain_endpoint wss://devnet-rpc.jungoai.xyz \
--logging.debug
```

The above command will run echo-worker on the UID that registered by coldkey and hotkey.
Expand All @@ -46,5 +37,5 @@ jucli stake add --amount 100 --name <your-coldkey> --hotkey <your-hotkey> --chai
Check your node after a while:

```
jucli wallet overview --name alan --chain devnet
jucli wallet overview --name <your-coldkey> --chain devnet
```
44 changes: 33 additions & 11 deletions src/more/terminologies.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
# Terminologies

- **JUNGO**: The native token with decimal of 9.
- **Wallet**: Both of ECDSA (Ethereum wallet) and Sr25519 (Polkadot wallet) supported.
- **Netuid**: Each subnet has a unique Netuid in Jungochain.
- **UID**: Each node (Worker/Monitor) has a unique UID in that Subnet.
- **Root Subnet (or Subnet 0)**:
Is a specific Subnet that other Subnets are defined here.
In other word Subnet 0 contains Monitors and Subnets (instead of Workers),
emission will distribute here between subnets first,
then Subnets will distribute them between their nodes.
You can read more about emissions [here]().
- **Tempo**: Period of time reward distribute.
### JUNGO

The native token with decimal of 9.

### Wallet

Both of ECDSA (Ethereum wallet) and Sr25519 (Polkadot wallet) supported.

### Netuid

Each subnet has a unique Netuid in Jungochain.

### UID

Each node (Worker/Monitor) has a unique UID in that Subnet.
Before you run a node, you need to register UID on corresponding Subnet by your Coldkey and Hotkey,
that means a couple of Coldkey/Hotkey map to a UID on a Subnet.

### Root Subnet (or Subnet 0)

Is a specific Subnet that other Subnets are defined here.
In other word Subnet 0 contains Monitors and Subnets (instead of Workers),
emission will distribute here between subnets first,
then Subnets will distribute them between their nodes.
You can read more about emissions [here]().

### Tempo

Period of time reward distribute.

### Coldkey

### Hotkey

0 comments on commit de88d2b

Please sign in to comment.