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.
- package/bin.js +5 -3
- package/evm.schema.json +23 -6
- package/fuel.schema.json +17 -5
- package/index.d.ts +0 -27
- package/index.js +9 -6
- package/package.json +11 -7
- package/rescript.json +4 -3
- package/src/{Address.res.js → Address.res.mjs} +7 -6
- package/src/{Batch.res.js → Batch.res.mjs} +19 -18
- package/src/{ChainMap.res.js → ChainMap.res.mjs} +20 -19
- package/src/{Config.res.js → Config.res.mjs} +11 -10
- package/src/Envio.gen.ts +2 -15
- package/src/Envio.res +0 -36
- package/src/{Envio.res.js → Envio.res.mjs} +5 -16
- package/src/{ErrorHandling.res.js → ErrorHandling.res.mjs} +10 -9
- package/src/EventRegister.res +7 -0
- package/src/{EventRegister.res.js → EventRegister.res.mjs} +29 -18
- package/src/EventRegister.resi +1 -0
- package/src/{EventUtils.res.js → EventUtils.res.mjs} +10 -9
- package/src/{EvmTypes.res.js → EvmTypes.res.mjs} +5 -4
- package/src/{FetchState.res.js → FetchState.res.mjs} +44 -43
- package/src/{Hasura.res.js → Hasura.res.mjs} +25 -24
- package/src/{InMemoryStore.res.js → InMemoryStore.res.mjs} +19 -18
- package/src/{InMemoryTable.res.js → InMemoryTable.res.mjs} +21 -20
- package/src/Internal.gen.ts +1 -3
- package/src/Internal.res +9 -2
- package/src/{Internal.res.js → Internal.res.mjs} +21 -11
- package/src/{LazyLoader.res.js → LazyLoader.res.mjs} +14 -13
- package/src/{LoadManager.res.js → LoadManager.res.mjs} +11 -10
- package/src/{LogSelection.res.js → LogSelection.res.mjs} +14 -13
- package/src/{Logging.res.js → Logging.res.mjs} +37 -36
- package/src/{Persistence.res.js → Persistence.res.mjs} +22 -21
- package/src/{PgStorage.res.js → PgStorage.res.mjs} +58 -57
- package/src/Platform.res +4 -5
- package/src/{Platform.res.js → Platform.res.mjs} +10 -10
- package/src/{Prometheus.res.js → Prometheus.res.mjs} +66 -65
- package/src/{ReorgDetection.res.js → ReorgDetection.res.mjs} +12 -11
- package/src/{SafeCheckpointTracking.res.js → SafeCheckpointTracking.res.mjs} +6 -5
- package/src/{Sink.res.js → Sink.res.mjs} +6 -5
- package/src/{TableIndices.res.js → TableIndices.res.mjs} +8 -7
- package/src/{Throttler.res.js → Throttler.res.mjs} +7 -6
- package/src/{Time.res.js → Time.res.mjs} +8 -7
- package/src/{TopicFilter.res.js → TopicFilter.res.mjs} +18 -17
- package/src/Utils.res +40 -0
- package/src/{Utils.res.js → Utils.res.mjs} +68 -34
- package/src/bindings/BigDecimal.gen.ts +2 -2
- package/src/bindings/BigDecimal.res +5 -5
- package/src/bindings/BigDecimal.res.d.mts +5 -0
- package/src/bindings/{BigDecimal.res.js → BigDecimal.res.mjs} +10 -9
- package/src/bindings/BigInt.gen.ts +2 -2
- package/src/bindings/BigInt.res.d.mts +5 -0
- package/src/bindings/{BigInt.res.js → BigInt.res.mjs} +25 -24
- package/src/bindings/ClickHouse.res +2 -2
- package/src/bindings/{ClickHouse.res.js → ClickHouse.res.mjs} +22 -21
- package/src/bindings/Ethers.gen.ts +2 -2
- package/src/bindings/Ethers.res.d.mts +5 -0
- package/src/bindings/{Ethers.res.js → Ethers.res.mjs} +18 -17
- package/src/bindings/{Hrtime.res.js → Hrtime.res.mjs} +13 -12
- package/src/bindings/{Lodash.res.js → Lodash.res.mjs} +4 -3
- package/src/bindings/NodeJs.res +13 -1
- package/src/bindings/NodeJs.res.mjs +48 -0
- package/src/bindings/Pino.res +6 -6
- package/src/bindings/{Pino.res.js → Pino.res.mjs} +16 -15
- package/src/bindings/Postgres.res +2 -2
- package/src/bindings/{Postgres.res.js → Postgres.res.mjs} +4 -3
- package/src/bindings/{PromClient.res.js → PromClient.res.mjs} +6 -5
- package/src/bindings/{Promise.res.js → Promise.res.mjs} +6 -5
- package/src/bindings/{SDSL.res.js → SDSL.res.mjs} +3 -2
- package/src/bindings/{Viem.res.js → Viem.res.mjs} +9 -8
- package/src/bindings/vendored-lodash-fns.js +3 -35
- package/src/db/{EntityHistory.res.js → EntityHistory.res.mjs} +21 -20
- package/src/db/InternalTable.gen.ts +2 -2
- package/src/db/InternalTable.res +0 -2
- package/src/db/{InternalTable.res.js → InternalTable.res.mjs} +19 -19
- package/src/db/{Schema.res.js → Schema.res.mjs} +10 -9
- package/src/db/{Table.res.js → Table.res.mjs} +34 -33
- package/src/sources/{EventRouter.res.js → EventRouter.res.mjs} +17 -16
- package/src/sources/{Fuel.res.js → Fuel.res.mjs} +6 -5
- package/src/sources/{HyperFuel.res.js → HyperFuel.res.mjs} +14 -13
- package/src/sources/{HyperFuelClient.res.js → HyperFuelClient.res.mjs} +7 -6
- package/src/sources/{HyperFuelSource.res.js → HyperFuelSource.res.mjs} +28 -27
- package/src/sources/{HyperSync.res.js → HyperSync.res.mjs} +21 -20
- package/src/sources/HyperSyncClient.gen.ts +1 -1
- package/src/sources/HyperSyncClient.res +78 -20
- package/src/sources/{HyperSyncClient.res.js → HyperSyncClient.res.mjs} +32 -15
- package/src/sources/{HyperSyncJsonApi.res.js → HyperSyncJsonApi.res.mjs} +10 -9
- package/src/sources/HyperSyncSource.res +77 -9
- package/src/sources/{HyperSyncSource.res.js → HyperSyncSource.res.mjs} +99 -38
- package/src/sources/{Rpc.res.js → Rpc.res.mjs} +16 -15
- package/src/sources/{RpcSource.res.js → RpcSource.res.mjs} +40 -39
- package/src/sources/Source.res +1 -1
- package/src/sources/{Source.res.js → Source.res.mjs} +4 -3
- package/src/sources/SourceManager.res +12 -1
- package/src/sources/{SourceManager.res.js → SourceManager.res.mjs} +32 -21
- package/src/sources/vendored-fuel-abi-coder.js +94 -149
- package/src/vendored/{Rest.res.js → Rest.res.mjs} +12 -11
- package/src/bindings/NodeJs.res.js +0 -35
- /package/src/{Change.res.js → Change.res.mjs} +0 -0
- /package/src/{Indexer.res.js → Indexer.res.mjs} +0 -0
- /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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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 = "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export {
|
|
22
|
+
silentCatch ,
|
|
23
|
+
$$catch ,
|
|
24
|
+
isCatchable ,
|
|
25
|
+
}
|
|
25
26
|
/* No side effect */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
-
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
1438
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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;
|
package/src/db/InternalTable.res
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
export {
|
|
16
|
+
QueryTypes ,
|
|
17
|
+
FuelTypes ,
|
|
18
|
+
make ,
|
|
19
|
+
}
|
|
19
20
|
/* @envio-dev/hyperfuel-client Not a pure module */
|