UNPKG

envio

Version:

A latency and sync speed optimized, developer friendly blockchain data indexer.

36 lines (29 loc) 689 B
// Generated by ReScript, PLEASE EDIT WITH CARE import * as Primitive_int from "@rescript/runtime/lib/es6/Primitive_int.js"; function getNumberOfEventsProccessed(progress) { if (typeof progress !== "object") { return 0; } else { return progress._0.numEventsProcessed; } } function minOfOption(a, b) { if (b !== undefined) { return Primitive_int.min(a, b); } else { return a; } } function formatLocaleString(n) { return Number(n).toLocaleString(); } function formatFloatLocaleString(n) { return Number(n).toLocaleString(); } export { getNumberOfEventsProccessed, minOfOption, formatLocaleString, formatFloatLocaleString, } /* No side effect */