Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 9, 2025
1 parent ce52918 commit 83c408f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions scripts/validateData.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 83c408f

Please sign in to comment.