11use color_eyre:: Report ;
2- use fraction:: Fraction ;
32use jcli_lib:: utils:: { output_file:: OutputFile , output_format:: OutputFormat } ;
43use jormungandr_lib:: interfaces:: Value ;
5- use snapshot_lib:: { voting_group:: RepsVotersAssigner , RawSnapshot , Snapshot } ;
4+ use snapshot_lib:: Fraction ;
5+ use snapshot_lib:: {
6+ voting_group:: { RepsVotersAssigner , DEFAULT_DIRECT_VOTER_GROUP , DEFAULT_REPRESENTATIVE_GROUP } ,
7+ RawSnapshot , Snapshot ,
8+ } ;
69use std:: fs:: File ;
710use std:: io:: Write ;
811use std:: path:: PathBuf ;
912use structopt:: StructOpt ;
1013
11- const DEFAULT_DIRECT_VOTER_GROUP : & str = "direct" ;
12- const DEFAULT_REPRESENTATIVE_GROUP : & str = "rep" ;
13-
1414/// Process raw registrations into blockchain initials
1515#[ derive( StructOpt ) ]
1616#[ structopt( rename_all = "kebab-case" ) ]
@@ -32,10 +32,6 @@ pub struct SnapshotCmd {
3232 #[ structopt( long) ]
3333 representatives_group : Option < String > ,
3434
35- /// Url of the representative db api server
36- #[ structopt( long) ]
37- reps_db_api_url : reqwest:: Url ,
38-
3935 /// Voting power cap for each account
4036 #[ structopt( short, long) ]
4137 voting_power_cap : Fraction ,
@@ -56,7 +52,7 @@ impl SnapshotCmd {
5652 let representative = self
5753 . representatives_group
5854 . unwrap_or_else ( || DEFAULT_REPRESENTATIVE_GROUP . into ( ) ) ;
59- let assigner = RepsVotersAssigner :: new ( direct_voter, representative, self . reps_db_api_url ) ? ;
55+ let assigner = RepsVotersAssigner :: new ( direct_voter, representative) ;
6056 let initials = Snapshot :: from_raw_snapshot (
6157 raw_snapshot,
6258 self . min_stake_threshold ,
0 commit comments