Skip to content

Commit c022068

Browse files
committed
feat: Referenda commands restored
1 parent 396809d commit c022068

6 files changed

Lines changed: 1891 additions & 2 deletions

File tree

src/cli/mod.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ pub mod multisend;
1414
pub mod multisig;
1515
pub mod preimage;
1616
pub mod recovery;
17+
pub mod referenda;
18+
pub mod referenda_decode;
1719
pub mod reversible;
1820
pub mod runtime;
1921
pub mod scheduler;
2022
pub mod send;
2123
pub mod storage;
2224
pub mod system;
2325
pub mod tech_collective;
26+
pub mod tech_referenda;
2427
pub mod transfers;
2528
pub mod treasury;
2629
pub mod wallet;
@@ -96,10 +99,18 @@ pub enum Commands {
9699
#[command(subcommand)]
97100
TechCollective(tech_collective::TechCollectiveCommands),
98101

99-
/// Tech Referenda management commands (for runtime upgrade proposals)
102+
/// Preimage management commands
100103
#[command(subcommand)]
101104
Preimage(preimage::PreimageCommands),
102105

106+
/// Tech Referenda management commands (for runtime upgrade proposals)
107+
#[command(subcommand)]
108+
TechReferenda(tech_referenda::TechReferendaCommands),
109+
110+
/// Standard Referenda management commands (public governance)
111+
#[command(subcommand)]
112+
Referenda(referenda::ReferendaCommands),
113+
103114
/// Treasury account info
104115
#[command(subcommand)]
105116
Treasury(treasury::TreasuryCommands),
@@ -353,6 +364,15 @@ pub async fn execute_command(
353364
.await,
354365
Commands::Preimage(preimage_cmd) =>
355366
preimage::handle_preimage_command(preimage_cmd, node_url, execution_mode).await,
367+
Commands::TechReferenda(tech_referenda_cmd) =>
368+
tech_referenda::handle_tech_referenda_command(
369+
tech_referenda_cmd,
370+
node_url,
371+
execution_mode,
372+
)
373+
.await,
374+
Commands::Referenda(referenda_cmd) =>
375+
referenda::handle_referenda_command(referenda_cmd, node_url, execution_mode).await,
356376
Commands::Treasury(treasury_cmd) =>
357377
treasury::handle_treasury_command(treasury_cmd, node_url, execution_mode).await,
358378
Commands::Transfers(transfers_cmd) =>

0 commit comments

Comments
 (0)