Skip to content

Commit

Permalink
update more refs
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Oct 16, 2024
1 parent a71a58d commit a4b02f7
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ JS library for interacting with [Soroban](https://soroban.stellar.org/) smart co
This library was automatically generated by Soroban CLI using a command similar to:

```bash
soroban contract bindings ts \
stellar contract bindings ts \
--rpc-url INSERT_RPC_URL_HERE \
--network-passphrase "INSERT_NETWORK_PASSPHRASE_HERE" \
--contract-id INSERT_CONTRACT_ID_HERE \
Expand All @@ -30,7 +30,7 @@ However, we've actually encountered [frustration](https://github.com/stellar/sor

```json
"scripts": {
"postinstall": "soroban contract bindings ts --rpc-url INSERT_RPC_URL_HERE --network-passphrase \"INSERT_NETWORK_PASSPHRASE_HERE\" --id INSERT_CONTRACT_ID_HERE --name INSERT_CONTRACT_NAME_HERE"
"postinstall": "stellar contract bindings ts --rpc-url INSERT_RPC_URL_HERE --network-passphrase \"INSERT_NETWORK_PASSPHRASE_HERE\" --id INSERT_CONTRACT_ID_HERE --name INSERT_CONTRACT_NAME_HERE"
}
```

Expand Down
8 changes: 4 additions & 4 deletions cmd/crates/soroban-spec-typescript/ts-tests/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ fi
exe() { echo"${@/eval/}" ; "$@" ; }

function fund_all() {
exe eval "./soroban keys generate root"
exe eval "./soroban keys fund root"
exe eval "./stellar keys generate root"
exe eval "./stellar keys fund root"
}
function deploy() {
exe eval "(./soroban contract deploy --quiet --source root --wasm $1 --ignore-checks) > $2"
exe eval "(./stellar contract deploy --quiet --source root --wasm $1 --ignore-checks) > $2"
}
function deploy_all() {
deploy ../../../../target/wasm32-unknown-unknown/test-wasms/test_custom_types.wasm contract-id-custom-types.txt
}
function bind() {
exe eval "./soroban contract bindings typescript --contract-id $(cat $1) --output-dir ./node_modules/$2 --overwrite"
exe eval "./stellar contract bindings typescript --contract-id $(cat $1) --output-dir ./node_modules/$2 --overwrite"
}
function bind_all() {
bind contract-id-custom-types.txt test-custom-types
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! **Soroban Test** - Test framework for invoking Soroban externally.
//!
//! Currently soroban provides a mock test environment for writing unit tets.
//! Currently stellar provides a mock test environment for writing unit tets.
//!
//! However, it does not provide a way to run tests against a local sandbox or rpc endpoint.
//!
Expand Down
28 changes: 14 additions & 14 deletions cmd/crates/soroban-test/tests/it/plugin.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This function calls the soroban executable via cargo and checks that the output
This function calls the stellar executable via cargo and checks that the output
is correct. The PATH environment variable is set to include the target/bin
directory, so that the soroban executable can be found.
directory, so that the stellar executable can be found.
*/

use std::{ffi::OsString, path::PathBuf};
Expand All @@ -10,9 +10,9 @@ use std::{ffi::OsString, path::PathBuf};
fn soroban_hello() {
// Add the target/bin directory to the iterator of paths
let paths = get_paths();
// Call soroban with the PATH variable set to include the target/bin directory
assert_cmd::Command::cargo_bin("soroban")
.unwrap_or_else(|_| assert_cmd::Command::new("soroban"))
// Call stellar with the PATH variable set to include the target/bin directory
assert_cmd::Command::cargo_bin("stellar")
.unwrap_or_else(|_| assert_cmd::Command::new("stellar"))
.arg("hello")
.env("PATH", &paths)
.assert()
Expand All @@ -21,9 +21,9 @@ fn soroban_hello() {

#[test]
fn list() {
// Call `soroban --list` with the PATH variable set to include the target/bin directory
assert_cmd::Command::cargo_bin("soroban")
.unwrap_or_else(|_| assert_cmd::Command::new("soroban"))
// Call `stellar --list` with the PATH variable set to include the target/bin directory
assert_cmd::Command::cargo_bin("stellar")
.unwrap_or_else(|_| assert_cmd::Command::new("stellar"))
.arg("--list")
.env("PATH", get_paths())
.assert()
Expand All @@ -33,9 +33,9 @@ fn list() {
#[test]
#[cfg(not(unix))]
fn has_no_path() {
// Call soroban with the PATH variable set to include just target/bin directory
assert_cmd::Command::cargo_bin("soroban")
.unwrap_or_else(|_| assert_cmd::Command::new("soroban"))
// Call stellar with the PATH variable set to include just target/bin directory
assert_cmd::Command::cargo_bin("stellar")
.unwrap_or_else(|_| assert_cmd::Command::new("stellar"))
.arg("hello")
.env("PATH", target_bin())
.assert()
Expand All @@ -44,9 +44,9 @@ fn has_no_path() {

#[test]
fn has_no_path_failure() {
// Call soroban with the PATH variable set to include just target/bin directory
assert_cmd::Command::cargo_bin("soroban")
.unwrap_or_else(|_| assert_cmd::Command::new("soroban"))
// Call stellar with the PATH variable set to include just target/bin directory
assert_cmd::Command::cargo_bin("stellar")
.unwrap_or_else(|_| assert_cmd::Command::new("stellar"))
.arg("hello")
.assert()
.stderr(predicates::str::contains("error: no such command: `hello`"));
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/tests/it/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ fn version() {
.new_assert_cmd("version")
.assert()
.success()
.stdout(format!("soroban {}\n", long()));
.stdout(format!("stellar {}\n", long()));
}
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/tx/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum Error {
}

// Command to return the transaction hash submitted to a network
/// e.g. `cat file.txt | soroban tx hash`
/// e.g. `cat file.txt | stellar tx hash`
#[derive(Debug, clap::Parser, Clone, Default)]
#[group(skip)]
pub struct Cmd {
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/tx/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum Error {
#[derive(Debug, clap::Parser, Clone)]
#[group(skip)]
/// Command to send a transaction envelope to the network
/// e.g. `cat file.txt | soroban tx send`
/// e.g. `cat file.txt | stellar tx send`
pub struct Cmd {
#[clap(flatten)]
pub network: network::Args,
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/tx/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub enum Error {
}

/// Command to simulate a transaction envelope via rpc
/// e.g. `cat file.txt | soroban tx simulate`
/// e.g. `cat file.txt | stellar tx simulate`
#[derive(Debug, clap::Parser, Clone, Default)]
#[group(skip)]
pub struct Cmd {
Expand Down

0 comments on commit a4b02f7

Please sign in to comment.