Skip to content

Commit 8775f62

Browse files
committed
fix a few more issues
1 parent 0eb047c commit 8775f62

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ This guide is intended to serve users who wants to consume prices from the Pyth
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 EVM smart contracts to parse the price updates.
9+
1. **Use** Pyth Lazer SDK in EVM 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

15-
### Use Pyth Lazer SDK into smart contracts
15+
### Use Pyth Lazer SDK in smart contracts
1616

17-
Pyth Lazer provides a [solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
17+
Pyth Lazer provides a [Solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
1818

1919
```bash copy
20-
forge install pythnet/pyth-crosschain
20+
forge install pyth-network/pyth-crosschain
2121
```
2222

2323
Add the following to `requirements.txt{:js}` file:
2424

2525
```bash copy
26-
pyth-lazer-sdk/=lib/pythnet/pyth-crosschain/lazer/contracts/evm
26+
pyth-lazer-sdk/=lib/pyth-network/pyth-crosschain/lazer/contracts/evm
2727
```
2828

2929
Once the SDK is installed, one can import the sdk into smart contracts:
3030

3131
```solidity copy
32-
import { PythLazer } from "pyth-lazer/PythLazer.sol";
33-
import { PythLazerLib } from "pyth-lazer/PythLazerLib.sol";
32+
import { PythLazer } from "pyth-lazer-sdk/PythLazer.sol";
33+
import { PythLazerLib } from "pyth-lazer-sdk/PythLazerLib.sol";
3434
3535
```
3636

@@ -127,7 +127,7 @@ for (uint8 i = 0; i < feedsLen; i++) {
127127

128128
### Subscribe to Pyth Lazer to receive Price Updates
129129

130-
Pyth Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Lazer also provides a [typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
130+
Pyth Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
131131

132132
Consult [How to fetch price updates from Pyth Lazer](../fetch-price-updates.mdx) for a complete step-by-step guide.
133133

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ if data.feeds.is_empty() || data.feeds[0].properties.is_empty() {
174174
}
175175
```
176176

177-
Now you can update the state accourding to the contract's logic.
177+
Now you can update the state according to the contract's logic:
178178

179179
```rust copy
180180
// Read the data PDA of our example contract.

0 commit comments

Comments
 (0)