@nomicfoundation/edr 0.17.0 → 0.18.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 +174 -92
- package/index.js +52 -52
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -787,24 +787,6 @@ export interface FuzzConfigArgs {
|
|
|
787
787
|
timeout?: number
|
|
788
788
|
}
|
|
789
789
|
|
|
790
|
-
/** Test function or test contract level fuzz config override. */
|
|
791
|
-
export interface FuzzConfigOverride {
|
|
792
|
-
/** The number of test cases that must execute for each property test. */
|
|
793
|
-
runs?: number
|
|
794
|
-
/**
|
|
795
|
-
* The maximum number of test case rejections allowed by proptest, to be
|
|
796
|
-
* encountered during usage of `vm.assume` cheatcode. This will be used
|
|
797
|
-
* to set the `max_global_rejects` value in proptest test runner config.
|
|
798
|
-
* `max_local_rejects` option isn't exposed here since we're not using
|
|
799
|
-
* `prop_filter`.
|
|
800
|
-
*/
|
|
801
|
-
maxTestRejects?: number
|
|
802
|
-
/** show `console.log` in fuzz test, defaults to `false`. */
|
|
803
|
-
showLogs?: boolean
|
|
804
|
-
/** Optional timeout (in seconds) for each property test. */
|
|
805
|
-
timeout?: TimeoutConfig
|
|
806
|
-
}
|
|
807
|
-
|
|
808
790
|
/** See [`edr_solidity_tests::result::TestKind::Fuzz`] */
|
|
809
791
|
export interface FuzzTestKind {
|
|
810
792
|
/** See [`edr_solidity_tests::result::TestKind::Fuzz`] */
|
|
@@ -924,6 +906,161 @@ export declare enum IncludeTraces {
|
|
|
924
906
|
All = 2
|
|
925
907
|
}
|
|
926
908
|
|
|
909
|
+
/** A directive-level inline-config problem, located at the offending directive. */
|
|
910
|
+
export interface InlineConfigDirectiveError {
|
|
911
|
+
/** Discriminant tag for the `InlineConfigError` union. */
|
|
912
|
+
kind: "directive"
|
|
913
|
+
/**
|
|
914
|
+
* The solc source name the problem was found in (e.g.
|
|
915
|
+
* `project/test/Foo.t.sol`).
|
|
916
|
+
*/
|
|
917
|
+
sourceName: string
|
|
918
|
+
/** The contract the offending directive belongs to. */
|
|
919
|
+
contract: string
|
|
920
|
+
/** The test function the offending directive belongs to. */
|
|
921
|
+
function: string
|
|
922
|
+
/** The 1-based line of the offending directive within the source. */
|
|
923
|
+
line: number
|
|
924
|
+
/** The problem itself; discriminate on its `kind` tag. */
|
|
925
|
+
problem: InlineConfigDirectiveProblem
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* A directive's offset could not be resolved to a line number within its
|
|
930
|
+
* source, meaning the parsing stages disagree about the source text, so its
|
|
931
|
+
* directives cannot be trusted.
|
|
932
|
+
*/
|
|
933
|
+
export interface InlineConfigDirectiveLocation {
|
|
934
|
+
/** Enum tag for JS. */
|
|
935
|
+
kind: "InlineConfigDirectiveLocation"
|
|
936
|
+
/** The contract the directive belongs to. */
|
|
937
|
+
contract: string
|
|
938
|
+
/** The test function the directive belongs to. */
|
|
939
|
+
function: string
|
|
940
|
+
/**
|
|
941
|
+
* Why resolving the location failed, including the directive problem
|
|
942
|
+
* that was being reported.
|
|
943
|
+
*/
|
|
944
|
+
reason: string
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* The problem in a single inline-config directive, as a discriminated union
|
|
949
|
+
* over its `kind` tag — mirroring the Rust-side `InlineConfigError` enum so
|
|
950
|
+
* consumers can map each problem onto their own error types.
|
|
951
|
+
*/
|
|
952
|
+
export type InlineConfigDirectiveProblem =
|
|
953
|
+
InlineConfigInvalidSyntax | InlineConfigUnsupportedProfile | InlineConfigInvalidKey | InlineConfigInvalidKeyForTestType | InlineConfigInvalidValue | InlineConfigDuplicateKey
|
|
954
|
+
|
|
955
|
+
/** The same key was specified more than once for a function. */
|
|
956
|
+
export interface InlineConfigDuplicateKey {
|
|
957
|
+
/** Enum tag for JS. */
|
|
958
|
+
kind: "InlineConfigDuplicateKey"
|
|
959
|
+
/** The duplicated key, exactly as written. */
|
|
960
|
+
key: string
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* A single ill-formed inline-config entry, located so the user can find and
|
|
965
|
+
* fix it. A discriminated union over `kind`: a `source`-level entry carries no
|
|
966
|
+
* directive location, a `directive`-level entry carries contract/function/
|
|
967
|
+
* line. Attached to the rejected `runSolidityTests` promise as the
|
|
968
|
+
* `inlineConfigErrors` array on the thrown error.
|
|
969
|
+
*/
|
|
970
|
+
export type InlineConfigError =
|
|
971
|
+
InlineConfigSourceError | InlineConfigDirectiveError
|
|
972
|
+
|
|
973
|
+
/** An unknown configuration key was used. */
|
|
974
|
+
export interface InlineConfigInvalidKey {
|
|
975
|
+
/** Enum tag for JS. */
|
|
976
|
+
kind: "InlineConfigInvalidKey"
|
|
977
|
+
/** The offending key, exactly as written. */
|
|
978
|
+
key: string
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* A key was used on a test of the wrong kind (e.g. `fuzz.*` on an invariant
|
|
983
|
+
* test).
|
|
984
|
+
*/
|
|
985
|
+
export interface InlineConfigInvalidKeyForTestType {
|
|
986
|
+
/** Enum tag for JS. */
|
|
987
|
+
kind: "InlineConfigInvalidKeyForTestType"
|
|
988
|
+
/** The offending key, exactly as written. */
|
|
989
|
+
key: string
|
|
990
|
+
/** The kind of test the function is (`fuzz` or `invariant`). */
|
|
991
|
+
testType: string
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* The source's solc version has no supported grammar, so its inline
|
|
996
|
+
* configuration could not be parsed.
|
|
997
|
+
*/
|
|
998
|
+
export interface InlineConfigInvalidSolcVersion {
|
|
999
|
+
/** Enum tag for JS. */
|
|
1000
|
+
kind: "InlineConfigInvalidSolcVersion"
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/** A directive was missing the `=` separator. */
|
|
1004
|
+
export interface InlineConfigInvalidSyntax {
|
|
1005
|
+
/** Enum tag for JS. */
|
|
1006
|
+
kind: "InlineConfigInvalidSyntax"
|
|
1007
|
+
/** The offending directive line, stripped of comment decoration. */
|
|
1008
|
+
directive: string
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/** A value did not match the expected type for its key. */
|
|
1012
|
+
export interface InlineConfigInvalidValue {
|
|
1013
|
+
/** Enum tag for JS. */
|
|
1014
|
+
kind: "InlineConfigInvalidValue"
|
|
1015
|
+
/** The offending key, exactly as written. */
|
|
1016
|
+
key: string
|
|
1017
|
+
/** The offending value, exactly as written. */
|
|
1018
|
+
value: string
|
|
1019
|
+
/** A description of the expected value type. */
|
|
1020
|
+
expected: string
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* A source-level inline-config problem: one that could not be tied to a single
|
|
1025
|
+
* directive (e.g. an unsupported solc version or an unreadable source).
|
|
1026
|
+
*/
|
|
1027
|
+
export interface InlineConfigSourceError {
|
|
1028
|
+
/** Discriminant tag for the `InlineConfigError` union. */
|
|
1029
|
+
kind: "source"
|
|
1030
|
+
/**
|
|
1031
|
+
* The solc source name the problem was found in (e.g.
|
|
1032
|
+
* `project/test/Foo.t.sol`).
|
|
1033
|
+
*/
|
|
1034
|
+
sourceName: string
|
|
1035
|
+
/** The problem itself; discriminate on its `kind` tag. */
|
|
1036
|
+
problem: InlineConfigSourceProblem
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/** The source's file could not be read at the path it was declared at. */
|
|
1040
|
+
export interface InlineConfigSourceFileNotFound {
|
|
1041
|
+
/** Enum tag for JS. */
|
|
1042
|
+
kind: "InlineConfigSourceFileNotFound"
|
|
1043
|
+
/** The path the source was expected at. */
|
|
1044
|
+
path: string
|
|
1045
|
+
/** Why reading it failed. */
|
|
1046
|
+
reason: string
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* A source-level problem, as a discriminated union over its `kind` tag. These
|
|
1051
|
+
* cannot be pinned to a single directive line, so they carry no line.
|
|
1052
|
+
*/
|
|
1053
|
+
export type InlineConfigSourceProblem =
|
|
1054
|
+
InlineConfigInvalidSolcVersion | InlineConfigSourceFileNotFound | InlineConfigDirectiveLocation
|
|
1055
|
+
|
|
1056
|
+
/** A profile other than `default` was used. */
|
|
1057
|
+
export interface InlineConfigUnsupportedProfile {
|
|
1058
|
+
/** Enum tag for JS. */
|
|
1059
|
+
kind: "InlineConfigUnsupportedProfile"
|
|
1060
|
+
/** The unsupported profile name. */
|
|
1061
|
+
profile: string
|
|
1062
|
+
}
|
|
1063
|
+
|
|
927
1064
|
export interface InstrumentationMetadata {
|
|
928
1065
|
/**
|
|
929
1066
|
* The tag that identifies the instrumented code. Tags are
|
|
@@ -1033,23 +1170,6 @@ export interface InvariantConfigArgs {
|
|
|
1033
1170
|
timeout?: number
|
|
1034
1171
|
}
|
|
1035
1172
|
|
|
1036
|
-
/** Test function or test contract level invariant config override. */
|
|
1037
|
-
export interface InvariantConfigOverride {
|
|
1038
|
-
/** The number of runs that must execute for each invariant test group. */
|
|
1039
|
-
runs?: number
|
|
1040
|
-
/** The number of calls executed to attempt to break invariants in one run. */
|
|
1041
|
-
depth?: number
|
|
1042
|
-
/** Fails the invariant fuzzing if a revert occurs. */
|
|
1043
|
-
failOnRevert?: boolean
|
|
1044
|
-
/**
|
|
1045
|
-
* Allows overriding an unsafe external call when running invariant tests.
|
|
1046
|
-
* eg. reentrancy checks
|
|
1047
|
-
*/
|
|
1048
|
-
callOverride?: boolean
|
|
1049
|
-
/** Optional timeout (in seconds) for each invariant test. */
|
|
1050
|
-
timeout?: TimeoutConfig
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
1173
|
/** See [`edr_solidity_tests::result::InvariantMetrics`] */
|
|
1054
1174
|
export interface InvariantMetrics {
|
|
1055
1175
|
readonly calls: bigint
|
|
@@ -1597,11 +1717,6 @@ export interface SolidityTestRunnerConfigArgs {
|
|
|
1597
1717
|
* Defaults to false.
|
|
1598
1718
|
*/
|
|
1599
1719
|
generateGasReport?: boolean
|
|
1600
|
-
/**
|
|
1601
|
-
* Test function level config overrides.
|
|
1602
|
-
* Defaults to none.
|
|
1603
|
-
*/
|
|
1604
|
-
testFunctionOverrides?: Array<TestFunctionOverride>
|
|
1605
1720
|
/**
|
|
1606
1721
|
* A list of EIP-712 canonical type definitions that can be referenced by
|
|
1607
1722
|
* type name in the `eip712HashType` and `eip712HashStruct` cheatcodes.
|
|
@@ -1636,6 +1751,25 @@ export interface SolidityTestRunnerConfigArgs {
|
|
|
1636
1751
|
* `vm.eip712HashType("Person")` fails with an unknown-type error.
|
|
1637
1752
|
*/
|
|
1638
1753
|
eip712CanonicalTypes?: Array<string>
|
|
1754
|
+
/**
|
|
1755
|
+
* Maps the solc source names of the test-suite sources (e.g.
|
|
1756
|
+
* `project/test/Foo.t.sol`) to their absolute paths on disk.
|
|
1757
|
+
*
|
|
1758
|
+
* Used to parse inline test configuration (`forge-config:`/
|
|
1759
|
+
* `hardhat-config:` NatSpec directives) directly from the sources. A test
|
|
1760
|
+
* source without an entry has no inline configuration collected.
|
|
1761
|
+
*/
|
|
1762
|
+
testSourcePaths?: Record<string, string>
|
|
1763
|
+
/**
|
|
1764
|
+
* Maps non-relative Solidity import paths (as written in `import`
|
|
1765
|
+
* statements, e.g. `forge-std/src/Test.sol`) to absolute file paths on
|
|
1766
|
+
* disk, for parsing inline test configuration.
|
|
1767
|
+
*
|
|
1768
|
+
* Relative import paths (`./`, `../`) are resolved against the importing
|
|
1769
|
+
* file and need no entry here; only non-relative paths (package imports)
|
|
1770
|
+
* do.
|
|
1771
|
+
*/
|
|
1772
|
+
importMappings?: Record<string, string>
|
|
1639
1773
|
}
|
|
1640
1774
|
|
|
1641
1775
|
export interface SourceReference {
|
|
@@ -1825,49 +1959,6 @@ export interface SuiteResult {
|
|
|
1825
1959
|
|
|
1826
1960
|
export const TANGERINE: string
|
|
1827
1961
|
|
|
1828
|
-
/** Test function level config override. */
|
|
1829
|
-
export interface TestFunctionConfigOverride {
|
|
1830
|
-
/**
|
|
1831
|
-
* Allow expecting reverts with `expectRevert` at the same callstack depth
|
|
1832
|
-
* as the test.
|
|
1833
|
-
*/
|
|
1834
|
-
allowInternalExpectRevert?: boolean
|
|
1835
|
-
/**
|
|
1836
|
-
* Whether to enable isolation of calls for the test. In isolation mode all
|
|
1837
|
-
* top-level calls are executed as a separate transaction in a separate
|
|
1838
|
-
* EVM context, enabling more precise gas accounting and transaction
|
|
1839
|
-
* state changes.
|
|
1840
|
-
* Ignored when gas reporting is enabled, as isolation is required for
|
|
1841
|
-
* accurate gas measurements.
|
|
1842
|
-
*/
|
|
1843
|
-
isolate?: boolean
|
|
1844
|
-
/**
|
|
1845
|
-
* The EVM version to use for this test, e.g. "Cancun". This will override
|
|
1846
|
-
* the global EVM version.
|
|
1847
|
-
*/
|
|
1848
|
-
evmVersion?: string
|
|
1849
|
-
/** Configuration override for fuzz testing. */
|
|
1850
|
-
fuzz?: FuzzConfigOverride
|
|
1851
|
-
/** Configuration override for invariant testing. */
|
|
1852
|
-
invariant?: InvariantConfigOverride
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
/** Test function identifier. */
|
|
1856
|
-
export interface TestFunctionIdentifier {
|
|
1857
|
-
/** The contract artifact id. */
|
|
1858
|
-
contractArtifact: ArtifactId
|
|
1859
|
-
/** The function selector as hex string. */
|
|
1860
|
-
functionSelector: string
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
/** Test function override configuration. */
|
|
1864
|
-
export interface TestFunctionOverride {
|
|
1865
|
-
/** The test function identifier. */
|
|
1866
|
-
identifier: TestFunctionIdentifier
|
|
1867
|
-
/** The configuration override. */
|
|
1868
|
-
config: TestFunctionConfigOverride
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
1962
|
/** The result of a test execution. */
|
|
1872
1963
|
export declare enum TestStatus {
|
|
1873
1964
|
/** Test success */
|
|
@@ -1878,15 +1969,6 @@ export declare enum TestStatus {
|
|
|
1878
1969
|
Skipped = 'Skipped'
|
|
1879
1970
|
}
|
|
1880
1971
|
|
|
1881
|
-
/**
|
|
1882
|
-
* Timeout configuration.
|
|
1883
|
-
* Note: This wrapper is needed to avoid ambiguity with NAPI conversion.
|
|
1884
|
-
*/
|
|
1885
|
-
export interface TimeoutConfig {
|
|
1886
|
-
/** Optional timeout (in seconds). */
|
|
1887
|
-
time?: number
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
1972
|
/** Tracing config for Solidity stack trace generation. */
|
|
1891
1973
|
export interface TracingConfigWithBuffers {
|
|
1892
1974
|
/**
|
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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.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.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@napi-rs/cli": "^3.7.0",
|
|
6
6
|
"@nomicfoundation/ethereumjs-util": "^9.0.4",
|
|
@@ -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.18.0",
|
|
63
|
+
"@nomicfoundation/edr-darwin-x64": "0.18.0",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.18.0",
|
|
65
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.18.0",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.18.0",
|
|
67
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.18.0",
|
|
68
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.18.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"artifacts": "napi artifacts",
|