1. Add relayer autoselection and command to get available registered relayer list 2. Add RPC and subgraph autoselection by chain ID for user-provided action 3. Fix bug in graph events fetching, now it cannot skip events in corner case 4. Rewrite half of CLI code, remove redundant functions, move global variables to specific object, add typings 5. Create tornado-cli.exe, deterministic and reproducible CLi executable build 6. Update config.json with working RPC and subgraphs for all chains 7. Update all events to actual state
17 lines
671 B
JavaScript
17 lines
671 B
JavaScript
const { exec } = require("pkg");
|
|
const fs = require("fs");
|
|
const crypto = require('crypto');
|
|
const removeNPMAbsolutePaths = require('removeNPMAbsolutePaths');
|
|
|
|
async function main(){
|
|
// Remove absolute paths from log files and package.json`s in node_modules to ensure reproducible build
|
|
await removeNPMAbsolutePaths(".", { force: true, fields: ["_where", "_args", "man"] });
|
|
await exec(['.', '--target', 'node14-win', '--no-bytecode', '--public-packages', '*', '--public']);
|
|
fs.createReadStream('./tornado-cli.exe').
|
|
pipe(crypto.createHash('sha1').setEncoding('hex')).
|
|
on('finish', function () {
|
|
console.log(this.read());
|
|
})
|
|
}
|
|
|
|
main(); |