Skip to content

Commit eb7de93

Browse files
authored
lazer: Add mentions to Fogo (#757)
1 parent 0bad6b7 commit eb7de93

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

pages/lazer/integrate-as-consumer.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
The following guides demonstrate how to integrate Pyth Lazer as a consumer in your application.
44

5-
Lazer is available in Solana and EVM. Please consult the following guides to get started:
5+
Lazer is available in Solana, Fogo, and EVM. Please consult the following guides to get started:
66

7-
- [Solana](integrate-as-consumer/svm)
7+
- [Solana and Fogo](integrate-as-consumer/svm)
88
- [EVM](integrate-as-consumer/evm)
99

1010
Lazer price feeds can also be used in off-chain applications. See the
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"evm": "on EVM chains",
3-
"svm": "on Solana"
3+
"svm": "on Solana and Fogo"
44
}

pages/lazer/integrate-as-consumer/svm.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
import { Callout, Tabs, Steps } from "nextra/components";
22

3-
# Integrate Pyth Lazer as a Consumer on Solana
3+
# Integrate Pyth Lazer as a Consumer on Solana and Fogo
44

5-
This guide is intended to serve users who wants to consume prices from the Pyth Lazer on **Solana**.
5+
This guide is intended to serve users who wants to consume prices from the Pyth Lazer on **Solana and Fogo**.
66

77
Integrating with Pyth Lazer in smart contracts as a consumer is a three-step process:
88

9-
1. **Use** Pyth Lazer SDK into Solana smart contracts to parse the price updates.
9+
1. **Use** Pyth Lazer SDK into SVM smart contracts to parse the price updates.
1010
2. **Subscribe** to Pyth Lazer websocket to receive price updates on backend or frontend.
1111
3. **Include** the price updates into the smart contract transactions.
1212

1313
<Steps>
1414

1515
### Use Pyth Lazer SDK in smart contracts
1616

17-
Pyth Lazer provides a [Solana SDK](https://docs.rs/pyth-lazer-solana-contract/latest/pyth_lazer_solana_contract/), which allows consumers to parse and verify the price updates on Solana-compatible chains.
17+
Pyth Lazer provides a [Solana SDK](https://docs.rs/pyth-lazer-solana-contract/latest/pyth_lazer_solana_contract/),
18+
which allows consumers to parse and verify the price updates on Solana-compatible chains (such as Fogo).
1819

1920
To start, add the following to your `Cargo.toml` file (please check the current latest version at [crates.io](https://crates.io/crates/pyth-lazer-solana-contract)):
2021

@@ -43,7 +44,7 @@ You may also add any other accounts your contract needs.
4344
Github](https://github.com/pyth-network/pyth-examples/tree/main/lazer/solana).
4445
</Callout>
4546

46-
The following code can be used to set up a new instruction within a Solana contract:
47+
The following code can be used to set up a new instruction within a SVM contract:
4748

4849
```rust copy
4950
use num_derive::FromPrimitive;
@@ -153,12 +154,12 @@ invoke(
153154
```
154155

155156
<Callout type="info" icon="💡">
156-
Note: When using native ed25519 signatures on Solana, we must use the built-in
157-
ed25519 program provided by the Solana runtime. This program can't be invoked
157+
Note: When using native ed25519 signatures on SVM, we must use the built-in
158+
ed25519 program provided by the SVM runtime. This program can't be invoked
158159
from another contract. Instead, it must be called in an explicit instruction
159160
within the submitted transaction. This means that the sender of the
160161
transaction must include that instruction in the transaction. Our SDK
161-
leverages Solana runtime capabilities to ensure the ed25519 program has been
162+
leverages SVM runtime capabilities to ensure the ed25519 program has been
162163
correctly called in the transaction.
163164
</Callout>
164165

@@ -267,7 +268,7 @@ let mut tx = Transaction::new_with_payer(
267268

268269
## Additional Resources
269270

270-
You may find these additional resources helpful for integrating Pyth Lazer into your Solana smart contracts.
271+
You may find these additional resources helpful for integrating Pyth Lazer into your SVM smart contracts.
271272

272273
### Price Feed IDs
273274

0 commit comments

Comments
 (0)