Skip to content

Commit b37ccfe

Browse files
authored
Integrate bt decoder (#33)
* NeuronInfoLite ported * NeuronInfo ported. * Adding deprecation warnings. * Typo * Deprecation * Delegate working, [Delegates] not working. * SubnetHyperparameters * DelegateInfo and StakeInfo working * All ported. Cleaned up. * Clean up. * Trimmed more fat.
1 parent e126772 commit b37ccfe

File tree

6 files changed

+368
-409
lines changed

6 files changed

+368
-409
lines changed

bittensor_cli/src/__init__.py

+75-5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,23 @@ class logging:
101101
"Balance": "u64", # Need to override default u128
102102
},
103103
"runtime_api": {
104+
"DelegateInfoRuntimeApi": {
105+
"methods": {
106+
"get_delegated": {
107+
"params": [
108+
{
109+
"name": "coldkey",
110+
"type": "Vec<u8>",
111+
},
112+
],
113+
"type": "Vec<u8>",
114+
},
115+
"get_delegates": {
116+
"params": [],
117+
"type": "Vec<u8>",
118+
},
119+
}
120+
},
104121
"NeuronInfoRuntimeApi": {
105122
"methods": {
106123
"get_neuron_lite": {
@@ -125,6 +142,28 @@ class logging:
125142
],
126143
"type": "Vec<u8>",
127144
},
145+
"get_neuron": {
146+
"params": [
147+
{
148+
"name": "netuid",
149+
"type": "u16",
150+
},
151+
{
152+
"name": "uid",
153+
"type": "u16",
154+
},
155+
],
156+
"type": "Vec<u8>",
157+
},
158+
"get_neurons": {
159+
"params": [
160+
{
161+
"name": "netuid",
162+
"type": "u16",
163+
},
164+
],
165+
"type": "Vec<u8>",
166+
},
128167
}
129168
},
130169
"StakeInfoRuntimeApi": {
@@ -172,23 +211,54 @@ class logging:
172211
},
173212
],
174213
"type": "Vec<u8>",
175-
}
214+
},
215+
"get_subnet_info": {
216+
"params": [
217+
{
218+
"name": "netuid",
219+
"type": "u16",
220+
},
221+
],
222+
"type": "Vec<u8>",
223+
},
224+
"get_subnets_info": {
225+
"params": [],
226+
"type": "Vec<u8>",
227+
},
176228
}
177229
},
178230
"SubnetRegistrationRuntimeApi": {
179231
"methods": {"get_network_registration_cost": {"params": [], "type": "u64"}}
180232
},
181-
"DelegateInfo": {
233+
"ColdkeySwapRuntimeApi": {
182234
"methods": {
183-
"get_delegated": {
235+
"get_scheduled_coldkey_swap": {
184236
"params": [
185237
{
186238
"name": "coldkey_account_vec",
187239
"type": "Vec<u8>",
188-
}
240+
},
189241
],
190242
"type": "Vec<u8>",
191-
}
243+
},
244+
"get_remaining_arbitration_period": {
245+
"params": [
246+
{
247+
"name": "coldkey_account_vec",
248+
"type": "Vec<u8>",
249+
},
250+
],
251+
"type": "Vec<u8>",
252+
},
253+
"get_coldkey_swap_destinations": {
254+
"params": [
255+
{
256+
"name": "coldkey_account_vec",
257+
"type": "Vec<u8>",
258+
},
259+
],
260+
"type": "Vec<u8>",
261+
},
192262
}
193263
},
194264
},

0 commit comments

Comments
 (0)