Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Jan 9, 2025
1 parent 98f16b1 commit 35c1128
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vaults-and-reserve-metrics-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
run: ./scripts/validateData.mjs
env:
entity: vaultManagerGovernances
blockHeight: 1178
blockHeight: 1185

- name: Test VaultManagerMetrics
run: ./scripts/validateData.mjs
env:
entity: vaultManagerMetrics
blockHeight: 1170
blockHeight: 1226

- name: Test VaultManagerMetricsDaily
run: ./scripts/validateData.mjs
Expand Down
14 changes: 6 additions & 8 deletions scripts/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export const getQuery = (entity, filters) => {

const queries = {
vaultManagerGovernances: `query {
vaultManagerGovernances {
vaultManagerGovernances ${filterString} {
nodes {
blockHeight
id
debtLimit
interestRateDenominator
Expand All @@ -29,9 +28,8 @@ export const getQuery = (entity, filters) => {
}
}`,
vaultManagerMetrics: `query {
vaultManagerMetrics {
vaultManagerMetrics ${filterString} {
nodes {
blockHeight
id
liquidatingCollateralBrand
liquidatingCollateralValue
Expand All @@ -54,7 +52,7 @@ export const getQuery = (entity, filters) => {
}
}`,
vaultManagerMetricsDailies: `query {
vaultManagerMetricsDailies {
vaultManagerMetricsDailies ${filterString} {
nodes {
path
liquidatingCollateralBrand
Expand All @@ -79,7 +77,7 @@ export const getQuery = (entity, filters) => {
}
}`,
reserveMetrics: `query {
reserveMetrics {
reserveMetrics ${filterString} {
nodes {
id
shortfallBalance
Expand All @@ -89,7 +87,7 @@ export const getQuery = (entity, filters) => {
}
}`,
reserveAllocationMetrics: `query {
reserveAllocationMetrics {
reserveAllocationMetrics ${filterString} {
nodes {
id
denom
Expand All @@ -99,7 +97,7 @@ export const getQuery = (entity, filters) => {
}
}`,
reserveAllocationMetricsDailies: `query {
reserveAllocationMetricsDailies {
reserveAllocationMetricsDailies ${filterString} {
nodes {
denom
key
Expand Down
2 changes: 1 addition & 1 deletion scripts/validateData.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ try {
console.log('Node:', nodes);

for (const key of Object.keys(expectations[entity])) {
// equal(nodes[0]?.[key], expectations[entity][key]);
equal(nodes[0]?.[key], expectations[entity][key]);
}
} catch (error) {
console.error('Error:', error);
Expand Down

0 comments on commit 35c1128

Please sign in to comment.