@nomicfoundation/edr 0.20.0 → 0.22.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/index.d.ts +110 -162
- package/index.js +83 -112
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Opaque handle to the `Bytecode` struct.
|
|
5
6
|
* Only used on the JS side by the `VmTraceDecoder` class.
|
|
6
7
|
*/
|
|
7
|
-
export declare class BytecodeWrapper {
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
export declare class BytecodeWrapper {}
|
|
10
9
|
|
|
11
10
|
export declare class ContractDecoder {
|
|
12
11
|
/** Creates an empty instance. */
|
|
@@ -82,9 +81,7 @@ export declare class Provider {
|
|
|
82
81
|
setVerboseTracing(verboseTracing: boolean): Promise<void>
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
export declare class ProviderFactory {
|
|
86
|
-
|
|
87
|
-
}
|
|
84
|
+
export declare class ProviderFactory {}
|
|
88
85
|
|
|
89
86
|
export declare class RawTrace {
|
|
90
87
|
get trace(): Array<TracingMessage | TracingStep | TracingMessageResult>
|
|
@@ -115,9 +112,7 @@ export declare class ReturnData {
|
|
|
115
112
|
decodePanic(): bigint
|
|
116
113
|
}
|
|
117
114
|
|
|
118
|
-
export declare class SolidityTestRunnerFactory {
|
|
119
|
-
|
|
120
|
-
}
|
|
115
|
+
export declare class SolidityTestRunnerFactory {}
|
|
121
116
|
|
|
122
117
|
/** See [`edr_solidity_tests::result::TestResult`] */
|
|
123
118
|
export declare class TestResult {
|
|
@@ -195,10 +190,6 @@ export interface AddressLabel {
|
|
|
195
190
|
*/
|
|
196
191
|
export declare function addStatementCoverageInstrumentation(sourceCode: string, sourceId: string, solidityVersion: string): InstrumentationResult
|
|
197
192
|
|
|
198
|
-
export const AMSTERDAM: string
|
|
199
|
-
|
|
200
|
-
export const ARROW_GLACIER: string
|
|
201
|
-
|
|
202
193
|
/** A compilation artifact. */
|
|
203
194
|
export interface Artifact {
|
|
204
195
|
/** The identifier of the artifact. */
|
|
@@ -250,10 +241,6 @@ export interface BaseFeeParamActivation {
|
|
|
250
241
|
elasticityMultiplier: bigint
|
|
251
242
|
}
|
|
252
243
|
|
|
253
|
-
export const BEDROCK: string
|
|
254
|
-
|
|
255
|
-
export const BERLIN: string
|
|
256
|
-
|
|
257
244
|
/** Information about the blob gas used in a block. */
|
|
258
245
|
export interface BlobGas {
|
|
259
246
|
/**
|
|
@@ -281,14 +268,12 @@ export interface BuildInfoAndOutput {
|
|
|
281
268
|
output: Uint8Array
|
|
282
269
|
}
|
|
283
270
|
|
|
284
|
-
export const BYZANTIUM: string
|
|
285
|
-
|
|
286
271
|
/** What chains to cache */
|
|
287
272
|
export declare enum CachedChains {
|
|
288
273
|
/** Cache all chains */
|
|
289
274
|
All = 0,
|
|
290
275
|
/** Don't cache anything */
|
|
291
|
-
None = 1
|
|
276
|
+
None = 1,
|
|
292
277
|
}
|
|
293
278
|
|
|
294
279
|
/** What endpoints to enable caching for */
|
|
@@ -296,7 +281,7 @@ export declare enum CachedEndpoints {
|
|
|
296
281
|
/** Cache all endpoints */
|
|
297
282
|
All = 0,
|
|
298
283
|
/** Only cache non-local host endpoints */
|
|
299
|
-
Remote = 1
|
|
284
|
+
Remote = 1,
|
|
300
285
|
}
|
|
301
286
|
|
|
302
287
|
export interface CallFailedErrorStackTraceEntry {
|
|
@@ -318,7 +303,7 @@ export declare enum CallKind {
|
|
|
318
303
|
/** Regular call that may not change state. */
|
|
319
304
|
StaticCall = 3,
|
|
320
305
|
/** Contract creation. */
|
|
321
|
-
Create = 4
|
|
306
|
+
Create = 4,
|
|
322
307
|
}
|
|
323
308
|
|
|
324
309
|
export interface CallOutput {
|
|
@@ -378,10 +363,6 @@ export interface CallTrace {
|
|
|
378
363
|
children: Array<CallTrace | LogTrace>
|
|
379
364
|
}
|
|
380
365
|
|
|
381
|
-
export const CANCUN: string
|
|
382
|
-
|
|
383
|
-
export const CANYON: string
|
|
384
|
-
|
|
385
366
|
/** Specification of a chain with possible overrides. */
|
|
386
367
|
export interface ChainOverride {
|
|
387
368
|
/** The chain ID */
|
|
@@ -397,7 +378,7 @@ export declare enum CheatcodeErrorCode {
|
|
|
397
378
|
/** The specified cheatcode is not supported. */
|
|
398
379
|
UnsupportedCheatcode = 'UnsupportedCheatcode',
|
|
399
380
|
/** The specified cheatcode is missing. */
|
|
400
|
-
MissingCheatcode = 'MissingCheatcode'
|
|
381
|
+
MissingCheatcode = 'MissingCheatcode',
|
|
401
382
|
}
|
|
402
383
|
|
|
403
384
|
/** Error returned by a cheatcode in Solidity tests. */
|
|
@@ -440,12 +421,10 @@ export declare enum CollectStackTraces {
|
|
|
440
421
|
* Not all tests can be re-executed since certain cheatcodes contain
|
|
441
422
|
* non-deterministic side-effects.
|
|
442
423
|
*/
|
|
443
|
-
OnFailure = 1
|
|
424
|
+
OnFailure = 1,
|
|
444
425
|
}
|
|
445
426
|
|
|
446
|
-
export const
|
|
447
|
-
|
|
448
|
-
export const CONSTRUCTOR_FUNCTION_NAME: string
|
|
427
|
+
export declare const CONSTRUCTOR_FUNCTION_NAME: string
|
|
449
428
|
|
|
450
429
|
export interface ContractCallRunOutOfGasError {
|
|
451
430
|
type: StackTraceEntryType.CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR
|
|
@@ -479,7 +458,7 @@ export declare enum ContractFunctionType {
|
|
|
479
458
|
RECEIVE = 3,
|
|
480
459
|
GETTER = 4,
|
|
481
460
|
MODIFIER = 5,
|
|
482
|
-
FREE_FUNCTION = 6
|
|
461
|
+
FREE_FUNCTION = 6,
|
|
483
462
|
}
|
|
484
463
|
|
|
485
464
|
export interface ContractGasReport {
|
|
@@ -504,7 +483,7 @@ export interface CounterExampleSequence {
|
|
|
504
483
|
}
|
|
505
484
|
|
|
506
485
|
/** The instrumentation coverage library file name. */
|
|
507
|
-
export const COVERAGE_LIBRARY_FILE_NAME: string
|
|
486
|
+
export declare const COVERAGE_LIBRARY_FILE_NAME: string
|
|
508
487
|
|
|
509
488
|
export interface CreateOutput {
|
|
510
489
|
/** Return value */
|
|
@@ -519,8 +498,6 @@ export interface CustomErrorStackTraceEntry {
|
|
|
519
498
|
sourceReference: SourceReference
|
|
520
499
|
}
|
|
521
500
|
|
|
522
|
-
export const DAO_FORK: string
|
|
523
|
-
|
|
524
501
|
export interface DebugTraceLogItem {
|
|
525
502
|
/** Program Counter */
|
|
526
503
|
pc: bigint
|
|
@@ -575,8 +552,6 @@ export interface DirectLibraryCallErrorStackTraceEntry {
|
|
|
575
552
|
sourceReference: SourceReference
|
|
576
553
|
}
|
|
577
554
|
|
|
578
|
-
export const ECOTONE: string
|
|
579
|
-
|
|
580
555
|
/**
|
|
581
556
|
* Indicates that the EVM has experienced an exceptional halt. This causes
|
|
582
557
|
* execution to immediately end with all gas being consumed.
|
|
@@ -598,7 +573,7 @@ export declare enum ExceptionalHalt {
|
|
|
598
573
|
/** Error on created contract that begins with EF */
|
|
599
574
|
CreateContractStartingWithEF = 12,
|
|
600
575
|
/** EIP-3860: Limit and meter initcode. Initcode size limit exceeded. */
|
|
601
|
-
CreateInitCodeSizeLimit = 13
|
|
576
|
+
CreateInitCodeSizeLimit = 13,
|
|
602
577
|
}
|
|
603
578
|
|
|
604
579
|
/** Ethereum execution log. */
|
|
@@ -635,10 +610,10 @@ export declare enum ExitCode {
|
|
|
635
610
|
/** Create collision. */
|
|
636
611
|
CREATE_COLLISION = 7,
|
|
637
612
|
/** Unknown halt reason. */
|
|
638
|
-
UNKNOWN_HALT_REASON = 8
|
|
613
|
+
UNKNOWN_HALT_REASON = 8,
|
|
639
614
|
}
|
|
640
615
|
|
|
641
|
-
export const FALLBACK_FUNCTION_NAME: string
|
|
616
|
+
export declare const FALLBACK_FUNCTION_NAME: string
|
|
642
617
|
|
|
643
618
|
export interface FallbackNotPayableAndNoReceiveErrorStackTraceEntry {
|
|
644
619
|
type: StackTraceEntryType.FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR
|
|
@@ -652,8 +627,6 @@ export interface FallbackNotPayableErrorStackTraceEntry {
|
|
|
652
627
|
sourceReference: SourceReference
|
|
653
628
|
}
|
|
654
629
|
|
|
655
|
-
export const FJORD: string
|
|
656
|
-
|
|
657
630
|
/** Configuration for forking a blockchain */
|
|
658
631
|
export interface ForkConfig {
|
|
659
632
|
/**
|
|
@@ -671,10 +644,6 @@ export interface ForkConfig {
|
|
|
671
644
|
url: string
|
|
672
645
|
}
|
|
673
646
|
|
|
674
|
-
export const FRONTIER: string
|
|
675
|
-
|
|
676
|
-
export const FRONTIER_THAWING: string
|
|
677
|
-
|
|
678
647
|
/** * Determines the level of file system access for the given path.
|
|
679
648
|
*
|
|
680
649
|
* Exact path matching is used for file permissions. Prefix matching is used
|
|
@@ -703,7 +672,7 @@ export declare enum FsAccessPermission {
|
|
|
703
672
|
/** Allows reading all files in the directory and its subdirectories */
|
|
704
673
|
ReadDirectory = 4,
|
|
705
674
|
/** Allows writing all files in the directory and its subdirectories */
|
|
706
|
-
DangerouslyWriteDirectory = 5
|
|
675
|
+
DangerouslyWriteDirectory = 5,
|
|
707
676
|
}
|
|
708
677
|
|
|
709
678
|
export interface FunctionGasReport {
|
|
@@ -808,7 +777,7 @@ export declare enum GasEstimationMode {
|
|
|
808
777
|
* Estimates the minimum gas required for the top-level call to succeed
|
|
809
778
|
* without any internal sub-call running out of gas.
|
|
810
779
|
*/
|
|
811
|
-
NoInternalOutOfGas = 1
|
|
780
|
+
NoInternalOutOfGas = 1,
|
|
812
781
|
}
|
|
813
782
|
|
|
814
783
|
export interface GasReport {
|
|
@@ -830,17 +799,13 @@ export interface GasReportConfig {
|
|
|
830
799
|
export declare enum GasReportExecutionStatus {
|
|
831
800
|
Success = 0,
|
|
832
801
|
Revert = 1,
|
|
833
|
-
Halt = 2
|
|
802
|
+
Halt = 2,
|
|
834
803
|
}
|
|
835
804
|
|
|
836
|
-
export const GENERIC_CHAIN_TYPE: string
|
|
805
|
+
export declare const GENERIC_CHAIN_TYPE: string
|
|
837
806
|
|
|
838
807
|
export declare function genericChainProviderFactory(): ProviderFactory
|
|
839
808
|
|
|
840
|
-
export const GRANITE: string
|
|
841
|
-
|
|
842
|
-
export const GRAY_GLACIER: string
|
|
843
|
-
|
|
844
809
|
/** The result when the EVM terminates due to an exceptional halt. */
|
|
845
810
|
export interface HaltResult {
|
|
846
811
|
/** The exceptional halt that occurred */
|
|
@@ -881,10 +846,6 @@ export interface HeuristicFailed {
|
|
|
881
846
|
kind: "HeuristicFailed"
|
|
882
847
|
}
|
|
883
848
|
|
|
884
|
-
export const HOLOCENE: string
|
|
885
|
-
|
|
886
|
-
export const HOMESTEAD: string
|
|
887
|
-
|
|
888
849
|
export interface HttpHeader {
|
|
889
850
|
name: string
|
|
890
851
|
value: string
|
|
@@ -906,7 +867,7 @@ export declare enum IncludeTraces {
|
|
|
906
867
|
*/
|
|
907
868
|
Failing = 1,
|
|
908
869
|
/** Traces will be included for all test results or executed transactions. */
|
|
909
|
-
All = 2
|
|
870
|
+
All = 2,
|
|
910
871
|
}
|
|
911
872
|
|
|
912
873
|
/** A directive-level inline-config problem, located at the offending directive. */
|
|
@@ -958,8 +919,7 @@ export interface InlineConfigDirectiveLocation {
|
|
|
958
919
|
* over its `kind` tag — mirroring the Rust-side `InlineConfigError` enum so
|
|
959
920
|
* consumers can map each problem onto their own error types.
|
|
960
921
|
*/
|
|
961
|
-
export type InlineConfigDirectiveProblem =
|
|
962
|
-
InlineConfigInvalidSyntax | InlineConfigUnsupportedProfile | InlineConfigInvalidKey | InlineConfigInvalidKeyForTestType | InlineConfigInvalidValue | InlineConfigDuplicateKey
|
|
922
|
+
export type InlineConfigDirectiveProblem = InlineConfigInvalidSyntax | InlineConfigUndeclaredProfile | InlineConfigInvalidKey | InlineConfigInvalidKeyForTestType | InlineConfigInvalidValue | InlineConfigDuplicateKey
|
|
963
923
|
|
|
964
924
|
/**
|
|
965
925
|
* The same key was specified more than once for the same function or
|
|
@@ -980,8 +940,7 @@ export interface InlineConfigDuplicateKey {
|
|
|
980
940
|
* rejected `runSolidityTests` promise as the `inlineConfigErrors` array on the
|
|
981
941
|
* thrown error.
|
|
982
942
|
*/
|
|
983
|
-
export type InlineConfigError =
|
|
984
|
-
InlineConfigSourceError | InlineConfigDirectiveError
|
|
943
|
+
export type InlineConfigError = InlineConfigSourceError | InlineConfigDirectiveError
|
|
985
944
|
|
|
986
945
|
/** An unknown configuration key was used. */
|
|
987
946
|
export interface InlineConfigInvalidKey {
|
|
@@ -1063,15 +1022,16 @@ export interface InlineConfigSourceFileNotFound {
|
|
|
1063
1022
|
* A source-level problem, as a discriminated union over its `kind` tag. These
|
|
1064
1023
|
* cannot be pinned to a single directive line, so they carry no line.
|
|
1065
1024
|
*/
|
|
1066
|
-
export type InlineConfigSourceProblem =
|
|
1067
|
-
InlineConfigInvalidSolcVersion | InlineConfigSourceFileNotFound | InlineConfigDirectiveLocation
|
|
1025
|
+
export type InlineConfigSourceProblem = InlineConfigInvalidSolcVersion | InlineConfigSourceFileNotFound | InlineConfigDirectiveLocation
|
|
1068
1026
|
|
|
1069
|
-
/** A profile
|
|
1070
|
-
export interface
|
|
1027
|
+
/** A directive named a profile the project does not declare. */
|
|
1028
|
+
export interface InlineConfigUndeclaredProfile {
|
|
1071
1029
|
/** Enum tag for JS. */
|
|
1072
|
-
kind: "
|
|
1073
|
-
/** The
|
|
1030
|
+
kind: "InlineConfigUndeclaredProfile"
|
|
1031
|
+
/** The undeclared profile name, exactly as written. */
|
|
1074
1032
|
profile: string
|
|
1033
|
+
/** The profiles the project declares, sorted. */
|
|
1034
|
+
declaredProfiles: Array<string>
|
|
1075
1035
|
}
|
|
1076
1036
|
|
|
1077
1037
|
export interface InstrumentationMetadata {
|
|
@@ -1204,10 +1164,6 @@ export interface InvariantTestKind {
|
|
|
1204
1164
|
readonly failedCorpusReplays: bigint
|
|
1205
1165
|
}
|
|
1206
1166
|
|
|
1207
|
-
export const ISTANBUL: string
|
|
1208
|
-
|
|
1209
|
-
export const ISTHMUS: string
|
|
1210
|
-
|
|
1211
1167
|
/**
|
|
1212
1168
|
* Computes the Keccak-256 hash of `data`, returning the 32-byte digest.
|
|
1213
1169
|
*
|
|
@@ -1217,25 +1173,59 @@ export const ISTHMUS: string
|
|
|
1217
1173
|
*/
|
|
1218
1174
|
export declare function keccak256(data: Uint8Array): Uint8Array
|
|
1219
1175
|
|
|
1220
|
-
export const L1_CHAIN_TYPE: string
|
|
1176
|
+
export declare const L1_CHAIN_TYPE: string
|
|
1221
1177
|
|
|
1222
|
-
export declare function l1GenesisState(hardfork:
|
|
1178
|
+
export declare function l1GenesisState(hardfork: L1Hardfork): Array<AccountOverride>
|
|
1179
|
+
|
|
1180
|
+
/** Identifier for the Ethereum spec. */
|
|
1181
|
+
export declare enum L1Hardfork {
|
|
1182
|
+
/** Byzantium */
|
|
1183
|
+
Byzantium = 6,
|
|
1184
|
+
/** Constantinople */
|
|
1185
|
+
Constantinople = 7,
|
|
1186
|
+
/** Petersburg */
|
|
1187
|
+
Petersburg = 8,
|
|
1188
|
+
/** Istanbul */
|
|
1189
|
+
Istanbul = 9,
|
|
1190
|
+
/** Muir Glacier */
|
|
1191
|
+
MuirGlacier = 10,
|
|
1192
|
+
/** Berlin */
|
|
1193
|
+
Berlin = 11,
|
|
1194
|
+
/** London */
|
|
1195
|
+
London = 12,
|
|
1196
|
+
/** Arrow Glacier */
|
|
1197
|
+
ArrowGlacier = 13,
|
|
1198
|
+
/** Gray Glacier */
|
|
1199
|
+
GrayGlacier = 14,
|
|
1200
|
+
/** Merge */
|
|
1201
|
+
Merge = 15,
|
|
1202
|
+
/** Shanghai */
|
|
1203
|
+
Shanghai = 16,
|
|
1204
|
+
/** Cancun */
|
|
1205
|
+
Cancun = 17,
|
|
1206
|
+
/** Prague */
|
|
1207
|
+
Prague = 18,
|
|
1208
|
+
/** Osaka */
|
|
1209
|
+
Osaka = 19,
|
|
1210
|
+
/** Amsterdam */
|
|
1211
|
+
Amsterdam = 20,
|
|
1212
|
+
}
|
|
1223
1213
|
|
|
1224
1214
|
/**
|
|
1225
|
-
* Tries to parse the provided string to create
|
|
1215
|
+
* Tries to parse the provided string to create an [`L1Hardfork`] instance.
|
|
1226
1216
|
*
|
|
1227
1217
|
* Returns an error if the string does not match any known hardfork.
|
|
1228
1218
|
*/
|
|
1229
|
-
export declare function l1HardforkFromString(hardfork: string):
|
|
1219
|
+
export declare function l1HardforkFromString(hardfork: string): L1Hardfork
|
|
1230
1220
|
|
|
1231
1221
|
/**
|
|
1232
|
-
* Returns the latest supported
|
|
1222
|
+
* Returns the latest supported L1 hardfork.
|
|
1233
1223
|
*
|
|
1234
1224
|
* The returned value will be updated after each network upgrade.
|
|
1235
1225
|
*/
|
|
1236
|
-
export declare function l1HardforkLatest():
|
|
1226
|
+
export declare function l1HardforkLatest(): L1Hardfork
|
|
1237
1227
|
|
|
1238
|
-
export declare function l1HardforkToString(hardfork:
|
|
1228
|
+
export declare function l1HardforkToString(hardfork: L1Hardfork): string
|
|
1239
1229
|
|
|
1240
1230
|
export declare function l1ProviderFactory(): ProviderFactory
|
|
1241
1231
|
|
|
@@ -1276,7 +1266,7 @@ export interface LoggerConfig {
|
|
|
1276
1266
|
/** Kind marker for log traces. */
|
|
1277
1267
|
export declare enum LogKind {
|
|
1278
1268
|
/** Single kind of log. */
|
|
1279
|
-
Log = 5
|
|
1269
|
+
Log = 5,
|
|
1280
1270
|
}
|
|
1281
1271
|
|
|
1282
1272
|
/** Object representing an event log in an execution trace. */
|
|
@@ -1293,21 +1283,17 @@ export interface LogTrace {
|
|
|
1293
1283
|
parameters: DecodedTraceParameters | Array<Uint8Array>
|
|
1294
1284
|
}
|
|
1295
1285
|
|
|
1296
|
-
export const LONDON: string
|
|
1297
|
-
|
|
1298
1286
|
/** Configuration for the provider's mempool. */
|
|
1299
1287
|
export interface MemPoolConfig {
|
|
1300
1288
|
order: MineOrdering
|
|
1301
1289
|
}
|
|
1302
1290
|
|
|
1303
|
-
export const MERGE: string
|
|
1304
|
-
|
|
1305
1291
|
/** The type of ordering to use when selecting blocks to mine. */
|
|
1306
1292
|
export declare enum MineOrdering {
|
|
1307
1293
|
/** Insertion order */
|
|
1308
1294
|
Fifo = 'Fifo',
|
|
1309
1295
|
/** Effective miner fee */
|
|
1310
|
-
Priority = 'Priority'
|
|
1296
|
+
Priority = 'Priority',
|
|
1311
1297
|
}
|
|
1312
1298
|
|
|
1313
1299
|
/** Configuration for the provider's miner. */
|
|
@@ -1329,8 +1315,6 @@ export interface MissingFallbackOrReceiveErrorStackTraceEntry {
|
|
|
1329
1315
|
sourceReference: SourceReference
|
|
1330
1316
|
}
|
|
1331
1317
|
|
|
1332
|
-
export const MUIR_GLACIER: string
|
|
1333
|
-
|
|
1334
1318
|
export interface NonContractAccountCalledErrorStackTraceEntry {
|
|
1335
1319
|
type: StackTraceEntryType.NONCONTRACT_ACCOUNT_CALLED_ERROR
|
|
1336
1320
|
sourceReference: SourceReference
|
|
@@ -1351,11 +1335,11 @@ export interface ObservabilityConfig {
|
|
|
1351
1335
|
includeCallTraces?: IncludeTraces
|
|
1352
1336
|
}
|
|
1353
1337
|
|
|
1354
|
-
export const OP_CHAIN_TYPE: string
|
|
1338
|
+
export declare const OP_CHAIN_TYPE: string
|
|
1355
1339
|
|
|
1356
1340
|
export declare function opGenesisState(hardfork: OpHardfork): Array<AccountOverride>
|
|
1357
1341
|
|
|
1358
|
-
/**
|
|
1342
|
+
/** Identifier for the OP hardfork. */
|
|
1359
1343
|
export declare enum OpHardfork {
|
|
1360
1344
|
Bedrock = 100,
|
|
1361
1345
|
Regolith = 101,
|
|
@@ -1364,7 +1348,7 @@ export declare enum OpHardfork {
|
|
|
1364
1348
|
Fjord = 104,
|
|
1365
1349
|
Granite = 105,
|
|
1366
1350
|
Holocene = 106,
|
|
1367
|
-
Isthmus = 107
|
|
1351
|
+
Isthmus = 107,
|
|
1368
1352
|
}
|
|
1369
1353
|
|
|
1370
1354
|
/**
|
|
@@ -1389,8 +1373,6 @@ export declare function opProviderFactory(): ProviderFactory
|
|
|
1389
1373
|
|
|
1390
1374
|
export declare function opSolidityTestRunnerFactory(): SolidityTestRunnerFactory
|
|
1391
1375
|
|
|
1392
|
-
export const OSAKA: string
|
|
1393
|
-
|
|
1394
1376
|
export interface OtherExecutionErrorStackTraceEntry {
|
|
1395
1377
|
type: StackTraceEntryType.OTHER_EXECUTION_ERROR
|
|
1396
1378
|
sourceReference?: SourceReference
|
|
@@ -1410,11 +1392,7 @@ export interface PathPermission {
|
|
|
1410
1392
|
path: string
|
|
1411
1393
|
}
|
|
1412
1394
|
|
|
1413
|
-
export const
|
|
1414
|
-
|
|
1415
|
-
export const PRAGUE: string
|
|
1416
|
-
|
|
1417
|
-
export const PRECOMPILE_FUNCTION_NAME: string
|
|
1395
|
+
export declare const PRECOMPILE_FUNCTION_NAME: string
|
|
1418
1396
|
|
|
1419
1397
|
export interface PrecompileErrorStackTraceEntry {
|
|
1420
1398
|
type: StackTraceEntryType.PRECOMPILE_ERROR
|
|
@@ -1509,9 +1487,7 @@ export interface ProviderConfig {
|
|
|
1509
1487
|
transactionGasCap?: bigint | false
|
|
1510
1488
|
}
|
|
1511
1489
|
|
|
1512
|
-
export const RECEIVE_FUNCTION_NAME: string
|
|
1513
|
-
|
|
1514
|
-
export const REGOLITH: string
|
|
1490
|
+
export declare const RECEIVE_FUNCTION_NAME: string
|
|
1515
1491
|
|
|
1516
1492
|
export interface ReturndataSizeErrorStackTraceEntry {
|
|
1517
1493
|
type: StackTraceEntryType.RETURNDATA_SIZE_ERROR
|
|
@@ -1535,13 +1511,18 @@ export interface RevertResult {
|
|
|
1535
1511
|
output: Uint8Array
|
|
1536
1512
|
}
|
|
1537
1513
|
|
|
1538
|
-
|
|
1514
|
+
/**
|
|
1515
|
+
* Derives the secp256k1 public key of the provided secret key, returning it
|
|
1516
|
+
* in uncompressed SEC1 form: 65 bytes, `0x04 || X || Y`.
|
|
1517
|
+
*
|
|
1518
|
+
* Throws if the input isn't a valid secret key: exactly 32 bytes encoding a
|
|
1519
|
+
* big-endian scalar in `[1, n)`, where `n` is the curve order.
|
|
1520
|
+
*/
|
|
1521
|
+
export declare function secp256k1PublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array
|
|
1539
1522
|
|
|
1540
|
-
export type SolidityStackTrace =
|
|
1541
|
-
Array<SolidityStackTraceEntry>
|
|
1523
|
+
export type SolidityStackTrace = Array<SolidityStackTraceEntry>
|
|
1542
1524
|
|
|
1543
|
-
export type SolidityStackTraceEntry =
|
|
1544
|
-
CallstackEntryStackTraceEntry | UnrecognizedCreateCallstackEntryStackTraceEntry | UnrecognizedContractCallstackEntryStackTraceEntry | PrecompileErrorStackTraceEntry | RevertErrorStackTraceEntry | PanicErrorStackTraceEntry | CustomErrorStackTraceEntry | FunctionNotPayableErrorStackTraceEntry | InvalidParamsErrorStackTraceEntry | FallbackNotPayableErrorStackTraceEntry | FallbackNotPayableAndNoReceiveErrorStackTraceEntry | UnrecognizedFunctionWithoutFallbackErrorStackTraceEntry | MissingFallbackOrReceiveErrorStackTraceEntry | ReturndataSizeErrorStackTraceEntry | NonContractAccountCalledErrorStackTraceEntry | CallFailedErrorStackTraceEntry | DirectLibraryCallErrorStackTraceEntry | UnrecognizedCreateErrorStackTraceEntry | UnrecognizedContractErrorStackTraceEntry | OtherExecutionErrorStackTraceEntry | UnmappedSolc063RevertErrorStackTraceEntry | ContractTooLargeErrorStackTraceEntry | InternalFunctionCallStackEntry | ContractCallRunOutOfGasError | CheatcodeErrorStackTraceEntry
|
|
1525
|
+
export type SolidityStackTraceEntry = CallstackEntryStackTraceEntry | UnrecognizedCreateCallstackEntryStackTraceEntry | UnrecognizedContractCallstackEntryStackTraceEntry | PrecompileErrorStackTraceEntry | RevertErrorStackTraceEntry | PanicErrorStackTraceEntry | CustomErrorStackTraceEntry | FunctionNotPayableErrorStackTraceEntry | InvalidParamsErrorStackTraceEntry | FallbackNotPayableErrorStackTraceEntry | FallbackNotPayableAndNoReceiveErrorStackTraceEntry | UnrecognizedFunctionWithoutFallbackErrorStackTraceEntry | MissingFallbackOrReceiveErrorStackTraceEntry | ReturndataSizeErrorStackTraceEntry | NonContractAccountCalledErrorStackTraceEntry | CallFailedErrorStackTraceEntry | DirectLibraryCallErrorStackTraceEntry | UnrecognizedCreateErrorStackTraceEntry | UnrecognizedContractErrorStackTraceEntry | OtherExecutionErrorStackTraceEntry | UnmappedSolc063RevertErrorStackTraceEntry | ContractTooLargeErrorStackTraceEntry | InternalFunctionCallStackEntry | ContractCallRunOutOfGasError | CheatcodeErrorStackTraceEntry
|
|
1545
1526
|
|
|
1546
1527
|
/** The result of a Solidity test run. */
|
|
1547
1528
|
export interface SolidityTestResult {
|
|
@@ -1792,6 +1773,23 @@ export interface SolidityTestRunnerConfigArgs {
|
|
|
1792
1773
|
* do.
|
|
1793
1774
|
*/
|
|
1794
1775
|
importMappings?: Record<string, string>
|
|
1776
|
+
/**
|
|
1777
|
+
* The Solidity test profile this run was started with.
|
|
1778
|
+
*
|
|
1779
|
+
* An inline-config directive prefixed with a profile name
|
|
1780
|
+
* (`forge-config: ci.fuzz.runs = 8`) applies only under that profile; an
|
|
1781
|
+
* unprefixed one applies under every profile, and the prefixed one wins
|
|
1782
|
+
* where both set the same key. Defaults to `default`.
|
|
1783
|
+
*/
|
|
1784
|
+
testProfile?: string
|
|
1785
|
+
/**
|
|
1786
|
+
* Every Solidity test profile the project declares.
|
|
1787
|
+
*
|
|
1788
|
+
* A prefix naming a profile that is not declared is an error, so a
|
|
1789
|
+
* mistyped one fails whichever profile is selected. `default` is always
|
|
1790
|
+
* declared. Defaults to `["default"]`.
|
|
1791
|
+
*/
|
|
1792
|
+
declaredTestProfiles?: Array<string>
|
|
1795
1793
|
}
|
|
1796
1794
|
|
|
1797
1795
|
export interface SourceReference {
|
|
@@ -1803,54 +1801,6 @@ export interface SourceReference {
|
|
|
1803
1801
|
range: Array<number>
|
|
1804
1802
|
}
|
|
1805
1803
|
|
|
1806
|
-
/** Identifier for the Ethereum spec. */
|
|
1807
|
-
export declare enum SpecId {
|
|
1808
|
-
/** Frontier */
|
|
1809
|
-
Frontier = 0,
|
|
1810
|
-
/** Frontier Thawing */
|
|
1811
|
-
FrontierThawing = 1,
|
|
1812
|
-
/** Homestead */
|
|
1813
|
-
Homestead = 2,
|
|
1814
|
-
/** DAO Fork */
|
|
1815
|
-
DaoFork = 3,
|
|
1816
|
-
/** Tangerine */
|
|
1817
|
-
Tangerine = 4,
|
|
1818
|
-
/** Spurious Dragon */
|
|
1819
|
-
SpuriousDragon = 5,
|
|
1820
|
-
/** Byzantium */
|
|
1821
|
-
Byzantium = 6,
|
|
1822
|
-
/** Constantinople */
|
|
1823
|
-
Constantinople = 7,
|
|
1824
|
-
/** Petersburg */
|
|
1825
|
-
Petersburg = 8,
|
|
1826
|
-
/** Istanbul */
|
|
1827
|
-
Istanbul = 9,
|
|
1828
|
-
/** Muir Glacier */
|
|
1829
|
-
MuirGlacier = 10,
|
|
1830
|
-
/** Berlin */
|
|
1831
|
-
Berlin = 11,
|
|
1832
|
-
/** London */
|
|
1833
|
-
London = 12,
|
|
1834
|
-
/** Arrow Glacier */
|
|
1835
|
-
ArrowGlacier = 13,
|
|
1836
|
-
/** Gray Glacier */
|
|
1837
|
-
GrayGlacier = 14,
|
|
1838
|
-
/** Merge */
|
|
1839
|
-
Merge = 15,
|
|
1840
|
-
/** Shanghai */
|
|
1841
|
-
Shanghai = 16,
|
|
1842
|
-
/** Cancun */
|
|
1843
|
-
Cancun = 17,
|
|
1844
|
-
/** Prague */
|
|
1845
|
-
Prague = 18,
|
|
1846
|
-
/** Osaka */
|
|
1847
|
-
Osaka = 19,
|
|
1848
|
-
/** Amsterdam */
|
|
1849
|
-
Amsterdam = 20
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
export const SPURIOUS_DRAGON: string
|
|
1853
|
-
|
|
1854
1804
|
/** The stack trace result */
|
|
1855
1805
|
export interface StackTrace {
|
|
1856
1806
|
/** Enum tag for JS. */
|
|
@@ -1884,7 +1834,7 @@ export declare enum StackTraceEntryType {
|
|
|
1884
1834
|
CONTRACT_TOO_LARGE_ERROR = 21,
|
|
1885
1835
|
INTERNAL_FUNCTION_CALLSTACK_ENTRY = 22,
|
|
1886
1836
|
CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR = 23,
|
|
1887
|
-
CHEATCODE_ERROR = 24
|
|
1837
|
+
CHEATCODE_ERROR = 24,
|
|
1888
1838
|
}
|
|
1889
1839
|
|
|
1890
1840
|
export declare function stackTraceEntryTypeToString(val: StackTraceEntryType): string
|
|
@@ -1932,7 +1882,7 @@ export declare enum SuccessReason {
|
|
|
1932
1882
|
/** The opcode `RETURN` was called */
|
|
1933
1883
|
Return = 1,
|
|
1934
1884
|
/** The opcode `SELFDESTRUCT` was called */
|
|
1935
|
-
SelfDestruct = 2
|
|
1885
|
+
SelfDestruct = 2,
|
|
1936
1886
|
}
|
|
1937
1887
|
|
|
1938
1888
|
/** The result when the EVM terminates successfully. */
|
|
@@ -1979,8 +1929,6 @@ export interface SuiteResult {
|
|
|
1979
1929
|
warnings: Array<string>
|
|
1980
1930
|
}
|
|
1981
1931
|
|
|
1982
|
-
export const TANGERINE: string
|
|
1983
|
-
|
|
1984
1932
|
/** The result of a test execution. */
|
|
1985
1933
|
export declare enum TestStatus {
|
|
1986
1934
|
/** Test success */
|
|
@@ -1988,7 +1936,7 @@ export declare enum TestStatus {
|
|
|
1988
1936
|
/** Test failure */
|
|
1989
1937
|
Failure = 'Failure',
|
|
1990
1938
|
/** Test skipped */
|
|
1991
|
-
Skipped = 'Skipped'
|
|
1939
|
+
Skipped = 'Skipped',
|
|
1992
1940
|
}
|
|
1993
1941
|
|
|
1994
1942
|
/** Tracing config for Solidity stack trace generation. */
|
|
@@ -2057,16 +2005,16 @@ export interface UnexpectedError {
|
|
|
2057
2005
|
errorMessage: string
|
|
2058
2006
|
}
|
|
2059
2007
|
|
|
2060
|
-
export const UNKNOWN_FUNCTION_NAME: string
|
|
2008
|
+
export declare const UNKNOWN_FUNCTION_NAME: string
|
|
2061
2009
|
|
|
2062
2010
|
export interface UnmappedSolc063RevertErrorStackTraceEntry {
|
|
2063
2011
|
type: StackTraceEntryType.UNMAPPED_SOLC_0_6_3_REVERT_ERROR
|
|
2064
2012
|
sourceReference?: SourceReference
|
|
2065
2013
|
}
|
|
2066
2014
|
|
|
2067
|
-
export const UNRECOGNIZED_CONTRACT_NAME: string
|
|
2015
|
+
export declare const UNRECOGNIZED_CONTRACT_NAME: string
|
|
2068
2016
|
|
|
2069
|
-
export const UNRECOGNIZED_FUNCTION_NAME: string
|
|
2017
|
+
export declare const UNRECOGNIZED_FUNCTION_NAME: string
|
|
2070
2018
|
|
|
2071
2019
|
export interface UnrecognizedContractCallstackEntryStackTraceEntry {
|
|
2072
2020
|
type: StackTraceEntryType.UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY
|
package/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// prettier-ignore
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
// @ts-nocheck
|
|
4
3
|
/* auto-generated by NAPI-RS */
|
|
@@ -63,7 +62,7 @@ const isMuslFromChildProcess = () => {
|
|
|
63
62
|
function requireNative() {
|
|
64
63
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
65
64
|
try {
|
|
66
|
-
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
65
|
+
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
67
66
|
} catch (err) {
|
|
68
67
|
loadErrors.push(err)
|
|
69
68
|
}
|
|
@@ -77,8 +76,8 @@ function requireNative() {
|
|
|
77
76
|
try {
|
|
78
77
|
const binding = require('@nomicfoundation/edr-android-arm64')
|
|
79
78
|
const bindingPackageVersion = require('@nomicfoundation/edr-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
79
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
80
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
81
|
}
|
|
83
82
|
return binding
|
|
84
83
|
} catch (e) {
|
|
@@ -93,8 +92,8 @@ function requireNative() {
|
|
|
93
92
|
try {
|
|
94
93
|
const binding = require('@nomicfoundation/edr-android-arm-eabi')
|
|
95
94
|
const bindingPackageVersion = require('@nomicfoundation/edr-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
95
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
96
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
97
|
}
|
|
99
98
|
return binding
|
|
100
99
|
} catch (e) {
|
|
@@ -107,36 +106,36 @@ function requireNative() {
|
|
|
107
106
|
if (process.arch === 'x64') {
|
|
108
107
|
if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
|
|
109
108
|
try {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
return require('./edr.win32-x64-gnu.node')
|
|
110
|
+
} catch (e) {
|
|
111
|
+
loadErrors.push(e)
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const binding = require('@nomicfoundation/edr-win32-x64-gnu')
|
|
115
|
+
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-gnu/package.json').version
|
|
116
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
117
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
118
|
+
}
|
|
119
|
+
return binding
|
|
120
|
+
} catch (e) {
|
|
121
|
+
loadErrors.push(e)
|
|
119
122
|
}
|
|
120
|
-
return binding
|
|
121
|
-
} catch (e) {
|
|
122
|
-
loadErrors.push(e)
|
|
123
|
-
}
|
|
124
123
|
} else {
|
|
125
124
|
try {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
125
|
+
return require('./edr.win32-x64-msvc.node')
|
|
126
|
+
} catch (e) {
|
|
127
|
+
loadErrors.push(e)
|
|
128
|
+
}
|
|
129
|
+
try {
|
|
130
|
+
const binding = require('@nomicfoundation/edr-win32-x64-msvc')
|
|
131
|
+
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-msvc/package.json').version
|
|
132
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
133
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
134
|
+
}
|
|
135
|
+
return binding
|
|
136
|
+
} catch (e) {
|
|
137
|
+
loadErrors.push(e)
|
|
135
138
|
}
|
|
136
|
-
return binding
|
|
137
|
-
} catch (e) {
|
|
138
|
-
loadErrors.push(e)
|
|
139
|
-
}
|
|
140
139
|
}
|
|
141
140
|
} else if (process.arch === 'ia32') {
|
|
142
141
|
try {
|
|
@@ -147,8 +146,8 @@ function requireNative() {
|
|
|
147
146
|
try {
|
|
148
147
|
const binding = require('@nomicfoundation/edr-win32-ia32-msvc')
|
|
149
148
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
149
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
150
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
151
|
}
|
|
153
152
|
return binding
|
|
154
153
|
} catch (e) {
|
|
@@ -163,8 +162,8 @@ function requireNative() {
|
|
|
163
162
|
try {
|
|
164
163
|
const binding = require('@nomicfoundation/edr-win32-arm64-msvc')
|
|
165
164
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
165
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
166
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
167
|
}
|
|
169
168
|
return binding
|
|
170
169
|
} catch (e) {
|
|
@@ -182,8 +181,8 @@ function requireNative() {
|
|
|
182
181
|
try {
|
|
183
182
|
const binding = require('@nomicfoundation/edr-darwin-universal')
|
|
184
183
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
184
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
185
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
186
|
}
|
|
188
187
|
return binding
|
|
189
188
|
} catch (e) {
|
|
@@ -198,8 +197,8 @@ function requireNative() {
|
|
|
198
197
|
try {
|
|
199
198
|
const binding = require('@nomicfoundation/edr-darwin-x64')
|
|
200
199
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
200
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
201
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
202
|
}
|
|
204
203
|
return binding
|
|
205
204
|
} catch (e) {
|
|
@@ -214,8 +213,8 @@ function requireNative() {
|
|
|
214
213
|
try {
|
|
215
214
|
const binding = require('@nomicfoundation/edr-darwin-arm64')
|
|
216
215
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
216
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
217
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
218
|
}
|
|
220
219
|
return binding
|
|
221
220
|
} catch (e) {
|
|
@@ -234,8 +233,8 @@ function requireNative() {
|
|
|
234
233
|
try {
|
|
235
234
|
const binding = require('@nomicfoundation/edr-freebsd-x64')
|
|
236
235
|
const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
236
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
237
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
238
|
}
|
|
240
239
|
return binding
|
|
241
240
|
} catch (e) {
|
|
@@ -250,8 +249,8 @@ function requireNative() {
|
|
|
250
249
|
try {
|
|
251
250
|
const binding = require('@nomicfoundation/edr-freebsd-arm64')
|
|
252
251
|
const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
252
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
253
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
254
|
}
|
|
256
255
|
return binding
|
|
257
256
|
} catch (e) {
|
|
@@ -271,8 +270,8 @@ function requireNative() {
|
|
|
271
270
|
try {
|
|
272
271
|
const binding = require('@nomicfoundation/edr-linux-x64-musl')
|
|
273
272
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
273
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
274
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
275
|
}
|
|
277
276
|
return binding
|
|
278
277
|
} catch (e) {
|
|
@@ -287,8 +286,8 @@ function requireNative() {
|
|
|
287
286
|
try {
|
|
288
287
|
const binding = require('@nomicfoundation/edr-linux-x64-gnu')
|
|
289
288
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
289
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
290
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
291
|
}
|
|
293
292
|
return binding
|
|
294
293
|
} catch (e) {
|
|
@@ -305,8 +304,8 @@ function requireNative() {
|
|
|
305
304
|
try {
|
|
306
305
|
const binding = require('@nomicfoundation/edr-linux-arm64-musl')
|
|
307
306
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
307
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
308
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
309
|
}
|
|
311
310
|
return binding
|
|
312
311
|
} catch (e) {
|
|
@@ -321,8 +320,8 @@ function requireNative() {
|
|
|
321
320
|
try {
|
|
322
321
|
const binding = require('@nomicfoundation/edr-linux-arm64-gnu')
|
|
323
322
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
323
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
324
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
325
|
}
|
|
327
326
|
return binding
|
|
328
327
|
} catch (e) {
|
|
@@ -339,8 +338,8 @@ function requireNative() {
|
|
|
339
338
|
try {
|
|
340
339
|
const binding = require('@nomicfoundation/edr-linux-arm-musleabihf')
|
|
341
340
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
341
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
342
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
343
|
}
|
|
345
344
|
return binding
|
|
346
345
|
} catch (e) {
|
|
@@ -355,8 +354,8 @@ function requireNative() {
|
|
|
355
354
|
try {
|
|
356
355
|
const binding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
|
|
357
356
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
357
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
358
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
359
|
}
|
|
361
360
|
return binding
|
|
362
361
|
} catch (e) {
|
|
@@ -373,8 +372,8 @@ function requireNative() {
|
|
|
373
372
|
try {
|
|
374
373
|
const binding = require('@nomicfoundation/edr-linux-loong64-musl')
|
|
375
374
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
375
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
376
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
377
|
}
|
|
379
378
|
return binding
|
|
380
379
|
} catch (e) {
|
|
@@ -389,8 +388,8 @@ function requireNative() {
|
|
|
389
388
|
try {
|
|
390
389
|
const binding = require('@nomicfoundation/edr-linux-loong64-gnu')
|
|
391
390
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
391
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
392
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
393
|
}
|
|
395
394
|
return binding
|
|
396
395
|
} catch (e) {
|
|
@@ -407,8 +406,8 @@ function requireNative() {
|
|
|
407
406
|
try {
|
|
408
407
|
const binding = require('@nomicfoundation/edr-linux-riscv64-musl')
|
|
409
408
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
409
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
410
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
411
|
}
|
|
413
412
|
return binding
|
|
414
413
|
} catch (e) {
|
|
@@ -423,8 +422,8 @@ function requireNative() {
|
|
|
423
422
|
try {
|
|
424
423
|
const binding = require('@nomicfoundation/edr-linux-riscv64-gnu')
|
|
425
424
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
425
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
426
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
427
|
}
|
|
429
428
|
return binding
|
|
430
429
|
} catch (e) {
|
|
@@ -440,8 +439,8 @@ function requireNative() {
|
|
|
440
439
|
try {
|
|
441
440
|
const binding = require('@nomicfoundation/edr-linux-ppc64-gnu')
|
|
442
441
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
442
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
443
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
444
|
}
|
|
446
445
|
return binding
|
|
447
446
|
} catch (e) {
|
|
@@ -456,8 +455,8 @@ function requireNative() {
|
|
|
456
455
|
try {
|
|
457
456
|
const binding = require('@nomicfoundation/edr-linux-s390x-gnu')
|
|
458
457
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
458
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
459
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
460
|
}
|
|
462
461
|
return binding
|
|
463
462
|
} catch (e) {
|
|
@@ -476,8 +475,8 @@ function requireNative() {
|
|
|
476
475
|
try {
|
|
477
476
|
const binding = require('@nomicfoundation/edr-openharmony-arm64')
|
|
478
477
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
478
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
479
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
480
|
}
|
|
482
481
|
return binding
|
|
483
482
|
} catch (e) {
|
|
@@ -492,8 +491,8 @@ function requireNative() {
|
|
|
492
491
|
try {
|
|
493
492
|
const binding = require('@nomicfoundation/edr-openharmony-x64')
|
|
494
493
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
494
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
495
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
496
|
}
|
|
498
497
|
return binding
|
|
499
498
|
} catch (e) {
|
|
@@ -508,8 +507,8 @@ function requireNative() {
|
|
|
508
507
|
try {
|
|
509
508
|
const binding = require('@nomicfoundation/edr-openharmony-arm')
|
|
510
509
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
510
|
+
if (bindingPackageVersion !== '0.22.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
511
|
+
throw new Error(`Native binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
512
|
}
|
|
514
513
|
return binding
|
|
515
514
|
} catch (e) {
|
|
@@ -550,7 +549,7 @@ function createLoadErrorChain(errors) {
|
|
|
550
549
|
//
|
|
551
550
|
// NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
|
|
552
551
|
// WASI loading. It never crosses into another flavor or falls back to native.
|
|
553
|
-
const __napiWasiFlavors = [
|
|
552
|
+
const __napiWasiFlavors = ['wasm32-wasi']
|
|
554
553
|
const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
|
|
555
554
|
const __napiWasiFlavorRequested =
|
|
556
555
|
typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
|
|
@@ -619,11 +618,11 @@ if (!nativeBinding || forceWasi) {
|
|
|
619
618
|
}
|
|
620
619
|
return null
|
|
621
620
|
}
|
|
622
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
621
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
623
622
|
let candidateError = null
|
|
624
623
|
let candidateFailed = false
|
|
625
624
|
try {
|
|
626
|
-
candidateError = __napiWasiResolveCandidate('./edr.wasi.cjs', false, [
|
|
625
|
+
candidateError = __napiWasiResolveCandidate('./edr.wasi.cjs', false, ['./edr.wasm32-wasi.debug.wasm', './edr.wasm32-wasi.wasm'])
|
|
627
626
|
candidateFailed = candidateError !== null
|
|
628
627
|
if (!candidateFailed) {
|
|
629
628
|
wasiBinding = require('./edr.wasi.cjs')
|
|
@@ -639,7 +638,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
639
638
|
loadErrors.push(candidateError)
|
|
640
639
|
}
|
|
641
640
|
}
|
|
642
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
641
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
643
642
|
let candidateError = null
|
|
644
643
|
let candidateFailed = false
|
|
645
644
|
try {
|
|
@@ -648,8 +647,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
647
|
if (!candidateFailed) {
|
|
649
648
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
649
|
const bindingPackageVersion = require('@nomicfoundation/edr-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '0.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
650
|
+
if (bindingPackageVersion !== '0.22.0') {
|
|
651
|
+
throw new Error(`WASI binding package version mismatch, expected 0.22.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
652
|
}
|
|
654
653
|
}
|
|
655
654
|
wasiBinding = require('@nomicfoundation/edr-wasm32-wasi')
|
|
@@ -713,45 +712,27 @@ module.exports.ReturnData = nativeBinding.ReturnData
|
|
|
713
712
|
module.exports.SolidityTestRunnerFactory = nativeBinding.SolidityTestRunnerFactory
|
|
714
713
|
module.exports.TestResult = nativeBinding.TestResult
|
|
715
714
|
module.exports.addStatementCoverageInstrumentation = nativeBinding.addStatementCoverageInstrumentation
|
|
716
|
-
module.exports.AMSTERDAM = nativeBinding.AMSTERDAM
|
|
717
|
-
module.exports.ARROW_GLACIER = nativeBinding.ARROW_GLACIER
|
|
718
|
-
module.exports.BEDROCK = nativeBinding.BEDROCK
|
|
719
|
-
module.exports.BERLIN = nativeBinding.BERLIN
|
|
720
|
-
module.exports.BYZANTIUM = nativeBinding.BYZANTIUM
|
|
721
715
|
module.exports.CachedChains = nativeBinding.CachedChains
|
|
722
716
|
module.exports.CachedEndpoints = nativeBinding.CachedEndpoints
|
|
723
717
|
module.exports.CallKind = nativeBinding.CallKind
|
|
724
|
-
module.exports.CANCUN = nativeBinding.CANCUN
|
|
725
|
-
module.exports.CANYON = nativeBinding.CANYON
|
|
726
718
|
module.exports.CheatcodeErrorCode = nativeBinding.CheatcodeErrorCode
|
|
727
719
|
module.exports.CollectStackTraces = nativeBinding.CollectStackTraces
|
|
728
|
-
module.exports.CONSTANTINOPLE = nativeBinding.CONSTANTINOPLE
|
|
729
720
|
module.exports.CONSTRUCTOR_FUNCTION_NAME = nativeBinding.CONSTRUCTOR_FUNCTION_NAME
|
|
730
721
|
module.exports.ContractFunctionType = nativeBinding.ContractFunctionType
|
|
731
722
|
module.exports.COVERAGE_LIBRARY_FILE_NAME = nativeBinding.COVERAGE_LIBRARY_FILE_NAME
|
|
732
|
-
module.exports.DAO_FORK = nativeBinding.DAO_FORK
|
|
733
|
-
module.exports.ECOTONE = nativeBinding.ECOTONE
|
|
734
723
|
module.exports.ExceptionalHalt = nativeBinding.ExceptionalHalt
|
|
735
724
|
module.exports.ExitCode = nativeBinding.ExitCode
|
|
736
725
|
module.exports.FALLBACK_FUNCTION_NAME = nativeBinding.FALLBACK_FUNCTION_NAME
|
|
737
|
-
module.exports.FJORD = nativeBinding.FJORD
|
|
738
|
-
module.exports.FRONTIER = nativeBinding.FRONTIER
|
|
739
|
-
module.exports.FRONTIER_THAWING = nativeBinding.FRONTIER_THAWING
|
|
740
726
|
module.exports.FsAccessPermission = nativeBinding.FsAccessPermission
|
|
741
727
|
module.exports.GasEstimationMode = nativeBinding.GasEstimationMode
|
|
742
728
|
module.exports.GasReportExecutionStatus = nativeBinding.GasReportExecutionStatus
|
|
743
729
|
module.exports.GENERIC_CHAIN_TYPE = nativeBinding.GENERIC_CHAIN_TYPE
|
|
744
730
|
module.exports.genericChainProviderFactory = nativeBinding.genericChainProviderFactory
|
|
745
|
-
module.exports.GRANITE = nativeBinding.GRANITE
|
|
746
|
-
module.exports.GRAY_GLACIER = nativeBinding.GRAY_GLACIER
|
|
747
|
-
module.exports.HOLOCENE = nativeBinding.HOLOCENE
|
|
748
|
-
module.exports.HOMESTEAD = nativeBinding.HOMESTEAD
|
|
749
731
|
module.exports.IncludeTraces = nativeBinding.IncludeTraces
|
|
750
|
-
module.exports.ISTANBUL = nativeBinding.ISTANBUL
|
|
751
|
-
module.exports.ISTHMUS = nativeBinding.ISTHMUS
|
|
752
732
|
module.exports.keccak256 = nativeBinding.keccak256
|
|
753
733
|
module.exports.L1_CHAIN_TYPE = nativeBinding.L1_CHAIN_TYPE
|
|
754
734
|
module.exports.l1GenesisState = nativeBinding.l1GenesisState
|
|
735
|
+
module.exports.L1Hardfork = nativeBinding.L1Hardfork
|
|
755
736
|
module.exports.l1HardforkFromString = nativeBinding.l1HardforkFromString
|
|
756
737
|
module.exports.l1HardforkLatest = nativeBinding.l1HardforkLatest
|
|
757
738
|
module.exports.l1HardforkToString = nativeBinding.l1HardforkToString
|
|
@@ -760,10 +741,7 @@ module.exports.l1SolidityTestRunnerFactory = nativeBinding.l1SolidityTestRunnerF
|
|
|
760
741
|
module.exports.latestSupportedSolidityVersion = nativeBinding.latestSupportedSolidityVersion
|
|
761
742
|
module.exports.linkHexStringBytecode = nativeBinding.linkHexStringBytecode
|
|
762
743
|
module.exports.LogKind = nativeBinding.LogKind
|
|
763
|
-
module.exports.LONDON = nativeBinding.LONDON
|
|
764
|
-
module.exports.MERGE = nativeBinding.MERGE
|
|
765
744
|
module.exports.MineOrdering = nativeBinding.MineOrdering
|
|
766
|
-
module.exports.MUIR_GLACIER = nativeBinding.MUIR_GLACIER
|
|
767
745
|
module.exports.OP_CHAIN_TYPE = nativeBinding.OP_CHAIN_TYPE
|
|
768
746
|
module.exports.opGenesisState = nativeBinding.opGenesisState
|
|
769
747
|
module.exports.OpHardfork = nativeBinding.OpHardfork
|
|
@@ -772,21 +750,14 @@ module.exports.opHardforkToString = nativeBinding.opHardforkToString
|
|
|
772
750
|
module.exports.opLatestHardfork = nativeBinding.opLatestHardfork
|
|
773
751
|
module.exports.opProviderFactory = nativeBinding.opProviderFactory
|
|
774
752
|
module.exports.opSolidityTestRunnerFactory = nativeBinding.opSolidityTestRunnerFactory
|
|
775
|
-
module.exports.OSAKA = nativeBinding.OSAKA
|
|
776
|
-
module.exports.PETERSBURG = nativeBinding.PETERSBURG
|
|
777
|
-
module.exports.PRAGUE = nativeBinding.PRAGUE
|
|
778
753
|
module.exports.PRECOMPILE_FUNCTION_NAME = nativeBinding.PRECOMPILE_FUNCTION_NAME
|
|
779
754
|
module.exports.precompileP256Verify = nativeBinding.precompileP256Verify
|
|
780
755
|
module.exports.printStackTrace = nativeBinding.printStackTrace
|
|
781
756
|
module.exports.RECEIVE_FUNCTION_NAME = nativeBinding.RECEIVE_FUNCTION_NAME
|
|
782
|
-
module.exports.
|
|
783
|
-
module.exports.SHANGHAI = nativeBinding.SHANGHAI
|
|
784
|
-
module.exports.SpecId = nativeBinding.SpecId
|
|
785
|
-
module.exports.SPURIOUS_DRAGON = nativeBinding.SPURIOUS_DRAGON
|
|
757
|
+
module.exports.secp256k1PublicKeyFromSecretKey = nativeBinding.secp256k1PublicKeyFromSecretKey
|
|
786
758
|
module.exports.StackTraceEntryType = nativeBinding.StackTraceEntryType
|
|
787
759
|
module.exports.stackTraceEntryTypeToString = nativeBinding.stackTraceEntryTypeToString
|
|
788
760
|
module.exports.SuccessReason = nativeBinding.SuccessReason
|
|
789
|
-
module.exports.TANGERINE = nativeBinding.TANGERINE
|
|
790
761
|
module.exports.TestStatus = nativeBinding.TestStatus
|
|
791
762
|
module.exports.UNKNOWN_FUNCTION_NAME = nativeBinding.UNKNOWN_FUNCTION_NAME
|
|
792
763
|
module.exports.UNRECOGNIZED_CONTRACT_NAME = nativeBinding.UNRECOGNIZED_CONTRACT_NAME
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@napi-rs/cli": "^3.7.0",
|
|
6
6
|
"@nomicfoundation/ethereumjs-util": "^9.0.4",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@types/chai-as-promised": "^7.1.8",
|
|
10
10
|
"@types/mocha": ">=9.1.0",
|
|
11
11
|
"@types/node": "^22.0.0",
|
|
12
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
13
|
-
"@typescript-eslint/parser": "8.
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "8.70.0",
|
|
13
|
+
"@typescript-eslint/parser": "8.70.0",
|
|
14
14
|
"chai": "^4.3.6",
|
|
15
15
|
"chai-as-promised": "^7.1.1",
|
|
16
16
|
"chalk": "^2.4.2",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
},
|
|
60
60
|
"types": "index.d.ts",
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@nomicfoundation/edr-darwin-arm64": "0.
|
|
63
|
-
"@nomicfoundation/edr-darwin-x64": "0.
|
|
64
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.
|
|
65
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.
|
|
66
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.
|
|
67
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.
|
|
68
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.
|
|
62
|
+
"@nomicfoundation/edr-darwin-arm64": "0.22.0",
|
|
63
|
+
"@nomicfoundation/edr-darwin-x64": "0.22.0",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.22.0",
|
|
65
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.22.0",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.22.0",
|
|
67
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.22.0",
|
|
68
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.22.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"artifacts": "napi artifacts",
|