envio 3.0.0-alpha-main-clickhouse-sink → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/bin.js +5 -3
  2. package/evm.schema.json +23 -6
  3. package/fuel.schema.json +17 -5
  4. package/index.d.ts +0 -27
  5. package/index.js +9 -6
  6. package/package.json +11 -7
  7. package/rescript.json +4 -3
  8. package/src/{Address.res.js → Address.res.mjs} +7 -6
  9. package/src/{Batch.res.js → Batch.res.mjs} +19 -18
  10. package/src/{ChainMap.res.js → ChainMap.res.mjs} +20 -19
  11. package/src/{Config.res.js → Config.res.mjs} +11 -10
  12. package/src/Envio.gen.ts +2 -15
  13. package/src/Envio.res +0 -36
  14. package/src/{Envio.res.js → Envio.res.mjs} +5 -16
  15. package/src/{ErrorHandling.res.js → ErrorHandling.res.mjs} +10 -9
  16. package/src/EventRegister.res +7 -0
  17. package/src/{EventRegister.res.js → EventRegister.res.mjs} +29 -18
  18. package/src/EventRegister.resi +1 -0
  19. package/src/{EventUtils.res.js → EventUtils.res.mjs} +10 -9
  20. package/src/{EvmTypes.res.js → EvmTypes.res.mjs} +5 -4
  21. package/src/{FetchState.res.js → FetchState.res.mjs} +44 -43
  22. package/src/{Hasura.res.js → Hasura.res.mjs} +25 -24
  23. package/src/{InMemoryStore.res.js → InMemoryStore.res.mjs} +19 -18
  24. package/src/{InMemoryTable.res.js → InMemoryTable.res.mjs} +21 -20
  25. package/src/Internal.gen.ts +1 -3
  26. package/src/Internal.res +9 -2
  27. package/src/{Internal.res.js → Internal.res.mjs} +21 -11
  28. package/src/{LazyLoader.res.js → LazyLoader.res.mjs} +14 -13
  29. package/src/{LoadManager.res.js → LoadManager.res.mjs} +11 -10
  30. package/src/{LogSelection.res.js → LogSelection.res.mjs} +14 -13
  31. package/src/{Logging.res.js → Logging.res.mjs} +37 -36
  32. package/src/{Persistence.res.js → Persistence.res.mjs} +22 -21
  33. package/src/{PgStorage.res.js → PgStorage.res.mjs} +58 -57
  34. package/src/Platform.res +4 -5
  35. package/src/{Platform.res.js → Platform.res.mjs} +10 -10
  36. package/src/{Prometheus.res.js → Prometheus.res.mjs} +66 -65
  37. package/src/{ReorgDetection.res.js → ReorgDetection.res.mjs} +12 -11
  38. package/src/{SafeCheckpointTracking.res.js → SafeCheckpointTracking.res.mjs} +6 -5
  39. package/src/{Sink.res.js → Sink.res.mjs} +6 -5
  40. package/src/{TableIndices.res.js → TableIndices.res.mjs} +8 -7
  41. package/src/{Throttler.res.js → Throttler.res.mjs} +7 -6
  42. package/src/{Time.res.js → Time.res.mjs} +8 -7
  43. package/src/{TopicFilter.res.js → TopicFilter.res.mjs} +18 -17
  44. package/src/Utils.res +40 -0
  45. package/src/{Utils.res.js → Utils.res.mjs} +68 -34
  46. package/src/bindings/BigDecimal.gen.ts +2 -2
  47. package/src/bindings/BigDecimal.res +5 -5
  48. package/src/bindings/BigDecimal.res.d.mts +5 -0
  49. package/src/bindings/{BigDecimal.res.js → BigDecimal.res.mjs} +10 -9
  50. package/src/bindings/BigInt.gen.ts +2 -2
  51. package/src/bindings/BigInt.res.d.mts +5 -0
  52. package/src/bindings/{BigInt.res.js → BigInt.res.mjs} +25 -24
  53. package/src/bindings/ClickHouse.res +2 -2
  54. package/src/bindings/{ClickHouse.res.js → ClickHouse.res.mjs} +22 -21
  55. package/src/bindings/Ethers.gen.ts +2 -2
  56. package/src/bindings/Ethers.res.d.mts +5 -0
  57. package/src/bindings/{Ethers.res.js → Ethers.res.mjs} +18 -17
  58. package/src/bindings/{Hrtime.res.js → Hrtime.res.mjs} +13 -12
  59. package/src/bindings/{Lodash.res.js → Lodash.res.mjs} +4 -3
  60. package/src/bindings/NodeJs.res +13 -1
  61. package/src/bindings/NodeJs.res.mjs +48 -0
  62. package/src/bindings/Pino.res +6 -6
  63. package/src/bindings/{Pino.res.js → Pino.res.mjs} +16 -15
  64. package/src/bindings/Postgres.res +2 -2
  65. package/src/bindings/{Postgres.res.js → Postgres.res.mjs} +4 -3
  66. package/src/bindings/{PromClient.res.js → PromClient.res.mjs} +6 -5
  67. package/src/bindings/{Promise.res.js → Promise.res.mjs} +6 -5
  68. package/src/bindings/{SDSL.res.js → SDSL.res.mjs} +3 -2
  69. package/src/bindings/{Viem.res.js → Viem.res.mjs} +9 -8
  70. package/src/bindings/vendored-lodash-fns.js +3 -35
  71. package/src/db/{EntityHistory.res.js → EntityHistory.res.mjs} +21 -20
  72. package/src/db/InternalTable.gen.ts +2 -2
  73. package/src/db/InternalTable.res +0 -2
  74. package/src/db/{InternalTable.res.js → InternalTable.res.mjs} +19 -19
  75. package/src/db/{Schema.res.js → Schema.res.mjs} +10 -9
  76. package/src/db/{Table.res.js → Table.res.mjs} +34 -33
  77. package/src/sources/{EventRouter.res.js → EventRouter.res.mjs} +17 -16
  78. package/src/sources/{Fuel.res.js → Fuel.res.mjs} +6 -5
  79. package/src/sources/{HyperFuel.res.js → HyperFuel.res.mjs} +14 -13
  80. package/src/sources/{HyperFuelClient.res.js → HyperFuelClient.res.mjs} +7 -6
  81. package/src/sources/{HyperFuelSource.res.js → HyperFuelSource.res.mjs} +28 -27
  82. package/src/sources/{HyperSync.res.js → HyperSync.res.mjs} +21 -20
  83. package/src/sources/HyperSyncClient.gen.ts +1 -1
  84. package/src/sources/HyperSyncClient.res +78 -20
  85. package/src/sources/{HyperSyncClient.res.js → HyperSyncClient.res.mjs} +32 -15
  86. package/src/sources/{HyperSyncJsonApi.res.js → HyperSyncJsonApi.res.mjs} +10 -9
  87. package/src/sources/HyperSyncSource.res +77 -9
  88. package/src/sources/{HyperSyncSource.res.js → HyperSyncSource.res.mjs} +99 -38
  89. package/src/sources/{Rpc.res.js → Rpc.res.mjs} +16 -15
  90. package/src/sources/{RpcSource.res.js → RpcSource.res.mjs} +40 -39
  91. package/src/sources/Source.res +1 -1
  92. package/src/sources/{Source.res.js → Source.res.mjs} +4 -3
  93. package/src/sources/SourceManager.res +12 -1
  94. package/src/sources/{SourceManager.res.js → SourceManager.res.mjs} +32 -21
  95. package/src/sources/vendored-fuel-abi-coder.js +94 -149
  96. package/src/vendored/{Rest.res.js → Rest.res.mjs} +12 -11
  97. package/src/bindings/NodeJs.res.js +0 -35
  98. /package/src/{Change.res.js → Change.res.mjs} +0 -0
  99. /package/src/{Indexer.res.js → Indexer.res.mjs} +0 -0
  100. /package/src/bindings/{Express.res.js → Express.res.mjs} +0 -0
@@ -1,13 +1,12 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Pino = require("pino");
5
- var Utils = require("../Utils.res.js");
6
- var Caml_obj = require("rescript/lib/js/caml_obj.js");
7
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
8
- var Belt_Option = require("rescript/lib/js/belt_Option.js");
9
- var PinoPretty = require("pino-pretty");
10
- var EcsPinoFormat = require("@elastic/ecs-pino-format");
3
+ import * as Pino from "pino";
4
+ import * as Utils from "../Utils.res.mjs";
5
+ import * as Caml_obj from "rescript/lib/es6/caml_obj.js";
6
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
7
+ import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
8
+ import * as PinoPretty from "pino-pretty";
9
+ import EcsPinoFormat from "@elastic/ecs-pino-format";
11
10
 
12
11
  function createPinoMessage(message) {
13
12
  return message;
@@ -85,7 +84,7 @@ function make$1(userLogLevel, customLevels, logFile, options, defaultFileLogLeve
85
84
  }
86
85
  var formatter = makeFormatter(customLevels);
87
86
  var ms = Pino.multistream(makeStreams(userLogLevel, formatter, logFile, defaultFileLogLevel));
88
- return Pino(options$1, ms);
87
+ return Pino.pino(options$1, ms);
89
88
  }
90
89
 
91
90
  var MultiStreamLogger = {
@@ -94,10 +93,12 @@ var MultiStreamLogger = {
94
93
  make: make$1
95
94
  };
96
95
 
97
- exports.createPinoMessage = createPinoMessage;
98
- exports.createPinoMessageWithError = createPinoMessageWithError;
99
- exports.Transport = Transport;
100
- exports.createChildParams = createChildParams;
101
- exports.ECS = ECS;
102
- exports.MultiStreamLogger = MultiStreamLogger;
96
+ export {
97
+ createPinoMessage ,
98
+ createPinoMessageWithError ,
99
+ Transport ,
100
+ createChildParams ,
101
+ ECS ,
102
+ MultiStreamLogger ,
103
+ }
103
104
  /* pino Not a pure module */
@@ -86,8 +86,8 @@ type poolConfig = {
86
86
  fetchTypes?: bool, // Automatically fetches types on connect on initial connection. (default: true)
87
87
  }
88
88
 
89
- @module
90
- external makeSql: (~config: poolConfig) => sql = "postgres"
89
+ @module("postgres")
90
+ external makeSql: (~config: poolConfig) => sql = "default"
91
91
 
92
92
  @send external beginSql: (sql, sql => promise<'result>) => promise<'result> = "begin"
93
93
 
@@ -1,7 +1,6 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
5
4
 
6
5
  var sslOptionsSchema = S$RescriptSchema.$$enum([
7
6
  true,
@@ -12,5 +11,7 @@ var sslOptionsSchema = S$RescriptSchema.$$enum([
12
11
  "verify-full"
13
12
  ]);
14
13
 
15
- exports.sslOptionsSchema = sslOptionsSchema;
14
+ export {
15
+ sslOptionsSchema ,
16
+ }
16
17
  /* sslOptionsSchema Not a pure module */
@@ -1,5 +1,4 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
3
 
5
4
  var Counter = {};
@@ -10,8 +9,10 @@ var Histogram = {};
10
9
 
11
10
  var Summary = {};
12
11
 
13
- exports.Counter = Counter;
14
- exports.Gauge = Gauge;
15
- exports.Histogram = Histogram;
16
- exports.Summary = Summary;
12
+ export {
13
+ Counter ,
14
+ Gauge ,
15
+ Histogram ,
16
+ Summary ,
17
+ }
17
18
  /* No side effect */
@@ -1,7 +1,6 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js");
3
+ import * as Caml_js_exceptions from "rescript/lib/es6/caml_js_exceptions.js";
5
4
 
6
5
  function noop() {
7
6
 
@@ -19,7 +18,9 @@ function $$catch(promise, callback) {
19
18
 
20
19
  var isCatchable = (value => value && typeof value.catch === 'function');
21
20
 
22
- exports.silentCatch = silentCatch;
23
- exports.$$catch = $$catch;
24
- exports.isCatchable = isCatchable;
21
+ export {
22
+ silentCatch ,
23
+ $$catch ,
24
+ isCatchable ,
25
+ }
25
26
  /* No side effect */
@@ -1,8 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
3
 
5
4
  var Queue = {};
6
5
 
7
- exports.Queue = Queue;
6
+ export {
7
+ Queue ,
8
+ }
8
9
  /* No side effect */
@@ -1,10 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Viem = require("viem");
5
- var Caml_option = require("rescript/lib/js/caml_option.js");
6
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
7
- var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js");
3
+ import * as Viem from "viem";
4
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
5
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
6
+ import * as Caml_js_exceptions from "rescript/lib/es6/caml_js_exceptions.js";
8
7
 
9
8
  var ParseError = /* @__PURE__ */Caml_exceptions.create("Viem.ParseError");
10
9
 
@@ -39,7 +38,9 @@ function parseLogOrThrow(contractNameAbiMapping, contractName, topics, data) {
39
38
  }
40
39
  }
41
40
 
42
- exports.ParseError = ParseError;
43
- exports.UnknownContractName = UnknownContractName;
44
- exports.parseLogOrThrow = parseLogOrThrow;
41
+ export {
42
+ ParseError ,
43
+ UnknownContractName ,
44
+ parseLogOrThrow ,
45
+ }
45
46
  /* viem Not a pure module */
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Created by using esbuild command:
3
- `esbuild --bundle --platform=node --tree-shaking=true <FILE_PATH>`
3
+ `esbuild --bundle --platform=node --tree-shaking=true --format=esm <FILE_PATH>`
4
4
  on a js file with the following content:
5
5
  ```js
6
6
  import cloneDeep from "lodash-es/cloneDeep";
@@ -10,35 +10,6 @@
10
10
  This is simply a treeshaken vendoring of lodash-es/cloneDeep.js
11
11
 
12
12
  */
13
- "use strict";
14
- var __defProp = Object.defineProperty;
15
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16
- var __getOwnPropNames = Object.getOwnPropertyNames;
17
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18
- var __export = (target, all) => {
19
- for (var name in all)
20
- __defProp(target, name, { get: all[name], enumerable: true });
21
- };
22
- var __copyProps = (to, from, except, desc) => {
23
- if ((from && typeof from === "object") || typeof from === "function") {
24
- for (let key of __getOwnPropNames(from))
25
- if (!__hasOwnProp.call(to, key) && key !== except)
26
- __defProp(to, key, {
27
- get: () => from[key],
28
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
29
- });
30
- }
31
- return to;
32
- };
33
- var __toCommonJS = (mod) =>
34
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
-
36
- // src/bindings/vendored-lodash-fns-entry.js
37
- var vendored_lodash_fns_entry_exports = {};
38
- __export(vendored_lodash_fns_entry_exports, {
39
- cloneDeep: () => cloneDeep_default,
40
- });
41
- module.exports = __toCommonJS(vendored_lodash_fns_entry_exports);
42
13
 
43
14
  // ../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
44
15
  function listCacheClear() {
@@ -1434,8 +1405,5 @@ function cloneDeep(value) {
1434
1405
  return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
1435
1406
  }
1436
1407
  var cloneDeep_default = cloneDeep;
1437
- // Annotate the CommonJS export names for ESM import in node:
1438
- 0 &&
1439
- (module.exports = {
1440
- cloneDeep,
1441
- });
1408
+
1409
+ export { cloneDeep_default as cloneDeep };
@@ -1,10 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Table = require("./Table.res.js");
5
- var Js_string = require("rescript/lib/js/js_string.js");
6
- var Belt_Float = require("rescript/lib/js/belt_Float.js");
7
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as Table from "./Table.res.mjs";
4
+ import * as Js_string from "rescript/lib/es6/js_string.js";
5
+ import * as Belt_Float from "rescript/lib/es6/belt_Float.js";
6
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
8
7
 
9
8
  var variants = [
10
9
  "SET",
@@ -102,19 +101,21 @@ var checkpointIdFieldType = "Uint32";
102
101
 
103
102
  var maxPgTableNameLength = 63;
104
103
 
105
- exports.RowAction = RowAction;
106
- exports.changeFieldName = changeFieldName;
107
- exports.checkpointIdFieldName = checkpointIdFieldName;
108
- exports.checkpointIdFieldType = checkpointIdFieldType;
109
- exports.changeFieldType = changeFieldType;
110
- exports.unsafeCheckpointIdSchema = unsafeCheckpointIdSchema;
111
- exports.makeSetUpdateSchema = makeSetUpdateSchema;
112
- exports.maxPgTableNameLength = maxPgTableNameLength;
113
- exports.historyTablePrefix = historyTablePrefix;
114
- exports.historyTableName = historyTableName;
115
- exports.makePruneStaleEntityHistoryQuery = makePruneStaleEntityHistoryQuery;
116
- exports.pruneStaleEntityHistory = pruneStaleEntityHistory;
117
- exports.makeBackfillHistoryQuery = makeBackfillHistoryQuery;
118
- exports.backfillHistory = backfillHistory;
119
- exports.rollback = rollback;
104
+ export {
105
+ RowAction ,
106
+ changeFieldName ,
107
+ checkpointIdFieldName ,
108
+ checkpointIdFieldType ,
109
+ changeFieldType ,
110
+ unsafeCheckpointIdSchema ,
111
+ makeSetUpdateSchema ,
112
+ maxPgTableNameLength ,
113
+ historyTablePrefix ,
114
+ historyTableName ,
115
+ makePruneStaleEntityHistoryQuery ,
116
+ pruneStaleEntityHistory ,
117
+ makeBackfillHistoryQuery ,
118
+ backfillHistory ,
119
+ rollback ,
120
+ }
120
121
  /* schema Not a pure module */
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /* tslint:disable */
5
5
 
6
- import type {Json_t as Js_Json_t} from '../../src/Js.shim';
6
+ import type {Json_t as Js_Json_t} from '../../src/Js.shim.js';
7
7
 
8
- import type {t as Address_t} from '../../src/Address.gen';
8
+ import type {t as Address_t} from '../../src/Address.gen.js';
9
9
 
10
10
  export type DynamicContractRegistry_t = {
11
11
  readonly id: string;
@@ -357,7 +357,6 @@ module PersistedState = {
357
357
  envio_version: string,
358
358
  config_hash: string,
359
359
  schema_hash: string,
360
- handler_files_hash: string,
361
360
  abi_files_hash: string,
362
361
  }
363
362
 
@@ -368,7 +367,6 @@ module PersistedState = {
368
367
  mkField("envio_version", String, ~fieldSchema=S.string),
369
368
  mkField("config_hash", String, ~fieldSchema=S.string),
370
369
  mkField("schema_hash", String, ~fieldSchema=S.string),
371
- mkField("handler_files_hash", String, ~fieldSchema=S.string),
372
370
  mkField("abi_files_hash", String, ~fieldSchema=S.string),
373
371
  ],
374
372
  )
@@ -1,14 +1,13 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Table = require("./Table.res.js");
5
- var Utils = require("../Utils.res.js");
6
- var Js_exn = require("rescript/lib/js/js_exn.js");
7
- var Address = require("../Address.res.js");
8
- var Js_dict = require("rescript/lib/js/js_dict.js");
9
- var Js_null = require("rescript/lib/js/js_null.js");
10
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
11
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as Table from "./Table.res.mjs";
4
+ import * as Utils from "../Utils.res.mjs";
5
+ import * as Js_exn from "rescript/lib/es6/js_exn.js";
6
+ import * as Address from "../Address.res.mjs";
7
+ import * as Js_dict from "rescript/lib/es6/js_dict.js";
8
+ import * as Js_null from "rescript/lib/es6/js_null.js";
9
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
10
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
12
11
 
13
12
  var name = "dynamic_contract_registry";
14
13
 
@@ -230,7 +229,6 @@ var table$2 = Table.mkTable("persisted_state", undefined, [
230
229
  Table.mkField("envio_version", "String", S$RescriptSchema.string, undefined, undefined, undefined, undefined, undefined, undefined),
231
230
  Table.mkField("config_hash", "String", S$RescriptSchema.string, undefined, undefined, undefined, undefined, undefined, undefined),
232
231
  Table.mkField("schema_hash", "String", S$RescriptSchema.string, undefined, undefined, undefined, undefined, undefined, undefined),
233
- Table.mkField("handler_files_hash", "String", S$RescriptSchema.string, undefined, undefined, undefined, undefined, undefined, undefined),
234
232
  Table.mkField("abi_files_hash", "String", S$RescriptSchema.string, undefined, undefined, undefined, undefined, undefined, undefined)
235
233
  ]);
236
234
 
@@ -381,13 +379,15 @@ var isNullable = true;
381
379
 
382
380
  var isIndex = true;
383
381
 
384
- exports.isPrimaryKey = isPrimaryKey;
385
- exports.isNullable = isNullable;
386
- exports.isIndex = isIndex;
387
- exports.DynamicContractRegistry = DynamicContractRegistry;
388
- exports.Chains = Chains;
389
- exports.PersistedState = PersistedState;
390
- exports.Checkpoints = Checkpoints;
391
- exports.RawEvents = RawEvents;
392
- exports.Views = Views;
382
+ export {
383
+ isPrimaryKey ,
384
+ isNullable ,
385
+ isIndex ,
386
+ DynamicContractRegistry ,
387
+ Chains ,
388
+ PersistedState ,
389
+ Checkpoints ,
390
+ RawEvents ,
391
+ Views ,
392
+ }
393
393
  /* schema Not a pure module */
@@ -1,10 +1,9 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Table = require("./Table.res.js");
5
- var Js_dict = require("rescript/lib/js/js_dict.js");
6
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
7
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
3
+ import * as Table from "./Table.res.mjs";
4
+ import * as Js_dict from "rescript/lib/es6/js_dict.js";
5
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
6
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
8
7
 
9
8
  function make(tables) {
10
9
  return Js_dict.fromArray(Belt_Array.map(tables, (function (table) {
@@ -47,8 +46,10 @@ function getDerivedFromFieldName(schema, derivedFromField) {
47
46
  }
48
47
  }
49
48
 
50
- exports.make = make;
51
- exports.UndefinedEntity = UndefinedEntity;
52
- exports.UndefinedFieldInEntity = UndefinedFieldInEntity;
53
- exports.getDerivedFromFieldName = getDerivedFromFieldName;
49
+ export {
50
+ make ,
51
+ UndefinedEntity ,
52
+ UndefinedFieldInEntity ,
53
+ getDerivedFromFieldName ,
54
+ }
54
55
  /* Table Not a pure module */
@@ -1,14 +1,13 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var $$BigInt = require("../bindings/BigInt.res.js");
5
- var Js_exn = require("rescript/lib/js/js_exn.js");
6
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
7
- var Belt_Option = require("rescript/lib/js/belt_Option.js");
8
- var Caml_option = require("rescript/lib/js/caml_option.js");
9
- var Belt_SetString = require("rescript/lib/js/belt_SetString.js");
10
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
11
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as $$BigInt from "../bindings/BigInt.res.mjs";
4
+ import * as Js_exn from "rescript/lib/es6/js_exn.js";
5
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
6
+ import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
7
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
8
+ import * as Belt_SetString from "rescript/lib/es6/belt_SetString.js";
9
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
10
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
12
11
 
13
12
  function makeEnumConfig(name, variants) {
14
13
  return {
@@ -368,28 +367,30 @@ function getCompositeIndices(table) {
368
367
 
369
368
  var idFieldName = "id";
370
369
 
371
- exports.makeEnumConfig = makeEnumConfig;
372
- exports.mkField = mkField;
373
- exports.mkDerivedFromField = mkDerivedFromField;
374
- exports.getUserDefinedFieldName = getUserDefinedFieldName;
375
- exports.isLinkedEntityField = isLinkedEntityField;
376
- exports.getDbFieldName = getDbFieldName;
377
- exports.getFieldName = getFieldName;
378
- exports.idFieldName = idFieldName;
379
- exports.getPgFieldType = getPgFieldType;
380
- exports.mkTable = mkTable;
381
- exports.getPrimaryKeyFieldNames = getPrimaryKeyFieldNames;
382
- exports.getFields = getFields;
383
- exports.getFieldNames = getFieldNames;
384
- exports.getNonDefaultFields = getNonDefaultFields;
385
- exports.getLinkedEntityFields = getLinkedEntityFields;
386
- exports.getDerivedFromFields = getDerivedFromFields;
387
- exports.getNonDefaultFieldNames = getNonDefaultFieldNames;
388
- exports.getFieldByName = getFieldByName;
389
- exports.getFieldByDbName = getFieldByDbName;
390
- exports.NonExistingTableField = NonExistingTableField;
391
- exports.getUnfilteredCompositeIndicesUnsafe = getUnfilteredCompositeIndicesUnsafe;
392
- exports.toSqlParams = toSqlParams;
393
- exports.getSingleIndices = getSingleIndices;
394
- exports.getCompositeIndices = getCompositeIndices;
370
+ export {
371
+ makeEnumConfig ,
372
+ mkField ,
373
+ mkDerivedFromField ,
374
+ getUserDefinedFieldName ,
375
+ isLinkedEntityField ,
376
+ getDbFieldName ,
377
+ getFieldName ,
378
+ idFieldName ,
379
+ getPgFieldType ,
380
+ mkTable ,
381
+ getPrimaryKeyFieldNames ,
382
+ getFields ,
383
+ getFieldNames ,
384
+ getNonDefaultFields ,
385
+ getLinkedEntityFields ,
386
+ getDerivedFromFields ,
387
+ getNonDefaultFieldNames ,
388
+ getFieldByName ,
389
+ getFieldByDbName ,
390
+ NonExistingTableField ,
391
+ getUnfilteredCompositeIndicesUnsafe ,
392
+ toSqlParams ,
393
+ getSingleIndices ,
394
+ getCompositeIndices ,
395
+ }
395
396
  /* BigInt Not a pure module */
@@ -1,13 +1,12 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Js_exn = require("rescript/lib/js/js_exn.js");
5
- var ChainMap = require("../ChainMap.res.js");
6
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
7
- var Belt_Option = require("rescript/lib/js/belt_Option.js");
8
- var Caml_option = require("rescript/lib/js/caml_option.js");
9
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
10
- var Caml_js_exceptions = require("rescript/lib/js/caml_js_exceptions.js");
3
+ import * as Js_exn from "rescript/lib/es6/js_exn.js";
4
+ import * as ChainMap from "../ChainMap.res.mjs";
5
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
6
+ import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
7
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
8
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
9
+ import * as Caml_js_exceptions from "rescript/lib/es6/caml_js_exceptions.js";
11
10
 
12
11
  var EventDuplicate = /* @__PURE__ */Caml_exceptions.create("EventRouter.EventDuplicate");
13
12
 
@@ -114,12 +113,14 @@ function fromEvmEventModsOrThrow(events, chain) {
114
113
  return router;
115
114
  }
116
115
 
117
- exports.EventDuplicate = EventDuplicate;
118
- exports.WildcardCollision = WildcardCollision;
119
- exports.Group = Group;
120
- exports.empty = empty$1;
121
- exports.addOrThrow = addOrThrow$1;
122
- exports.get = get$1;
123
- exports.getEvmEventId = getEvmEventId;
124
- exports.fromEvmEventModsOrThrow = fromEvmEventModsOrThrow;
116
+ export {
117
+ EventDuplicate ,
118
+ WildcardCollision ,
119
+ Group ,
120
+ empty$1 as empty,
121
+ addOrThrow$1 as addOrThrow,
122
+ get$1 as get,
123
+ getEvmEventId ,
124
+ fromEvmEventModsOrThrow ,
125
+ }
125
126
  /* ChainMap Not a pure module */
@@ -1,7 +1,6 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var VendoredFuelAbiCoderJs = require("./vendored-fuel-abi-coder.js");
3
+ import * as VendoredFuelAbiCoderJs from "./vendored-fuel-abi-coder.js";
5
4
 
6
5
  function transpileAbi(prim) {
7
6
  return VendoredFuelAbiCoderJs.transpileAbi(prim);
@@ -22,7 +21,9 @@ var Receipt = {
22
21
  getLogDataDecoder: getLogDataDecoder
23
22
  };
24
23
 
25
- exports.transpileAbi = transpileAbi;
26
- exports.getLogDecoder = getLogDecoder;
27
- exports.Receipt = Receipt;
24
+ export {
25
+ transpileAbi ,
26
+ getLogDecoder ,
27
+ Receipt ,
28
+ }
28
29
  /* ./vendored-fuel-abi-coder.js Not a pure module */
@@ -1,14 +1,13 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Time = require("../Time.res.js");
5
- var Logging = require("../Logging.res.js");
6
- var Belt_Array = require("rescript/lib/js/belt_Array.js");
7
- var Belt_Option = require("rescript/lib/js/belt_Option.js");
8
- var Caml_option = require("rescript/lib/js/caml_option.js");
9
- var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
10
- var HyperFuelClient = require("./HyperFuelClient.res.js");
11
- var S$RescriptSchema = require("rescript-schema/src/S.res.js");
3
+ import * as Time from "../Time.res.mjs";
4
+ import * as Logging from "../Logging.res.mjs";
5
+ import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
6
+ import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
7
+ import * as Caml_option from "rescript/lib/es6/caml_option.js";
8
+ import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";
9
+ import * as HyperFuelClient from "./HyperFuelClient.res.mjs";
10
+ import * as S$RescriptSchema from "rescript-schema/src/S.res.mjs";
12
11
 
13
12
  var cache = {};
14
13
 
@@ -186,8 +185,10 @@ var GetLogs = {
186
185
  query: query
187
186
  };
188
187
 
189
- exports.queryErrorToMsq = queryErrorToMsq;
190
- exports.GetLogs = GetLogs;
191
- exports.queryBlockData = queryBlockData;
192
- exports.heightRoute = heightRoute;
188
+ export {
189
+ queryErrorToMsq ,
190
+ GetLogs ,
191
+ queryBlockData ,
192
+ heightRoute ,
193
+ }
193
194
  /* Time Not a pure module */
@@ -1,8 +1,7 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
- 'use strict';
3
2
 
4
- var Caml_obj = require("rescript/lib/js/caml_obj.js");
5
- var HyperfuelClient = require("@envio-dev/hyperfuel-client");
3
+ import * as Caml_obj from "rescript/lib/es6/caml_obj.js";
4
+ import * as HyperfuelClient from "@envio-dev/hyperfuel-client";
6
5
 
7
6
  var QueryTypes = {};
8
7
 
@@ -13,7 +12,9 @@ function make(cfg) {
13
12
  return HyperfuelClient.HyperfuelClient.new((newrecord.bearerToken = "3dc856dd-b0ea-494f-b27e-017b8b6b7e07", newrecord));
14
13
  }
15
14
 
16
- exports.QueryTypes = QueryTypes;
17
- exports.FuelTypes = FuelTypes;
18
- exports.make = make;
15
+ export {
16
+ QueryTypes ,
17
+ FuelTypes ,
18
+ make ,
19
+ }
19
20
  /* @envio-dev/hyperfuel-client Not a pure module */