Skip to content

Commit

Permalink
Merge pull request #63 from jacksturt/main
Browse files Browse the repository at this point in the history
Export all items from cluster
  • Loading branch information
guibescos authored Feb 4, 2023
2 parents fda69e2 + 74d478b commit f827e04
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.13.1

- Export `PythCluster` and `getPythClusterApiUrl` globally

## 2.13.0

- Add method to fetch individual prices specified by user
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/client",
"version": "2.13.0",
"version": "2.13.1",
"description": "Client for consuming Pyth price data",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/example_http_usage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Connection } from '@solana/web3.js'
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from './cluster'
import { PriceStatus, PythHttpClient } from '.'
import { PriceStatus, PythHttpClient, getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from '.'

const PYTHNET_CLUSTER_NAME: PythCluster = 'pythnet'
const connection = new Connection(getPythClusterApiUrl(PYTHNET_CLUSTER_NAME))
Expand Down
3 changes: 1 addition & 2 deletions src/example_ws_usage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Connection } from '@solana/web3.js'
import { PythConnection } from './PythConnection'
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster } from './cluster'
import { PriceStatus } from '.'
import { getPythClusterApiUrl, getPythProgramKeyForCluster, PythCluster, PriceStatus } from '.'

const PYTHNET_CLUSTER_NAME: PythCluster = 'pythnet'
const connection = new Connection(getPythClusterApiUrl(PYTHNET_CLUSTER_NAME))
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,5 +394,5 @@ export const parsePermissionData = (data: Buffer): PermissionData => {

export { PythConnection } from './PythConnection'
export { PythHttpClient } from './PythHttpClient'
export { getPythProgramKeyForCluster } from './cluster'
export { getPythProgramKeyForCluster, PythCluster, getPythClusterApiUrl } from './cluster'
export { pythOracleProgram, pythOracleCoder, pythIdl } from './anchor'

0 comments on commit f827e04

Please sign in to comment.