Skip to content
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
6 changes: 4 additions & 2 deletions src/content/data-feeds/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6022,10 +6022,12 @@ Before you begin, you should have:

To complete this guide, you'll need:

- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run stellar --version to verify your installation.
- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run stellar --version to verify your installation. This guide uses Stellar CLI v25 or later.

- **Rust toolchain**: Install [Rust](https://www.rust-lang.org/tools/install) using [rustup](https://rustup.rs/). Run cargo --version to verify your installation.

- **soroban-sdk**: The `stellar contract init` command scaffolds a project that depends on the latest `soroban-sdk` (v25 or later). The contract in this guide compiles against `soroban-sdk` v21 and later. If you pin an older version, use v21 or later.

- **Testnet XLM**: You'll need testnet XLM to deploy your contract. Fund a Stellar Testnet account using the friendbot faucet. Testnet XLM has no real value.

## Set up your Stellar testnet account
Expand Down Expand Up @@ -6106,7 +6108,7 @@ To complete this guide, you'll need:
/// Read the latest round for a feed and return its answer.
pub fn read_latest_price(env: Env, proxy: Address, data_id: BytesN<32>) -> I256 {
let client = DataFeedsProxyClient::new(&env, &proxy);
let round = client.latest_round(&data_id, &18).unwrap();
let round = client.latest_round(&data_id, &18);
round.answer
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ Before you begin, you should have:

To complete this guide, you'll need:

- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run <CopyText text="stellar --version" code /> to verify your installation.
- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run <CopyText text="stellar --version" code /> to verify your installation. This guide uses Stellar CLI v25 or later.

- **Rust toolchain**: Install [Rust](https://www.rust-lang.org/tools/install) using [rustup](https://rustup.rs/). Run <CopyText text="cargo --version" code /> to verify your installation.

- **soroban-sdk**: The `stellar contract init` command scaffolds a project that depends on the latest `soroban-sdk` (v25 or later). The contract in this guide compiles against `soroban-sdk` v21 and later. If you pin an older version, use v21 or later.

- **Testnet XLM**: You'll need testnet XLM to deploy your contract. Fund a Stellar Testnet account using the friendbot faucet. Testnet XLM has no real value.

## Set up your Stellar testnet account
Expand Down Expand Up @@ -127,7 +129,7 @@ To complete this guide, you'll need:
/// Read the latest round for a feed and return its answer.
pub fn read_latest_price(env: Env, proxy: Address, data_id: BytesN<32>) -> I256 {
let client = DataFeedsProxyClient::new(&env, &proxy);
let round = client.latest_round(&data_id, &18).unwrap();
let round = client.latest_round(&data_id, &18);
round.answer
}
}
Expand Down
Loading