Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ pub mod multisend;
pub mod multisig;
pub mod preimage;
pub mod recovery;
pub mod referenda;
pub mod referenda_decode;
pub mod reversible;
pub mod runtime;
pub mod scheduler;
pub mod send;
pub mod storage;
pub mod system;
pub mod tech_collective;
pub mod tech_referenda;
pub mod transfers;
pub mod treasury;
pub mod wallet;
Expand Down Expand Up @@ -96,10 +99,18 @@ pub enum Commands {
#[command(subcommand)]
TechCollective(tech_collective::TechCollectiveCommands),

/// Tech Referenda management commands (for runtime upgrade proposals)
/// Preimage management commands
#[command(subcommand)]
Preimage(preimage::PreimageCommands),

/// Tech Referenda management commands (for runtime upgrade proposals)
#[command(subcommand)]
TechReferenda(tech_referenda::TechReferendaCommands),

/// Standard Referenda management commands (public governance)
#[command(subcommand)]
Referenda(referenda::ReferendaCommands),

/// Treasury account info
#[command(subcommand)]
Treasury(treasury::TreasuryCommands),
Expand Down Expand Up @@ -353,6 +364,15 @@ pub async fn execute_command(
.await,
Commands::Preimage(preimage_cmd) =>
preimage::handle_preimage_command(preimage_cmd, node_url, execution_mode).await,
Commands::TechReferenda(tech_referenda_cmd) =>
tech_referenda::handle_tech_referenda_command(
tech_referenda_cmd,
node_url,
execution_mode,
)
.await,
Commands::Referenda(referenda_cmd) =>
referenda::handle_referenda_command(referenda_cmd, node_url, execution_mode).await,
Commands::Treasury(treasury_cmd) =>
treasury::handle_treasury_command(treasury_cmd, node_url, execution_mode).await,
Commands::Transfers(transfers_cmd) =>
Expand Down
Loading