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

Commit

Permalink
Expose method getLatestVaas and bump version (#82)
Browse files Browse the repository at this point in the history
* expose method getLatestVaas and bump version

* update comment

* bump version
  • Loading branch information
Dev Kalra authored Jan 13, 2023
1 parent 1df1e32 commit abb345c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
14 changes: 7 additions & 7 deletions pyth-common-js/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 pyth-common-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-common-js",
"version": "1.2.0",
"version": "1.2.1",
"description": "Pyth Network Common Utils in JS",
"author": {
"name": "Pyth Data Association"
Expand Down
6 changes: 2 additions & 4 deletions pyth-common-js/src/PriceServiceConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,12 @@ export class PriceServiceConnection {
* Fetch latest VAA of given price ids.
* 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)
*
* This function is coupled to wormhole implemntation and chain specific libraries use
* it to expose on-demand relaying functionality. Hence, this is not be exposed as a public
* api to the users and is annotated as protected.
* This function is coupled to wormhole implemntation.
*
* @param priceIds Array of hex-encoded price ids.
* @returns Array of base64 encoded VAAs.
*/
protected async getLatestVaas(priceIds: HexString[]): Promise<string[]> {
async getLatestVaas(priceIds: HexString[]): Promise<string[]> {
const response = await this.httpClient.get("/api/latest_vaas", {
params: {
ids: priceIds,
Expand Down

0 comments on commit abb345c

Please sign in to comment.