-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
163 additions
and
79 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
# Create a Hotkey | ||
|
||
<div class="warning"> | ||
Pre requirements | ||
|
||
You need to have `jucli` (Jungo-CLI) on your system. | ||
You can install it from [here](../tools/jungo-cli.md#Installation). | ||
|
||
</div> | ||
|
||
A hotkey is another address that placed under a coldkey. The coldkey is used to hold and transfer tokens. | ||
A hotkey (alongside coldkey) is used to register node (worker or monitor). | ||
Stake and reward distribution also done in the hotkeys. | ||
The purpose of hotkey is to provide more security, coldkey to be used for transfer tokens, | ||
and hotkey to be used in JungoAI ecosystem e.g stake. | ||
|
||
```bash | ||
jucli wallet new_hotkey | ||
``` | ||
|
||
Fill the prompts. For example: | ||
|
||
``` | ||
Enter the wallet name (default): alan | ||
Enter the name of the new hotkey (default): alan-hotkey1 | ||
Enter the wallet path (Hint: You can set this with `jucli config set --wallet-path`) (~/.jungoai/wallets/): | ||
Choose the number of words [12/15/18/21/24]: 12 | ||
``` | ||
|
||
Now check your wallet: | ||
|
||
```bash | ||
jucli wallet list | ||
``` |
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,32 @@ | ||
# Create a Subnet | ||
|
||
<div class="warning"> | ||
Pre requirements | ||
|
||
You need to have `jucli` (Jungo-CLI) on your system. | ||
You can install it from [here](../tools/jungo-cli.md#Installation). | ||
</div> | ||
|
||
Run command below to create a new Subnet: | ||
|
||
```bash | ||
jucli subnet create --wallet.name <your-coldkey> --chain_endpoint wss://devnet-rpc.jungoai.xyz | ||
``` | ||
|
||
You will see something like this: | ||
|
||
``` | ||
>> Your balance is: 200.000000000 | ||
>> Do you want to register a subnet for 1000.000000000? [y/n]: | ||
>> Enter password to unlock key: <YOUR_PASSWORD> | ||
>> ✅ Registered subnetwork with netuid: 1002 | ||
``` | ||
|
||
After that you will be the owner of the Subnet. | ||
|
||
<div class="warning"> | ||
Note | ||
|
||
User Subnet's netuid is an incremental id start from 1001, | ||
netuids from 1 to 1000 are reserved for base layer apps and netuid 0 is root subnet. | ||
</div> |
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,39 @@ | ||
# Create a Wallet (Coldkey) | ||
|
||
<div class="warning"> | ||
Pre requirements | ||
|
||
You need to have `jucli` (Jungo-CLI) on your system. | ||
You can install it from [here](../tools/jungo-cli.md#Installation). | ||
</div> | ||
|
||
Coldkey is a synonym name for Wallet in JungoAI. | ||
|
||
Run command below to generate a new wallet: | ||
|
||
```bash | ||
jucli wallet new_coldkey | ||
``` | ||
|
||
You will see the following prompts: | ||
|
||
- `Enter the path to the wallets directory (~/.jungoai/wallets/):`<br> | ||
Default is `~/.jungoai/wallets/`, press enter or write another path as you want. | ||
|
||
- `Enter the wallet name (default): alan`<br> | ||
Enter your desire name for your coldkey (wallet name). In this example we used `alan`. | ||
|
||
- `Choose the number of words [12/15/18/21/24]:`<br> | ||
Write number of words for secret phrase. | ||
|
||
- `Enter your password:`<br> | ||
Write a password for your wallet. | ||
|
||
- `The mnemonic to the new coldkey is: ...`<br> | ||
Save your mnemonic in a safe place, it will used to recover the coldkey. | ||
|
||
Now check your wallet: | ||
|
||
```bash | ||
jucli wallet list | ||
``` |
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
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,21 @@ | ||
# Jungo CLI | ||
|
||
## Installation | ||
|
||
Install Rye: | ||
|
||
```bash | ||
curl -sSf https://rye.astral.sh/get | bash | ||
``` | ||
|
||
Install Jungo-CLI via Rye: | ||
|
||
```bash | ||
rye install jungo-cli --git https://github.com/jungoai/jungo-cli.git | ||
``` | ||
|
||
Verify installation: | ||
|
||
```bash | ||
jucli --version | ||
``` |
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 @@ | ||
# JungoAI CLI |