@nomicfoundation/edr 0.12.0-next.30 → 0.12.0-next.31

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 CHANGED
@@ -1018,6 +1018,20 @@ export interface TestFunctionConfigOverride {
1018
1018
  * as the test.
1019
1019
  */
1020
1020
  allowInternalExpectRevert?: boolean
1021
+ /**
1022
+ * Whether to enable isolation of calls for the test. In isolation mode all
1023
+ * top-level calls are executed as a separate transaction in a separate
1024
+ * EVM context, enabling more precise gas accounting and transaction
1025
+ * state changes.
1026
+ * Ignored when gas reporting is enabled, as isolation is required for
1027
+ * accurate gas measurements.
1028
+ */
1029
+ isolate?: boolean
1030
+ /**
1031
+ * The EVM version to use for this test, e.g. "Cancun". This will override
1032
+ * the global EVM version.
1033
+ */
1034
+ evmVersion?: string
1021
1035
  /** Configuration override for fuzz testing. */
1022
1036
  fuzz?: FuzzConfigOverride
1023
1037
  /** Configuration override for invariant testing. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.12.0-next.30",
3
+ "version": "0.12.0-next.31",
4
4
  "devDependencies": {
5
5
  "@napi-rs/cli": "^2.18.4",
6
6
  "@nomicfoundation/ethereumjs-util": "^9.0.4",
@@ -58,13 +58,13 @@
58
58
  "repository": "NomicFoundation/edr.git",
59
59
  "types": "index.d.ts",
60
60
  "dependencies": {
61
- "@nomicfoundation/edr-darwin-arm64": "0.12.0-next.30",
62
- "@nomicfoundation/edr-darwin-x64": "0.12.0-next.30",
63
- "@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.30",
64
- "@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.30",
65
- "@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.30",
66
- "@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.30",
67
- "@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.30"
61
+ "@nomicfoundation/edr-darwin-arm64": "0.12.0-next.31",
62
+ "@nomicfoundation/edr-darwin-x64": "0.12.0-next.31",
63
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.31",
64
+ "@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.31",
65
+ "@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.31",
66
+ "@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.31",
67
+ "@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.31"
68
68
  },
69
69
  "scripts": {
70
70
  "artifacts": "napi artifacts",
@@ -876,6 +876,16 @@ pub struct TestFunctionConfigOverride {
876
876
  /// Allow expecting reverts with `expectRevert` at the same callstack depth
877
877
  /// as the test.
878
878
  pub allow_internal_expect_revert: Option<bool>,
879
+ /// Whether to enable isolation of calls for the test. In isolation mode all
880
+ /// top-level calls are executed as a separate transaction in a separate
881
+ /// EVM context, enabling more precise gas accounting and transaction
882
+ /// state changes.
883
+ /// Ignored when gas reporting is enabled, as isolation is required for
884
+ /// accurate gas measurements.
885
+ pub isolate: Option<bool>,
886
+ /// The EVM version to use for this test, e.g. "Cancun". This will override
887
+ /// the global EVM version.
888
+ pub evm_version: Option<String>,
879
889
  /// Configuration override for fuzz testing.
880
890
  pub fuzz: Option<FuzzConfigOverride>,
881
891
  /// Configuration override for invariant testing.
@@ -886,6 +896,8 @@ impl From<TestFunctionConfigOverride> for edr_solidity_tests::TestFunctionConfig
886
896
  fn from(value: TestFunctionConfigOverride) -> Self {
887
897
  Self {
888
898
  allow_internal_expect_revert: value.allow_internal_expect_revert,
899
+ isolate: value.isolate,
900
+ evm_version: value.evm_version,
889
901
  fuzz: value.fuzz.map(Into::into),
890
902
  invariant: value.invariant.map(Into::into),
891
903
  }