@nomicfoundation/edr 0.19.0 → 0.21.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 +80 -119
- package/index.js +57 -84
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -146,7 +146,10 @@ export declare class TestResult {
|
|
|
146
146
|
* Compute the error stack trace.
|
|
147
147
|
* The result is either the stack trace or the reason why we couldn't
|
|
148
148
|
* generate the stack trace.
|
|
149
|
-
* Returns null if the test
|
|
149
|
+
* Returns null if the test succeeded or was skipped. Also returns null
|
|
150
|
+
* when the failure left no trace behind, for example an invariant
|
|
151
|
+
* campaign whose calls were all rejected by `vm.assume`; the `reason`
|
|
152
|
+
* field then explains the failure.
|
|
150
153
|
* Cannot throw.
|
|
151
154
|
*/
|
|
152
155
|
stackTrace(): StackTrace | UnexpectedError | HeuristicFailed | UnsafeToReplay | null
|
|
@@ -192,10 +195,6 @@ export interface AddressLabel {
|
|
|
192
195
|
*/
|
|
193
196
|
export declare function addStatementCoverageInstrumentation(sourceCode: string, sourceId: string, solidityVersion: string): InstrumentationResult
|
|
194
197
|
|
|
195
|
-
export const AMSTERDAM: string
|
|
196
|
-
|
|
197
|
-
export const ARROW_GLACIER: string
|
|
198
|
-
|
|
199
198
|
/** A compilation artifact. */
|
|
200
199
|
export interface Artifact {
|
|
201
200
|
/** The identifier of the artifact. */
|
|
@@ -247,10 +246,6 @@ export interface BaseFeeParamActivation {
|
|
|
247
246
|
elasticityMultiplier: bigint
|
|
248
247
|
}
|
|
249
248
|
|
|
250
|
-
export const BEDROCK: string
|
|
251
|
-
|
|
252
|
-
export const BERLIN: string
|
|
253
|
-
|
|
254
249
|
/** Information about the blob gas used in a block. */
|
|
255
250
|
export interface BlobGas {
|
|
256
251
|
/**
|
|
@@ -278,8 +273,6 @@ export interface BuildInfoAndOutput {
|
|
|
278
273
|
output: Uint8Array
|
|
279
274
|
}
|
|
280
275
|
|
|
281
|
-
export const BYZANTIUM: string
|
|
282
|
-
|
|
283
276
|
/** What chains to cache */
|
|
284
277
|
export declare enum CachedChains {
|
|
285
278
|
/** Cache all chains */
|
|
@@ -375,10 +368,6 @@ export interface CallTrace {
|
|
|
375
368
|
children: Array<CallTrace | LogTrace>
|
|
376
369
|
}
|
|
377
370
|
|
|
378
|
-
export const CANCUN: string
|
|
379
|
-
|
|
380
|
-
export const CANYON: string
|
|
381
|
-
|
|
382
371
|
/** Specification of a chain with possible overrides. */
|
|
383
372
|
export interface ChainOverride {
|
|
384
373
|
/** The chain ID */
|
|
@@ -440,8 +429,6 @@ export declare enum CollectStackTraces {
|
|
|
440
429
|
OnFailure = 1
|
|
441
430
|
}
|
|
442
431
|
|
|
443
|
-
export const CONSTANTINOPLE: string
|
|
444
|
-
|
|
445
432
|
export const CONSTRUCTOR_FUNCTION_NAME: string
|
|
446
433
|
|
|
447
434
|
export interface ContractCallRunOutOfGasError {
|
|
@@ -516,8 +503,6 @@ export interface CustomErrorStackTraceEntry {
|
|
|
516
503
|
sourceReference: SourceReference
|
|
517
504
|
}
|
|
518
505
|
|
|
519
|
-
export const DAO_FORK: string
|
|
520
|
-
|
|
521
506
|
export interface DebugTraceLogItem {
|
|
522
507
|
/** Program Counter */
|
|
523
508
|
pc: bigint
|
|
@@ -572,8 +557,6 @@ export interface DirectLibraryCallErrorStackTraceEntry {
|
|
|
572
557
|
sourceReference: SourceReference
|
|
573
558
|
}
|
|
574
559
|
|
|
575
|
-
export const ECOTONE: string
|
|
576
|
-
|
|
577
560
|
/**
|
|
578
561
|
* Indicates that the EVM has experienced an exceptional halt. This causes
|
|
579
562
|
* execution to immediately end with all gas being consumed.
|
|
@@ -649,8 +632,6 @@ export interface FallbackNotPayableErrorStackTraceEntry {
|
|
|
649
632
|
sourceReference: SourceReference
|
|
650
633
|
}
|
|
651
634
|
|
|
652
|
-
export const FJORD: string
|
|
653
|
-
|
|
654
635
|
/** Configuration for forking a blockchain */
|
|
655
636
|
export interface ForkConfig {
|
|
656
637
|
/**
|
|
@@ -668,10 +649,6 @@ export interface ForkConfig {
|
|
|
668
649
|
url: string
|
|
669
650
|
}
|
|
670
651
|
|
|
671
|
-
export const FRONTIER: string
|
|
672
|
-
|
|
673
|
-
export const FRONTIER_THAWING: string
|
|
674
|
-
|
|
675
652
|
/** * Determines the level of file system access for the given path.
|
|
676
653
|
*
|
|
677
654
|
* Exact path matching is used for file permissions. Prefix matching is used
|
|
@@ -834,10 +811,6 @@ export const GENERIC_CHAIN_TYPE: string
|
|
|
834
811
|
|
|
835
812
|
export declare function genericChainProviderFactory(): ProviderFactory
|
|
836
813
|
|
|
837
|
-
export const GRANITE: string
|
|
838
|
-
|
|
839
|
-
export const GRAY_GLACIER: string
|
|
840
|
-
|
|
841
814
|
/** The result when the EVM terminates due to an exceptional halt. */
|
|
842
815
|
export interface HaltResult {
|
|
843
816
|
/** The exceptional halt that occurred */
|
|
@@ -878,10 +851,6 @@ export interface HeuristicFailed {
|
|
|
878
851
|
kind: "HeuristicFailed"
|
|
879
852
|
}
|
|
880
853
|
|
|
881
|
-
export const HOLOCENE: string
|
|
882
|
-
|
|
883
|
-
export const HOMESTEAD: string
|
|
884
|
-
|
|
885
854
|
export interface HttpHeader {
|
|
886
855
|
name: string
|
|
887
856
|
value: string
|
|
@@ -917,8 +886,11 @@ export interface InlineConfigDirectiveError {
|
|
|
917
886
|
sourceName: string
|
|
918
887
|
/** The contract the offending directive belongs to. */
|
|
919
888
|
contract: string
|
|
920
|
-
/**
|
|
921
|
-
|
|
889
|
+
/**
|
|
890
|
+
* The test function the offending directive belongs to. Undefined when
|
|
891
|
+
* the directive is contract-level.
|
|
892
|
+
*/
|
|
893
|
+
function?: string
|
|
922
894
|
/** The 1-based line of the offending directive within the source. */
|
|
923
895
|
line: number
|
|
924
896
|
/** The problem itself; discriminate on its `kind` tag. */
|
|
@@ -935,8 +907,11 @@ export interface InlineConfigDirectiveLocation {
|
|
|
935
907
|
kind: "InlineConfigDirectiveLocation"
|
|
936
908
|
/** The contract the directive belongs to. */
|
|
937
909
|
contract: string
|
|
938
|
-
/**
|
|
939
|
-
|
|
910
|
+
/**
|
|
911
|
+
* The test function the directive belongs to. Undefined when the directive
|
|
912
|
+
* is contract-level.
|
|
913
|
+
*/
|
|
914
|
+
function?: string
|
|
940
915
|
/**
|
|
941
916
|
* Why resolving the location failed, including the directive problem
|
|
942
917
|
* that was being reported.
|
|
@@ -952,7 +927,10 @@ export interface InlineConfigDirectiveLocation {
|
|
|
952
927
|
export type InlineConfigDirectiveProblem =
|
|
953
928
|
InlineConfigInvalidSyntax | InlineConfigUnsupportedProfile | InlineConfigInvalidKey | InlineConfigInvalidKeyForTestType | InlineConfigInvalidValue | InlineConfigDuplicateKey
|
|
954
929
|
|
|
955
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* The same key was specified more than once for the same function or
|
|
932
|
+
* contract.
|
|
933
|
+
*/
|
|
956
934
|
export interface InlineConfigDuplicateKey {
|
|
957
935
|
/** Enum tag for JS. */
|
|
958
936
|
kind: "InlineConfigDuplicateKey"
|
|
@@ -963,9 +941,10 @@ export interface InlineConfigDuplicateKey {
|
|
|
963
941
|
/**
|
|
964
942
|
* A single ill-formed inline-config entry, located so the user can find and
|
|
965
943
|
* fix it. A discriminated union over `kind`: a `source`-level entry carries no
|
|
966
|
-
* directive location, a `directive`-level entry carries contract
|
|
967
|
-
*
|
|
968
|
-
* `inlineConfigErrors` array on the
|
|
944
|
+
* directive location, a `directive`-level entry carries the contract and line,
|
|
945
|
+
* plus the function unless the directive is contract-level. Attached to the
|
|
946
|
+
* rejected `runSolidityTests` promise as the `inlineConfigErrors` array on the
|
|
947
|
+
* thrown error.
|
|
969
948
|
*/
|
|
970
949
|
export type InlineConfigError =
|
|
971
950
|
InlineConfigSourceError | InlineConfigDirectiveError
|
|
@@ -980,7 +959,7 @@ export interface InlineConfigInvalidKey {
|
|
|
980
959
|
|
|
981
960
|
/**
|
|
982
961
|
* A key was used on a test of the wrong kind (e.g. `fuzz.*` on an invariant
|
|
983
|
-
* test).
|
|
962
|
+
* test). Only function-level directives can produce this.
|
|
984
963
|
*/
|
|
985
964
|
export interface InlineConfigInvalidKeyForTestType {
|
|
986
965
|
/** Enum tag for JS. */
|
|
@@ -1191,29 +1170,68 @@ export interface InvariantTestKind {
|
|
|
1191
1170
|
readonly failedCorpusReplays: bigint
|
|
1192
1171
|
}
|
|
1193
1172
|
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1173
|
+
/**
|
|
1174
|
+
* Computes the Keccak-256 hash of `data`, returning the 32-byte digest.
|
|
1175
|
+
*
|
|
1176
|
+
* This is Ethereum's pre-standard Keccak-256, whose padding differs from the
|
|
1177
|
+
* standardized SHA3-256, so it can't be substituted by a platform SHA3
|
|
1178
|
+
* implementation.
|
|
1179
|
+
*/
|
|
1180
|
+
export declare function keccak256(data: Uint8Array): Uint8Array
|
|
1197
1181
|
|
|
1198
1182
|
export const L1_CHAIN_TYPE: string
|
|
1199
1183
|
|
|
1200
|
-
export declare function l1GenesisState(hardfork:
|
|
1184
|
+
export declare function l1GenesisState(hardfork: L1Hardfork): Array<AccountOverride>
|
|
1185
|
+
|
|
1186
|
+
/** Identifier for the Ethereum spec. */
|
|
1187
|
+
export declare enum L1Hardfork {
|
|
1188
|
+
/** Byzantium */
|
|
1189
|
+
Byzantium = 6,
|
|
1190
|
+
/** Constantinople */
|
|
1191
|
+
Constantinople = 7,
|
|
1192
|
+
/** Petersburg */
|
|
1193
|
+
Petersburg = 8,
|
|
1194
|
+
/** Istanbul */
|
|
1195
|
+
Istanbul = 9,
|
|
1196
|
+
/** Muir Glacier */
|
|
1197
|
+
MuirGlacier = 10,
|
|
1198
|
+
/** Berlin */
|
|
1199
|
+
Berlin = 11,
|
|
1200
|
+
/** London */
|
|
1201
|
+
London = 12,
|
|
1202
|
+
/** Arrow Glacier */
|
|
1203
|
+
ArrowGlacier = 13,
|
|
1204
|
+
/** Gray Glacier */
|
|
1205
|
+
GrayGlacier = 14,
|
|
1206
|
+
/** Merge */
|
|
1207
|
+
Merge = 15,
|
|
1208
|
+
/** Shanghai */
|
|
1209
|
+
Shanghai = 16,
|
|
1210
|
+
/** Cancun */
|
|
1211
|
+
Cancun = 17,
|
|
1212
|
+
/** Prague */
|
|
1213
|
+
Prague = 18,
|
|
1214
|
+
/** Osaka */
|
|
1215
|
+
Osaka = 19,
|
|
1216
|
+
/** Amsterdam */
|
|
1217
|
+
Amsterdam = 20
|
|
1218
|
+
}
|
|
1201
1219
|
|
|
1202
1220
|
/**
|
|
1203
|
-
* Tries to parse the provided string to create
|
|
1221
|
+
* Tries to parse the provided string to create an [`L1Hardfork`] instance.
|
|
1204
1222
|
*
|
|
1205
1223
|
* Returns an error if the string does not match any known hardfork.
|
|
1206
1224
|
*/
|
|
1207
|
-
export declare function l1HardforkFromString(hardfork: string):
|
|
1225
|
+
export declare function l1HardforkFromString(hardfork: string): L1Hardfork
|
|
1208
1226
|
|
|
1209
1227
|
/**
|
|
1210
|
-
* Returns the latest supported
|
|
1228
|
+
* Returns the latest supported L1 hardfork.
|
|
1211
1229
|
*
|
|
1212
1230
|
* The returned value will be updated after each network upgrade.
|
|
1213
1231
|
*/
|
|
1214
|
-
export declare function l1HardforkLatest():
|
|
1232
|
+
export declare function l1HardforkLatest(): L1Hardfork
|
|
1215
1233
|
|
|
1216
|
-
export declare function l1HardforkToString(hardfork:
|
|
1234
|
+
export declare function l1HardforkToString(hardfork: L1Hardfork): string
|
|
1217
1235
|
|
|
1218
1236
|
export declare function l1ProviderFactory(): ProviderFactory
|
|
1219
1237
|
|
|
@@ -1271,15 +1289,11 @@ export interface LogTrace {
|
|
|
1271
1289
|
parameters: DecodedTraceParameters | Array<Uint8Array>
|
|
1272
1290
|
}
|
|
1273
1291
|
|
|
1274
|
-
export const LONDON: string
|
|
1275
|
-
|
|
1276
1292
|
/** Configuration for the provider's mempool. */
|
|
1277
1293
|
export interface MemPoolConfig {
|
|
1278
1294
|
order: MineOrdering
|
|
1279
1295
|
}
|
|
1280
1296
|
|
|
1281
|
-
export const MERGE: string
|
|
1282
|
-
|
|
1283
1297
|
/** The type of ordering to use when selecting blocks to mine. */
|
|
1284
1298
|
export declare enum MineOrdering {
|
|
1285
1299
|
/** Insertion order */
|
|
@@ -1307,8 +1321,6 @@ export interface MissingFallbackOrReceiveErrorStackTraceEntry {
|
|
|
1307
1321
|
sourceReference: SourceReference
|
|
1308
1322
|
}
|
|
1309
1323
|
|
|
1310
|
-
export const MUIR_GLACIER: string
|
|
1311
|
-
|
|
1312
1324
|
export interface NonContractAccountCalledErrorStackTraceEntry {
|
|
1313
1325
|
type: StackTraceEntryType.NONCONTRACT_ACCOUNT_CALLED_ERROR
|
|
1314
1326
|
sourceReference: SourceReference
|
|
@@ -1333,7 +1345,7 @@ export const OP_CHAIN_TYPE: string
|
|
|
1333
1345
|
|
|
1334
1346
|
export declare function opGenesisState(hardfork: OpHardfork): Array<AccountOverride>
|
|
1335
1347
|
|
|
1336
|
-
/**
|
|
1348
|
+
/** Identifier for the OP hardfork. */
|
|
1337
1349
|
export declare enum OpHardfork {
|
|
1338
1350
|
Bedrock = 100,
|
|
1339
1351
|
Regolith = 101,
|
|
@@ -1367,8 +1379,6 @@ export declare function opProviderFactory(): ProviderFactory
|
|
|
1367
1379
|
|
|
1368
1380
|
export declare function opSolidityTestRunnerFactory(): SolidityTestRunnerFactory
|
|
1369
1381
|
|
|
1370
|
-
export const OSAKA: string
|
|
1371
|
-
|
|
1372
1382
|
export interface OtherExecutionErrorStackTraceEntry {
|
|
1373
1383
|
type: StackTraceEntryType.OTHER_EXECUTION_ERROR
|
|
1374
1384
|
sourceReference?: SourceReference
|
|
@@ -1388,10 +1398,6 @@ export interface PathPermission {
|
|
|
1388
1398
|
path: string
|
|
1389
1399
|
}
|
|
1390
1400
|
|
|
1391
|
-
export const PETERSBURG: string
|
|
1392
|
-
|
|
1393
|
-
export const PRAGUE: string
|
|
1394
|
-
|
|
1395
1401
|
export const PRECOMPILE_FUNCTION_NAME: string
|
|
1396
1402
|
|
|
1397
1403
|
export interface PrecompileErrorStackTraceEntry {
|
|
@@ -1489,8 +1495,6 @@ export interface ProviderConfig {
|
|
|
1489
1495
|
|
|
1490
1496
|
export const RECEIVE_FUNCTION_NAME: string
|
|
1491
1497
|
|
|
1492
|
-
export const REGOLITH: string
|
|
1493
|
-
|
|
1494
1498
|
export interface ReturndataSizeErrorStackTraceEntry {
|
|
1495
1499
|
type: StackTraceEntryType.RETURNDATA_SIZE_ERROR
|
|
1496
1500
|
sourceReference: SourceReference
|
|
@@ -1513,7 +1517,14 @@ export interface RevertResult {
|
|
|
1513
1517
|
output: Uint8Array
|
|
1514
1518
|
}
|
|
1515
1519
|
|
|
1516
|
-
|
|
1520
|
+
/**
|
|
1521
|
+
* Derives the secp256k1 public key of the provided secret key, returning it
|
|
1522
|
+
* in uncompressed SEC1 form: 65 bytes, `0x04 || X || Y`.
|
|
1523
|
+
*
|
|
1524
|
+
* Throws if the input isn't a valid secret key: exactly 32 bytes encoding a
|
|
1525
|
+
* big-endian scalar in `[1, n)`, where `n` is the curve order.
|
|
1526
|
+
*/
|
|
1527
|
+
export declare function secp256k1PublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array
|
|
1517
1528
|
|
|
1518
1529
|
export type SolidityStackTrace =
|
|
1519
1530
|
Array<SolidityStackTraceEntry>
|
|
@@ -1781,54 +1792,6 @@ export interface SourceReference {
|
|
|
1781
1792
|
range: Array<number>
|
|
1782
1793
|
}
|
|
1783
1794
|
|
|
1784
|
-
/** Identifier for the Ethereum spec. */
|
|
1785
|
-
export declare enum SpecId {
|
|
1786
|
-
/** Frontier */
|
|
1787
|
-
Frontier = 0,
|
|
1788
|
-
/** Frontier Thawing */
|
|
1789
|
-
FrontierThawing = 1,
|
|
1790
|
-
/** Homestead */
|
|
1791
|
-
Homestead = 2,
|
|
1792
|
-
/** DAO Fork */
|
|
1793
|
-
DaoFork = 3,
|
|
1794
|
-
/** Tangerine */
|
|
1795
|
-
Tangerine = 4,
|
|
1796
|
-
/** Spurious Dragon */
|
|
1797
|
-
SpuriousDragon = 5,
|
|
1798
|
-
/** Byzantium */
|
|
1799
|
-
Byzantium = 6,
|
|
1800
|
-
/** Constantinople */
|
|
1801
|
-
Constantinople = 7,
|
|
1802
|
-
/** Petersburg */
|
|
1803
|
-
Petersburg = 8,
|
|
1804
|
-
/** Istanbul */
|
|
1805
|
-
Istanbul = 9,
|
|
1806
|
-
/** Muir Glacier */
|
|
1807
|
-
MuirGlacier = 10,
|
|
1808
|
-
/** Berlin */
|
|
1809
|
-
Berlin = 11,
|
|
1810
|
-
/** London */
|
|
1811
|
-
London = 12,
|
|
1812
|
-
/** Arrow Glacier */
|
|
1813
|
-
ArrowGlacier = 13,
|
|
1814
|
-
/** Gray Glacier */
|
|
1815
|
-
GrayGlacier = 14,
|
|
1816
|
-
/** Merge */
|
|
1817
|
-
Merge = 15,
|
|
1818
|
-
/** Shanghai */
|
|
1819
|
-
Shanghai = 16,
|
|
1820
|
-
/** Cancun */
|
|
1821
|
-
Cancun = 17,
|
|
1822
|
-
/** Prague */
|
|
1823
|
-
Prague = 18,
|
|
1824
|
-
/** Osaka */
|
|
1825
|
-
Osaka = 19,
|
|
1826
|
-
/** Amsterdam */
|
|
1827
|
-
Amsterdam = 20
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
export const SPURIOUS_DRAGON: string
|
|
1831
|
-
|
|
1832
1795
|
/** The stack trace result */
|
|
1833
1796
|
export interface StackTrace {
|
|
1834
1797
|
/** Enum tag for JS. */
|
|
@@ -1957,8 +1920,6 @@ export interface SuiteResult {
|
|
|
1957
1920
|
warnings: Array<string>
|
|
1958
1921
|
}
|
|
1959
1922
|
|
|
1960
|
-
export const TANGERINE: string
|
|
1961
|
-
|
|
1962
1923
|
/** The result of a test execution. */
|
|
1963
1924
|
export declare enum TestStatus {
|
|
1964
1925
|
/** Test success */
|
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@nomicfoundation/edr-android-arm64')
|
|
79
79
|
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.
|
|
80
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@nomicfoundation/edr-android-arm-eabi')
|
|
95
95
|
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.
|
|
96
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('@nomicfoundation/edr-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
117
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@nomicfoundation/edr-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
133
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@nomicfoundation/edr-win32-ia32-msvc')
|
|
149
149
|
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.
|
|
150
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@nomicfoundation/edr-win32-arm64-msvc')
|
|
165
165
|
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.
|
|
166
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('@nomicfoundation/edr-darwin-universal')
|
|
184
184
|
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.
|
|
185
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@nomicfoundation/edr-darwin-x64')
|
|
200
200
|
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.
|
|
201
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@nomicfoundation/edr-darwin-arm64')
|
|
216
216
|
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.
|
|
217
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('@nomicfoundation/edr-freebsd-x64')
|
|
236
236
|
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.
|
|
237
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@nomicfoundation/edr-freebsd-arm64')
|
|
252
252
|
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.
|
|
253
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('@nomicfoundation/edr-linux-x64-musl')
|
|
273
273
|
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.
|
|
274
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('@nomicfoundation/edr-linux-x64-gnu')
|
|
289
289
|
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.
|
|
290
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('@nomicfoundation/edr-linux-arm64-musl')
|
|
307
307
|
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.
|
|
308
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('@nomicfoundation/edr-linux-arm64-gnu')
|
|
323
323
|
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.
|
|
324
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('@nomicfoundation/edr-linux-arm-musleabihf')
|
|
341
341
|
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.
|
|
342
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
|
|
357
357
|
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.
|
|
358
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('@nomicfoundation/edr-linux-loong64-musl')
|
|
375
375
|
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.
|
|
376
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('@nomicfoundation/edr-linux-loong64-gnu')
|
|
391
391
|
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.
|
|
392
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('@nomicfoundation/edr-linux-riscv64-musl')
|
|
409
409
|
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.
|
|
410
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('@nomicfoundation/edr-linux-riscv64-gnu')
|
|
425
425
|
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.
|
|
426
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@nomicfoundation/edr-linux-ppc64-gnu')
|
|
442
442
|
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.
|
|
443
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@nomicfoundation/edr-linux-s390x-gnu')
|
|
458
458
|
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.
|
|
459
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('@nomicfoundation/edr-openharmony-arm64')
|
|
478
478
|
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.
|
|
479
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('@nomicfoundation/edr-openharmony-x64')
|
|
494
494
|
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.
|
|
495
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@nomicfoundation/edr-openharmony-arm')
|
|
510
510
|
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.
|
|
511
|
+
if (bindingPackageVersion !== '0.21.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -648,8 +648,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
648
|
if (!candidateFailed) {
|
|
649
649
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
650
|
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.
|
|
651
|
+
if (bindingPackageVersion !== '0.21.0') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 0.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
wasiBinding = require('@nomicfoundation/edr-wasm32-wasi')
|
|
@@ -713,44 +713,27 @@ module.exports.ReturnData = nativeBinding.ReturnData
|
|
|
713
713
|
module.exports.SolidityTestRunnerFactory = nativeBinding.SolidityTestRunnerFactory
|
|
714
714
|
module.exports.TestResult = nativeBinding.TestResult
|
|
715
715
|
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
716
|
module.exports.CachedChains = nativeBinding.CachedChains
|
|
722
717
|
module.exports.CachedEndpoints = nativeBinding.CachedEndpoints
|
|
723
718
|
module.exports.CallKind = nativeBinding.CallKind
|
|
724
|
-
module.exports.CANCUN = nativeBinding.CANCUN
|
|
725
|
-
module.exports.CANYON = nativeBinding.CANYON
|
|
726
719
|
module.exports.CheatcodeErrorCode = nativeBinding.CheatcodeErrorCode
|
|
727
720
|
module.exports.CollectStackTraces = nativeBinding.CollectStackTraces
|
|
728
|
-
module.exports.CONSTANTINOPLE = nativeBinding.CONSTANTINOPLE
|
|
729
721
|
module.exports.CONSTRUCTOR_FUNCTION_NAME = nativeBinding.CONSTRUCTOR_FUNCTION_NAME
|
|
730
722
|
module.exports.ContractFunctionType = nativeBinding.ContractFunctionType
|
|
731
723
|
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
724
|
module.exports.ExceptionalHalt = nativeBinding.ExceptionalHalt
|
|
735
725
|
module.exports.ExitCode = nativeBinding.ExitCode
|
|
736
726
|
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
727
|
module.exports.FsAccessPermission = nativeBinding.FsAccessPermission
|
|
741
728
|
module.exports.GasEstimationMode = nativeBinding.GasEstimationMode
|
|
742
729
|
module.exports.GasReportExecutionStatus = nativeBinding.GasReportExecutionStatus
|
|
743
730
|
module.exports.GENERIC_CHAIN_TYPE = nativeBinding.GENERIC_CHAIN_TYPE
|
|
744
731
|
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
732
|
module.exports.IncludeTraces = nativeBinding.IncludeTraces
|
|
750
|
-
module.exports.
|
|
751
|
-
module.exports.ISTHMUS = nativeBinding.ISTHMUS
|
|
733
|
+
module.exports.keccak256 = nativeBinding.keccak256
|
|
752
734
|
module.exports.L1_CHAIN_TYPE = nativeBinding.L1_CHAIN_TYPE
|
|
753
735
|
module.exports.l1GenesisState = nativeBinding.l1GenesisState
|
|
736
|
+
module.exports.L1Hardfork = nativeBinding.L1Hardfork
|
|
754
737
|
module.exports.l1HardforkFromString = nativeBinding.l1HardforkFromString
|
|
755
738
|
module.exports.l1HardforkLatest = nativeBinding.l1HardforkLatest
|
|
756
739
|
module.exports.l1HardforkToString = nativeBinding.l1HardforkToString
|
|
@@ -759,10 +742,7 @@ module.exports.l1SolidityTestRunnerFactory = nativeBinding.l1SolidityTestRunnerF
|
|
|
759
742
|
module.exports.latestSupportedSolidityVersion = nativeBinding.latestSupportedSolidityVersion
|
|
760
743
|
module.exports.linkHexStringBytecode = nativeBinding.linkHexStringBytecode
|
|
761
744
|
module.exports.LogKind = nativeBinding.LogKind
|
|
762
|
-
module.exports.LONDON = nativeBinding.LONDON
|
|
763
|
-
module.exports.MERGE = nativeBinding.MERGE
|
|
764
745
|
module.exports.MineOrdering = nativeBinding.MineOrdering
|
|
765
|
-
module.exports.MUIR_GLACIER = nativeBinding.MUIR_GLACIER
|
|
766
746
|
module.exports.OP_CHAIN_TYPE = nativeBinding.OP_CHAIN_TYPE
|
|
767
747
|
module.exports.opGenesisState = nativeBinding.opGenesisState
|
|
768
748
|
module.exports.OpHardfork = nativeBinding.OpHardfork
|
|
@@ -771,21 +751,14 @@ module.exports.opHardforkToString = nativeBinding.opHardforkToString
|
|
|
771
751
|
module.exports.opLatestHardfork = nativeBinding.opLatestHardfork
|
|
772
752
|
module.exports.opProviderFactory = nativeBinding.opProviderFactory
|
|
773
753
|
module.exports.opSolidityTestRunnerFactory = nativeBinding.opSolidityTestRunnerFactory
|
|
774
|
-
module.exports.OSAKA = nativeBinding.OSAKA
|
|
775
|
-
module.exports.PETERSBURG = nativeBinding.PETERSBURG
|
|
776
|
-
module.exports.PRAGUE = nativeBinding.PRAGUE
|
|
777
754
|
module.exports.PRECOMPILE_FUNCTION_NAME = nativeBinding.PRECOMPILE_FUNCTION_NAME
|
|
778
755
|
module.exports.precompileP256Verify = nativeBinding.precompileP256Verify
|
|
779
756
|
module.exports.printStackTrace = nativeBinding.printStackTrace
|
|
780
757
|
module.exports.RECEIVE_FUNCTION_NAME = nativeBinding.RECEIVE_FUNCTION_NAME
|
|
781
|
-
module.exports.
|
|
782
|
-
module.exports.SHANGHAI = nativeBinding.SHANGHAI
|
|
783
|
-
module.exports.SpecId = nativeBinding.SpecId
|
|
784
|
-
module.exports.SPURIOUS_DRAGON = nativeBinding.SPURIOUS_DRAGON
|
|
758
|
+
module.exports.secp256k1PublicKeyFromSecretKey = nativeBinding.secp256k1PublicKeyFromSecretKey
|
|
785
759
|
module.exports.StackTraceEntryType = nativeBinding.StackTraceEntryType
|
|
786
760
|
module.exports.stackTraceEntryTypeToString = nativeBinding.stackTraceEntryTypeToString
|
|
787
761
|
module.exports.SuccessReason = nativeBinding.SuccessReason
|
|
788
|
-
module.exports.TANGERINE = nativeBinding.TANGERINE
|
|
789
762
|
module.exports.TestStatus = nativeBinding.TestStatus
|
|
790
763
|
module.exports.UNKNOWN_FUNCTION_NAME = nativeBinding.UNKNOWN_FUNCTION_NAME
|
|
791
764
|
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.21.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.69.0",
|
|
13
|
+
"@typescript-eslint/parser": "8.69.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.21.0",
|
|
63
|
+
"@nomicfoundation/edr-darwin-x64": "0.21.0",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.21.0",
|
|
65
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.21.0",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.21.0",
|
|
67
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.21.0",
|
|
68
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.21.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"artifacts": "napi artifacts",
|