From 8ca144dec03af7672d652532fb8b0c7284c18df6 Mon Sep 17 00:00:00 2001 From: racso2609 Date: Fri, 26 Apr 2024 12:20:38 -0400 Subject: [PATCH 1/2] include funciton --- src/pyth/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pyth/index.ts b/src/pyth/index.ts index 2c1aaed..4c178e2 100644 --- a/src/pyth/index.ts +++ b/src/pyth/index.ts @@ -1,6 +1,12 @@ import { AxiosInstance } from 'axios'; import { PythConfig } from '../interfaces/classConfigs'; -import { getLatestPricesFromPyth, getPythClient, getVaaPriceUpdateData, normalizePythPriceForParifi } from './pyth'; +import { + getLatestPricesFromPyth, + getLatestPricesNormalized, + getPythClient, + getVaaPriceUpdateData, + normalizePythPriceForParifi, +} from './pyth'; import { getPriceIdsForCollaterals } from '../common'; export class Pyth { @@ -31,6 +37,10 @@ export class Pyth { return await getLatestPricesFromPyth(priceIds, this.pythClient); } + public async getLatestPricesNormalized(priceIds: string[]) { + return await getLatestPricesNormalized(priceIds, this.pythClient); + } + public getPriceIdsForCollaterals() { return getPriceIdsForCollaterals(true); } From 7c8922e10ba91de50d2434d7cac700981a292686 Mon Sep 17 00:00:00 2001 From: racso2609 Date: Fri, 26 Apr 2024 12:24:28 -0400 Subject: [PATCH 2/2] fix workflow: release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2c67e00..184acfc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,7 +52,7 @@ jobs: echo "New files detected, committing and pushing them" git add package.json git commit -S -m "Bump package version" - git push + git push -f else echo "No new files, exiting cleanly" fi