Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit abb345c

Browse files
author
Dev Kalra
authored
Expose method getLatestVaas and bump version (#82)
* expose method getLatestVaas and bump version * update comment * bump version
1 parent 1df1e32 commit abb345c

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

pyth-common-js/package-lock.json

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

pyth-common-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-common-js",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Pyth Network Common Utils in JS",
55
"author": {
66
"name": "Pyth Data Association"

pyth-common-js/src/PriceServiceConnection.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,12 @@ export class PriceServiceConnection {
120120
* Fetch latest VAA of given price ids.
121121
* This will throw an axios error if there is a network problem or the price service returns a non-ok response (e.g: Invalid price ids)
122122
*
123-
* This function is coupled to wormhole implemntation and chain specific libraries use
124-
* it to expose on-demand relaying functionality. Hence, this is not be exposed as a public
125-
* api to the users and is annotated as protected.
123+
* This function is coupled to wormhole implemntation.
126124
*
127125
* @param priceIds Array of hex-encoded price ids.
128126
* @returns Array of base64 encoded VAAs.
129127
*/
130-
protected async getLatestVaas(priceIds: HexString[]): Promise<string[]> {
128+
async getLatestVaas(priceIds: HexString[]): Promise<string[]> {
131129
const response = await this.httpClient.get("/api/latest_vaas", {
132130
params: {
133131
ids: priceIds,

0 commit comments

Comments
 (0)