meshtensor-cli 9.26.0__tar.gz → 9.27.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/PKG-INFO +7 -7
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/README.md +4 -4
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/__init__.py +1 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/cli.py +15 -15
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/__init__.py +17 -17
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/balances.py +2 -2
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/registration.py +1 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/root.py +1 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/view.j2 +1 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/utils.py +6 -6
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/subnets/subnets.py +1 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/wallets.py +2 -2
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/__init__.py +0 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/balances.py +313 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/chain_data.py +1263 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/__init__.py +0 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/mev_shield.py +174 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/registration.py +1861 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/root.py +550 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/serving.py +255 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/extrinsics/transfer.py +239 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/meshtensor_interface.py +2598 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/minigraph.py +254 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/networking.py +12 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/subtensor_interface.py +2598 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/main-filters.j2 +24 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/main-header.j2 +36 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/neuron-details.j2 +111 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/price-multi.j2 +113 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/price-single.j2 +99 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/subnet-details-header.j2 +49 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/subnet-details.j2 +32 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/subnet-metrics.j2 +57 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/subnets-table.j2 +28 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/table.j2 +267 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/view.css +1058 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/view.j2 +43 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/templates/view.js +1053 -0
- meshtensor_cli-9.27.0/meshtensor_cli/src/meshtensor/utils.py +2007 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/pyproject.toml +3 -3
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/__init__.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/balances.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/chain_data.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/__init__.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/mev_shield.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/registration.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/root.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/serving.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/extrinsics/transfer.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/meshtensor_interface.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/minigraph.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/networking.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/subtensor_interface.py +0 -1
- meshtensor_cli-9.26.0/meshtensor_cli/src/meshtensor/utils.py +0 -1
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/doc_generation_helper.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/chain_data.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/mev_shield.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/serving.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/transfer.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/minigraph.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/networking.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/subtensor_interface.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/main-filters.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/main-header.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/neuron-details.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/price-multi.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/price-single.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/subnet-details-header.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/subnet-details.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/subnet-metrics.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/subnets-table.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/table.j2 +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/view.css +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/templates/view.js +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/axon/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/axon/axon.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/contribute.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/contributors.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/create.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/dissolve.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/refund.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/update.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/utils.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/crowd/view.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/governance/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/governance/governance.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/liquidity/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/liquidity/liquidity.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/liquidity/utils.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/proxy.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/add.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/auto_staking.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/children_hotkeys.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/claim.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/list.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/move.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/remove.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/stake/wizard.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/subnets/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/subnets/mechanisms.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/subnets/price.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/sudo.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/tc/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/tc/tc.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/treasury/__init__.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/treasury/treasury.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/view.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/weights.py +0 -0
- {meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshtensor-cli
|
|
3
|
-
Version: 9.
|
|
3
|
+
Version: 9.27.0
|
|
4
4
|
Summary: Meshtensor CLI
|
|
5
5
|
Author: meshtensor.com
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -38,8 +38,8 @@ Requires-Dist: packaging
|
|
|
38
38
|
Requires-Dist: plotille>=5.0.0
|
|
39
39
|
Requires-Dist: plotly>=6.0.0
|
|
40
40
|
Requires-Dist: torch>=1.13.1,<3.0 ; extra == "cuda"
|
|
41
|
-
Project-URL: Repository, https://github.com/
|
|
42
|
-
Project-URL: homepage, https://github.com/
|
|
41
|
+
Project-URL: Repository, https://github.com/borgg-dev/meshcli
|
|
42
|
+
Project-URL: homepage, https://github.com/borgg-dev/meshcli
|
|
43
43
|
Provides-Extra: cuda
|
|
44
44
|
|
|
45
45
|
<div align="center">
|
|
@@ -53,7 +53,7 @@ Provides-Extra: cuda
|
|
|
53
53
|
|
|
54
54
|
## Internet-scale Neural Networks <!-- omit in toc -->
|
|
55
55
|
|
|
56
|
-
[SDK](https://github.com/
|
|
56
|
+
[SDK](https://github.com/borgg-dev/meshtensor/tree/master) • [Wallet](https://github.com/borgg-dev/btwallet) • [Research](https://meshtensor.com/whitepaper)
|
|
57
57
|
|
|
58
58
|
</div>
|
|
59
59
|
|
|
@@ -123,7 +123,7 @@ source meshcli_venv/bin/activate
|
|
|
123
123
|
2. Clone the Meshtensor CLI repo.
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
git clone https://github.com/
|
|
126
|
+
git clone https://github.com/borgg-dev/meshcli.git
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
3. `cd` into `meshcli` directory.
|
|
@@ -238,7 +238,7 @@ to and from the chain.
|
|
|
238
238
|
|
|
239
239
|
If you encounter an issue, and would like to save the file somewhere it won't be overwritten, run `meshcli --debug`,
|
|
240
240
|
and set the save file location. We recommend doing this first before anything, and then starting your debugging with
|
|
241
|
-
us on our [Discord](https://discord.gg/meshtensor), or by opening an issue on [GitHub](https://github.com/
|
|
241
|
+
us on our [Discord](https://discord.gg/meshtensor), or by opening an issue on [GitHub](https://github.com/borgg-dev/meshcli/issues/new)
|
|
242
242
|
(where you can also upload your debug file).
|
|
243
243
|
|
|
244
244
|
|
|
@@ -251,7 +251,7 @@ Steps:
|
|
|
251
251
|
|
|
252
252
|
## License
|
|
253
253
|
The MIT License (MIT)
|
|
254
|
-
Copyright © 2024
|
|
254
|
+
Copyright © 2024 Grobb
|
|
255
255
|
|
|
256
256
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
257
257
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Internet-scale Neural Networks <!-- omit in toc -->
|
|
11
11
|
|
|
12
|
-
[SDK](https://github.com/
|
|
12
|
+
[SDK](https://github.com/borgg-dev/meshtensor/tree/master) • [Wallet](https://github.com/borgg-dev/btwallet) • [Research](https://meshtensor.com/whitepaper)
|
|
13
13
|
|
|
14
14
|
</div>
|
|
15
15
|
|
|
@@ -79,7 +79,7 @@ source meshcli_venv/bin/activate
|
|
|
79
79
|
2. Clone the Meshtensor CLI repo.
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
git clone https://github.com/
|
|
82
|
+
git clone https://github.com/borgg-dev/meshcli.git
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
3. `cd` into `meshcli` directory.
|
|
@@ -194,7 +194,7 @@ to and from the chain.
|
|
|
194
194
|
|
|
195
195
|
If you encounter an issue, and would like to save the file somewhere it won't be overwritten, run `meshcli --debug`,
|
|
196
196
|
and set the save file location. We recommend doing this first before anything, and then starting your debugging with
|
|
197
|
-
us on our [Discord](https://discord.gg/meshtensor), or by opening an issue on [GitHub](https://github.com/
|
|
197
|
+
us on our [Discord](https://discord.gg/meshtensor), or by opening an issue on [GitHub](https://github.com/borgg-dev/meshcli/issues/new)
|
|
198
198
|
(where you can also upload your debug file).
|
|
199
199
|
|
|
200
200
|
|
|
@@ -207,7 +207,7 @@ Steps:
|
|
|
207
207
|
|
|
208
208
|
## License
|
|
209
209
|
The MIT License (MIT)
|
|
210
|
-
Copyright © 2024
|
|
210
|
+
Copyright © 2024 Grobb
|
|
211
211
|
|
|
212
212
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
213
213
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# The MIT License (MIT)
|
|
2
|
-
# Copyright © 2024
|
|
2
|
+
# Copyright © 2024 Grobb
|
|
3
3
|
#
|
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
5
5
|
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
|
|
@@ -288,7 +288,7 @@ class Options:
|
|
|
288
288
|
"--meshtensor.network",
|
|
289
289
|
"--chain",
|
|
290
290
|
"--meshtensor.chain_endpoint",
|
|
291
|
-
help="The meshtensor network to connect to. Default:
|
|
291
|
+
help="The meshtensor network to connect to. Default: swarm.",
|
|
292
292
|
show_default=False,
|
|
293
293
|
)
|
|
294
294
|
netuids = typer.Option(
|
|
@@ -1485,8 +1485,8 @@ class CLIManager:
|
|
|
1485
1485
|
Intelligently initializes a connection to the chain, depending on the supplied (or in config) values. Sets the
|
|
1486
1486
|
`self.meshtensor` object to this created connection.
|
|
1487
1487
|
|
|
1488
|
-
:param network: Network name (e.g.
|
|
1489
|
-
chain endpoint (e.g. ws://127.0.0.1:9945, wss://entrypoint-
|
|
1488
|
+
:param network: Network name (e.g. swarm, test, etc.) or
|
|
1489
|
+
chain endpoint (e.g. ws://127.0.0.1:9945, wss://entrypoint-swarm.meshtensor.io:443)
|
|
1490
1490
|
"""
|
|
1491
1491
|
with warnings.catch_warnings():
|
|
1492
1492
|
warnings.filterwarnings(
|
|
@@ -1788,11 +1788,11 @@ class CLIManager:
|
|
|
1788
1788
|
[green]$[/green] meshcli config set
|
|
1789
1789
|
|
|
1790
1790
|
Set specific values:
|
|
1791
|
-
[green]$[/green] meshcli config set --wallet-name default --network
|
|
1791
|
+
[green]$[/green] meshcli config set --wallet-name default --network swarm
|
|
1792
1792
|
[green]$[/green] meshcli config set --safe-staking --rate-tolerance 0.1
|
|
1793
1793
|
|
|
1794
1794
|
[bold]NOTE[/bold]:
|
|
1795
|
-
- Network values can be network names (e.g., '
|
|
1795
|
+
- Network values can be network names (e.g., 'swarm', 'test') or websocket URLs
|
|
1796
1796
|
- Rate tolerance is specified as a decimal (e.g., 0.05 for 0.05%)
|
|
1797
1797
|
- Changes are saved to ~/.meshtensor/meshcli.yaml
|
|
1798
1798
|
- Use '[green]$[/green] meshcli config get' to view current settings
|
|
@@ -2019,7 +2019,7 @@ class CLIManager:
|
|
|
2019
2019
|
for key, value in self.config.items():
|
|
2020
2020
|
if key == "network":
|
|
2021
2021
|
if value is None:
|
|
2022
|
-
value = "None (default =
|
|
2022
|
+
value = "None (default = swarm)"
|
|
2023
2023
|
else:
|
|
2024
2024
|
if value in Constants.networks:
|
|
2025
2025
|
value = value + f" ({Constants.network_map[value]})"
|
|
@@ -3096,7 +3096,7 @@ class CLIManager:
|
|
|
3096
3096
|
|
|
3097
3097
|
This command is useful for users who need test tokens for operations on a local blockchain.
|
|
3098
3098
|
|
|
3099
|
-
[blue bold]IMPORTANT[/blue bold]: THIS COMMAND IS DISABLED ON
|
|
3099
|
+
[blue bold]IMPORTANT[/blue bold]: THIS COMMAND IS DISABLED ON SWARM AND TESTNET.
|
|
3100
3100
|
|
|
3101
3101
|
USAGE
|
|
3102
3102
|
|
|
@@ -3107,7 +3107,7 @@ class CLIManager:
|
|
|
3107
3107
|
|
|
3108
3108
|
[green]$[/green] meshcli wallet faucet --faucet.num_processes 4 --faucet.cuda.use_cuda
|
|
3109
3109
|
|
|
3110
|
-
[bold]Note[/bold]: This command is meant for used in local environments where users can experiment with the blockchain without using real MESH tokens. Users must have the necessary hardware setup, especially when opting for CUDA-based GPU calculations. It is currently disabled on testnet and mainnet (
|
|
3110
|
+
[bold]Note[/bold]: This command is meant for used in local environments where users can experiment with the blockchain without using real MESH tokens. Users must have the necessary hardware setup, especially when opting for CUDA-based GPU calculations. It is currently disabled on testnet and mainnet (swarm). You can only use this command on a local blockchain.
|
|
3111
3111
|
"""
|
|
3112
3112
|
# TODO should we add json_output?
|
|
3113
3113
|
wallet = self.wallet_ask(
|
|
@@ -3897,12 +3897,12 @@ class CLIManager:
|
|
|
3897
3897
|
[green]$[/green] meshcli wallet history
|
|
3898
3898
|
|
|
3899
3899
|
"""
|
|
3900
|
-
# TODO: Fetch effective network and redirect users accordingly - this only works on
|
|
3900
|
+
# TODO: Fetch effective network and redirect users accordingly - this only works on swarm
|
|
3901
3901
|
# TODO: Add json_output if this gets re-enabled
|
|
3902
|
-
# no_use_config_str = "Using the network [dark_orange]
|
|
3902
|
+
# no_use_config_str = "Using the network [dark_orange]swarm[/dark_orange] and ignoring network/chain configs"
|
|
3903
3903
|
|
|
3904
3904
|
# if self.config.get("network"):
|
|
3905
|
-
# if self.config.get("network") != "
|
|
3905
|
+
# if self.config.get("network") != "swarm":
|
|
3906
3906
|
# console.print(no_use_config_str)
|
|
3907
3907
|
|
|
3908
3908
|
# For Rao games
|
|
@@ -7525,7 +7525,7 @@ class CLIManager:
|
|
|
7525
7525
|
)
|
|
7526
7526
|
|
|
7527
7527
|
meshtensor = self.initialize_chain(network)
|
|
7528
|
-
non_archives = ["
|
|
7528
|
+
non_archives = ["swarm", "latent-lite"]
|
|
7529
7529
|
if not current_only and meshtensor.network in non_archives + [
|
|
7530
7530
|
Constants.network_map[x] for x in non_archives
|
|
7531
7531
|
]:
|
|
@@ -8167,7 +8167,7 @@ class CLIManager:
|
|
|
8167
8167
|
|
|
8168
8168
|
EXAMPLE
|
|
8169
8169
|
|
|
8170
|
-
Show the metagraph of the root network (netuid 0) on
|
|
8170
|
+
Show the metagraph of the root network (netuid 0) on swarm (mainnet):
|
|
8171
8171
|
|
|
8172
8172
|
[green]$[/green] meshcli subnet metagraph --netuid 0
|
|
8173
8173
|
|
|
@@ -8231,7 +8231,7 @@ class CLIManager:
|
|
|
8231
8231
|
):
|
|
8232
8232
|
"""
|
|
8233
8233
|
Allows the user to update their subnet symbol to a different available symbol. The full list of available symbols can be found here:
|
|
8234
|
-
[#8CB9E9]https://github.com/
|
|
8234
|
+
[#8CB9E9]https://github.com/borgg-dev/meshtensor/blob/main/pallets/meshtensor/src/subnets/symbols.rs#L8[/#8CB9E9]
|
|
8235
8235
|
|
|
8236
8236
|
|
|
8237
8237
|
EXAMPLE
|
|
@@ -10133,7 +10133,7 @@ class CLIManager:
|
|
|
10133
10133
|
),
|
|
10134
10134
|
):
|
|
10135
10135
|
"""
|
|
10136
|
-
This command will give you the latency of all
|
|
10136
|
+
This command will give you the latency of all swarm-like network in additional to any additional networks you specify via the '--network' flag
|
|
10137
10137
|
|
|
10138
10138
|
The results are three-fold. One column is the overall time to initialise a connection, send the requests, and wait for the results. The second column measures single ping-pong speed once connected. The third makes a real world call to fetch the chain head.
|
|
10139
10139
|
|
|
@@ -6,24 +6,24 @@ from typing import Any, Optional
|
|
|
6
6
|
class Constants:
|
|
7
7
|
networks = [
|
|
8
8
|
"local",
|
|
9
|
-
"
|
|
9
|
+
"swarm",
|
|
10
10
|
"test",
|
|
11
11
|
"archive",
|
|
12
12
|
"meshlet",
|
|
13
13
|
"dev",
|
|
14
14
|
"latent-lite",
|
|
15
15
|
]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
archive_entrypoint = "wss://archive.chain.
|
|
16
|
+
swarm_entrypoint = "wss://entrypoint-swarm.meshtensor.io:443"
|
|
17
|
+
swarm_test_entrypoint = "wss://test.swarm.meshtensor.io:443"
|
|
18
|
+
archive_entrypoint = "wss://archive.chain.meshtensor.io:443"
|
|
19
19
|
local_entrypoint = "ws://127.0.0.1:9944"
|
|
20
|
-
meshlet_entrypoint = "wss://meshlet.chain.
|
|
21
|
-
dev_entrypoint = "wss://dev.chain.
|
|
20
|
+
meshlet_entrypoint = "wss://meshlet.chain.meshtensor.io:443"
|
|
21
|
+
dev_entrypoint = "wss://dev.chain.meshtensor.io:443"
|
|
22
22
|
latent_lite_entrypoint = "wss://lite.sub.latent.to:443"
|
|
23
|
-
lite_nodes = [
|
|
23
|
+
lite_nodes = [swarm_entrypoint, latent_lite_entrypoint]
|
|
24
24
|
network_map = {
|
|
25
|
-
"
|
|
26
|
-
"test":
|
|
25
|
+
"swarm": swarm_entrypoint,
|
|
26
|
+
"test": swarm_test_entrypoint,
|
|
27
27
|
"archive": archive_entrypoint,
|
|
28
28
|
"local": local_entrypoint,
|
|
29
29
|
"dev": dev_entrypoint,
|
|
@@ -31,10 +31,10 @@ class Constants:
|
|
|
31
31
|
"latent-lite": latent_lite_entrypoint,
|
|
32
32
|
}
|
|
33
33
|
genesis_block_hash_map = {
|
|
34
|
-
"
|
|
34
|
+
"swarm": "0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03",
|
|
35
35
|
"test": "0x8f9cf856bf558a14440e75569c9e58594757048d7b3a84b5d25f6bd978263105",
|
|
36
36
|
}
|
|
37
|
-
delegates_detail_url = "https://raw.githubusercontent.com/
|
|
37
|
+
delegates_detail_url = "https://raw.githubusercontent.com/borgg-dev/meshtensor-delegates/main/public/delegates.json"
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@dataclass
|
|
@@ -120,7 +120,7 @@ class Defaults:
|
|
|
120
120
|
dictionary = {}
|
|
121
121
|
|
|
122
122
|
class meshtensor:
|
|
123
|
-
network = "
|
|
123
|
+
network = "swarm"
|
|
124
124
|
chain_endpoint = None
|
|
125
125
|
_mock = False
|
|
126
126
|
|
|
@@ -614,15 +614,15 @@ UNITS = [
|
|
|
614
614
|
]
|
|
615
615
|
|
|
616
616
|
NETWORK_EXPLORER_MAP = {
|
|
617
|
-
"
|
|
618
|
-
"local": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-
|
|
619
|
-
"endpoint": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-
|
|
620
|
-
"
|
|
617
|
+
"meshtensor": {
|
|
618
|
+
"local": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-swarm.meshtensor.io%3A443#/explorer",
|
|
619
|
+
"endpoint": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-swarm.meshtensor.io%3A443#/explorer",
|
|
620
|
+
"swarm": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-swarm.meshtensor.io%3A443#/explorer",
|
|
621
621
|
},
|
|
622
622
|
"taostats": {
|
|
623
623
|
"local": "https://x.taostats.io",
|
|
624
624
|
"endpoint": "https://x.taostats.io",
|
|
625
|
-
"
|
|
625
|
+
"swarm": "https://x.taostats.io",
|
|
626
626
|
},
|
|
627
627
|
}
|
|
628
628
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# The MIT License (MIT)
|
|
2
2
|
# Copyright © 2021-2022 Yuma Rao
|
|
3
|
-
# Copyright © 2022
|
|
4
|
-
# Copyright © 2023
|
|
3
|
+
# Copyright © 2022 Grobb
|
|
4
|
+
# Copyright © 2023 Grobb
|
|
5
5
|
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
7
7
|
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
|
|
@@ -628,7 +628,7 @@ async def register_extrinsic(
|
|
|
628
628
|
format_error_message(await response.error_message),
|
|
629
629
|
)
|
|
630
630
|
# Look error here
|
|
631
|
-
# https://github.com/
|
|
631
|
+
# https://github.com/borgg-dev/meshtensor/blob/development/pallets/meshtensor/src/errors.rs
|
|
632
632
|
|
|
633
633
|
if "HotKeyAlreadyRegisteredInSubNet" in err_msg:
|
|
634
634
|
print_success(
|
{meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/bittensor/extrinsics/root.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The MIT License (MIT)
|
|
2
2
|
# Copyright © 2021 Yuma Rao
|
|
3
|
-
# Copyright © 2023
|
|
3
|
+
# Copyright © 2023 Grobb
|
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
5
5
|
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
|
|
6
6
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
|
@@ -622,13 +622,13 @@ def get_explorer_url_for_network(
|
|
|
622
622
|
|
|
623
623
|
if explorer_root_urls != {}:
|
|
624
624
|
# We are on a known network.
|
|
625
|
-
|
|
626
|
-
root_url=explorer_root_urls.get("
|
|
625
|
+
explorer_meshtensor_url = "{root_url}/query/{block_hash}".format(
|
|
626
|
+
root_url=explorer_root_urls.get("meshtensor"), block_hash=block_hash
|
|
627
627
|
)
|
|
628
628
|
explorer_taostats_url = "{root_url}/hash/{block_hash}".format(
|
|
629
629
|
root_url=explorer_root_urls.get("taostats"), block_hash=block_hash
|
|
630
630
|
)
|
|
631
|
-
explorer_urls["
|
|
631
|
+
explorer_urls["meshtensor"] = explorer_meshtensor_url
|
|
632
632
|
explorer_urls["taostats"] = explorer_taostats_url
|
|
633
633
|
|
|
634
634
|
return explorer_urls
|
|
@@ -1521,7 +1521,7 @@ def validate_chain_endpoint(endpoint_url) -> tuple[bool, str]:
|
|
|
1521
1521
|
if parsed.scheme not in ("ws", "wss"):
|
|
1522
1522
|
return False, (
|
|
1523
1523
|
f"Invalid URL or network name provided: [bright_cyan]({endpoint_url})[/bright_cyan].\n"
|
|
1524
|
-
"Allowed network names are [bright_cyan]
|
|
1524
|
+
"Allowed network names are [bright_cyan]swarm, test, local[/bright_cyan]. "
|
|
1525
1525
|
"Valid chain endpoints should use the scheme [bright_cyan]`ws` or `wss`[/bright_cyan].\n"
|
|
1526
1526
|
)
|
|
1527
1527
|
if not parsed.netloc:
|
|
@@ -1605,7 +1605,7 @@ def is_meshlet_network(network: str) -> bool:
|
|
|
1605
1605
|
return (
|
|
1606
1606
|
network == "meshlet"
|
|
1607
1607
|
or network in meshlet_identifiers
|
|
1608
|
-
or "meshlet.chain.
|
|
1608
|
+
or "meshlet.chain.meshtensor.io" in network
|
|
1609
1609
|
)
|
|
1610
1610
|
|
|
1611
1611
|
|
|
@@ -1957,7 +1957,7 @@ async def print_extrinsic_id(
|
|
|
1957
1957
|
extrinsic_receipt: Optional[AsyncExtrinsicReceipt],
|
|
1958
1958
|
) -> None:
|
|
1959
1959
|
"""
|
|
1960
|
-
Prints the extrinsic identifier to the console. If the substrate attached to the extrinsic receipt is on a
|
|
1960
|
+
Prints the extrinsic identifier to the console. If the substrate attached to the extrinsic receipt is on a swarm
|
|
1961
1961
|
node, it will also include a link to browse the extrinsic in mesh dot app.
|
|
1962
1962
|
Args:
|
|
1963
1963
|
extrinsic_receipt: AsyncExtrinsicReceipt object from a successful extrinsic submission.
|
{meshtensor_cli-9.26.0 → meshtensor_cli-9.27.0}/meshtensor_cli/src/commands/subnets/subnets.py
RENAMED
|
@@ -2843,7 +2843,7 @@ async def set_symbol(
|
|
|
2843
2843
|
Set a meshtensor's symbol, given the netuid and symbol.
|
|
2844
2844
|
|
|
2845
2845
|
The symbol must be a symbol that meshtensor recognizes as available
|
|
2846
|
-
(defined in https://github.com/
|
|
2846
|
+
(defined in https://github.com/borgg-dev/meshtensor/blob/main/pallets/meshtensor/src/subnets/symbols.rs#L8)
|
|
2847
2847
|
"""
|
|
2848
2848
|
if not await meshtensor.subnet_exists(netuid):
|
|
2849
2849
|
err = f"Subnet {netuid} does not exist."
|
|
@@ -784,7 +784,7 @@ def create_transfer_history_table(transfers: list[dict]) -> Table:
|
|
|
784
784
|
pad_edge=False,
|
|
785
785
|
leading=True,
|
|
786
786
|
expand=False,
|
|
787
|
-
title="[underline dark_orange]Wallet Transfers[/underline dark_orange]\n\n[dark_orange]Network:
|
|
787
|
+
title="[underline dark_orange]Wallet Transfers[/underline dark_orange]\n\n[dark_orange]Network: swarm",
|
|
788
788
|
)
|
|
789
789
|
|
|
790
790
|
table.add_column(
|
|
@@ -2183,7 +2183,7 @@ async def find_coldkey_swap_extrinsic(
|
|
|
2183
2183
|
)
|
|
2184
2184
|
if (
|
|
2185
2185
|
current_block - start_block > 300
|
|
2186
|
-
and genesis_block == Constants.genesis_block_hash_map["
|
|
2186
|
+
and genesis_block == Constants.genesis_block_hash_map["swarm"]
|
|
2187
2187
|
):
|
|
2188
2188
|
console.print("Querying archive node for coldkey swap events...")
|
|
2189
2189
|
await meshtensor.substrate.close()
|
|
File without changes
|