Skip to content

Commit c703192

Browse files
committed
Restore untouched files 2
1 parent f28206a commit c703192

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/example_ws_usage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const pythPublicKey = getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME)
1010
const pythConnection = new PythConnection(connection, pythPublicKey)
1111
pythConnection.onPriceChangeVerbose((productAccount, priceAccount) => {
1212
// The arguments to the callback include solana account information / the update slot if you need it.
13-
const product = productAccount.accountInfo.data.product
14-
const price = priceAccount.accountInfo.data
13+
const product = productAccount.accountInfo.data.product;
14+
const price = priceAccount.accountInfo.data;
1515
// sample output:
1616
// SOL/USD: $14.627930000000001 ±$0.01551797
1717
if (price.price && price.confidence) {

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,3 +370,4 @@ export const parsePriceData = (data: Buffer, currentSlot?: number): PriceData =>
370370
export { PythConnection } from './PythConnection'
371371
export { PythHttpClient } from './PythHttpClient'
372372
export { getPythProgramKeyForCluster } from './cluster'
373+
export { pythOracleProgram, PythOracleCoder } from './anchor'

0 commit comments

Comments
 (0)