@@ -169,13 +169,13 @@ fn force_exit_for_pre_mine_commands(command: &CliCommands) -> (bool, bool) {
169
169
matches ! (
170
170
command,
171
171
CliCommands :: PreMineSpendGetOutputStatus |
172
- CliCommands :: PreMineSpendSessionInfo ( _) |
173
- CliCommands :: PreMineSpendEncumberAggregateUtxo ( _) |
174
- CliCommands :: PreMineSpendPartyDetails ( _) |
175
- CliCommands :: PreMineSpendInputOutputSigs ( _) |
172
+ CliCommands :: PreMineStart ( _) |
173
+ CliCommands :: PreMineEncumber ( _) |
174
+ CliCommands :: PreMineStartParty ( _) |
175
+ CliCommands :: PreMineSigs ( _) |
176
176
CliCommands :: PreMineSpendBackupUtxo ( _)
177
177
) ,
178
- matches ! ( command, CliCommands :: PreMineSpendAggregateTransaction ( _) ) ,
178
+ matches ! ( command, CliCommands :: PreMineSpendTx ( _) ) ,
179
179
)
180
180
}
181
181
@@ -534,8 +534,7 @@ mod test {
534
534
#[ test]
535
535
#[ allow( clippy:: too_many_lines) ]
536
536
fn clap_parses_user_defined_commands_as_expected ( ) {
537
- let script =
538
- "
537
+ let script = "
539
538
# Beginning of script file
540
539
541
540
get-balance
@@ -545,45 +544,37 @@ mod test {
545
544
discover-peer f6b2ca781342a3ebe30ee1643655c96f1d7c14f4d49f077695395de98ae73665
546
545
547
546
send-minotari --payment-id Our_secret! 125T \
548
- f425UWsDp714RiN53c1G6ek57rfFnotB5NCMyrn4iDgbR8i2sXVHa4xSsedd66o9KmkRgErQnyDdCaAdNLzcKrj7eUb
547
+ f425UWsDp714RiN53c1G6ek57rfFnotB5NCMyrn4iDgbR8i2sXVHa4xSsedd66o9KmkRgErQnyDdCaAdNLzcKrj7eUb
549
548
550
549
burn-minotari --payment-id Ups_these_funds_will_be_burned! 100T
551
550
552
551
pre-mine-spend-get-output-status
553
552
554
- pre-mine-spend-session-info --fee-per-gram 2 \
555
- --recipient-info=[1,123,313]:\
556
- f4LR9f6WwwcPiKJjK5ciTkU1ocNhANa3FPw1wkyVUwbuKpgiihawCXy6PFszunUWQ4Te8KVFnyWVHHwsk9x5Cg7ZQiA \
557
- --verify-unspent-outputs --use-pre-mine-input-file
553
+ pre-mine-start \
554
+ --recipient-info=[1,123,313]:\
555
+ f4LR9f6WwwcPiKJjK5ciTkU1ocNhANa3FPw1wkyVUwbuKpgiihawCXy6PFszunUWQ4Te8KVFnyWVHHwsk9x5Cg7ZQiA
558
556
559
- pre-mine-spend-party-details --input-file ./step_1_session_info.txt --alias alice \
560
- --recipient-info=[1,123,313]:\
561
- f4LR9f6WwwcPiKJjK5ciTkU1ocNhANa3FPw1wkyVUwbuKpgiihawCXy6PFszunUWQ4Te8KVFnyWVHHwsk9x5Cg7ZQiA \
562
- --pre-mine-file-path ./pre_mine_file.txt
557
+ pre-mine-start-party --alias alice --input-file './step_1_session_info.json'
563
558
564
- pre-mine-spend-encumber-aggregate-utxo --session-id ee1643655c \
565
- --input-file-names=step_2_for_leader_from_alice.txt --input-file-names=step_2_for_leader_from_bob.txt \
566
- --input-file-names=step_2_for_leader_from_carol.txt
559
+ pre-mine-encumber --session-id 20250306070544 --member=alice --member=bob
567
560
568
- pre-mine-spend-input-output- sigs --session-id ee1643655c
561
+ pre-mine-sigs --session-id 20250306070544
569
562
570
- pre-mine-spend-aggregate-transaction --session-id ee1643655c \
571
- --input-file-names=step_4_for_leader_from_alice.txt --input-file-names=step_4_for_leader_from_bob.txt \
572
- --input-file-names=step_4_for_leader_from_carol.txt
563
+ pre-mine-spend-tx --session-id 20250306070544 --member=alice --member=bob
573
564
574
565
coin-split --payment-id Make_many_dust_UTXOs! --fee-per-gram 2 0.001T 499
575
566
576
567
make-it-rain --duration 100 --transactions-per-second 10 --start-amount 0.009200T --increase-amount 0T \
577
- --start-time now --payment-id Stressing_it_a_bit...!_(from_Feeling-a-bit-Generous) \
578
- f425UWsDp714RiN53c1G6ek57rfFnotB5NCMyrn4iDgbR8i2sXVHa4xSsedd66o9KmkRgErQnyDdCaAdNLzcKrj7eUb
568
+ --start-time now --payment-id Stressing_it_a_bit...!_(from_Feeling-a-bit-Generous) \
569
+ f425UWsDp714RiN53c1G6ek57rfFnotB5NCMyrn4iDgbR8i2sXVHa4xSsedd66o9KmkRgErQnyDdCaAdNLzcKrj7eUb
579
570
580
571
export-tx 123456789 --output-file pie.txt
581
572
582
573
import-tx --input-file pie_this_message.txt
583
574
584
575
# End of script file
585
576
"
586
- . to_string ( ) ;
577
+ . to_string ( ) ;
587
578
588
579
let commands = parse_command_file ( script) . unwrap ( ) ;
589
580
@@ -608,11 +599,11 @@ mod test {
608
599
CliCommands :: SendMinotari ( _) => send_tari = true ,
609
600
CliCommands :: BurnMinotari ( _) => burn_tari = true ,
610
601
CliCommands :: PreMineSpendGetOutputStatus => pre_mine_spend_get_output_status = true ,
611
- CliCommands :: PreMineSpendSessionInfo ( _) => pre_mine_spend_session_info = true ,
612
- CliCommands :: PreMineSpendPartyDetails ( _) => pre_mine_spend_party_details = true ,
613
- CliCommands :: PreMineSpendEncumberAggregateUtxo ( _) => pre_mine_spend_encumber_aggregate_utxo = true ,
614
- CliCommands :: PreMineSpendInputOutputSigs ( _) => pre_mine_spend_input_output_sigs = true ,
615
- CliCommands :: PreMineSpendAggregateTransaction ( _) => pre_mine_spend_aggregate_transaction = true ,
602
+ CliCommands :: PreMineStart ( _) => pre_mine_spend_session_info = true ,
603
+ CliCommands :: PreMineStartParty ( _) => pre_mine_spend_party_details = true ,
604
+ CliCommands :: PreMineEncumber ( _) => pre_mine_spend_encumber_aggregate_utxo = true ,
605
+ CliCommands :: PreMineSigs ( _) => pre_mine_spend_input_output_sigs = true ,
606
+ CliCommands :: PreMineSpendTx ( _) => pre_mine_spend_aggregate_transaction = true ,
616
607
CliCommands :: SendOneSidedToStealthAddress ( _) => { } ,
617
608
CliCommands :: MakeItRain ( _) => make_it_rain = true ,
618
609
CliCommands :: CoinSplit ( _) => coin_split = true ,
0 commit comments