adjust genesis value generation scripts to output entries array + add script to derive encoded call

This commit is contained in:
Alexander Popiak
2021-10-26 17:31:23 +02:00
parent a0e7189f45
commit 35e135e883
5 changed files with 694 additions and 3 deletions
+3 -3
View File
@@ -45,10 +45,10 @@ fs.readFile(input, "utf8", (err, data) => {
const spec = JSON.parse(data);
const genesis = Object.fromEntries(
const genesis =
Object.entries(spec.genesis.raw.top).filter(
([key, value]) => !startsWith(key, filter_prefixes)
)
);
);
fs.writeFileSync(output, JSON.stringify(genesis));
});