Skip to content

Releases: NomicFoundation/edr

@nomicfoundation/[email protected]

21 Oct 19:59
dec5725

Choose a tag to compare

Pre-release

Minor Changes

  • d0a3a41: Added the ability to collect gas reports for mining blocks and eth_call
  • c54a499: make all parameters of eth_feeHistory rpc call & provider method call required
  • d0a3a41: Added the ability to collect gas reports for Solidity tests

Patch Changes

  • a2d99ba: Fixed panic due to invalid GasPriceOracle bytecode for Isthmus OP hardfork
  • 23e8ad8: Added docs for runSolidityTests arguments.
  • 0047135: Update list of unsupported cheatcodes with cheatcodes up to Foundry 1.3.6
  • b355c15: Fixed panic when executing eth_call transaction with Isthmus OP hardfork
  • 88a23dc: Fix prepublish step so we again publish the arch/os specific packages.

@nomicfoundation/[email protected]

21 Oct 13:29
c2371ba

Choose a tag to compare

Pre-release

DEPRECATED

@nomicfoundation/[email protected]

12 Sep 21:31
6859655

Choose a tag to compare

Pre-release

Minor Changes

  • 20b4311:
    • Added the ContractDecoder type
    • Added a function Provider.contractDecoder to retrieve the provider's ContractDecoder instance
    • Changed EdrContext.createProvider to receive a ContractDecoder instance instead of a TracingConfigWithBuffers
      • The ContractDecoder can be constructed from a TracingConfigWithBuffers using the static method ContractDecoder.withContracts
    • Changed Provider.addCompilationResult to no longer return a boolean. Failures are now signaled by throwing an exception.

Patch Changes

  • ba6bfa0: Added support for Solidity v0.8.30
  • d4806e6: Added a collectStackTraces option to SolidityTestRunnerConfigArgs, specifying what strategy to use for collecting stack traces

@nomicfoundation/[email protected]

10 Sep 17:56
b918acb

Choose a tag to compare

Pre-release

Minor Changes

  • 7b5995f: New ProviderConfig.baseFeeConfig field available for configuring different values of eip-1559 maxChangeDenominator and elasticityMultiplier field.

@nomicfoundation/[email protected]

28 Aug 11:35
ec6c3d7

Choose a tag to compare

Pre-release

Patch Changes

  • c498e40: Upgraded revm to v27 which brings performance improvements.
  • ccab079: Fixed wrong stack trace for expectEmit cheatcode.
  • 381643b: Removed reference to cli flag from ffi cheatcode error message.

@nomicfoundation/[email protected]

05 Aug 10:43
5b699ec

Choose a tag to compare

Pre-release

Minor Changes

  • 6640dda: Changed the file system permission config interface for Solidity tests, to mitigate EVM sandbox escape through cheatcodes.

Patch Changes

  • b7a692e: Fixed failure when forking Arbitrum after Cancun by making GenericChainSpec more permissive with blob gas

@nomicfoundation/[email protected]

01 Aug 21:00
a7122ed

Choose a tag to compare

Pre-release

Minor Changes

  • 6ea800c: Removed deprecated JSON-RPC methods: eth_mining, net_listening, net_peerCount, hardhat_addCompilationResult, hardhat_intervalMine, and hardhat_reset.
  • a5cc346: Added cheatcode error stack trace entry. This fixes stack traces for errors from expect revert cheatcodes and improves stack traces for other cheatcode errors.

@nomicfoundation/[email protected]

31 Jul 22:03
e99209a

Choose a tag to compare

Pre-release

Patch Changes

  • bf9b55b: Improved parallelism in test suite execution for better error reporting and improved performance
  • 0e0619e: Added support for function-level gas-tracking in Solidity tests.
  • 3f822d8: Fixed panic when using the pauseGasMetering cheatcode
  • 74b1f05: Made the contract field in CallTrace optional, and added a separate address field that is always present. (Breaking change)

@nomicfoundation/[email protected]

29 Jul 04:52
7a62d9c

Choose a tag to compare

Pre-release

Minor Changes

  • ffd2deb: Added value snapshots to Solidity test runner using gas & value cheatcodes

Patch Changes

  • adbba3d: Fixed mining of local blocks for OP

@nomicfoundation/[email protected]

24 Jul 21:41
9b603a5

Choose a tag to compare

Pre-release

Minor Changes

  • 8396d70: Changed the ChainConfig to include a chain name and allow timestamp-based hardfork activations
  • 097b8c3: Changed ProviderConfig members to decouple from Hardhat 2 concepts
  • edc20dc: Added code coverage to the provider. It can be configured through the ProviderConfig
  • 5e209a1: Added support for asynchronous callbacks for collected code coverage
  • ef49c8a: Removed runSolidityTests method and introduced EdrContext::registerSolidityTestRunnerFactory and EdrContext::runSolidityTests functions as multi-chain alternative
  • 097b8c3: Removed unused type definitions from API
  • 6f0f557: Added instrumenting of source code for statement code coverage measurement
  • ae38942: Added the ability to request execution traces for Solidity tests for either all tests or just failing tests
  • 289de8a: Changed the instrumentation API to require a coverage library path
  • c21ec83: Replaced Buffer with Uint8Array in Solidity tests interface
  • 306a95e: Added an ObservabilityConfig to SolidityTestRunnerConfigArgs to allow code coverage measurement
  • eb928c6: Fixed panic on stack trace generation for receive function with modifier that calls another method. #894
  • 097b8c3: Moved (and renamed) fork-specific configuration options from ProviderConfig to ForkConfig
  • 097b8c3: Replaced all occurences of Buffer with Uint8Array or ArrayBuffer
  • 585fe0b: Changed test and test suite execution time from milliseconds to nanoseconds. Correspondingly, the durationMs property of TestResult and SuiteResult was renamed to durationNs.

Patch Changes

  • f606fc6: Fixed instrumentation for control flow statements
  • c05b49b: Upgraded revm to v24 and alloy to more recent versions
  • f1cdbe2: Turned potential panics into JS errors to help with error reporting to Sentry.
  • a6864ff: Added support for local pre-deploys for Solidity tests.
  • 1b6d123: Fixed a bug causing async functions to throw errors at the callsite
  • ab4e20d: Added hardfork activations for Prague
  • 3f85d7d: Fixed gasPriceOracle predeploy for local blockchains when using Isthmus hardfork
  • 3910948: Deprecated deleteSnapshot, deleteSnapshots, revertTo, revertToAndDelete, and snapshot cheatcodes in favor of deleteStateSnapshot, deleteStateSnapshots, revertToState, revertToStateAndDelete, and snapshotState
  • 007800e: Fixed custom precompiles not being applied in eth_sendTransaction. This enables RIP-7212 support in transactions.
  • 2ec6415: Added hardfork activations for Base Mainnet and Base Sepolia.
  • c63ea3e: Added new expectRevert and expectPartialRevert cheatcodes.
  • 5e209a1: Fixed bug preventing reporting of collected code coverage
  • 4bad80f: Fixed the withdrawalsRoot field in mined post-Isthmus block headers of local blockchains
  • d903f35: Turned panics during stack trace generation due to invalid assumptions into errors.
  • 196af17: Add allowInternalExpectRevert config option to customize the behavior of the expectRevert cheatcode