Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated lab token command #1306

Merged
merged 3 commits into from
May 1, 2024
Merged
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
10 changes: 1 addition & 9 deletions cmd/soroban-cli/src/commands/lab/mod.rs
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
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),
}

impl Cmd {
pub async fn run(&self) -> Result<(), Error> {
pub fn run(&self) -> Result<(), Error> {
match &self {
Cmd::Token(token) => token.run().await?,
Cmd::Xdr(xdr) => xdr.run()?,
}
Ok(())
Expand Down
38 changes: 0 additions & 38 deletions cmd/soroban-cli/src/commands/lab/token/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Root {
Cmd::Completion(completion) => completion.run(),
Cmd::Contract(contract) => contract.run(&self.global_args).await?,
Cmd::Events(events) => events.run().await?,
Cmd::Lab(lab) => lab.run().await?,
Cmd::Lab(lab) => lab.run()?,
Cmd::Network(network) => network.run().await?,
Cmd::Version(version) => version.run(),
Cmd::Keys(id) => id.run().await?,
Expand Down
69 changes: 0 additions & 69 deletions docs/soroban-cli-full-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ This document contains the help content for the `soroban` command-line program.
* [`soroban keys rm`↴](#soroban-keys-rm)
* [`soroban keys show`↴](#soroban-keys-show)
* [`soroban lab`↴](#soroban-lab)
* [`soroban lab token`↴](#soroban-lab-token)
* [`soroban lab token wrap`↴](#soroban-lab-token-wrap)
* [`soroban lab token id`↴](#soroban-lab-token-id)
* [`soroban lab xdr`↴](#soroban-lab-xdr)
* [`soroban lab xdr types`↴](#soroban-lab-xdr-types)
* [`soroban lab xdr types list`↴](#soroban-lab-xdr-types-list)
Expand Down Expand Up @@ -1331,76 +1328,10 @@ Experiment with early features and expert tools

###### **Subcommands:**

* `token` — Wrap, create, and manage token contracts
* `xdr` — Decode xdr



## `soroban lab token`

Wrap, create, and manage token contracts

**Usage:** `soroban lab token <COMMAND>`

###### **Subcommands:**

* `wrap` — Deploy a token contract to wrap an existing Stellar classic asset for smart contract usage Deprecated, use `soroban contract deploy asset` instead
* `id` — Compute the expected contract id for the given asset Deprecated, use `soroban contract id asset` instead



## `soroban lab token wrap`

Deploy a token contract to wrap an existing Stellar classic asset for smart contract usage Deprecated, use `soroban contract deploy asset` instead

**Usage:** `soroban lab token wrap [OPTIONS] --asset <ASSET> --source-account <SOURCE_ACCOUNT>`

###### **Options:**

* `--asset <ASSET>` — ID of the Stellar classic asset to wrap, e.g. "USDC:G...5"
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config

Possible values: `true`, `false`

* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
* `--cost` — Output the cost execution to stderr

Possible values: `true`, `false`

* `--instructions <INSTRUCTIONS>` — Number of instructions to simulate



## `soroban lab token id`

Compute the expected contract id for the given asset Deprecated, use `soroban contract id asset` instead

**Usage:** `soroban lab token id [OPTIONS] --asset <ASSET> --source-account <SOURCE_ACCOUNT>`

###### **Options:**

* `--asset <ASSET>` — ID of the Stellar classic asset to wrap, e.g. "USDC:G...5"
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config

Possible values: `true`, `false`

* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



## `soroban lab xdr`

Decode xdr
Expand Down
Loading