From 83c408fc4abfe28d7d1063d28fe11229c639bca9 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 8 Jan 2025 16:58:42 -0800 Subject: [PATCH] WIP --- scripts/queries.mjs | 16 ++++++++-------- scripts/validateData.mjs | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/queries.mjs b/scripts/queries.mjs index 3187bacd..287bc369 100755 --- a/scripts/queries.mjs +++ b/scripts/queries.mjs @@ -113,8 +113,8 @@ export const getQuery = (entity, filters) => { export const expectations = { vaultManagerGovernances: { - id: 'published.vaultFactory.managers.manager0.governance', - debtLimit: '123000000000000', + id: 'published.vaultFactory.managers.manager1.governance', + debtLimit: '1000000000', interestRateDenominator: '100', interestRateNumerator: '1', liquidationMarginDenominator: '100', @@ -146,25 +146,25 @@ export const expectations = { totalShortfallReceived: '0', }, vaultManagerMetricsDailies: { - path: 'published.vaultFactory.managers.manager0.metrics', - liquidatingCollateralBrand: 'ATOM', + path: 'published.vaultFactory.managers.manager1.metrics', + liquidatingCollateralBrand: 'stATOM', liquidatingDebtBrand: 'IST', liquidatingCollateralValueLast: '0', liquidatingDebtValueLast: '0', lockedQuoteDenominatorLast: '0', lockedQuoteNumeratorLast: '0', - numActiveVaultsLast: '7', + numActiveVaultsLast: '0', numLiquidatingVaultsLast: '0', numLiquidationsAbortedLast: '0', numLiquidationsCompletedLast: '0', retainedCollateralLast: '0', - totalCollateralLast: '5982000000', + totalCollateralLast: '0', totalCollateralSoldLast: '0', - totalDebtLast: '35984025000', + totalDebtLast: '0', totalOverageReceivedLast: '0', totalProceedsReceivedLast: '0', totalShortfallReceivedLast: '0', - metricsCount: '19', + metricsCount: '1', }, reserveMetrics: { id: 'published.reserve.metrics', diff --git a/scripts/validateData.mjs b/scripts/validateData.mjs index d9986775..c9ddb401 100755 --- a/scripts/validateData.mjs +++ b/scripts/validateData.mjs @@ -30,6 +30,7 @@ const checkEntity = async (entity) => { console.log('Node:', nodes); for (const key of Object.keys(expectations[entity])) { + console.log(`Checking ${entity} ${key}...`); equal(nodes[0]?.[key], expectations[entity][key]), `Expected ${key} to be ${expectations[entity][key]}`; } } catch (error) {