Skip to content

Commit 4ba576b

Browse files
committed
Update Readme
1 parent d52400a commit 4ba576b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pyth-sdk-cw/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Pyth Network Terra SDK
1+
# Pyth Network CosmosWasm SDK
22

3-
This crate provides utilities for reading price feeds from the [pyth.network](https://pyth.network/) oracle on the Terra network.
4-
It also includes an [example contract](../examples/terra-contract/) demonstrating how to read price feeds from on-chain Terra applications.
3+
This crate provides utilities for reading price feeds from the [pyth.network](https://pyth.network/) oracle on the CosmWasm ecosystem.
4+
It also includes an [example contract](../examples/terra-contract/) demonstrating how to read price feeds from on-chain CosmWasm applications.
55

66
## Installation
77

8-
Add this crate to the dependencies section of your Terra contract's `Cargo.toml` file:
8+
Add this crate to the dependencies section of your CosmWasm contract's `Cargo.toml` file:
99

1010
```
1111
[dependencies]
12-
pyth-sdk-terra = { version = "<current version>" }
12+
pyth-sdk-cw = { version = "<current version>" }
1313
```
1414

15-
See [pyth-sdk-terra on crates.io](https://crates.io/crates/pyth-sdk-terra) to get the most recent version.
15+
See [pyth-sdk-cw on crates.io](https://crates.io/crates/pyth-sdk-cw) to get the most recent version.
1616

1717
## Usage
1818

19-
Simply call the `query_price_feed` function in your Terra contract with a price feed id:
19+
Simply call the `query_price_feed` function in your CosmWasm contract with a price feed id:
2020

2121
```rust
2222
// Pyth network testnet contract address
@@ -29,15 +29,15 @@ let current_price: Price = price_feed.get_current_price().ok_or_else(|| StdError
2929
println!("current BTC/USD price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, current_price.expo);
3030
```
3131

32-
`query_price_feed` makes a query to the Pyth Network Terra contract
32+
`query_price_feed` makes a query to the Pyth Network CosmWasm contract
3333
This query requires a price feed id that indicates the product whose price should be returned.
3434
Each product listed on Pyth Network (e.g., BTC/USD) has its own price feed id; see the [Contracts and Price Feeds](#contracts-and-price-feeds) section below for the possible products and their price feed ids.
3535
The result of the query is a `PriceFeed` struct which contains the current price of the product along with additional metadata.
3636
This struct also has some useful functions for manipulating and combining prices; see the [common SDK documentation](../pyth-sdk) for more details.
3737

3838
## Off-Chain Queries
3939

40-
You can use the provided schemas in the `schema` directory to directly query the terra contract from off-chain applications.
40+
You can use the provided schemas in the `schema` directory to directly query the CosmWasm contract from off-chain applications.
4141
A typical query requires to pass the price feed id as a hex string. it will look like:
4242

4343
```
@@ -52,9 +52,9 @@ By going to the contract address in [Terra Finder](https://finder.terra.money/)
5252

5353
## Contracts and Price Feeds
5454

55-
Pyth is currently only available in Terra testnet.
55+
Pyth is currently only available in Terra Classic testnet.
5656

57-
### Testnet
57+
### Terra Classic testnet
5858

5959
The contract address is [`terra1wzs3rgzgjdde3kg7k3aaz6qx7sc5dcwxqe9fuc`](https://finder.terra.money/testnet/address/terra1wzs3rgzgjdde3kg7k3aaz6qx7sc5dcwxqe9fuc).
6060

0 commit comments

Comments
 (0)