@@ -389,54 +389,119 @@ def __init__(self):
389
389
self .config_app .command ("metagraph" )(self .metagraph_config )
390
390
391
391
# wallet commands
392
- self .wallet_app .command ("list" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ])(self .wallet_list )
393
- self .wallet_app .command ("regen-coldkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ])(self .wallet_regen_coldkey )
394
- self .wallet_app .command ("regen-coldkeypub" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ])(self .wallet_regen_coldkey_pub )
395
- self .wallet_app .command ("regen-hotkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ])(self .wallet_regen_hotkey )
396
- self .wallet_app .command ("new-hotkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ])(self .wallet_new_hotkey )
397
- self .wallet_app .command ("new-coldkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ])(self .wallet_new_coldkey )
398
- self .wallet_app .command ("create" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ])(self .wallet_create_wallet )
399
- self .wallet_app .command ("balance" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ])(self .wallet_balance )
400
- self .wallet_app .command ("history" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ])(self .wallet_history )
401
- self .wallet_app .command ("overview" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ])(self .wallet_overview )
402
- self .wallet_app .command ("transfer" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ])(self .wallet_transfer )
403
- self .wallet_app .command ("inspect" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ])(self .wallet_inspect )
404
- self .wallet_app .command ("faucet" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ])(self .wallet_faucet )
405
- self .wallet_app .command ("set-identity" , rich_help_panel = HELP_PANELS ["WALLET" ]["IDENTITY" ])(self .wallet_set_id )
406
- self .wallet_app .command ("get-identity" , rich_help_panel = HELP_PANELS ["WALLET" ]["IDENTITY" ])(self .wallet_get_id )
407
- self .wallet_app .command ("check-swap" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ])(self .wallet_check_ck_swap )
408
- self .wallet_app .command ("sign" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ])(self .wallet_sign )
392
+ self .wallet_app .command (
393
+ "list" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ]
394
+ )(self .wallet_list )
395
+ self .wallet_app .command (
396
+ "regen-coldkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ]
397
+ )(self .wallet_regen_coldkey )
398
+ self .wallet_app .command (
399
+ "regen-coldkeypub" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ]
400
+ )(self .wallet_regen_coldkey_pub )
401
+ self .wallet_app .command (
402
+ "regen-hotkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ]
403
+ )(self .wallet_regen_hotkey )
404
+ self .wallet_app .command (
405
+ "new-hotkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ]
406
+ )(self .wallet_new_hotkey )
407
+ self .wallet_app .command (
408
+ "new-coldkey" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ]
409
+ )(self .wallet_new_coldkey )
410
+ self .wallet_app .command (
411
+ "create" , rich_help_panel = HELP_PANELS ["WALLET" ]["MANAGEMENT" ]
412
+ )(self .wallet_create_wallet )
413
+ self .wallet_app .command (
414
+ "balance" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ]
415
+ )(self .wallet_balance )
416
+ self .wallet_app .command (
417
+ "history" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ]
418
+ )(self .wallet_history )
419
+ self .wallet_app .command (
420
+ "overview" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ]
421
+ )(self .wallet_overview )
422
+ self .wallet_app .command (
423
+ "transfer" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ]
424
+ )(self .wallet_transfer )
425
+ self .wallet_app .command (
426
+ "inspect" , rich_help_panel = HELP_PANELS ["WALLET" ]["INFORMATION" ]
427
+ )(self .wallet_inspect )
428
+ self .wallet_app .command (
429
+ "faucet" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ]
430
+ )(self .wallet_faucet )
431
+ self .wallet_app .command (
432
+ "set-identity" , rich_help_panel = HELP_PANELS ["WALLET" ]["IDENTITY" ]
433
+ )(self .wallet_set_id )
434
+ self .wallet_app .command (
435
+ "get-identity" , rich_help_panel = HELP_PANELS ["WALLET" ]["IDENTITY" ]
436
+ )(self .wallet_get_id )
437
+ self .wallet_app .command (
438
+ "check-swap" , rich_help_panel = HELP_PANELS ["WALLET" ]["SECURITY" ]
439
+ )(self .wallet_check_ck_swap )
440
+ self .wallet_app .command (
441
+ "sign" , rich_help_panel = HELP_PANELS ["WALLET" ]["OPERATIONS" ]
442
+ )(self .wallet_sign )
409
443
410
444
# root commands
411
445
self .root_app .command ("list" )(self .root_list )
412
- self .root_app .command ("set-weights" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ])(self .root_set_weights )
413
- self .root_app .command ("get-weights" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ])(self .root_get_weights )
414
- self .root_app .command ("boost" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ])(self .root_boost )
415
- self .root_app .command ("slash" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ])(self .root_slash )
416
- self .root_app .command ("senate" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ])(self .root_senate )
417
- self .root_app .command ("senate-vote" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ])(self .root_senate_vote )
446
+ self .root_app .command (
447
+ "set-weights" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ]
448
+ )(self .root_set_weights )
449
+ self .root_app .command (
450
+ "get-weights" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ]
451
+ )(self .root_get_weights )
452
+ self .root_app .command (
453
+ "boost" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ]
454
+ )(self .root_boost )
455
+ self .root_app .command (
456
+ "slash" , rich_help_panel = HELP_PANELS ["ROOT" ]["WEIGHT_MGMT" ]
457
+ )(self .root_slash )
458
+ self .root_app .command (
459
+ "senate" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ]
460
+ )(self .root_senate )
461
+ self .root_app .command (
462
+ "senate-vote" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ]
463
+ )(self .root_senate_vote )
418
464
self .root_app .command ("register" )(self .root_register )
419
- self .root_app .command ("proposals" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ])(self .root_proposals )
420
- self .root_app .command ("set-take" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ])(self .root_set_take )
421
- self .root_app .command ("delegate-stake" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ])(self .root_delegate_stake )
422
- self .root_app .command ("undelegate-stake" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ])(self .root_undelegate_stake )
423
- self .root_app .command ("my-delegates" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ])(self .root_my_delegates )
424
- self .root_app .command ("list-delegates" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ])(self .root_list_delegates )
425
- self .root_app .command ("nominate" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ])(self .root_nominate )
465
+ self .root_app .command (
466
+ "proposals" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ]
467
+ )(self .root_proposals )
468
+ self .root_app .command (
469
+ "set-take" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ]
470
+ )(self .root_set_take )
471
+ self .root_app .command (
472
+ "delegate-stake" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ]
473
+ )(self .root_delegate_stake )
474
+ self .root_app .command (
475
+ "undelegate-stake" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ]
476
+ )(self .root_undelegate_stake )
477
+ self .root_app .command (
478
+ "my-delegates" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ]
479
+ )(self .root_my_delegates )
480
+ self .root_app .command (
481
+ "list-delegates" , rich_help_panel = HELP_PANELS ["ROOT" ]["DELEGATION" ]
482
+ )(self .root_list_delegates )
483
+ self .root_app .command (
484
+ "nominate" , rich_help_panel = HELP_PANELS ["ROOT" ]["GOVERNANCE" ]
485
+ )(self .root_nominate )
426
486
427
487
# stake commands
428
- self .stake_app .command ("show" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ])(self .stake_show )
429
- self .stake_app .command ("add" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ])(self .stake_add )
430
- self .stake_app .command ("remove" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ])(self .stake_remove )
488
+ self .stake_app .command (
489
+ "show" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ]
490
+ )(self .stake_show )
491
+ self .stake_app .command (
492
+ "add" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ]
493
+ )(self .stake_add )
494
+ self .stake_app .command (
495
+ "remove" , rich_help_panel = HELP_PANELS ["STAKE" ]["STAKE_MGMT" ]
496
+ )(self .stake_remove )
431
497
432
498
# stake-children commands
433
499
children_app = typer .Typer ()
434
500
self .stake_app .add_typer (
435
501
children_app ,
436
502
name = "child" ,
437
503
short_help = "Child Hotkey commands, alias: `children`" ,
438
- rich_help_panel = HELP_PANELS ["STAKE" ]["CHILD" ]
439
-
504
+ rich_help_panel = HELP_PANELS ["STAKE" ]["CHILD" ],
440
505
)
441
506
self .stake_app .add_typer (children_app , name = "children" , hidden = True )
442
507
children_app .command ("get" )(self .stake_get_children )
@@ -445,21 +510,43 @@ def __init__(self):
445
510
children_app .command ("take" )(self .stake_childkey_take )
446
511
447
512
# sudo commands
448
- self .sudo_app .command ("set" , rich_help_panel = HELP_PANELS ["SUDO" ]["CONFIG" ])(self .sudo_set )
449
- self .sudo_app .command ("get" , rich_help_panel = HELP_PANELS ["SUDO" ]["CONFIG" ])(self .sudo_get )
513
+ self .sudo_app .command ("set" , rich_help_panel = HELP_PANELS ["SUDO" ]["CONFIG" ])(
514
+ self .sudo_set
515
+ )
516
+ self .sudo_app .command ("get" , rich_help_panel = HELP_PANELS ["SUDO" ]["CONFIG" ])(
517
+ self .sudo_get
518
+ )
450
519
451
520
# subnets commands
452
- self .subnets_app .command ("hyperparameters" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ])(self .sudo_get )
453
- self .subnets_app .command ("list" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ])(self .subnets_list )
454
- self .subnets_app .command ("lock-cost" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["CREATION" ])(self .subnets_lock_cost )
455
- self .subnets_app .command ("create" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["CREATION" ])(self .subnets_create )
456
- self .subnets_app .command ("pow-register" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["REGISTER" ])(self .subnets_pow_register )
457
- self .subnets_app .command ("register" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["REGISTER" ])(self .subnets_register )
458
- self .subnets_app .command ("metagraph" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ])(self .subnets_metagraph )
521
+ self .subnets_app .command (
522
+ "hyperparameters" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ]
523
+ )(self .sudo_get )
524
+ self .subnets_app .command (
525
+ "list" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ]
526
+ )(self .subnets_list )
527
+ self .subnets_app .command (
528
+ "lock-cost" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["CREATION" ]
529
+ )(self .subnets_lock_cost )
530
+ self .subnets_app .command (
531
+ "create" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["CREATION" ]
532
+ )(self .subnets_create )
533
+ self .subnets_app .command (
534
+ "pow-register" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["REGISTER" ]
535
+ )(self .subnets_pow_register )
536
+ self .subnets_app .command (
537
+ "register" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["REGISTER" ]
538
+ )(self .subnets_register )
539
+ self .subnets_app .command (
540
+ "metagraph" , rich_help_panel = HELP_PANELS ["SUBNETS" ]["INFO" ]
541
+ )(self .subnets_metagraph )
459
542
460
543
# weights commands
461
- self .weights_app .command ("reveal" , rich_help_panel = HELP_PANELS ["WEIGHTS" ]["COMMIT_REVEAL" ])(self .weights_reveal )
462
- self .weights_app .command ("commit" , rich_help_panel = HELP_PANELS ["WEIGHTS" ]["COMMIT_REVEAL" ])(self .weights_commit )
544
+ self .weights_app .command (
545
+ "reveal" , rich_help_panel = HELP_PANELS ["WEIGHTS" ]["COMMIT_REVEAL" ]
546
+ )(self .weights_reveal )
547
+ self .weights_app .command (
548
+ "commit" , rich_help_panel = HELP_PANELS ["WEIGHTS" ]["COMMIT_REVEAL" ]
549
+ )(self .weights_commit )
463
550
464
551
def initialize_chain (
465
552
self ,
0 commit comments