UNPKG

envio

Version:

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

99 lines (90 loc) 2.11 kB
// Generated by ReScript, PLEASE EDIT WITH CARE import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs"; let cleanUpRawEventFieldsInPlace = (fields => { delete fields.hash delete fields.number delete fields.timestamp }); let ecosystem_blockFields = [ "number", "timestamp", "hash", "parentHash", "nonce", "sha3Uncles", "logsBloom", "transactionsRoot", "stateRoot", "receiptsRoot", "miner", "difficulty", "totalDifficulty", "extraData", "size", "gasLimit", "gasUsed", "uncles", "baseFeePerGas", "blobGasUsed", "excessBlobGas", "parentBeaconBlockRoot", "withdrawalsRoot", "l1BlockNumber", "sendCount", "sendRoot", "mixHash" ]; let ecosystem_transactionFields = [ "transactionIndex", "hash", "from", "to", "gas", "gasPrice", "maxPriorityFeePerGas", "maxFeePerGas", "cumulativeGasUsed", "effectiveGasPrice", "gasUsed", "input", "nonce", "value", "v", "r", "s", "contractAddress", "logsBloom", "root", "status", "yParity", "chainId", "maxFeePerBlobGas", "blobVersionedHashes", "type", "l1Fee", "l1GasPrice", "l1GasUsed", "l1FeeScalar", "gasUsedForL1", "accessList", "authorizationList" ]; let ecosystem_onBlockFilterSchema = S$RescriptSchema.object(s => s.f("block", S$RescriptSchema.option(S$RescriptSchema.object(s2 => s2.f("number", S$RescriptSchema.unknown))))); let ecosystem_onEventBlockFilterSchema = S$RescriptSchema.object(s => s.f("block", S$RescriptSchema.option(S$RescriptSchema.object(s2 => s2.f("number", S$RescriptSchema.unknown))))); let ecosystem = { name: "evm", blockFields: ecosystem_blockFields, transactionFields: ecosystem_transactionFields, blockNumberName: "number", blockTimestampName: "timestamp", blockHashName: "hash", cleanUpRawEventFieldsInPlace: cleanUpRawEventFieldsInPlace, onBlockMethodName: "onBlock", onBlockFilterSchema: ecosystem_onBlockFilterSchema, onEventBlockFilterSchema: ecosystem_onEventBlockFilterSchema }; export { cleanUpRawEventFieldsInPlace, ecosystem, } /* ecosystem Not a pure module */