@@ -14,13 +14,16 @@ pub mod multisend;
1414pub mod multisig;
1515pub mod preimage;
1616pub mod recovery;
17+ pub mod referenda;
18+ pub mod referenda_decode;
1719pub mod reversible;
1820pub mod runtime;
1921pub mod scheduler;
2022pub mod send;
2123pub mod storage;
2224pub mod system;
2325pub mod tech_collective;
26+ pub mod tech_referenda;
2427pub mod transfers;
2528pub mod treasury;
2629pub 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