Skip to content

Commit f827e04

Browse files
authored
Merge pull request #63 from jacksturt/main
Export all items from cluster
2 parents fda69e2 + 74d478b commit f827e04

6 files changed

+10
-8
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.13.1
4+
5+
- Export `PythCluster` and `getPythClusterApiUrl` globally
6+
37
## 2.13.0
48

59
- Add method to fetch individual prices specified by user

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

src/example_http_usage.ts

+1-2
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

+1-2
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))

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,5 @@ export const parsePermissionData = (data: Buffer): PermissionData => {
394394

395395
export { PythConnection } from './PythConnection'
396396
export { PythHttpClient } from './PythHttpClient'
397-
export { getPythProgramKeyForCluster } from './cluster'
397+
export { getPythProgramKeyForCluster, PythCluster, getPythClusterApiUrl } from './cluster'
398398
export { pythOracleProgram, pythOracleCoder, pythIdl } from './anchor'

0 commit comments

Comments
 (0)