Skip to content

Commit 5a37f82

Browse files
author
Jayant Krishnamurthy
committed
2.6.2
1 parent 94192c4 commit 5a37f82

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/client",
3-
"version": "2.6.1",
3+
"version": "2.6.2",
44
"description": "Client for consuming Pyth price data",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

src/example_http_usage.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import {Cluster, clusterApiUrl, Connection} from '@solana/web3.js'
2-
import {getPythProgramKeyForCluster} from './cluster'
3-
import {PriceStatus, PythHttpClient} from '.'
1+
import { Cluster, clusterApiUrl, Connection } from '@solana/web3.js'
2+
import { getPythProgramKeyForCluster } from './cluster'
3+
import { PriceStatus, PythHttpClient } from '.'
44

55
const SOLANA_CLUSTER_NAME: Cluster = 'mainnet-beta'
66
const connection = new Connection(clusterApiUrl(SOLANA_CLUSTER_NAME))
77
const pythPublicKey = getPythProgramKeyForCluster(SOLANA_CLUSTER_NAME)
88

99
async function runQuery(): Promise<void> {
10-
const pythClient = new PythHttpClient(connection, pythPublicKey);
11-
const data = await pythClient.getData();
10+
const pythClient = new PythHttpClient(connection, pythPublicKey)
11+
const data = await pythClient.getData()
1212

1313
for (const symbol of data.symbols) {
14-
const price = data.productPrice.get(symbol)!;
14+
const price = data.productPrice.get(symbol)!
1515

1616
if (price.price && price.confidence) {
1717
// tslint:disable-next-line:no-console
@@ -23,4 +23,4 @@ async function runQuery(): Promise<void> {
2323
}
2424
}
2525

26-
runQuery()
26+
runQuery()

src/example_ws_usage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {Cluster, clusterApiUrl, Connection} from '@solana/web3.js'
2-
import {PythConnection} from './PythConnection'
3-
import {getPythProgramKeyForCluster} from './cluster'
4-
import {PriceStatus} from '.'
1+
import { Cluster, clusterApiUrl, Connection } from '@solana/web3.js'
2+
import { PythConnection } from './PythConnection'
3+
import { getPythProgramKeyForCluster } from './cluster'
4+
import { PriceStatus } from '.'
55

66
const SOLANA_CLUSTER_NAME: Cluster = 'mainnet-beta'
77
const connection = new Connection(clusterApiUrl(SOLANA_CLUSTER_NAME))

0 commit comments

Comments
 (0)