From e9e155fff0b066d660ba082999e62b3cc9d744fd Mon Sep 17 00:00:00 2001 From: Himess <95512809+Himess@users.noreply.github.com> Date: Tue, 11 Mar 2025 13:45:26 +0300 Subject: [PATCH 1/3] Update main.rs --- batcher/aligned/src/main.rs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/batcher/aligned/src/main.rs b/batcher/aligned/src/main.rs index 1153cacbd..fbe5f9821 100644 --- a/batcher/aligned/src/main.rs +++ b/batcher/aligned/src/main.rs @@ -36,27 +36,27 @@ use crate::AlignedCommands::VerifyProofOnchain; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] pub struct AlignedArgs { - #[clap(subcommand)] + #[command(subcommand)] pub command: AlignedCommands, } #[allow(clippy::large_enum_variant)] #[derive(Subcommand, Debug)] pub enum AlignedCommands { - #[clap(about = "Submit proof to the batcher")] + #[command(about = "Submit proof to the batcher")] Submit(SubmitArgs), - #[clap(about = "Verify the proof was included in a verified batch on Ethereum")] + #[command(about = "Verify the proof was included in a verified batch on Ethereum")] VerifyProofOnchain(VerifyProofOnchainArgs), - #[clap(about = "Get commitment for file", name = "get-vk-commitment")] + #[command(about = "Get commitment for file", name = "get-vk-commitment")] GetVkCommitment(GetVkCommitmentArgs), - #[clap( + #[command( about = "Deposits Ethereum in the batcher to pay for proofs", name = "deposit-to-batcher" )] DepositToBatcher(DepositToBatcherArgs), - #[clap(about = "Get user balance from the batcher", name = "get-user-balance")] + #[command(about = "Get user balance from the batcher", name = "get-user-balance")] GetUserBalance(GetUserBalanceArgs), - #[clap(about = "Get user nonce from the batcher", name = "get-user-nonce")] + #[command(about = "Get user nonce from the batcher", name = "get-user-nonce")] GetUserNonce(GetUserNonceArgs), } @@ -219,6 +219,7 @@ pub struct GetUserNonceArgs { } #[derive(Debug, Clone, ValueEnum, Copy)] +#[value_enum(rename_all = "PascalCase")] enum NetworkArg { Devnet, Holesky, @@ -238,16 +239,12 @@ impl From for Network { } #[derive(Debug, Clone, ValueEnum)] +#[value_enum(rename_all = "PascalCase")] pub enum ProvingSystemArg { - #[clap(name = "GnarkPlonkBls12_381")] GnarkPlonkBls12_381, - #[clap(name = "GnarkPlonkBn254")] GnarkPlonkBn254, - #[clap(name = "Groth16Bn254")] Groth16Bn254, - #[clap(name = "SP1")] SP1, - #[clap(name = "Risc0")] Risc0, } From 37315b3b4a14b2f52ec22ee293e7227ec35689eb Mon Sep 17 00:00:00 2001 From: Himess <95512809+Himess@users.noreply.github.com> Date: Tue, 11 Mar 2025 13:52:48 +0300 Subject: [PATCH 2/3] Update structs.rs --- batcher/aligned-task-sender/src/structs.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/batcher/aligned-task-sender/src/structs.rs b/batcher/aligned-task-sender/src/structs.rs index 7c5d36f6b..a9d6eca50 100644 --- a/batcher/aligned-task-sender/src/structs.rs +++ b/batcher/aligned-task-sender/src/structs.rs @@ -6,19 +6,19 @@ use clap::ValueEnum; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] pub struct TaskSenderArgs { - #[clap(subcommand)] + #[command(subcommand)] pub command: TaskSenderCommands, } #[derive(Subcommand, Debug)] pub enum TaskSenderCommands { - #[clap(about = "Genere proofs")] + #[command(about = "Genere proofs")] GenerateProofs(GenerateProofsArgs), - #[clap(about = "Open socket connections with batcher")] + #[command(about = "Open socket connections with batcher")] TestConnections(TestConnectionsArgs), - #[clap(about = "Send infinite proofs from a private-keys file")] + #[command(about = "Send infinite proofs from a private-keys file")] SendInfiniteProofs(SendInfiniteProofsArgs), - #[clap(about = "Generates wallets and funds it in aligned from one wallet")] + #[command(about = "Generates wallets and funds it in aligned from one wallet")] GenerateAndFundWallets(GenerateAndFundWalletsArgs), } From 85260a31fa3a35b2a2856d5af6b3bb67a6439948 Mon Sep 17 00:00:00 2001 From: Himess <95512809+Himess@users.noreply.github.com> Date: Tue, 11 Mar 2025 14:05:16 +0300 Subject: [PATCH 3/3] Update main.rs --- .../validating-public-input/aligned-integration/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/validating-public-input/aligned-integration/src/main.rs b/examples/validating-public-input/aligned-integration/src/main.rs index 919200e1b..4220587f2 100644 --- a/examples/validating-public-input/aligned-integration/src/main.rs +++ b/examples/validating-public-input/aligned-integration/src/main.rs @@ -34,9 +34,9 @@ const ANVIL_PRIVATE_KEY: &str = #[derive(Debug, Clone, ValueEnum, PartialEq)] pub enum ProvingSystemArg { - #[clap(name = "SP1")] + #[value_enum(rename = "SP1")] SP1, - #[clap(name = "Risc0")] + #[value_enum(rename = "Risc0")] Risc0, }