File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,16 @@ enum Commands {
133133 #[ arg( long, short) ]
134134 fee_rate : Option < u64 > ,
135135 } ,
136+ /// Renew ownership of a space
137+ #[ command( name = "renew" , ) ]
138+ Renew {
139+ /// Spaces to renew
140+ #[ arg( display_order = 0 ) ]
141+ spaces : Vec < String > ,
142+ /// Fee rate to use in sat/vB
143+ #[ arg( long, short) ]
144+ fee_rate : Option < u64 > ,
145+ } ,
136146 /// Estimates the minimum bid needed for a rollout within the given target blocks
137147 #[ command( name = "estimatebid" ) ]
138148 EstimateBid {
@@ -554,6 +564,19 @@ async fn handle_commands(
554564 )
555565 . await ?
556566 }
567+ Commands :: Renew { spaces, fee_rate } => {
568+ let spaces: Vec < _ > = spaces. into_iter ( ) . map ( |s| normalize_space ( & s) ) . collect ( ) ;
569+ cli. send_request (
570+ Some ( RpcWalletRequest :: Transfer ( TransferSpacesParams {
571+ spaces,
572+ to : None ,
573+ } ) ) ,
574+ None ,
575+ fee_rate,
576+ false ,
577+ )
578+ . await ?
579+ }
557580 Commands :: Transfer {
558581 spaces,
559582 to,
@@ -563,7 +586,7 @@ async fn handle_commands(
563586 cli. send_request (
564587 Some ( RpcWalletRequest :: Transfer ( TransferSpacesParams {
565588 spaces,
566- to,
589+ to : Some ( to ) ,
567590 } ) ) ,
568591 None ,
569592 fee_rate,
@@ -741,6 +764,7 @@ async fn handle_commands(
741764 } ) . await ?;
742765 println ! ( "{}" , serde_json:: to_string_pretty( & result) . expect( "result" ) ) ;
743766 }
767+
744768 }
745769
746770 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments