UNPKG

envio

Version:

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

41 lines (32 loc) 1.22 kB
// Generated by ReScript, PLEASE EDIT WITH CARE import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs"; let cleanUpRawEventFieldsInPlace = (fields => { delete fields.id delete fields.height delete fields.time }); let ecosystem_blockFields = [ "id", "height", "time" ]; let ecosystem_transactionFields = ["id"]; let ecosystem_onBlockFilterSchema = S$RescriptSchema.object(s => s.f("block", S$RescriptSchema.option(S$RescriptSchema.object(s2 => s2.f("height", S$RescriptSchema.unknown))))); let ecosystem_onEventBlockFilterSchema = S$RescriptSchema.object(s => s.f("block", S$RescriptSchema.option(S$RescriptSchema.object(s2 => s2.f("height", S$RescriptSchema.unknown))))); let ecosystem = { name: "fuel", blockFields: ecosystem_blockFields, transactionFields: ecosystem_transactionFields, blockNumberName: "height", blockTimestampName: "time", blockHashName: "id", cleanUpRawEventFieldsInPlace: cleanUpRawEventFieldsInPlace, onBlockMethodName: "onBlock", onBlockFilterSchema: ecosystem_onBlockFilterSchema, onEventBlockFilterSchema: ecosystem_onEventBlockFilterSchema }; export { cleanUpRawEventFieldsInPlace, ecosystem, } /* ecosystem Not a pure module */