-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed all println! to info!, different default output path
- Loading branch information
Showing
10 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# Rust | ||
/target | ||
|
||
# bundler wallets | ||
/src/res/bundler/0x* | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
use aa_bundler::models::wallet::Wallet; | ||
use anyhow::Result; | ||
use clap::Parser; | ||
use dirs::home_dir; | ||
use expanded_pathbuf::ExpandedPathBuf; | ||
use jsonrpsee::tracing::info; | ||
use std::str::FromStr; | ||
|
||
#[derive(Parser)] | ||
#[clap( | ||
name = "aa-bundler-create-wallet", | ||
about = "Bundler's wallet creation for EIP-4337 Account Abstraction" | ||
)] | ||
pub struct Opt { | ||
#[clap(long, default_value = "./src/res/bundler")] | ||
pub output_folder: ExpandedPathBuf, | ||
#[clap(long)] | ||
pub output_path: Option<ExpandedPathBuf>, | ||
} | ||
|
||
fn main() -> Result<()> { | ||
let opt: Opt = Opt::parse(); | ||
|
||
tracing_subscriber::fmt::init(); | ||
|
||
let wallet = Wallet::new(opt.output_folder); | ||
println!("{:?}", wallet.signer); | ||
let path = if let Some(output_path) = opt.output_path { | ||
output_path | ||
} else { | ||
ExpandedPathBuf::from_str(home_dir().unwrap().join(".aa-bundler").to_str().unwrap()) | ||
.unwrap() | ||
}; | ||
|
||
let wallet = Wallet::new(path); | ||
info!("{:?}", wallet.signer); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters