opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
852 stars 301 forks source link

Retrieving error types from the metadata of the Substrate palette "SubtensorModule" for the btcli console #1859

Open roman-opentensor opened 3 months ago

roman-opentensor commented 3 months ago

Is your feature request related to a problem? Please describe.

The feature related with following issues:

Describe the solution you'd like

With functionality of substrateinterface lib, we retrieve the metadata from Subtensor.

This allows us to:

  1. Avoid hardcoding the error description.
  2. Always have up-to-date information about all errors on the server.
  3. Automatically receive updates to the list of errors and their descriptions.

Acceptance Criteria

Describe alternatives you've considered

Previously, the team considered the possibility of implementing an API endpoint that would return data about the list of errors. After starting the implementation, the decision was canceled in favor of using the capabilities of the substrateinterface package.

roman-opentensor commented 3 months ago

I decided to split https://github.com/opentensor/bittensor/issues/1859 into 2 PRs The first one https://github.com/opentensor/bittensor/pull/1862 (merged)

roman-opentensor commented 3 months ago

Updated with: