mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
ec1fe7f6ee
* Make non-mandatory action interface elements optional. * Remove one unused import * Scripts main renamed to entrypoint. * Script common rename to generic * Move generic scripts from action to generic. * Move chain-specific scripts to blockchain. Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
32 lines
697 B
TypeScript
32 lines
697 B
TypeScript
import { sanityCheckAll, consistencyCheckAll } from "../generic/update-all";
|
|
|
|
export async function main(): Promise<void> {
|
|
let returnCode = 0;
|
|
|
|
try {
|
|
// warnings ignored
|
|
const [errors1] = await sanityCheckAll();
|
|
if (errors1.length > 0) {
|
|
returnCode = errors1.length;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
try {
|
|
// warnings ignored
|
|
const [errors1] = await consistencyCheckAll();
|
|
if (errors1.length > 0) {
|
|
returnCode = errors1.length;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
process.exit(returnCode);
|
|
}
|
|
|
|
main();
|