Skip to content

Commit 96800ed

Browse files
authored
Merge pull request #65 from latent-to/btcli-updates
btcli doc updates
2 parents fbc3c33 + f694ac1 commit 96800ed

File tree

2 files changed

+130
-4
lines changed

2 files changed

+130
-4
lines changed

docs/btcli.md

Lines changed: 129 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ btcli [OPTIONS] COMMAND [ARGS]...
3838
- `subnets`: Subnets commands, alias: `s`, `subnet`
3939
- `weights`: Weights commands, aliases: `wt`, `weight`
4040
- `utils`
41-
- `view`
41+
- `view`: HTML view commands
42+
- `liquidity`: Liquidity commands, aliases: `l`
4243

4344
## `btcli config`
4445

@@ -2498,6 +2499,131 @@ btcli utils convert [OPTIONS]
24982499
| `--tao` | FLOAT | Convert amount from Tao |
24992500
| `--help` | | Show this message and exit. |
25002501

2501-
---
2502+
## `btcli liquidity`
2503+
2504+
**Usage:**
2505+
2506+
```sh
2507+
btcli liquidity [OPTIONS] COMMAND [ARGS]...
2508+
2509+
alias: l
2510+
```
2511+
2512+
Options:
2513+
2514+
`--help`: Show this message and exit.
2515+
2516+
Commands:
2517+
2518+
- `add`: Add liquidity to the swap (as a combination of TAO + Alpha).
2519+
- `list`: Displays liquidity positions in given subnet.
2520+
- `modify`: Modifies the liquidity position for the given subnet.
2521+
- `remove`: Remove liquidity from the swap (as a combination of TAO + Alpha).
2522+
2523+
### `btcli liquidity add`
2524+
2525+
Add liquidity to the swap (as a combination of TAO + Alpha).
2526+
2527+
**Usage:**
2528+
2529+
```bash
2530+
btcli liquidity add [OPTIONS]
2531+
```
2532+
2533+
**Parameters:**
2534+
2535+
| Options | Type | Description |
2536+
| ---------------------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------ |
2537+
| `--network`, `--subtensor.network`, `--chain`, `--subtensor.chain_endpoint` | TEXT | The subtensor network to connect to. Default: finney. |
2538+
| `--wallet-name`, `--name`, `--wallet_name`, `--wallet.name` | TEXT | Name of the wallet. |
2539+
| `--wallet-path`, `-p`, `--wallet_path`, `--wallet.path` | TEXT | Path where the wallets are located. For example: `/Users/btuser/.bittensor/wallets`. |
2540+
| `--hotkey`, `-H`, `--wallet_hotkey`, `--wallet-hotkey`, `--wallet.hotkey` | TEXT | Hotkey of the wallet |
2541+
| `--netuid` | INTEGER | The netuid of the subnet in the network, (e.g. 1). |
2542+
| `--liquidity` | FLOAT | Amount of liquidity to add to the subnet. |
2543+
| `--price-low`, `--price_low`, `--liquidity-price-low`, `--liquidity_price_low` | FLOAT | Low price for the adding liquidity position. |
2544+
| `--price-high`, `--price_high`, `--liquidity-price-high`, `--liquidity_price_high` | FLOAT | High price for the adding liquidity position. |
2545+
| `--prompt/--no-prompt`, ` /--yes`, ` /--no_prompt`, ` /-y` | | Enable or disable interactive prompts. |
2546+
| `--quiet` | | Display only critical information on the console. |
2547+
| `--verbose` | | Enable verbose output. |
2548+
| `--json-output`, `--json-out` | | Outputs the result of the command as JSON. |
2549+
| `--help` | | Show this message and exit. |
2550+
2551+
### `btcli liquidity list`
2552+
2553+
Displays liquidity positions in given subnet.
2554+
2555+
**Usage:**
2556+
2557+
```bash
2558+
btcli liquidity list [OPTIONS]
2559+
```
2560+
2561+
**Parameters:**
2562+
2563+
| Options | Type | Description |
2564+
| --------------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------ |
2565+
| `--network`, `--subtensor.network`, `--chain`, `--subtensor.chain_endpoint` | TEXT | The subtensor network to connect to. Default: finney. |
2566+
| `--wallet-name`, `--name`, `--wallet_name`, `--wallet.name` | TEXT | Name of the wallet. |
2567+
| `--wallet-path`, `-p`, `--wallet_path`, `--wallet.path` | TEXT | Path where the wallets are located. For example: `/Users/btuser/.bittensor/wallets`. |
2568+
| `--hotkey`, `-H`, `--wallet_hotkey`, `--wallet-hotkey`, `--wallet.hotkey` | TEXT | Hotkey of the wallet |
2569+
| `--netuid` | INTEGER | The netuid of the subnet in the network, (e.g. 1). |
2570+
| `--quiet` | | Display only critical information on the console. |
2571+
| `--verbose` | | Enable verbose output. |
2572+
| `--json-output`, `--json-out` | | Outputs the result of the command as JSON. |
2573+
| `--help` | | Show this message and exit. |
2574+
2575+
### `btcli liquidity modify`
2576+
2577+
Modifies the liquidity position for the given subnet.
2578+
2579+
**Usage:**
2580+
2581+
```bash
2582+
btcli liquidity modify [OPTIONS]
2583+
```
2584+
2585+
**Parameters:**
2586+
2587+
| Options | Type | Description |
2588+
| --------------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------ |
2589+
| `--network`, `--subtensor.network`, `--chain`, `--subtensor.chain_endpoint` | TEXT | The subtensor network to connect to. Default: finney. |
2590+
| `--wallet-name`, `--name`, `--wallet_name`, `--wallet.name` | TEXT | Name of the wallet. |
2591+
| `--wallet-path`, `-p`, `--wallet_path`, `--wallet.path` | TEXT | Path where the wallets are located. For example: `/Users/btuser/.bittensor/wallets`. |
2592+
| `--hotkey`, `-H`, `--wallet_hotkey`, `--wallet-hotkey`, `--wallet.hotkey` | TEXT | Hotkey of the wallet |
2593+
| `--netuid` | INTEGER | The netuid of the subnet in the network, (e.g. 1). |
2594+
| `--position-id`, `--position_id` | INTEGER | Position ID for modification or removing. |
2595+
| `--liquidity-delta`, `--liquidity_delta` | FLOAT | Liquidity amount for modification. |
2596+
| `--prompt/--no-prompt`, ` /--yes`, ` /--no_prompt`, ` /-y` | | Enable or disable interactive prompts. |
2597+
| `--quiet` | | Display only critical information on the console. |
2598+
| `--verbose` | | Enable verbose output. |
2599+
| `--json-output`, `--json-out` | | Outputs the result of the command as JSON. |
2600+
| `--help` | | Show this message and exit. |
25022601

2503-
Made with :heart: by The Openτensor Foundaτion
2602+
### `btcli liquidity remove`
2603+
2604+
Remove liquidity from the swap (as a combination of TAO + Alpha).
2605+
2606+
**Usage:**
2607+
2608+
```bash
2609+
btcli liquidity remove [OPTIONS]
2610+
```
2611+
2612+
**Parameters:**
2613+
2614+
| Options | Type | Description |
2615+
| --------------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------ |
2616+
| `--network`, `--subtensor.network`, `--chain`, `--subtensor.chain_endpoint` | TEXT | The subtensor network to connect to. Default: finney. |
2617+
| `--wallet-name`, `--name`, `--wallet_name`, `--wallet.name` | TEXT | Name of the wallet. |
2618+
| `--wallet-path`, `-p`, `--wallet_path`, `--wallet.path` | TEXT | Path where the wallets are located. For example: `/Users/btuser/.bittensor/wallets`. |
2619+
| `--hotkey`, `-H`, `--wallet_hotkey`, `--wallet-hotkey`, `--wallet.hotkey` | TEXT | Hotkey of the wallet |
2620+
| `--netuid` | INTEGER | The netuid of the subnet in the network, (e.g. 1). |
2621+
| `--position-id`, `--position_id` | INTEGER | Position ID for modification or removal. |
2622+
| `--all`, `--a` | | Whether to remove all liquidity positions for given subnet. |
2623+
| `--prompt/--no-prompt`, ` /--yes`, ` /--no_prompt`, ` /-y` | | Enable or disable interactive prompts. |
2624+
| `--quiet` | | Display only critical information on the console. |
2625+
| `--verbose` | | Enable verbose output. |
2626+
| `--json-output`, `--json-out` | | Outputs the result of the command as JSON. |
2627+
| `--help` | | Show this message and exit. |
2628+
2629+
---

docs/emissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Each block, liquidity is also set aside to be emitted to participants (validator
102102
At the end of each tempo (360 blocks), the quantity of alpha accumulated over each block of the tempo is extracted by network participants in the following proportions:
103103

104104
1. 18% by subnet owner
105-
1. 41% of emissions go to miners. The allocation to particular miners is determined by [Yuma Consensus: Miner emissions#miner-emissions](./yuma-consensus).
105+
1. 41% of emissions go to miners. The allocation to particular miners is determined by [Yuma Consensus: Miner emissions#miner-emissions](../yuma-consensus).
106106
1. 41% by validators and their stakers.
107107

108108
1. First, the allocation to validators miners is determined by [Yuma Consensus: Validator Emissions](./yuma-consensus#validator-emissions).

0 commit comments

Comments
 (0)