Skip to content

Commit 72892be

Browse files
committed
update examples
1 parent 9cf091c commit 72892be

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/example_http_usage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Connection } from '@solana/web3.js'
2-
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from './cluster'
3-
import { PriceStatus, PythHttpClient } from '.'
2+
import { PriceStatus, PythHttpClient, getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from '.'
43

54
const PYTHNET_CLUSTER_NAME: PythCluster = 'pythnet'
65
const connection = new Connection(getPythClusterApiUrl(PYTHNET_CLUSTER_NAME))

src/example_ws_usage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Connection } from '@solana/web3.js'
22
import { PythConnection } from './PythConnection'
3-
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from './cluster'
4-
import { PriceStatus } from '.'
3+
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster, PriceStatus } from '.'
54

65
const PYTHNET_CLUSTER_NAME: PythCluster = 'pythnet'
76
const connection = new Connection(getPythClusterApiUrl(PYTHNET_CLUSTER_NAME))

0 commit comments

Comments
 (0)