This repository was archived by the owner on Jul 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy path__init__.py
More file actions
1080 lines (1039 loc) · 48.6 KB
/
Copy path__init__.py
File metadata and controls
1080 lines (1039 loc) · 48.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from enum import Enum
class Constants:
networks = [
"local",
"finney",
"test",
"archive",
"rao",
"dev",
"latent-lite",
]
finney_entrypoint = "wss://entrypoint-finney.opentensor.ai:443"
finney_test_entrypoint = "wss://test.finney.opentensor.ai:443"
archive_entrypoint = "wss://archive.chain.opentensor.ai:443"
local_entrypoint = "ws://127.0.0.1:9944"
rao_entrypoint = "wss://rao.chain.opentensor.ai:443"
dev_entrypoint = "wss://dev.chain.opentensor.ai:443"
latent_lite_entrypoint = "wss://lite.sub.latent.to:443"
lite_nodes = [finney_entrypoint, latent_lite_entrypoint]
network_map = {
"finney": finney_entrypoint,
"test": finney_test_entrypoint,
"archive": archive_entrypoint,
"local": local_entrypoint,
"dev": dev_entrypoint,
"rao": rao_entrypoint,
"latent-lite": latent_lite_entrypoint,
}
genesis_block_hash_map = {
"finney": "0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03",
"test": "0x8f9cf856bf558a14440e75569c9e58594757048d7b3a84b5d25f6bd978263105",
}
delegates_detail_url = "https://raw.githubusercontent.com/opentensor/bittensor-delegates/main/public/delegates.json"
class Defaults:
netuid = 1
rate_tolerance = 0.005
class config:
base_path = "~/.bittensor"
path = "~/.bittensor/config.yml"
debug_file_path = "~/.bittensor/debug.txt"
dictionary = {
"network": None,
"wallet_path": None,
"wallet_name": None,
"wallet_hotkey": None,
"use_cache": True,
"disk_cache": False,
"metagraph_cols": {
"UID": True,
"GLOBAL_STAKE": True,
"LOCAL_STAKE": True,
"STAKE_WEIGHT": True,
"RANK": True,
"TRUST": True,
"CONSENSUS": True,
"INCENTIVE": True,
"DIVIDENDS": True,
"EMISSION": True,
"VTRUST": True,
"VAL": True,
"UPDATED": True,
"ACTIVE": True,
"AXON": True,
"HOTKEY": True,
"COLDKEY": True,
},
}
class proxies:
base_path = "~/.bittensor"
path = "~/.bittensor/bittensor.db"
dictionary = {}
class subtensor:
network = "finney"
chain_endpoint = None
_mock = False
class wallet:
name = "default"
hotkey = "default"
path = "~/.bittensor/wallets/"
class logging:
debug = False
trace = False
record_log = False
logging_dir = "~/.bittensor/miners"
class dashboard:
path = "~/.bittensor/dashboard/"
defaults = Defaults
class WalletOptions(Enum):
PATH: str = "path"
NAME: str = "name"
HOTKEY: str = "hotkey"
class WalletValidationTypes(Enum):
NONE = None
WALLET = "wallet"
WALLET_AND_HOTKEY = "wallet_and_hotkey"
TYPE_REGISTRY = {
"types": {
"Balance": "u64", # Need to override default u128
},
}
UNITS = [
b"\xce\xa4".decode(), # Τ (Upper case Tau, 0)
b"\xce\xb1".decode(), # α (Alpha, 1)
b"\xce\xb2".decode(), # β (Beta, 2)
b"\xce\xb3".decode(), # γ (Gamma, 3)
b"\xce\xb4".decode(), # δ (Delta, 4)
b"\xce\xb5".decode(), # ε (Epsilon, 5)
b"\xce\xb6".decode(), # ζ (Zeta, 6)
b"\xce\xb7".decode(), # η (Eta, 7)
b"\xce\xb8".decode(), # θ (Theta, 8)
b"\xce\xb9".decode(), # ι (Iota, 9)
b"\xce\xba".decode(), # κ (Kappa, 10)
b"\xce\xbb".decode(), # λ (Lambda, 11)
b"\xce\xbc".decode(), # μ (Mu, 12)
b"\xce\xbd".decode(), # ν (Nu, 13)
b"\xce\xbe".decode(), # ξ (Xi, 14)
b"\xce\xbf".decode(), # ο (Omicron, 15)
b"\xcf\x80".decode(), # π (Pi, 16)
b"\xcf\x81".decode(), # ρ (Rho, 17)
b"\xcf\x83".decode(), # σ (Sigma, 18)
"t", # t (Tau, 19)
b"\xcf\x85".decode(), # υ (Upsilon, 20)
b"\xcf\x86".decode(), # φ (Phi, 21)
b"\xcf\x87".decode(), # χ (Chi, 22)
b"\xcf\x88".decode(), # ψ (Psi, 23)
b"\xcf\x89".decode(), # ω (Omega, 24)
b"\xd7\x90".decode(), # א (Aleph, 25)
b"\xd7\x91".decode(), # ב (Bet, 26)
b"\xd7\x92".decode(), # ג (Gimel, 27)
b"\xd7\x93".decode(), # ד (Dalet, 28)
b"\xd7\x94".decode(), # ה (He, 29)
b"\xd7\x95".decode(), # ו (Vav, 30)
b"\xd7\x96".decode(), # ז (Zayin, 31)
b"\xd7\x97".decode(), # ח (Het, 32)
b"\xd7\x98".decode(), # ט (Tet, 33)
b"\xd7\x99".decode(), # י (Yod, 34)
b"\xd7\x9a".decode(), # ך (Final Kaf, 35)
b"\xd7\x9b".decode(), # כ (Kaf, 36)
b"\xd7\x9c".decode(), # ל (Lamed, 37)
b"\xd7\x9d".decode(), # ם (Final Mem, 38)
b"\xd7\x9e".decode(), # מ (Mem, 39)
b"\xd7\x9f".decode(), # ן (Final Nun, 40)
b"\xd7\xa0".decode(), # נ (Nun, 41)
b"\xd7\xa1".decode(), # ס (Samekh, 42)
b"\xd7\xa2".decode(), # ע (Ayin, 43)
b"\xd7\xa3".decode(), # ף (Final Pe, 44)
b"\xd7\xa4".decode(), # פ (Pe, 45)
b"\xd7\xa5".decode(), # ץ (Final Tsadi, 46)
b"\xd7\xa6".decode(), # צ (Tsadi, 47)
b"\xd7\xa7".decode(), # ק (Qof, 48)
b"\xd7\xa8".decode(), # ר (Resh, 49)
b"\xd7\xa9".decode(), # ש (Shin, 50)
b"\xd7\xaa".decode(), # ת (Tav, 51)
b"\xd8\xa7".decode(), # ا (Alif, 52)
b"\xd8\xa8".decode(), # ب (Ba, 53)
b"\xd8\xaa".decode(), # ت (Ta, 54)
b"\xd8\xab".decode(), # ث (Tha, 55)
b"\xd8\xac".decode(), # ج (Jim, 56)
b"\xd8\xad".decode(), # ح (Ha, 57)
b"\xd8\xae".decode(), # خ (Kha, 58)
b"\xd8\xaf".decode(), # د (Dal, 59)
b"\xd8\xb0".decode(), # ذ (Dhal, 60)
b"\xd8\xb1".decode(), # ر (Ra, 61)
b"\xd8\xb2".decode(), # ز (Zay, 62)
b"\xd8\xb3".decode(), # س (Sin, 63)
b"\xd8\xb4".decode(), # ش (Shin, 64)
b"\xd8\xb5".decode(), # ص (Sad, 65)
b"\xd8\xb6".decode(), # ض (Dad, 66)
b"\xd8\xb7".decode(), # ط (Ta, 67)
b"\xd8\xb8".decode(), # ظ (Dha, 68)
b"\xd8\xb9".decode(), # ع (Ain, 69)
b"\xd8\xba".decode(), # غ (Ghayn, 70)
b"\xd9\x81".decode(), # ف (Fa, 71)
b"\xd9\x82".decode(), # ق (Qaf, 72)
b"\xd9\x83".decode(), # ك (Kaf, 73)
b"\xd9\x84".decode(), # ل (Lam, 74)
b"\xd9\x85".decode(), # م (Mim, 75)
b"\xd9\x86".decode(), # ن (Nun, 76)
b"\xd9\x87".decode(), # ه (Ha, 77)
b"\xd9\x88".decode(), # و (Waw, 78)
b"\xd9\x8a".decode(), # ي (Ya, 79)
b"\xd9\x89".decode(), # ى (Alef Maksura, 80)
b"\xe1\x9a\xa0".decode(), # ᚠ (Fehu, wealth, 81)
b"\xe1\x9a\xa2".decode(), # ᚢ (Uruz, strength, 82)
b"\xe1\x9a\xa6".decode(), # ᚦ (Thurisaz, giant, 83)
b"\xe1\x9a\xa8".decode(), # ᚨ (Ansuz, god, 84)
b"\xe1\x9a\xb1".decode(), # ᚱ (Raidho, ride, 85)
b"\xe1\x9a\xb3".decode(), # ᚲ (Kaunan, ulcer, 86)
b"\xd0\xab".decode(), # Ы (Cyrillic Yeru, 87)
b"\xe1\x9b\x89".decode(), # ᛉ (Algiz, protection, 88)
b"\xe1\x9b\x92".decode(), # ᛒ (Berkanan, birch, 89)
b"\xe1\x9a\x80".decode(), # (Space, 90)
b"\xe1\x9a\x81".decode(), # ᚁ (Beith, birch, 91)
b"\xe1\x9a\x82".decode(), # ᚂ (Luis, rowan, 92)
b"\xe1\x9a\x83".decode(), # ᚃ (Fearn, alder, 93)
b"\xe1\x9a\x84".decode(), # ᚄ (Sail, willow, 94)
b"\xe1\x9a\x85".decode(), # ᚅ (Nion, ash, 95)
b"\xe1\x9a\x9b".decode(), # ᚛ (Forfeda, 96)
b"\xe1\x83\x90".decode(), # ა (Ani, 97)
b"\xe1\x83\x91".decode(), # ბ (Bani, 98)
b"\xe1\x83\x92".decode(), # გ (Gani, 99)
b"\xe1\x83\x93".decode(), # დ (Doni, 100)
b"\xe1\x83\x94".decode(), # ე (Eni, 101)
b"\xe1\x83\x95".decode(), # ვ (Vini, 102)
b"\xd4\xb1".decode(), # Ա (Ayp, 103)
b"\xd4\xb2".decode(), # Բ (Ben, 104)
b"\xd4\xb3".decode(), # Գ (Gim, 105)
b"\xd4\xb4".decode(), # Դ (Da, 106)
b"\xd4\xb5".decode(), # Ե (Ech, 107)
b"\xd4\xb6".decode(), # Զ (Za, 108)
b"\xd5\x9e".decode(), # ՞ (Question mark, 109)
b"\xd0\x80".decode(), # Ѐ (Ie with grave, 110)
b"\xd0\x81".decode(), # Ё (Io, 111)
b"\xd0\x82".decode(), # Ђ (Dje, 112)
b"\xd0\x83".decode(), # Ѓ (Gje, 113)
b"\xd0\x84".decode(), # Є (Ukrainian Ie, 114)
b"\xd0\x85".decode(), # Ѕ (Dze, 115)
b"\xd1\x8a".decode(), # Ъ (Hard sign, 116)
b"\xe2\xb2\x80".decode(), # Ⲁ (Alfa, 117)
b"\xe2\xb2\x81".decode(), # ⲁ (Small Alfa, 118)
b"\xe2\xb2\x82".decode(), # Ⲃ (Vida, 119)
b"\xe2\xb2\x83".decode(), # ⲃ (Small Vida, 120)
b"\xe2\xb2\x84".decode(), # Ⲅ (Gamma, 121)
b"\xe2\xb2\x85".decode(), # ⲅ (Small Gamma, 122)
b"\xf0\x91\x80\x80".decode(), # 𑀀 (A, 123)
b"\xf0\x91\x80\x81".decode(), # 𑀁 (Aa, 124)
b"\xf0\x91\x80\x82".decode(), # 𑀂 (I, 125)
b"\xf0\x91\x80\x83".decode(), # 𑀃 (Ii, 126)
b"\xf0\x91\x80\x85".decode(), # 𑀅 (U, 127)
b"\xe0\xb6\xb1".decode(), # (La, 128)
b"\xe0\xb6\xb2".decode(), # ඳ (Va, 129)
b"\xe0\xb6\xb3".decode(), # ප (Sha, 130)
b"\xe0\xb6\xb4".decode(), # ඵ (Ssa, 131)
b"\xe0\xb6\xb5".decode(), # බ (Sa, 132)
b"\xe0\xb6\xb6".decode(), # භ (Ha, 133)
b"\xe2\xb0\x80".decode(), # Ⰰ (Az, 134)
b"\xe2\xb0\x81".decode(), # Ⰱ (Buky, 135)
b"\xe2\xb0\x82".decode(), # Ⰲ (Vede, 136)
b"\xe2\xb0\x83".decode(), # Ⰳ (Glagoli, 137)
b"\xe2\xb0\x84".decode(), # Ⰴ (Dobro, 138)
b"\xe2\xb0\x85".decode(), # Ⰵ (Yest, 139)
b"\xe2\xb0\x86".decode(), # Ⰶ (Zhivete, 140)
b"\xe2\xb0\x87".decode(), # Ⰷ (Zemlja, 141)
b"\xe2\xb0\x88".decode(), # Ⰸ (Izhe, 142)
b"\xe2\xb0\x89".decode(), # Ⰹ (Initial Izhe, 143)
b"\xe2\xb0\x8a".decode(), # Ⰺ (I, 144)
b"\xe2\xb0\x8b".decode(), # Ⰻ (Djerv, 145)
b"\xe2\xb0\x8c".decode(), # Ⰼ (Kako, 146)
b"\xe2\xb0\x8d".decode(), # Ⰽ (Ljudije, 147)
b"\xe2\xb0\x8e".decode(), # Ⰾ (Myse, 148)
b"\xe2\xb0\x8f".decode(), # Ⰿ (Nash, 149)
b"\xe2\xb0\x90".decode(), # Ⱀ (On, 150)
b"\xe2\xb0\x91".decode(), # Ⱁ (Pokoj, 151)
b"\xe2\xb0\x92".decode(), # Ⱂ (Rtsy, 152)
b"\xe2\xb0\x93".decode(), # Ⱃ (Slovo, 153)
b"\xe2\xb0\x94".decode(), # Ⱄ (Tvrido, 154)
b"\xe2\xb0\x95".decode(), # Ⱅ (Uku, 155)
b"\xe2\xb0\x96".decode(), # Ⱆ (Fert, 156)
b"\xe2\xb0\x97".decode(), # Ⱇ (Xrivi, 157)
b"\xe2\xb0\x98".decode(), # Ⱈ (Ot, 158)
b"\xe2\xb0\x99".decode(), # Ⱉ (Cy, 159)
b"\xe2\xb0\x9a".decode(), # Ⱊ (Shcha, 160)
b"\xe2\xb0\x9b".decode(), # Ⱋ (Er, 161)
b"\xe2\xb0\x9c".decode(), # Ⱌ (Yeru, 162)
b"\xe2\xb0\x9d".decode(), # Ⱍ (Small Yer, 163)
b"\xe2\xb0\x9e".decode(), # Ⱎ (Yo, 164)
b"\xe2\xb0\x9f".decode(), # Ⱏ (Yu, 165)
b"\xe2\xb0\xa0".decode(), # Ⱐ (Ja, 166)
b"\xe0\xb8\x81".decode(), # ก (Ko Kai, 167)
b"\xe0\xb8\x82".decode(), # ข (Kho Khai, 168)
b"\xe0\xb8\x83".decode(), # ฃ (Kho Khuat, 169)
b"\xe0\xb8\x84".decode(), # ค (Kho Khon, 170)
b"\xe0\xb8\x85".decode(), # ฅ (Kho Rakhang, 171)
b"\xe0\xb8\x86".decode(), # ฆ (Kho Khwai, 172)
b"\xe0\xb8\x87".decode(), # ง (Ngo Ngu, 173)
b"\xe0\xb8\x88".decode(), # จ (Cho Chan, 174)
b"\xe0\xb8\x89".decode(), # ฉ (Cho Ching, 175)
b"\xe0\xb8\x8a".decode(), # ช (Cho Chang, 176)
b"\xe0\xb8\x8b".decode(), # ซ (So So, 177)
b"\xe0\xb8\x8c".decode(), # ฌ (Cho Choe, 178)
b"\xe0\xb8\x8d".decode(), # ญ (Yo Ying, 179)
b"\xe0\xb8\x8e".decode(), # ฎ (Do Chada, 180)
b"\xe0\xb8\x8f".decode(), # ฏ (To Patak, 181)
b"\xe0\xb8\x90".decode(), # ฐ (Tho Than, 182)
b"\xe0\xb8\x91".decode(), # ฑ (Tho Nangmontho, 183)
b"\xe0\xb8\x92".decode(), # ฒ (Tho Phuthao, 184)
b"\xe0\xb8\x93".decode(), # ณ (No Nen, 185)
b"\xe0\xb8\x94".decode(), # ด (Do Dek, 186)
b"\xe0\xb8\x95".decode(), # ต (To Tao, 187)
b"\xe0\xb8\x96".decode(), # ถ (Tho Thung, 188)
b"\xe0\xb8\x97".decode(), # ท (Tho Thahan, 189)
b"\xe0\xb8\x98".decode(), # ธ (Tho Thong, 190)
b"\xe0\xb8\x99".decode(), # น (No Nu, 191)
b"\xe0\xb8\x9a".decode(), # บ (Bo Baimai, 192)
b"\xe0\xb8\x9b".decode(), # ป (Po Pla, 193)
b"\xe0\xb8\x9c".decode(), # ผ (Pho Phung, 194)
b"\xe0\xb8\x9d".decode(), # ฝ (Fo Fa, 195)
b"\xe0\xb8\x9e".decode(), # พ (Pho Phan, 196)
b"\xe0\xb8\x9f".decode(), # ฟ (Fo Fan, 197)
b"\xe0\xb8\xa0".decode(), # ภ (Pho Samphao, 198)
b"\xe0\xb8\xa1".decode(), # ม (Mo Ma, 199)
b"\xe0\xb8\xa2".decode(), # ย (Yo Yak, 200)
b"\xe0\xb8\xa3".decode(), # ร (Ro Rua, 201)
b"\xe0\xb8\xa5".decode(), # ล (Lo Ling, 202)
b"\xe0\xb8\xa7".decode(), # ว (Wo Waen, 203)
b"\xe0\xb8\xa8".decode(), # ศ (So Sala, 204)
b"\xe0\xb8\xa9".decode(), # ษ (So Rusi, 205)
b"\xe0\xb8\xaa".decode(), # ส (So Sua, 206)
b"\xe0\xb8\xab".decode(), # ห (Ho Hip, 207)
b"\xe0\xb8\xac".decode(), # ฬ (Lo Chula, 208)
b"\xe0\xb8\xad".decode(), # อ (O Ang, 209)
b"\xe0\xb8\xae".decode(), # ฮ (Ho Nokhuk, 210)
b"\xe1\x84\x80".decode(), # ㄱ (Giyeok, 211)
b"\xe1\x84\x81".decode(), # ㄴ (Nieun, 212)
b"\xe1\x84\x82".decode(), # ㄷ (Digeut, 213)
b"\xe1\x84\x83".decode(), # ㄹ (Rieul, 214)
b"\xe1\x84\x84".decode(), # ㅁ (Mieum, 215)
b"\xe1\x84\x85".decode(), # ㅂ (Bieup, 216)
b"\xe1\x84\x86".decode(), # ㅅ (Siot, 217)
b"\xe1\x84\x87".decode(), # ㅇ (Ieung, 218)
b"\xe1\x84\x88".decode(), # ㅈ (Jieut, 219)
b"\xe1\x84\x89".decode(), # ㅊ (Chieut, 220)
b"\xe1\x84\x8a".decode(), # ㅋ (Kieuk, 221)
b"\xe1\x84\x8b".decode(), # ㅌ (Tieut, 222)
b"\xe1\x84\x8c".decode(), # ㅍ (Pieup, 223)
b"\xe1\x84\x8d".decode(), # ㅎ (Hieut, 224)
b"\xe1\x85\xa1".decode(), # ㅏ (A, 225)
b"\xe1\x85\xa2".decode(), # ㅐ (Ae, 226)
b"\xe1\x85\xa3".decode(), # ㅑ (Ya, 227)
b"\xe1\x85\xa4".decode(), # ㅒ (Yae, 228)
b"\xe1\x85\xa5".decode(), # ㅓ (Eo, 229)
b"\xe1\x85\xa6".decode(), # ㅔ (E, 230)
b"\xe1\x85\xa7".decode(), # ㅕ (Yeo, 231)
b"\xe1\x85\xa8".decode(), # ㅖ (Ye, 232)
b"\xe1\x85\xa9".decode(), # ㅗ (O, 233)
b"\xe1\x85\xaa".decode(), # ㅘ (Wa, 234)
b"\xe1\x85\xab".decode(), # ㅙ (Wae, 235)
b"\xe1\x85\xac".decode(), # ㅚ (Oe, 236)
b"\xe1\x85\xad".decode(), # ㅛ (Yo, 237)
b"\xe1\x85\xae".decode(), # ㅜ (U, 238)
b"\xe1\x85\xaf".decode(), # ㅝ (Weo, 239)
b"\xe1\x85\xb0".decode(), # ㅞ (We, 240)
b"\xe1\x85\xb1".decode(), # ㅟ (Wi, 241)
b"\xe1\x85\xb2".decode(), # ㅠ (Yu, 242)
b"\xe1\x85\xb3".decode(), # ㅡ (Eu, 243)
b"\xe1\x85\xb4".decode(), # ㅢ (Ui, 244)
b"\xe1\x85\xb5".decode(), # ㅣ (I, 245)
b"\xe1\x8a\xa0".decode(), # አ (Glottal A, 246)
b"\xe1\x8a\xa1".decode(), # ኡ (Glottal U, 247)
b"\xe1\x8a\xa2".decode(), # ኢ (Glottal I, 248)
b"\xe1\x8a\xa3".decode(), # ኣ (Glottal Aa, 249)
b"\xe1\x8a\xa4".decode(), # ኤ (Glottal E, 250)
b"\xe1\x8a\xa5".decode(), # እ (Glottal Ie, 251)
b"\xe1\x8a\xa6".decode(), # ኦ (Glottal O, 252)
b"\xe1\x8a\xa7".decode(), # ኧ (Glottal Wa, 253)
b"\xe1\x8b\x88".decode(), # ወ (Wa, 254)
b"\xe1\x8b\x89".decode(), # ዉ (Wu, 255)
b"\xe1\x8b\x8a".decode(), # ዊ (Wi, 256)
b"\xe1\x8b\x8b".decode(), # ዋ (Waa, 257)
b"\xe1\x8b\x8c".decode(), # ዌ (We, 258)
b"\xe1\x8b\x8d".decode(), # ው (Wye, 259)
b"\xe1\x8b\x8e".decode(), # ዎ (Wo, 260)
b"\xe1\x8a\xb0".decode(), # ኰ (Ko, 261)
b"\xe1\x8a\xb1".decode(), # (Ku, 262)
b"\xe1\x8a\xb2".decode(), # ኲ (Ki, 263)
b"\xe1\x8a\xb3".decode(), # ኳ (Kua, 264)
b"\xe1\x8a\xb4".decode(), # ኴ (Ke, 265)
b"\xe1\x8a\xb5".decode(), # ኵ (Kwe, 266)
b"\xe1\x8a\xb6".decode(), # (Ko, 267)
b"\xe1\x8a\x90".decode(), # ጐ (Go, 268)
b"\xe1\x8a\x91".decode(), # (Gu, 269)
b"\xe1\x8a\x92".decode(), # ጒ (Gi, 270)
b"\xe1\x8a\x93".decode(), # መ (Gua, 271)
b"\xe1\x8a\x94".decode(), # ጔ (Ge, 272)
b"\xe1\x8a\x95".decode(), # ጕ (Gwe, 273)
b"\xe1\x8a\x96".decode(), # (Go, 274)
b"\xe0\xa4\x85".decode(), # अ (A, 275)
b"\xe0\xa4\x86".decode(), # आ (Aa, 276)
b"\xe0\xa4\x87".decode(), # इ (I, 277)
b"\xe0\xa4\x88".decode(), # ई (Ii, 278)
b"\xe0\xa4\x89".decode(), # उ (U, 279)
b"\xe0\xa4\x8a".decode(), # ऊ (Uu, 280)
b"\xe0\xa4\x8b".decode(), # ऋ (R, 281)
b"\xe0\xa4\x8f".decode(), # ए (E, 282)
b"\xe0\xa4\x90".decode(), # ऐ (Ai, 283)
b"\xe0\xa4\x93".decode(), # ओ (O, 284)
b"\xe0\xa4\x94".decode(), # औ (Au, 285)
b"\xe0\xa4\x95".decode(), # क (Ka, 286)
b"\xe0\xa4\x96".decode(), # ख (Kha, 287)
b"\xe0\xa4\x97".decode(), # ग (Ga, 288)
b"\xe0\xa4\x98".decode(), # घ (Gha, 289)
b"\xe0\xa4\x99".decode(), # ङ (Nga, 290)
b"\xe0\xa4\x9a".decode(), # च (Cha, 291)
b"\xe0\xa4\x9b".decode(), # छ (Chha, 292)
b"\xe0\xa4\x9c".decode(), # ज (Ja, 293)
b"\xe0\xa4\x9d".decode(), # झ (Jha, 294)
b"\xe0\xa4\x9e".decode(), # ञ (Nya, 295)
b"\xe0\xa4\x9f".decode(), # ट (Ta, 296)
b"\xe0\xa4\xa0".decode(), # ठ (Tha, 297)
b"\xe0\xa4\xa1".decode(), # ड (Da, 298)
b"\xe0\xa4\xa2".decode(), # ढ (Dha, 299)
b"\xe0\xa4\xa3".decode(), # ण (Na, 300)
b"\xe0\xa4\xa4".decode(), # त (Ta, 301)
b"\xe0\xa4\xa5".decode(), # थ (Tha, 302)
b"\xe0\xa4\xa6".decode(), # द (Da, 303)
b"\xe0\xa4\xa7".decode(), # ध (Dha, 304)
b"\xe0\xa4\xa8".decode(), # न (Na, 305)
b"\xe0\xa4\xaa".decode(), # प (Pa, 306)
b"\xe0\xa4\xab".decode(), # फ (Pha, 307)
b"\xe0\xa4\xac".decode(), # ब (Ba, 308)
b"\xe0\xa4\xad".decode(), # भ (Bha, 309)
b"\xe0\xa4\xae".decode(), # म (Ma, 310)
b"\xe0\xa4\xaf".decode(), # य (Ya, 311)
b"\xe0\xa4\xb0".decode(), # र (Ra, 312)
b"\xe0\xa4\xb2".decode(), # ल (La, 313)
b"\xe0\xa4\xb5".decode(), # व (Va, 314)
b"\xe0\xa4\xb6".decode(), # श (Sha, 315)
b"\xe0\xa4\xb7".decode(), # ष (Ssa, 316)
b"\xe0\xa4\xb8".decode(), # स (Sa, 317)
b"\xe0\xa4\xb9".decode(), # ह (Ha, 318)
b"\xe3\x82\xa2".decode(), # ア (A, 319)
b"\xe3\x82\xa4".decode(), # イ (I, 320)
b"\xe3\x82\xa6".decode(), # ウ (U, 321)
b"\xe3\x82\xa8".decode(), # エ (E, 322)
b"\xe3\x82\xaa".decode(), # オ (O, 323)
b"\xe3\x82\xab".decode(), # カ (Ka, 324)
b"\xe3\x82\xad".decode(), # キ (Ki, 325)
b"\xe3\x82\xaf".decode(), # ク (Ku, 326)
b"\xe3\x82\xb1".decode(), # ケ (Ke, 327)
b"\xe3\x82\xb3".decode(), # コ (Ko, 328)
b"\xe3\x82\xb5".decode(), # サ (Sa, 329)
b"\xe3\x82\xb7".decode(), # シ (Shi, 330)
b"\xe3\x82\xb9".decode(), # ス (Su, 331)
b"\xe3\x82\xbb".decode(), # セ (Se, 332)
b"\xe3\x82\xbd".decode(), # ソ (So, 333)
b"\xe3\x82\xbf".decode(), # タ (Ta, 334)
b"\xe3\x83\x81".decode(), # チ (Chi, 335)
b"\xe3\x83\x84".decode(), # ツ (Tsu, 336)
b"\xe3\x83\x86".decode(), # テ (Te, 337)
b"\xe3\x83\x88".decode(), # ト (To, 338)
b"\xe3\x83\x8a".decode(), # ナ (Na, 339)
b"\xe3\x83\x8b".decode(), # ニ (Ni, 340)
b"\xe3\x83\x8c".decode(), # ヌ (Nu, 341)
b"\xe3\x83\x8d".decode(), # ネ (Ne, 342)
b"\xe3\x83\x8e".decode(), # ノ (No, 343)
b"\xe3\x83\x8f".decode(), # ハ (Ha, 344)
b"\xe3\x83\x92".decode(), # ヒ (Hi, 345)
b"\xe3\x83\x95".decode(), # フ (Fu, 346)
b"\xe3\x83\x98".decode(), # ヘ (He, 347)
b"\xe3\x83\x9b".decode(), # ホ (Ho, 348)
b"\xe3\x83\x9e".decode(), # マ (Ma, 349)
b"\xe3\x83\x9f".decode(), # ミ (Mi, 350)
b"\xe3\x83\xa0".decode(), # ム (Mu, 351)
b"\xe3\x83\xa1".decode(), # メ (Me, 352)
b"\xe3\x83\xa2".decode(), # モ (Mo, 353)
b"\xe3\x83\xa4".decode(), # ヤ (Ya, 354)
b"\xe3\x83\xa6".decode(), # ユ (Yu, 355)
b"\xe3\x83\xa8".decode(), # ヨ (Yo, 356)
b"\xe3\x83\xa9".decode(), # ラ (Ra, 357)
b"\xe3\x83\xaa".decode(), # リ (Ri, 358)
b"\xe3\x83\xab".decode(), # ル (Ru, 359)
b"\xe3\x83\xac".decode(), # レ (Re, 360)
b"\xe3\x83\xad".decode(), # ロ (Ro, 361)
b"\xe3\x83\xaf".decode(), # ワ (Wa, 362)
b"\xe3\x83\xb2".decode(), # ヲ (Wo, 363)
b"\xe3\x83\xb3".decode(), # ン (N, 364)
b"\xe2\xb4\xb0".decode(), # ⴰ (Ya, 365)
b"\xe2\xb4\xb1".decode(), # ⴱ (Yab, 366)
b"\xe2\xb4\xb2".decode(), # ⴲ (Yabh, 367)
b"\xe2\xb4\xb3".decode(), # ⴳ (Yag, 368)
b"\xe2\xb4\xb4".decode(), # ⴴ (Yagh, 369)
b"\xe2\xb4\xb5".decode(), # ⴵ (Yaj, 370)
b"\xe2\xb4\xb6".decode(), # ⴶ (Yach, 371)
b"\xe2\xb4\xb7".decode(), # ⴷ (Yad, 372)
b"\xe2\xb4\xb8".decode(), # ⴸ (Yadh, 373)
b"\xe2\xb4\xb9".decode(), # ⴹ (Yadh, emphatic, 374)
b"\xe2\xb4\xba".decode(), # ⴺ (Yaz, 375)
b"\xe2\xb4\xbb".decode(), # ⴻ (Yazh, 376)
b"\xe2\xb4\xbc".decode(), # ⴼ (Yaf, 377)
b"\xe2\xb4\xbd".decode(), # ⴽ (Yak, 378)
b"\xe2\xb4\xbe".decode(), # ⴾ (Yak, variant, 379)
b"\xe2\xb4\xbf".decode(), # ⴿ (Yaq, 380)
b"\xe2\xb5\x80".decode(), # ⵀ (Yah, 381)
b"\xe2\xb5\x81".decode(), # ⵁ (Yahh, 382)
b"\xe2\xb5\x82".decode(), # ⵂ (Yahl, 383)
b"\xe2\xb5\x83".decode(), # ⵃ (Yahm, 384)
b"\xe2\xb5\x84".decode(), # ⵄ (Yayn, 385)
b"\xe2\xb5\x85".decode(), # ⵅ (Yakh, 386)
b"\xe2\xb5\x86".decode(), # ⵆ (Yakl, 387)
b"\xe2\xb5\x87".decode(), # ⵇ (Yahq, 388)
b"\xe2\xb5\x88".decode(), # ⵈ (Yash, 389)
b"\xe2\xb5\x89".decode(), # ⵉ (Yi, 390)
b"\xe2\xb5\x8a".decode(), # ⵊ (Yij, 391)
b"\xe2\xb5\x8b".decode(), # ⵋ (Yizh, 392)
b"\xe2\xb5\x8c".decode(), # ⵌ (Yink, 393)
b"\xe2\xb5\x8d".decode(), # ⵍ (Yal, 394)
b"\xe2\xb5\x8e".decode(), # ⵎ (Yam, 395)
b"\xe2\xb5\x8f".decode(), # ⵏ (Yan, 396)
b"\xe2\xb5\x90".decode(), # ⵐ (Yang, 397)
b"\xe2\xb5\x91".decode(), # ⵑ (Yany, 398)
b"\xe2\xb5\x92".decode(), # ⵒ (Yap, 399)
b"\xe2\xb5\x93".decode(), # ⵓ (Yu, 400)
b"\xe0\xb6\x85".decode(), # අ (A, 401)
b"\xe0\xb6\x86".decode(), # ආ (Aa, 402)
b"\xe0\xb6\x87".decode(), # ඉ (I, 403)
b"\xe0\xb6\x88".decode(), # ඊ (Ii, 404)
b"\xe0\xb6\x89".decode(), # උ (U, 405)
b"\xe0\xb6\x8a".decode(), # ඌ (Uu, 406)
b"\xe0\xb6\x8b".decode(), # ඍ (R, 407)
b"\xe0\xb6\x8c".decode(), # ඎ (Rr, 408)
b"\xe0\xb6\x8f".decode(), # ඏ (L, 409)
b"\xe0\xb6\x90".decode(), # ඐ (Ll, 410)
b"\xe0\xb6\x91".decode(), # එ (E, 411)
b"\xe0\xb6\x92".decode(), # ඒ (Ee, 412)
b"\xe0\xb6\x93".decode(), # ඓ (Ai, 413)
b"\xe0\xb6\x94".decode(), # ඔ (O, 414)
b"\xe0\xb6\x95".decode(), # ඕ (Oo, 415)
b"\xe0\xb6\x96".decode(), # ඖ (Au, 416)
b"\xe0\xb6\x9a".decode(), # ක (Ka, 417)
b"\xe0\xb6\x9b".decode(), # ඛ (Kha, 418)
b"\xe0\xb6\x9c".decode(), # ග (Ga, 419)
b"\xe0\xb6\x9d".decode(), # ඝ (Gha, 420)
b"\xe0\xb6\x9e".decode(), # ඞ (Nga, 421)
b"\xe0\xb6\x9f".decode(), # ච (Cha, 422)
b"\xe0\xb6\xa0".decode(), # ඡ (Chha, 423)
b"\xe0\xb6\xa1".decode(), # ජ (Ja, 424)
b"\xe0\xb6\xa2".decode(), # ඣ (Jha, 425)
b"\xe0\xb6\xa3".decode(), # ඤ (Nya, 426)
b"\xe0\xb6\xa4".decode(), # ට (Ta, 427)
b"\xe0\xb6\xa5".decode(), # ඥ (Tha, 428)
b"\xe0\xb6\xa6".decode(), # ඦ (Da, 429)
b"\xe0\xb6\xa7".decode(), # ට (Dha, 430)
b"\xe0\xb6\xa8".decode(), # ඨ (Na, 431)
b"\xe0\xb6\xaa".decode(), # ඪ (Pa, 432)
b"\xe0\xb6\xab".decode(), # ණ (Pha, 433)
b"\xe0\xb6\xac".decode(), # ඬ (Ba, 434)
b"\xe0\xb6\xad".decode(), # ත (Bha, 435)
b"\xe0\xb6\xae".decode(), # ථ (Ma, 436)
b"\xe0\xb6\xaf".decode(), # ද (Ya, 437)
b"\xe0\xb6\xb0".decode(), # ධ (Ra, 438)
]
NETWORK_EXPLORER_MAP = {
"opentensor": {
"local": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-finney.opentensor.ai%3A443#/explorer",
"endpoint": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-finney.opentensor.ai%3A443#/explorer",
"finney": "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fentrypoint-finney.opentensor.ai%3A443#/explorer",
},
"taostats": {
"local": "https://x.taostats.io",
"endpoint": "https://x.taostats.io",
"finney": "https://x.taostats.io",
},
}
class RootSudoOnly(Enum):
FALSE = 0
TRUE = 1
COMPLICATED = 2
HYPERPARAMS = {
# btcli name: (subtensor method, root-only enum)
"kappa": ("sudo_set_kappa", RootSudoOnly.TRUE),
"immunity_period": ("sudo_set_immunity_period", RootSudoOnly.FALSE),
"min_allowed_weights": ("sudo_set_min_allowed_weights", RootSudoOnly.FALSE),
"tempo": ("set_tempo", RootSudoOnly.COMPLICATED),
"weights_version": ("sudo_set_weights_version_key", RootSudoOnly.FALSE),
"weights_rate_limit": ("sudo_set_weights_set_rate_limit", RootSudoOnly.TRUE),
"activity_cutoff_factor": ("set_activity_cutoff_factor", RootSudoOnly.COMPLICATED),
"target_regs_per_interval": (
"sudo_set_target_registrations_per_interval",
RootSudoOnly.TRUE,
),
"min_burn": ("sudo_set_min_burn", RootSudoOnly.FALSE),
"max_burn": ("sudo_set_max_burn", RootSudoOnly.COMPLICATED),
"bonds_moving_avg": ("sudo_set_bonds_moving_average", RootSudoOnly.FALSE),
"max_regs_per_block": ("sudo_set_max_registrations_per_block", RootSudoOnly.TRUE),
"serving_rate_limit": ("sudo_set_serving_rate_limit", RootSudoOnly.FALSE),
"max_validators": ("sudo_set_max_allowed_validators", RootSudoOnly.TRUE),
"commit_reveal_period": (
"sudo_set_commit_reveal_weights_interval",
RootSudoOnly.FALSE,
),
"commit_reveal_weights_enabled": (
"sudo_set_commit_reveal_weights_enabled",
RootSudoOnly.FALSE,
),
"alpha_values": ("sudo_set_alpha_values", RootSudoOnly.FALSE),
"liquid_alpha_enabled": ("sudo_set_liquid_alpha_enabled", RootSudoOnly.FALSE),
"registration_allowed": (
"sudo_set_network_registration_allowed",
RootSudoOnly.TRUE,
),
"network_pow_registration_allowed": (
"sudo_set_network_pow_registration_allowed",
RootSudoOnly.FALSE,
),
"yuma3_enabled": ("sudo_set_yuma3_enabled", RootSudoOnly.FALSE),
"alpha_sigmoid_steepness": ("sudo_set_alpha_sigmoid_steepness", RootSudoOnly.TRUE),
"bonds_reset_enabled": ("sudo_set_bonds_reset_enabled", RootSudoOnly.FALSE),
"transfers_enabled": ("sudo_set_toggle_transfer", RootSudoOnly.FALSE),
"min_allowed_uids": ("sudo_set_min_allowed_uids", RootSudoOnly.TRUE),
"sn_owner_hotkey": ("sudo_set_sn_owner_hotkey", RootSudoOnly.FALSE),
"subnet_owner_hotkey": ("sudo_set_sn_owner_hotkey", RootSudoOnly.FALSE),
"recycle_or_burn": ("sudo_set_recycle_or_burn", RootSudoOnly.FALSE),
"owner_cut_enabled": ("sudo_set_owner_cut_enabled", RootSudoOnly.FALSE),
"owner_cut_auto_lock_enabled": (
"sudo_set_owner_cut_auto_lock_enabled",
RootSudoOnly.FALSE,
),
# Note: These are displayed but not directly settable via HYPERPARAMS
# They are derived or set via other mechanisms
"alpha_high": ("", RootSudoOnly.FALSE), # Derived from alpha_values
"alpha_low": ("", RootSudoOnly.FALSE), # Derived from alpha_values
#
"subnet_is_active": ("", RootSudoOnly.FALSE), # Set via btcli subnets start
"activity_cutoff": (
"",
RootSudoOnly.FALSE,
), # Derived: activity_cutoff_factor × tempo / 1000
"yuma_version": ("", RootSudoOnly.FALSE), # Related to yuma3_enabled
"max_allowed_uids": ("sudo_set_max_allowed_uids", RootSudoOnly.FALSE),
"burn_increase_mult": ("sudo_set_burn_increase_mult", RootSudoOnly.FALSE),
"burn_half_life": ("sudo_set_burn_half_life", RootSudoOnly.FALSE),
"min_childkey_take": (
"sudo_set_min_childkey_take_per_subnet",
RootSudoOnly.FALSE,
),
}
# Maps a hyperparameter to a non-default pallet for sudo set calls. Hyperparameters
# not listed here live in the default pallet (AdminUtils).
HYPERPARAMS_MODULE: dict[str, str] = {
"tempo": "SubtensorModule",
"activity_cutoff_factor": "SubtensorModule",
}
# Settable hyperparameters not reported by the get_subnet_hyperparams_v3 runtime
# API but readable from SubtensorModule storage (netuid-keyed maps).
HYPERPARAMS_STORAGE: dict[str, str] = {
"max_allowed_uids": "MaxAllowedUids",
"min_allowed_uids": "MinAllowedUids",
"network_pow_registration_allowed": "NetworkPowRegistrationAllowed",
"recycle_or_burn": "RecycleOrBurn",
"sn_owner_hotkey": "SubnetOwnerHotkey",
}
# Setter-only registry entries reachable from other displayed rows: selecting
# alpha_high/alpha_low routes to alpha_values, yuma_version routes to
# yuma3_enabled, and subnet_owner_hotkey is an alias of sn_owner_hotkey.
HYPERPARAMS_SETTER_ALIASES = frozenset(
{"alpha_values", "subnet_owner_hotkey", "yuma3_enabled"}
)
# Hyperparameters whose root-sudo path uses a different extrinsic than the owner path.
# Maps btcli name -> (pallet, extrinsic) for the call wrapped in Sudo. Owner-side
# set_tempo is bounded to [360, 50400] and rate-limited; root's sudo_set_tempo accepts
# any u16 value.
HYPERPARAMS_ROOT_EXTRINSIC: dict[str, tuple[str, str]] = {
"tempo": ("AdminUtils", "sudo_set_tempo"),
}
# Hyperparameter metadata: descriptions, side-effects, ownership, and documentation links
HYPERPARAMS_METADATA = {
"kappa": {
"description": "Kappa determines the scaling factor for consensus calculations.",
"side_effects": "Modifying kappa changes how validator votes are weighted in consensus mechanisms.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#kappa",
},
"immunity_period": {
"description": "Duration (in blocks) during which newly registered neurons are protected from certain penalties.",
"side_effects": "Increasing immunity period gives new neurons more time to establish themselves before facing penalties.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#immunityperiod",
},
"min_allowed_weights": {
"description": "Minimum number of weight connections a neuron must maintain to stay active.",
"side_effects": "Lower values allow neurons with fewer connections to remain active; higher values enforce stricter connectivity requirements.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#minallowedweights",
},
"tempo": {
"description": "Number of blocks between automatic epoch transitions. Owner-settable between 360 and 50400 blocks (rate-limited to one change per 360 blocks); root can set any value via sudo.",
"side_effects": "Lower tempo means more frequent updates but higher chain load. Higher tempo reduces frequency but may slow responsiveness. Changing tempo resets the epoch cycle, so the next epoch fires a full tempo after the change.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#tempo",
},
"weights_version": {
"description": "Version key for weight sets.",
"side_effects": "Changing this invalidates all existing weights, forcing neurons to resubmit weights.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#weightsversion",
},
"weights_rate_limit": {
"description": "Maximum number of weight updates allowed per epoch.",
"side_effects": "Lower values reduce chain load but may limit legitimate weight updates. Higher values allow more flexibility.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#weightsratelimit--commitmentratelimit",
},
"activity_cutoff": {
"description": "Effective validator inactivity cutoff in blocks, computed as activity_cutoff_factor × tempo ÷ 1000. Read-only; set activity_cutoff_factor instead.",
"side_effects": "Lower values prune inactive validators more aggressively; higher values keep more validators active.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#activitycutoff",
},
"activity_cutoff_factor": {
"description": "Tolerated validator inactivity as per-mille of tempo (1000 = one full tempo). Effective cutoff in blocks = factor × tempo ÷ 1000. Allowed range: 1000 to 50000.",
"side_effects": "Lower factors prune inactive validators more aggressively; higher factors tolerate longer inactivity. The effective cutoff scales with tempo.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#activitycutoff",
},
"target_regs_per_interval": {
"description": "Target number of new registrations per adjustment interval.",
"side_effects": "Affects how the difficulty adjustment algorithm targets registration rates.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#targetregistrationsperinterval",
},
"min_burn": {
"description": "Minimum TAO burn amount required for subnet registration.",
"side_effects": "Increasing min_burn raises the barrier to entry, potentially reducing spam but also limiting participation.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#minburn",
},
"max_burn": {
"description": "Maximum TAO burn amount cap for subnet registration.",
"side_effects": "Caps registration costs, ensuring registration remains accessible even as difficulty increases.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxburn",
},
"bonds_moving_avg": {
"description": "Moving average window size for bond calculations.",
"side_effects": "Larger windows provide smoother bond values but slower response to changes. Smaller windows react faster but may be more volatile.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#bondsmovingaverage",
},
"max_regs_per_block": {
"description": "Maximum number of registrations allowed per block.",
"side_effects": "Lower values reduce chain load but may create registration bottlenecks. Higher values allow more throughput.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxregistrationsperblock",
},
"serving_rate_limit": {
"description": "Rate limit for serving requests.",
"side_effects": "Affects network throughput and prevents individual neurons from monopolizing serving capacity.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#servingratelimit",
},
"max_validators": {
"description": "Maximum number of validators allowed in the subnet.",
"side_effects": "Lower values reduce consensus overhead but limit decentralization. Higher values increase decentralization but may slow consensus.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxallowedvalidators",
},
"commit_reveal_period": {
"description": "Duration (in blocks) for commit-reveal weight submission scheme.",
"side_effects": "Longer periods provide more time for commits but delay weight revelation. Shorter periods increase frequency.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#commitrevealperiod",
},
"commit_reveal_weights_enabled": {
"description": "Enable or disable commit-reveal scheme for weight submissions.",
"side_effects": "Enabling prevents front-running of weight submissions. Disabling allows immediate weight visibility.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#commitrevealweightsenabled",
},
"alpha_values": {
"description": "Alpha range [low, high] for stake calculations.",
"side_effects": "Affects how stake is converted and calculated. Changing these values impacts staking economics.",
"owner_settable": True,
"docs_link": "",
},
"liquid_alpha_enabled": {
"description": "Enable or disable liquid alpha staking mechanism.",
"side_effects": "Enabling provides more staking flexibility. Disabling uses traditional staking mechanisms.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#liquidalphaenabled",
},
"registration_allowed": {
"description": "Enable or disable new registrations to the subnet.",
"side_effects": "Disabling registration closes the subnet to new participants. Enabling allows open registration.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#networkregistrationallowed",
},
"network_pow_registration_allowed": {
"description": "Enable or disable proof-of-work based registration.",
"side_effects": "Disabling removes PoW requirement, potentially allowing easier registration. Enabling enforces computational proof.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#networkpowregistrationallowed",
},
"yuma3_enabled": {
"description": "Enable or disable Yuma3 consensus mechanism.",
"side_effects": "Enabling Yuma3 activates advanced consensus features. Disabling uses standard consensus mechanisms.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#yumaversion",
},
"alpha_sigmoid_steepness": {
"description": "Steepness parameter for alpha sigmoid function.",
"side_effects": "Affects how alpha values are transformed in staking calculations. Higher values create steeper curves.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#alphasigmoidsteepness",
},
"bonds_reset_enabled": {
"description": "Enable or disable periodic bond resets.",
"side_effects": "Enabling provides periodic bond resets, preventing bond accumulation. Disabling allows bonds to accumulate.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#bondsresetenabled",
},
"transfers_enabled": {
"description": "Enable or disable TAO transfers within the subnet.",
"side_effects": "Enabling allows TAO transfers between neurons. Disabling prevents all transfer operations.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#toggletransfer",
},
"min_allowed_uids": {
"description": "Minimum number of UIDs (neurons) required for the subnet to remain active.",
"side_effects": "If subnet falls below this threshold, it may be deactivated. Higher values enforce stricter minimums.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#minalloweduids",
},
"sn_owner_hotkey": {
"description": "Set the subnet owner hotkey.",
"side_effects": "Changes which hotkey is authorized as subnet owner for the given subnet.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters",
},
"subnet_owner_hotkey": {
"description": "Alias for sn_owner_hotkey; sets the subnet owner hotkey.",
"side_effects": "Same as sn_owner_hotkey.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters",
},
"recycle_or_burn": {
"description": "Set whether subnet TAO is recycled or burned.",
"side_effects": "Controls whether unstaked TAO is recycled back into the subnet or burned.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters",
},
# Additional hyperparameters that appear in chain data but aren't directly settable via HYPERPARAMS
"alpha_high": {
"description": "High bound of the alpha range for stake calculations.",
"side_effects": "Affects the upper bound of alpha conversion in staking mechanisms. Set via alpha_values parameter.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#alphasigmoidsteepness",
},
"alpha_low": {
"description": "Low bound of the alpha range for stake calculations.",
"side_effects": "Affects the lower bound of alpha conversion in staking mechanisms. Set via alpha_values parameter.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#alphasigmoidsteepness",
},
"subnet_is_active": {
"description": "Whether the subnet is currently active and operational.",
"side_effects": "When inactive, the subnet cannot process requests or participate in network operations. Set via 'btcli subnets start' command.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#subnetisactive",
},
"yuma_version": {
"description": "Version of the Yuma consensus mechanism.",
"side_effects": "Changing the version affects which Yuma consensus features are active. Use yuma3_enabled to toggle Yuma3.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#yuma3",
},
"max_allowed_uids": {
"description": "Maximum number of UIDs (neurons) on the subnet, essentially 'untrimming'.",
"side_effects": "See description for min_allowed_uids",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxalloweduids",
},
"owner_cut_enabled": {
"description": "Whether the subnet owner cut is taken from the subnet's emissions.",
"side_effects": "When disabled, no owner cut is deducted and the full emission goes to the subnet participants.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#ownercutenabled",
},
"owner_cut_auto_lock_enabled": {
"description": "Whether the subnet owner cut is automatically locked when collected.",
"side_effects": "When enabled, the owner cut is auto-locked rather than paid out as liquid stake.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#ownercutautolockenabled",
},
"burn_half_life": {
"description": "Half-life (in blocks) controlling how quickly the registration burn price decays back toward min_burn.",
"side_effects": "Larger values make the registration burn price decay more slowly after registrations; smaller values let it fall back to min_burn faster.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#burnhalflife",
},
"burn_increase_mult": {
"description": "Multiplier applied to the registration burn price after each successful registration.",
"side_effects": "Higher values make the burn price jump more sharply with each registration, raising the cost of rapid successive registrations.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#burnincreasemult",
},
"min_childkey_take": {
"description": "Minimum childkey take (%) required on this subnet. Settable by the subnet owner. Cannot be set below the global protocol minimum.",
"side_effects": "Child hotkeys on this subnet must set take at or above this value.",
"owner_settable": True,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#minchildkeytake",
},
}
# Help Panels for cli help
HELP_PANELS = {
"WALLET": {
"MANAGEMENT": "Wallet Management",
"TRANSACTIONS": "Wallet Transactions",
"IDENTITY": "Identity Management",
"INFORMATION": "Wallet Information",
"OPERATIONS": "Wallet Operations",
"SECURITY": "Security & Recovery",
},
"ROOT": {
"NETWORK": "Network Information",
"WEIGHT_MGMT": "Weights Management",
"GOVERNANCE": "Governance",
"REGISTRATION": "Registration",
"DELEGATION": "Delegation",
},
"STAKE": {
"STAKE_MGMT": "Stake Management",
"CHILD": "Child Hotkeys",
"MOVEMENT": "Stake Movement",
"CLAIM": "Root Claim Management",
},
"SUDO": {
"CONFIG": "Subnet Configuration",
"GOVERNANCE": "Governance",
"TAKE": "Delegate take configuration",
},
"MECHANISMS": {
"CONFIG": "Mechanism Configuration",
"EMISSION": "Mechanism Emission",
},
"SUBNETS": {
"INFO": "Subnet Information",
"CREATION": "Subnet Creation & Management",
"REGISTER": "Neuron Registration",
"IDENTITY": "Subnet Identity Management",
},
"WEIGHTS": {"COMMIT_REVEAL": "Commit / Reveal"},
"VIEW": {
"DASHBOARD": "Network Dashboard",
},
"CROWD": {
"INITIATOR": "Crowdloan Creation & Management",
"PARTICIPANT": "Crowdloan Participation",
"INFO": "Crowdloan Information",
},
"PROXY": {
"MGMT": "Proxy Account Management",
},
}
class Gettable:
def __getitem__(self, item):
return getattr(self, item)
class ColorPalette(Gettable):
def __init__(self):
self.GENERAL = self.General()
self.STAKE = self.Stake()
self.POOLS = self.Pools()
self.GREY = self.Grey()
self.SUDO = self.Sudo()
# aliases
self.G = self.GENERAL
self.S = self.STAKE
self.P = self.POOLS
self.GR = self.GREY
self.SU = self.SUDO
class General(Gettable):
HEADER = "#4196D6" # Light Blue
LINKS = "#8CB9E9" # Sky Blue
HINT = "#A2E5B8" # Mint Green
COLDKEY = "#9EF5E4" # Aqua
HOTKEY = "#ECC39D" # Light Orange/Peach