bittensor-pylon-client 2.0.0__tar.gz → 2.1.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.
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/.gitignore +3 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/PKG-INFO +1 -1
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/asynchronous/api.py +13 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/sync/api.py +13 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/translators.py +14 -2
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/abstract_async.py +15 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/abstract_sync.py +15 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/endpoints.py +6 -1
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/models.py +1 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/requests.py +12 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/responses.py +9 -2
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/models.py +6 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/endpoints.py +2 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/artanis/unstable.py +1 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/asynchronous/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/_unstable/sync/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/asynchronous/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/asynchronous/api.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/sync/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/sync/api.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/v1/translators.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/asynchronous/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/asynchronous/client.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/asynchronous/communicators.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/asynchronous/config.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/config.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/namespace.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/sync/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/sync/client.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/sync/communicators.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/client/sync/config.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/docker_manager.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/_unstable/bodies.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/apiver.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/constants.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/currency.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/endpoints.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/exceptions.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/settings.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/timeout.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/types.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/bodies.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/models.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/requests.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/pylon_commons/v1/responses.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/translators.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/artanis/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/artanis/v1.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/v1/__init__.py +0 -0
- {bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bittensor-pylon-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Bittensor Pylon client library
|
|
5
5
|
Project-URL: homepage, https://github.com/backend-developers-ltd/bittensor-pylon
|
|
6
6
|
Project-URL: repository, https://github.com/backend-developers-ltd/bittensor-pylon
|
|
@@ -20,6 +20,7 @@ from pylon_client._internal.pylon_commons._unstable.requests import (
|
|
|
20
20
|
GetRecentNeuronsRequest,
|
|
21
21
|
GetRevealedCommitmentsRequest,
|
|
22
22
|
GetValidatorsRequest,
|
|
23
|
+
GetWeightsStatusRequest,
|
|
23
24
|
SetCommitmentRequest,
|
|
24
25
|
SetRevealedCommitmentRequest,
|
|
25
26
|
SetWeightsRequest,
|
|
@@ -120,6 +121,18 @@ class AsyncIdentityApi(AbstractAsyncIdentityApi):
|
|
|
120
121
|
mechanism_id=mechanism_id,
|
|
121
122
|
)
|
|
122
123
|
|
|
124
|
+
async def _get_weights_status_request(
|
|
125
|
+
self,
|
|
126
|
+
mechanism_id: MechanismId,
|
|
127
|
+
block_number: BlockNumber,
|
|
128
|
+
) -> GetWeightsStatusRequest:
|
|
129
|
+
return GetWeightsStatusRequest(
|
|
130
|
+
netuid=self.netuid,
|
|
131
|
+
identity_name=self.identity_name,
|
|
132
|
+
mechanism_id=mechanism_id,
|
|
133
|
+
block_number=block_number,
|
|
134
|
+
)
|
|
135
|
+
|
|
123
136
|
async def _get_commitments_request(self) -> GetCommitmentsRequest:
|
|
124
137
|
return GetCommitmentsRequest(
|
|
125
138
|
netuid=self.netuid,
|
|
@@ -20,6 +20,7 @@ from pylon_client._internal.pylon_commons._unstable.requests import (
|
|
|
20
20
|
GetRecentNeuronsRequest,
|
|
21
21
|
GetRevealedCommitmentsRequest,
|
|
22
22
|
GetValidatorsRequest,
|
|
23
|
+
GetWeightsStatusRequest,
|
|
23
24
|
SetCommitmentRequest,
|
|
24
25
|
SetRevealedCommitmentRequest,
|
|
25
26
|
SetWeightsRequest,
|
|
@@ -118,6 +119,18 @@ class IdentityApi(AbstractIdentityApi):
|
|
|
118
119
|
mechanism_id=mechanism_id,
|
|
119
120
|
)
|
|
120
121
|
|
|
122
|
+
def _get_weights_status_request(
|
|
123
|
+
self,
|
|
124
|
+
mechanism_id: MechanismId,
|
|
125
|
+
block_number: BlockNumber,
|
|
126
|
+
) -> GetWeightsStatusRequest:
|
|
127
|
+
return GetWeightsStatusRequest(
|
|
128
|
+
netuid=self.netuid,
|
|
129
|
+
identity_name=self.identity_name,
|
|
130
|
+
mechanism_id=mechanism_id,
|
|
131
|
+
block_number=block_number,
|
|
132
|
+
)
|
|
133
|
+
|
|
121
134
|
def _get_commitments_request(self) -> GetCommitmentsRequest:
|
|
122
135
|
return GetCommitmentsRequest(
|
|
123
136
|
netuid=self.netuid,
|
|
@@ -22,6 +22,7 @@ from pylon_client._internal.pylon_commons._unstable.requests import (
|
|
|
22
22
|
GetRecentNeuronsRequest,
|
|
23
23
|
GetRevealedCommitmentsRequest,
|
|
24
24
|
GetValidatorsRequest,
|
|
25
|
+
GetWeightsStatusRequest,
|
|
25
26
|
PylonRequest,
|
|
26
27
|
SetCommitmentRequest,
|
|
27
28
|
SetRevealedCommitmentRequest,
|
|
@@ -154,15 +155,26 @@ class HttpTranslator(AbstractRequestTranslator[Request, HttpCommunicatorT]):
|
|
|
154
155
|
)
|
|
155
156
|
|
|
156
157
|
def _translate_set_weights(self, request: SetWeightsRequest, communicator: HttpCommunicatorT) -> Request:
|
|
157
|
-
url = self._build_url(self._endpoint_cls.
|
|
158
|
+
url = self._build_url(self._endpoint_cls.SUBNET_MECHANISM_WEIGHTS, request)
|
|
158
159
|
headers = self._get_auth_headers(request, communicator)
|
|
159
160
|
return communicator.raw_client.build_request(
|
|
160
|
-
method=self._endpoint_cls.
|
|
161
|
+
method=self._endpoint_cls.SUBNET_MECHANISM_WEIGHTS.method,
|
|
161
162
|
url=url,
|
|
162
163
|
headers=headers,
|
|
163
164
|
json=request.model_dump(include={"weights"}),
|
|
164
165
|
)
|
|
165
166
|
|
|
167
|
+
def _translate_get_weights_status(
|
|
168
|
+
self, request: GetWeightsStatusRequest, communicator: HttpCommunicatorT
|
|
169
|
+
) -> Request:
|
|
170
|
+
url = self._build_url(self._endpoint_cls.SUBNET_MECHANISM_WEIGHTS_STATUS, request)
|
|
171
|
+
headers = self._get_auth_headers(request, communicator)
|
|
172
|
+
return communicator.raw_client.build_request(
|
|
173
|
+
method=self._endpoint_cls.SUBNET_MECHANISM_WEIGHTS_STATUS.method,
|
|
174
|
+
url=url,
|
|
175
|
+
headers=headers,
|
|
176
|
+
)
|
|
177
|
+
|
|
166
178
|
def _translate_set_commitment(self, request: SetCommitmentRequest, communicator: HttpCommunicatorT) -> Request:
|
|
167
179
|
url = self._build_url(self._endpoint_cls.COMMITMENTS, request)
|
|
168
180
|
headers = self._get_auth_headers(request, communicator)
|
|
@@ -20,6 +20,7 @@ from pylon_client._internal.pylon_commons._unstable.requests import (
|
|
|
20
20
|
GetRecentNeuronsRequest,
|
|
21
21
|
GetRevealedCommitmentsRequest,
|
|
22
22
|
GetValidatorsRequest,
|
|
23
|
+
GetWeightsStatusRequest,
|
|
23
24
|
PylonRequest,
|
|
24
25
|
SetCommitmentRequest,
|
|
25
26
|
SetRevealedCommitmentRequest,
|
|
@@ -35,6 +36,7 @@ from pylon_client._internal.pylon_commons._unstable.responses import (
|
|
|
35
36
|
GetNeuronsResponse,
|
|
36
37
|
GetRevealedCommitmentsResponse,
|
|
37
38
|
GetValidatorsResponse,
|
|
39
|
+
GetWeightsStatusResponse,
|
|
38
40
|
PylonResponse,
|
|
39
41
|
SetCommitmentResponse,
|
|
40
42
|
SetRevealedCommitmentResponse,
|
|
@@ -440,6 +442,14 @@ class AbstractAsyncIdentityApi(AbstractAsyncApi, ABC):
|
|
|
440
442
|
"""
|
|
441
443
|
return await self._send_identity_request(partial(self._put_weights_request, weights, mechanism_id))
|
|
442
444
|
|
|
445
|
+
async def get_weights_status(
|
|
446
|
+
self, block_number: BlockNumber, mechanism_id: MechanismId = MechanismId(0)
|
|
447
|
+
) -> GetWeightsStatusResponse:
|
|
448
|
+
"""
|
|
449
|
+
response: { weights_set: boolean }
|
|
450
|
+
"""
|
|
451
|
+
return await self._send_identity_request(partial(self._get_weights_status_request, mechanism_id, block_number))
|
|
452
|
+
|
|
443
453
|
async def get_commitments(self) -> GetCommitmentsResponse:
|
|
444
454
|
"""
|
|
445
455
|
Retrieves all commitments for the authenticated identity's subnet at the latest available block.
|
|
@@ -619,6 +629,11 @@ class AbstractAsyncIdentityApi(AbstractAsyncApi, ABC):
|
|
|
619
629
|
self, weights: dict[Hotkey, Weight], mechanism_id: MechanismId
|
|
620
630
|
) -> SetWeightsRequest: ...
|
|
621
631
|
|
|
632
|
+
@abstractmethod
|
|
633
|
+
async def _get_weights_status_request(
|
|
634
|
+
self, mechanism_id: MechanismId, block_number: BlockNumber
|
|
635
|
+
) -> GetWeightsStatusRequest: ...
|
|
636
|
+
|
|
622
637
|
@abstractmethod
|
|
623
638
|
async def _get_commitments_request(self) -> GetCommitmentsRequest: ...
|
|
624
639
|
|
|
@@ -20,6 +20,7 @@ from pylon_client._internal.pylon_commons._unstable.requests import (
|
|
|
20
20
|
GetRecentNeuronsRequest,
|
|
21
21
|
GetRevealedCommitmentsRequest,
|
|
22
22
|
GetValidatorsRequest,
|
|
23
|
+
GetWeightsStatusRequest,
|
|
23
24
|
PylonRequest,
|
|
24
25
|
SetCommitmentRequest,
|
|
25
26
|
SetRevealedCommitmentRequest,
|
|
@@ -35,6 +36,7 @@ from pylon_client._internal.pylon_commons._unstable.responses import (
|
|
|
35
36
|
GetNeuronsResponse,
|
|
36
37
|
GetRevealedCommitmentsResponse,
|
|
37
38
|
GetValidatorsResponse,
|
|
39
|
+
GetWeightsStatusResponse,
|
|
38
40
|
PylonResponse,
|
|
39
41
|
SetCommitmentResponse,
|
|
40
42
|
SetRevealedCommitmentResponse,
|
|
@@ -435,6 +437,14 @@ class AbstractIdentityApi(AbstractApi, ABC):
|
|
|
435
437
|
"""
|
|
436
438
|
return self._send_identity_request(partial(self._put_weights_request, weights, mechanism_id))
|
|
437
439
|
|
|
440
|
+
def get_weights_status(
|
|
441
|
+
self, block_number: BlockNumber, mechanism_id: MechanismId = MechanismId(0)
|
|
442
|
+
) -> GetWeightsStatusResponse:
|
|
443
|
+
"""
|
|
444
|
+
response: { weights_set: boolean }
|
|
445
|
+
"""
|
|
446
|
+
return self._send_identity_request(partial(self._get_weights_status_request, mechanism_id, block_number))
|
|
447
|
+
|
|
438
448
|
def get_commitments(self) -> GetCommitmentsResponse:
|
|
439
449
|
"""
|
|
440
450
|
Retrieves all commitments for the authenticated identity's subnet at the latest available block.
|
|
@@ -616,6 +626,11 @@ class AbstractIdentityApi(AbstractApi, ABC):
|
|
|
616
626
|
@abstractmethod
|
|
617
627
|
def _put_weights_request(self, weights: dict[Hotkey, Weight], mechanism_id: MechanismId) -> SetWeightsRequest: ...
|
|
618
628
|
|
|
629
|
+
@abstractmethod
|
|
630
|
+
def _get_weights_status_request(
|
|
631
|
+
self, mechanism_id: MechanismId, block_number: BlockNumber
|
|
632
|
+
) -> GetWeightsStatusRequest: ...
|
|
633
|
+
|
|
619
634
|
@abstractmethod
|
|
620
635
|
def _get_commitments_request(self) -> GetCommitmentsRequest: ...
|
|
621
636
|
|
|
@@ -49,5 +49,10 @@ class Endpoint(BaseEndpoint):
|
|
|
49
49
|
NEURONS = (HTTPMethod.GET, "/block/{block_number:int}/neurons", "neurons")
|
|
50
50
|
RECENT_NEURONS = (HTTPMethod.GET, "/block/recent/neurons", "recent_neurons")
|
|
51
51
|
SUBNET_WEIGHTS = (HTTPMethod.PUT, "/weights", "subnet_weights")
|
|
52
|
-
|
|
52
|
+
SUBNET_MECHANISM_WEIGHTS = (HTTPMethod.PUT, "/mechanism/{mechanism_id:int}/weights", "subnet_mechanism_weights")
|
|
53
|
+
SUBNET_MECHANISM_WEIGHTS_STATUS = (
|
|
54
|
+
HTTPMethod.GET,
|
|
55
|
+
"/mechanism/{mechanism_id:int}/block/{block_number:int}/weights/status",
|
|
56
|
+
"subnet_mechanism_weight_status",
|
|
57
|
+
)
|
|
53
58
|
VALIDATORS = (HTTPMethod.GET, "/block/{block_number:int}/validators", "validators")
|
|
@@ -18,6 +18,7 @@ from .responses import (
|
|
|
18
18
|
GetNeuronsResponse,
|
|
19
19
|
GetRevealedCommitmentsResponse,
|
|
20
20
|
GetValidatorsResponse,
|
|
21
|
+
GetWeightsStatusResponse,
|
|
21
22
|
PylonResponse,
|
|
22
23
|
SetCommitmentResponse,
|
|
23
24
|
SetRevealedCommitmentResponse,
|
|
@@ -211,6 +212,17 @@ class SetWeightsRequest(SetWeightsBody, IdentityPylonRequest[SetWeightsResponse]
|
|
|
211
212
|
response_cls = SetWeightsResponse
|
|
212
213
|
|
|
213
214
|
|
|
215
|
+
class GetWeightsStatusRequest(IdentityPylonRequest[GetWeightsStatusResponse]):
|
|
216
|
+
"""
|
|
217
|
+
Class used to fetch the weight status for the identity by the Pylon client.
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
mechanism_id: MechanismId
|
|
221
|
+
block_number: BlockNumber
|
|
222
|
+
|
|
223
|
+
response_cls = GetWeightsStatusResponse
|
|
224
|
+
|
|
225
|
+
|
|
214
226
|
class SetCommitmentRequest(SetCommitmentBody, IdentityPylonRequest[SetCommitmentResponse]):
|
|
215
227
|
"""
|
|
216
228
|
Class used to set a commitment (model metadata) on chain by the Pylon client.
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
from pydantic import BaseModel
|
|
2
2
|
|
|
3
|
-
from ..models import CommitmentVariant
|
|
4
3
|
from ..types import IdentityName, NetUid
|
|
5
4
|
from .models import (
|
|
6
5
|
Block,
|
|
7
6
|
BlockInfoBag,
|
|
7
|
+
CommitmentVariant,
|
|
8
8
|
Extrinsic,
|
|
9
9
|
RevealedCommitment,
|
|
10
10
|
SubnetCommitments,
|
|
11
11
|
SubnetNeurons,
|
|
12
12
|
SubnetRevealedCommitments,
|
|
13
13
|
SubnetValidators,
|
|
14
|
+
WeightsStatus,
|
|
14
15
|
)
|
|
15
16
|
|
|
16
17
|
|
|
@@ -59,7 +60,13 @@ class SetWeightsResponse(PylonResponse):
|
|
|
59
60
|
Response class that is returned for the SetWeightsRequest.
|
|
60
61
|
"""
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class GetWeightsStatusResponse(PylonResponse, WeightsStatus):
|
|
67
|
+
"""
|
|
68
|
+
Response class that is returned for the GetWeightStatusRequest.
|
|
69
|
+
"""
|
|
63
70
|
|
|
64
71
|
pass
|
|
65
72
|
|
|
@@ -22,6 +22,8 @@ class Endpoint(BaseEndpoint):
|
|
|
22
22
|
CERTIFICATES_HOTKEY = (HTTPMethod.GET, "/block/latest/certificates/{hotkey:str}", "certificates_hotkey_v1")
|
|
23
23
|
CERTIFICATES_SELF = (HTTPMethod.GET, "/block/latest/certificates/self", "certificates_self_v1")
|
|
24
24
|
COMMITMENTS = (HTTPMethod.POST, "/commitments", "commitments_v1")
|
|
25
|
+
# TODO v1 includes revealed commitments endpoints only because v1 translator inherits from unstable
|
|
26
|
+
# they could be removed once we change ApiVer approach from inheritance to composition in pylon_client
|
|
25
27
|
REVEALED_COMMITMENTS = (HTTPMethod.POST, "/commitments/revealed", "revealed_commitments_v1")
|
|
26
28
|
EXTRINSIC = (HTTPMethod.GET, "/block/{block_number:int}/extrinsic/{extrinsic_index:int}", "extrinsic_v1")
|
|
27
29
|
IDENTITIES = (HTTPMethod.GET, "/identities", "identities_v1")
|
|
File without changes
|
{bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/__init__.py
RENAMED
|
File without changes
|
{bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/_internal/translators.py
RENAMED
|
File without changes
|
{bittensor_pylon_client-2.0.0 → bittensor_pylon_client-2.1.0}/pylon_client/artanis/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|