Skip to content

Commit

Permalink
fix: docs for source account (#542)
Browse files Browse the repository at this point in the history
* fix: docs for source account

* Apply suggestions from code review

Co-authored-by: Paul Bellamy <[email protected]>

* Update cmd/soroban-cli/src/commands/config/mod.rs

Co-authored-by: Chad Ostrowski <[email protected]>

* Update cmd/soroban-cli/src/commands/config/mod.rs

Co-authored-by: Chad Ostrowski <[email protected]>

* update comprehensive cli docs

---------

Co-authored-by: Paul Bellamy <[email protected]>
Co-authored-by: Chad Ostrowski <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2023
1 parent d8c3e58 commit 9f15784
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
8 changes: 2 additions & 6 deletions cmd/soroban-cli/src/commands/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,11 @@ pub struct Args {
pub ledger_file: ledger_file::Args,

#[arg(long, alias = "source", env = "SOROBAN_ACCOUNT")]
/// Account that signs the final transaction.
/// S... a seceret key
/// alice an identity
/// 'kite urban. a seed phrase
/// DEFAULT Is the key generated with `identity generate --seed 0000000000000000
/// 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`
pub source_account: Option<String>,

#[arg(long)]
/// If using a seed phrase, which hd path to use, e.g. `m/44'/148'/{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`
pub hd_path: Option<usize>,

#[command(flatten)]
Expand Down
16 changes: 8 additions & 8 deletions docs/soroban-cli-full-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ Deploy a contract
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--ledger-file <LEDGER_FILE>` — File to persist ledger state, default is `.soroban/ledger.json`
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. S... a seceret key alice an identity 'kite urban. a seed phrase DEFAULT Is the key generated with `identity generate --seed 0000000000000000
* `--hd-path <HD_PATH>` — If using a seed phrase, which hd path to use, e.g. `m/44'/148'/{hd_path}`
* `--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
* `--pwd <PWD>`

Expand Down Expand Up @@ -160,8 +160,8 @@ Install a WASM file to the ledger without creating a contract instance
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--ledger-file <LEDGER_FILE>` — File to persist ledger state, default is `.soroban/ledger.json`
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. S... a seceret key alice an identity 'kite urban. a seed phrase DEFAULT Is the key generated with `identity generate --seed 0000000000000000
* `--hd-path <HD_PATH>` — If using a seed phrase, which hd path to use, e.g. `m/44'/148'/{hd_path}`
* `--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
* `--pwd <PWD>`

Expand Down Expand Up @@ -194,8 +194,8 @@ soroban contract invoke ... -- --help
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--ledger-file <LEDGER_FILE>` — File to persist ledger state, default is `.soroban/ledger.json`
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. S... a seceret key alice an identity 'kite urban. a seed phrase DEFAULT Is the key generated with `identity generate --seed 0000000000000000
* `--hd-path <HD_PATH>` — If using a seed phrase, which hd path to use, e.g. `m/44'/148'/{hd_path}`
* `--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
* `--pwd <PWD>`
* `--events-file <PATH>` — File to persist events, default is `.soroban/events.json`
Expand Down Expand Up @@ -523,8 +523,8 @@ Deploy a token contract to wrap an existing Stellar classic asset for smart cont
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
* `--ledger-file <LEDGER_FILE>` — File to persist ledger state, default is `.soroban/ledger.json`
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. S... a seceret key alice an identity 'kite urban. a seed phrase DEFAULT Is the key generated with `identity generate --seed 0000000000000000
* `--hd-path <HD_PATH>` — If using a seed phrase, which hd path to use, e.g. `m/44'/148'/{hd_path}`
* `--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
* `--pwd <PWD>`

Expand Down

0 comments on commit 9f15784

Please sign in to comment.