Skip to content

Commit bad19a8

Browse files
relocate rust api and example to https://github.com/pyth-network/pyth-client-rs
1 parent 28c0859 commit bad19a8

File tree

4 files changed

+2
-304
lines changed

4 files changed

+2
-304
lines changed

doc/aggregate_price.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Each `product` account refers to the head of a linked-list of `price` accounts.
3131

3232
## rust example
3333

34-
The rust example (pcrust/ or crates.io package pyth-client v0.1.1 ) program uses the solana rust RPC API to load and print all pyth product and price data by bootstrapping from the root `mapping` account key. The output looks something like this:
34+
The rust example (https://github.com/pyth-network/pyth-client-rs or crates.io package pyth-client v0.1.1 ) program uses the solana rust RPC API to load and print all pyth product and price data by bootstrapping from the root `mapping` account key. The output looks something like this:
3535

3636
```
3737
product_account .. 4SxmcsbJWVBWvuP2cRQDjFtAgdqzWWLbHESnUTH4CegT
@@ -91,3 +91,4 @@ The pyth price represents an aggregate derived from multiple contributing market
9191
The pyth program accumulates prices with respect to whatever the current slot is inside the solana node. This is called the "valid_slot" above. As soon as the slot ticks forward by one, the pyth program computes the aggregate price and publishes it with respect to the new "publish_slot" and starts repeating the process with a new "valid_slot".
9292

9393
The aggregate "status" of a price is subject to whether there are any valid contributors (i.e. "unknown" status) or whether any contributors are in a "halted" or "auction" state.
94+

pcrust/Cargo.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

pcrust/src/lib.rs

Lines changed: 0 additions & 137 deletions
This file was deleted.

pcrust/src/main.rs

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)