@@ -8,11 +8,12 @@ use super::{
8
8
reward_distributor_broadcast_entry_update, reward_distributor_clawback_rewards,
9
9
reward_distributor_commit_rewards, reward_distributor_initiate_payout,
10
10
reward_distributor_launch, reward_distributor_new_epoch, reward_distributor_sign_entry_update,
11
- reward_distributor_sync, verifications_broadcast_launch, verifications_broadcast_revocation,
12
- verifications_sign_launch, verifications_sign_revocation, verifications_view,
13
- xchandles_continue_launch, xchandles_expire, xchandles_extend, xchandles_initiate_launch,
14
- xchandles_listen, xchandles_register, xchandles_unroll_state_scheduler, xchandles_update,
15
- xchandles_verify_deployment,
11
+ reward_distributor_sync, reward_distributor_view, verifications_broadcast_launch,
12
+ verifications_broadcast_revocation, verifications_sign_launch, verifications_sign_revocation,
13
+ verifications_view, xchandles_continue_launch, xchandles_expire, xchandles_extend,
14
+ xchandles_initiate_launch, xchandles_listen, xchandles_register,
15
+ xchandles_unroll_state_scheduler, xchandles_update, xchandles_verify_deployment,
16
+ xchandles_view,
16
17
} ;
17
18
18
19
#[ derive( Parser ) ]
@@ -618,6 +619,24 @@ enum XchandlesCliAction {
618
619
#[ arg( long, default_value_t = false ) ]
619
620
testnet11 : bool ,
620
621
} ,
622
+ /// Shows up-to-date information about an XCHandles registry
623
+ View {
624
+ /// XCHandles (sub)registry launcher id
625
+ #[ arg( long) ]
626
+ launcher_id : String ,
627
+
628
+ /// Use testnet11
629
+ #[ arg( long, default_value_t = false ) ]
630
+ testnet11 : bool ,
631
+
632
+ /// Payment asset id hint
633
+ #[ arg( long) ]
634
+ payment_asset_id : Option < String > ,
635
+
636
+ /// Payment CAT base price hint
637
+ #[ arg( long) ]
638
+ payment_cat_base_price : Option < String > ,
639
+ } ,
621
640
}
622
641
623
642
#[ derive( Subcommand ) ]
@@ -852,6 +871,16 @@ enum RewardDistributorCliAction {
852
871
#[ arg( long, default_value = "0.0025" ) ]
853
872
fee : String ,
854
873
} ,
874
+ /// Views up-to-date information about a reward distributor
875
+ View {
876
+ /// Reward distributor singleton launcher id
877
+ #[ arg( long) ]
878
+ launcher_id : String ,
879
+
880
+ /// Use testnet11
881
+ #[ arg( long, default_value_t = false ) ]
882
+ testnet11 : bool ,
883
+ } ,
855
884
}
856
885
857
886
#[ derive( Subcommand ) ]
@@ -1277,6 +1306,20 @@ pub async fn run_cli() {
1277
1306
testnet11,
1278
1307
launcher_ids,
1279
1308
} => xchandles_listen ( launcher_ids, testnet11) . await ,
1309
+ XchandlesCliAction :: View {
1310
+ launcher_id,
1311
+ testnet11,
1312
+ payment_asset_id,
1313
+ payment_cat_base_price,
1314
+ } => {
1315
+ xchandles_view (
1316
+ launcher_id,
1317
+ testnet11,
1318
+ payment_asset_id,
1319
+ payment_cat_base_price,
1320
+ )
1321
+ . await
1322
+ }
1280
1323
} ,
1281
1324
Commands :: RewardDistributor { action } => match action {
1282
1325
RewardDistributorCliAction :: Launch {
@@ -1411,6 +1454,10 @@ pub async fn run_cli() {
1411
1454
reward_distributor_initiate_payout ( launcher_id, payout_puzzle_hash, testnet11, fee)
1412
1455
. await
1413
1456
}
1457
+ RewardDistributorCliAction :: View {
1458
+ launcher_id,
1459
+ testnet11,
1460
+ } => reward_distributor_view ( launcher_id, testnet11) . await ,
1414
1461
} ,
1415
1462
Commands :: Verifications { action } => match action {
1416
1463
VerificationsCliAction :: SignLaunch {
0 commit comments