diff --git a/crates/bin/pcli/src/command/tx.rs b/crates/bin/pcli/src/command/tx.rs index 6ae6950881..d3aa2fa534 100644 --- a/crates/bin/pcli/src/command/tx.rs +++ b/crates/bin/pcli/src/command/tx.rs @@ -22,6 +22,7 @@ use ibc_types::core::{ client::Height as IbcHeight, }; use ibc_types::lightclients::tendermint::client_state::ClientState as TendermintClientState; +use lqt_vote::LqtVoteCmd; use rand_core::OsRng; use regex::Regex; @@ -82,6 +83,7 @@ use clap::Parser; mod auction; mod liquidity_position; +mod lqt_vote; mod proposal; mod replicate; @@ -311,6 +313,8 @@ pub enum TxCmd { /// The transaction to be broadcast transaction: PathBuf, }, + #[clap(display_order = 700)] + LqtVote(LqtVoteCmd), } /// Vote on a governance proposal. @@ -368,6 +372,7 @@ impl TxCmd { TxCmd::Auction(_) => false, TxCmd::Broadcast { .. } => false, TxCmd::RegisterForwardingAccount { .. } => false, + TxCmd::LqtVote(cmd) => cmd.offline(), } } @@ -1553,6 +1558,7 @@ impl TxCmd { println!("Noble response: {:?}", r); } + TxCmd::LqtVote(cmd) => cmd.exec(app).await?, } Ok(()) diff --git a/crates/bin/pcli/src/command/tx/lqt_vote.rs b/crates/bin/pcli/src/command/tx/lqt_vote.rs new file mode 100644 index 0000000000..d8bd3ce206 --- /dev/null +++ b/crates/bin/pcli/src/command/tx/lqt_vote.rs @@ -0,0 +1,20 @@ +use crate::App; + +/// Vote in the current round of the liquidity tournament. +/// +/// This will plan a transaction which directs all available voting power to a single asset. +#[derive(Debug, clap::Parser)] +pub struct LqtVoteCmd { + /// The denom string for the asset being voted for. + vote: String, +} + +impl LqtVoteCmd { + pub fn offline(&self) -> bool { + false + } + + pub async fn exec(&self, _app: &mut App) -> anyhow::Result<()> { + unimplemented!() + } +}