Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
SoA432 committed Sep 18, 2024
1 parent 1a5bcb8 commit 493c899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/run-grpcurl-firehose.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const fs = require('fs');
const path = require('path');
const { exec } = require('child_process');
const { affectedChains } = require('./known-issues-chains');
const filePath = path.resolve(__dirname, '../data/chains/V2/chains.json');
const chains = JSON.parse(
fs.readFileSync('../data/chains/V2/chains.json', 'utf8'),
fs.readFileSync(filePath, 'utf8'),
);

function runGrpcurl(chainId, serviceName) {
Expand Down
5 changes: 3 additions & 2 deletions scripts/run-grpcurl-substreams.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const fs = require('fs');
const path = require('path');
const { exec } = require('child_process');
const { affectedChains } = require('./known-issues-chains');
const filePath = path.resolve(__dirname, '../data/chains/V2/chains.json');
const chains = JSON.parse(
fs.readFileSync('../data/chains/V2/chains.json', 'utf8'),
fs.readFileSync(filePath, 'utf8'),
);

function runGrpcurl(chainId, serviceName) {
return new Promise((resolve, reject) => {
const command = `grpcurl ${chainId}.${serviceName}.pinax.network:443 sf.${serviceName}.rpc.v2.EndpointInfo/Info`;
Expand Down

0 comments on commit 493c899

Please sign in to comment.