diff --git a/cmd/soroban-cli/src/commands/lab/mod.rs b/cmd/soroban-cli/src/commands/lab/mod.rs index f405efe6d..ee5085e9e 100644 --- a/cmd/soroban-cli/src/commands/lab/mod.rs +++ b/cmd/soroban-cli/src/commands/lab/mod.rs @@ -1,21 +1,14 @@ use clap::Subcommand; use stellar_xdr::cli as xdr; -pub mod token; - #[derive(Debug, Subcommand)] pub enum Cmd { - /// Wrap, create, and manage token contracts - Token(token::Root), - /// Decode xdr Xdr(xdr::Root), } #[derive(thiserror::Error, Debug)] pub enum Error { - #[error(transparent)] - Token(#[from] token::Error), #[error(transparent)] Xdr(#[from] xdr::Error), } @@ -23,7 +16,6 @@ pub enum Error { impl Cmd { pub async fn run(&self) -> Result<(), Error> { match &self { - Cmd::Token(token) => token.run().await?, Cmd::Xdr(xdr) => xdr.run()?, } Ok(()) diff --git a/cmd/soroban-cli/src/commands/lab/token/mod.rs b/cmd/soroban-cli/src/commands/lab/token/mod.rs deleted file mode 100644 index bd7eacf36..000000000 --- a/cmd/soroban-cli/src/commands/lab/token/mod.rs +++ /dev/null @@ -1,38 +0,0 @@ -use std::fmt::Debug; - -use crate::commands::contract::{deploy, id}; -use clap::{Parser, Subcommand}; - -#[derive(Parser, Debug)] -pub struct Root { - #[clap(subcommand)] - cmd: Cmd, -} - -#[derive(Subcommand, Debug)] -enum Cmd { - /// Deploy a token contract to wrap an existing Stellar classic asset for smart contract usage - /// Deprecated, use `soroban contract deploy asset` instead - Wrap(deploy::asset::Cmd), - /// Compute the expected contract id for the given asset - /// Deprecated, use `soroban contract id asset` instead - Id(id::asset::Cmd), -} - -#[derive(thiserror::Error, Debug)] -pub enum Error { - #[error(transparent)] - Wrap(#[from] deploy::asset::Error), - #[error(transparent)] - Id(#[from] id::asset::Error), -} - -impl Root { - pub async fn run(&self) -> Result<(), Error> { - match &self.cmd { - Cmd::Wrap(wrap) => wrap.run().await?, - Cmd::Id(id) => id.run()?, - } - Ok(()) - } -}