You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/getting_started.md
+5-15Lines changed: 5 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The pyth-client repo consists of a C++ library (libpc.a), a command-line administration tool (pyth) and a json/websocket-based server (pythd).
4
4
5
-
You can integrate with libpc directly in your application (see`pctest/test_publish.cpp`example) or connect to the pythd server and interact via json-based messaging over websockets (see `pctest/test_publish.py`).
5
+
You can integrate with libpc directly in your application. See`pctest/test_publish.cpp`ifor an example.
6
6
7
7
Before doing this you need to setup a *key-store* directory. A key-store is a collection of cryptographic keys for interracting with the solana block-chain. This can be done via the pyth command-line tool. First, build the project by following the instructions in the README.md file and cd to the build directory, then run the following:
8
8
@@ -20,7 +20,7 @@ This creates the directory (if it didnt already exist) and creates a key-pair fi
20
20
Please extract the public key from this key-pair and send it to the administrator so it can be permissioned for your symbols of interest. The public key can be extracted as follows:
21
21
22
22
```
23
-
./pyth pub_key $KDIR/publish_key_pair.json
23
+
./pyth get_pub_key $KDIR/publish_key_pair.json
24
24
```
25
25
26
26
This will output the public key in base58 encoding and will look something like:
@@ -29,26 +29,16 @@ This will output the public key in base58 encoding and will look something like:
29
29
5rYvdyWAunZgD2EC1aKo7hQbutUUnkt7bBFM6xNq2z7Z
30
30
```
31
31
32
-
Once permissioned, you need two additional public keys in the key-store. The id of the so-called mapping-account that contains the list of on-chain symbols and the id of the on-chain oracle program that you use to publish prices. A program already exists to initialize these for testing on solana devnet:
32
+
Once permissioned, you need two additional public keys in the key-store. The id of the mapping-account that contains the directory listing of the on-chain symbols and the id of the on-chain oracle program that you use to publish prices. A program already exists to initialize these for testing:
33
33
34
34
```
35
35
../pctest/init_key_store.sh $KDIR
36
36
```
37
37
38
38
This creates two files: `$KDIR/program_key.json` and `$KDIR/mapping_key.json`.
39
39
40
-
Once pemissioned, you can test your setup by running the test_publisher.cpp example program for publishing and subscribing to two symbols on the devnet solana chain:
40
+
Once pemissioned, you can test your setup by running the test_publish.cpp example program for publishing and subscribing to two symbols on the test solana node:
41
41
42
42
```
43
-
./test_publish -k $KDIR -r devnet.solana.com
44
-
```
45
-
46
-
There is a python version of the same program that uses the pythd server instead to publish prices on-chain:
0 commit comments