envio 2.32.3 → 3.0.0-alpha.0
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 +1 -27
- package/index.js +9 -6
- package/package.json +12 -7
- package/rescript.json +4 -3
- package/src/{Address.res.js → Address.res.mjs} +7 -6
- package/src/Batch.res +4 -4
- package/src/{Batch.res.js → Batch.res.mjs} +19 -18
- package/src/{ChainMap.res.js → ChainMap.res.mjs} +20 -19
- package/src/Change.res +9 -0
- package/src/Config.res +5 -5
- package/src/{Config.res.js → Config.res.mjs} +13 -10
- package/src/Envio.gen.ts +4 -17
- package/src/Envio.res +13 -38
- package/src/{Envio.res.js → Envio.res.mjs} +5 -16
- package/src/{ErrorHandling.res.js → ErrorHandling.res.mjs} +10 -9
- package/src/EventRegister.res +10 -11
- package/src/{EventRegister.res.js → EventRegister.res.mjs} +33 -26
- package/src/EventRegister.resi +2 -1
- 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 +7 -15
- package/src/{InMemoryStore.res.js → InMemoryStore.res.mjs} +21 -22
- package/src/InMemoryTable.res +50 -35
- package/src/{InMemoryTable.res.js → InMemoryTable.res.mjs} +73 -104
- package/src/Internal.gen.ts +1 -5
- package/src/Internal.res +29 -40
- package/src/Internal.res.mjs +58 -0
- 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 +190 -38
- package/src/Persistence.res.mjs +213 -0
- package/src/PgStorage.res +700 -14
- package/src/{PgStorage.res.js → PgStorage.res.mjs} +478 -65
- package/src/Platform.res +140 -0
- package/src/Platform.res.mjs +170 -0
- package/src/Prometheus.res +41 -0
- package/src/{Prometheus.res.js → Prometheus.res.mjs} +106 -60
- package/src/{ReorgDetection.res.js → ReorgDetection.res.mjs} +12 -11
- package/src/SafeCheckpointTracking.res +5 -4
- package/src/{SafeCheckpointTracking.res.js → SafeCheckpointTracking.res.mjs} +6 -5
- package/src/Sink.res +47 -0
- package/src/Sink.res.mjs +37 -0
- 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 +42 -0
- package/src/{Utils.res.js → Utils.res.mjs} +71 -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 +387 -0
- package/src/bindings/ClickHouse.res.mjs +275 -0
- 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/Express.res.mjs +2 -0
- 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 +4 -4
- package/src/bindings/{Pino.res.js → Pino.res.mjs} +16 -15
- package/src/bindings/Postgres.res +17 -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 +33 -156
- package/src/db/EntityHistory.res.mjs +121 -0
- package/src/db/InternalTable.gen.ts +2 -2
- package/src/db/InternalTable.res +55 -56
- package/src/db/{InternalTable.res.js → InternalTable.res.mjs} +68 -71
- package/src/db/{Schema.res.js → Schema.res.mjs} +10 -9
- package/src/db/Table.res +86 -22
- package/src/db/{Table.res.js → Table.res.mjs} +108 -40
- 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/Internal.res.js +0 -62
- package/src/Persistence.res.js +0 -159
- package/src/bindings/NodeJs.res.js +0 -35
- package/src/db/EntityHistory.res.js +0 -195
- /package/src/{Indexer.res.js → Change.res.mjs} +0 -0
- /package/src/{bindings/Express.res.js → Indexer.res.mjs} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
-
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import * as Ethers from "ethers";
|
|
4
|
+
import * as Address from "../Address.res.mjs";
|
|
5
|
+
import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
|
|
6
|
+
import * as Caml_array from "rescript/lib/es6/caml_array.js";
|
|
7
|
+
import * as Caml_option from "rescript/lib/es6/caml_option.js";
|
|
9
8
|
|
|
10
9
|
function makeAbi(abi) {
|
|
11
10
|
return abi;
|
|
@@ -115,15 +114,17 @@ var JsonRpcProvider = {
|
|
|
115
114
|
|
|
116
115
|
var ethAddressSchema = Address.schema;
|
|
117
116
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
export {
|
|
118
|
+
makeAbi ,
|
|
119
|
+
getAddressFromStringUnsafe ,
|
|
120
|
+
ethAddressToString ,
|
|
121
|
+
ethAddressSchema ,
|
|
122
|
+
Constants ,
|
|
123
|
+
Addresses ,
|
|
124
|
+
Filter ,
|
|
125
|
+
CombinedFilter ,
|
|
126
|
+
logToMinimumParseableLogData ,
|
|
127
|
+
Network ,
|
|
128
|
+
JsonRpcProvider ,
|
|
129
|
+
}
|
|
129
130
|
/* mockAddresses 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
|
function nanoToMilli(nano) {
|
|
@@ -57,15 +56,17 @@ var intFromNanos = toInt;
|
|
|
57
56
|
|
|
58
57
|
var intFromSeconds = toInt;
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
export {
|
|
60
|
+
makeTimer ,
|
|
61
|
+
timeSince ,
|
|
62
|
+
nanoToMilli ,
|
|
63
|
+
secToMilli ,
|
|
64
|
+
timeElapsedToNewRef ,
|
|
65
|
+
toMillis ,
|
|
66
|
+
intFromMillis ,
|
|
67
|
+
intFromNanos ,
|
|
68
|
+
intFromSeconds ,
|
|
69
|
+
floatFromMillis ,
|
|
70
|
+
millisBetween ,
|
|
71
|
+
}
|
|
71
72
|
/* No side effect */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
-
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import * as VendoredLodashFnsJs from "./vendored-lodash-fns.js";
|
|
5
4
|
|
|
6
5
|
function cloneDeep(prim) {
|
|
7
6
|
return VendoredLodashFnsJs.cloneDeep(prim);
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
export {
|
|
10
|
+
cloneDeep ,
|
|
11
|
+
}
|
|
11
12
|
/* ./vendored-lodash-fns.js Not a pure module */
|
package/src/bindings/NodeJs.res
CHANGED
|
@@ -56,6 +56,16 @@ module ChildProcess = {
|
|
|
56
56
|
external execWithOptions: (string, execOptions, callback) => unit = "exec"
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
module Url = {
|
|
60
|
+
type t
|
|
61
|
+
@module("url") external fileURLToPath: t => string = "fileURLToPath"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
module ImportMeta = {
|
|
65
|
+
type t = {url: Url.t}
|
|
66
|
+
@val external importMeta: t = "import.meta"
|
|
67
|
+
}
|
|
68
|
+
|
|
59
69
|
module Path = {
|
|
60
70
|
type t
|
|
61
71
|
|
|
@@ -63,10 +73,12 @@ module Path = {
|
|
|
63
73
|
external resolve: array<string> => t = "resolve"
|
|
64
74
|
|
|
65
75
|
@module("path") external join: (t, string) => t = "join"
|
|
76
|
+
@module("path") external dirname: string => t = "dirname"
|
|
66
77
|
|
|
67
78
|
external toString: t => string = "%identity"
|
|
68
79
|
|
|
69
|
-
|
|
80
|
+
// ESM-compatible __dirname replacement
|
|
81
|
+
let __dirname = dirname(Url.fileURLToPath(ImportMeta.importMeta.url))
|
|
70
82
|
}
|
|
71
83
|
|
|
72
84
|
module Fs = {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Url from "url";
|
|
4
|
+
import * as Path from "path";
|
|
5
|
+
import * as Util from "util";
|
|
6
|
+
|
|
7
|
+
function inspectObj(a) {
|
|
8
|
+
return Util.inspect(a, {
|
|
9
|
+
showHidden: false,
|
|
10
|
+
depth: null,
|
|
11
|
+
colors: true
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var Util$1 = {
|
|
16
|
+
inspectObj: inspectObj
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var Process = {};
|
|
20
|
+
|
|
21
|
+
var ChildProcess = {};
|
|
22
|
+
|
|
23
|
+
var Url$1 = {};
|
|
24
|
+
|
|
25
|
+
var ImportMeta = {};
|
|
26
|
+
|
|
27
|
+
var $$__dirname = Path.dirname(Url.fileURLToPath(import.meta.url));
|
|
28
|
+
|
|
29
|
+
var Path$1 = {
|
|
30
|
+
$$__dirname: $$__dirname
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var Promises = {};
|
|
34
|
+
|
|
35
|
+
var Fs = {
|
|
36
|
+
Promises: Promises
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
Util$1 as Util,
|
|
41
|
+
Process ,
|
|
42
|
+
ChildProcess ,
|
|
43
|
+
Url$1 as Url,
|
|
44
|
+
ImportMeta ,
|
|
45
|
+
Path$1 as Path,
|
|
46
|
+
Fs ,
|
|
47
|
+
}
|
|
48
|
+
/* __dirname Not a pure module */
|
package/src/bindings/Pino.res
CHANGED
|
@@ -67,7 +67,7 @@ module Transport = {
|
|
|
67
67
|
external make: transportTarget => t = "transport"
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
@module external makeWithTransport: Transport.t => t = "pino"
|
|
70
|
+
@module("pino") external makeWithTransport: Transport.t => t = "pino"
|
|
71
71
|
|
|
72
72
|
type hooks = {logMethod: (array<string>, string, logLevel) => unit}
|
|
73
73
|
|
|
@@ -100,8 +100,8 @@ type options = {
|
|
|
100
100
|
messageKey?: string,
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
@module external make: options => t = "pino"
|
|
104
|
-
@module external makeWithOptionsAndTransport: (options, Transport.t) => t = "pino"
|
|
103
|
+
@module("pino") external make: options => t = "pino"
|
|
104
|
+
@module("pino") external makeWithOptionsAndTransport: (options, Transport.t) => t = "pino"
|
|
105
105
|
|
|
106
106
|
type childParams
|
|
107
107
|
let createChildParams: 'a => childParams = Utils.magic
|
|
@@ -123,7 +123,7 @@ module MultiStreamLogger = {
|
|
|
123
123
|
type multiStreamRes
|
|
124
124
|
@module("pino") external multistream: array<multiStream> => multiStreamRes = "multistream"
|
|
125
125
|
|
|
126
|
-
@module external makeWithMultiStream: (options, multiStreamRes) => t = "pino"
|
|
126
|
+
@module("pino") external makeWithMultiStream: (options, multiStreamRes) => t = "pino"
|
|
127
127
|
|
|
128
128
|
type destinationOpts = {
|
|
129
129
|
dest: string, //file path
|
|
@@ -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 * as 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
|
|
|
@@ -99,3 +99,18 @@ external makeSql: (~config: poolConfig) => sql = "postgres"
|
|
|
99
99
|
@send
|
|
100
100
|
external preparedUnsafe: (sql, string, unknown, @as(json`{prepare: true}`) _) => promise<'a> =
|
|
101
101
|
"unsafe"
|
|
102
|
+
|
|
103
|
+
@unboxed
|
|
104
|
+
type columnType =
|
|
105
|
+
| @as("INTEGER") Integer
|
|
106
|
+
| @as("BIGINT") BigInt
|
|
107
|
+
| @as("BOOLEAN") Boolean
|
|
108
|
+
| @as("NUMERIC") Numeric
|
|
109
|
+
| @as("DOUBLE PRECISION") DoublePrecision
|
|
110
|
+
| @as("TEXT") Text
|
|
111
|
+
| @as("SERIAL") Serial
|
|
112
|
+
| @as("JSONB") JsonB
|
|
113
|
+
| @as("TIMESTAMP WITH TIME ZONE") TimestampWithTimezone
|
|
114
|
+
| @as("TIMESTAMP WITH TIME ZONE NULL") TimestampWithTimezoneNull
|
|
115
|
+
| @as("TIMESTAMP") TimestampWithoutTimezone
|
|
116
|
+
| Custom(string)
|
|
@@ -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 };
|