git.delta.rocks / unique-network / refs/commits / 647ca2aac4ad

difftreelog

source

js-packages/tests/migrations/942057-appPromotion/collectData.ts449 Bsourcehistory
1import {exec} from 'child_process';2import path from 'path';3import {dirname} from 'path';4import {fileURLToPath} from 'url';56export const collectData = () => {7  const dirName = dirname(fileURLToPath(import.meta.url));89  const pathToScript = path.resolve(dirName, './stakersParser.jsonnet');10  const outputPath = path.resolve(dirName, './output.json');11  exec(`chainql --tla-str=chainUrl=ws://127.0.0.1:9944 ${pathToScript} > ${outputPath}`);12};