-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(saya): load starknet account from CLI (#2054)
* init * parsing args earlier * chain id from string * improve error handling for input parsing * saya args cleanup * fix: clippy --------- Co-authored-by: Mateusz Chudkowski <[email protected]> Co-authored-by: Mateusz Zając <[email protected]> Co-authored-by: glihm <[email protected]>
- Loading branch information
1 parent
2ea37a1
commit 1fcaa7a
Showing
13 changed files
with
195 additions
and
77 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//! Data availability options. | ||
use clap::Args; | ||
use katana_primitives::FieldElement; | ||
use url::Url; | ||
|
||
#[derive(Debug, Args, Clone)] | ||
pub struct StarknetAccountOptions { | ||
#[arg(long)] | ||
#[arg(env)] | ||
#[arg(help = "The url of the starknet node.")] | ||
pub starknet_url: Url, | ||
|
||
#[arg(long)] | ||
#[arg(env)] | ||
#[arg(help = "The chain id of the starknet node.")] | ||
pub chain_id: String, | ||
|
||
#[arg(long)] | ||
#[arg(env)] | ||
#[arg(help = "The address of the starknet account.")] | ||
pub signer_address: FieldElement, | ||
|
||
#[arg(long)] | ||
#[arg(env)] | ||
#[arg(help = "The private key of the starknet account.")] | ||
pub signer_key: FieldElement, | ||
} |
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
Oops, something went wrong.