@nomicfoundation/edr 0.24.0 → 0.25.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.
Files changed (3) hide show
  1. package/index.d.ts +81 -88
  2. package/index.js +55 -55
  3. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -91,10 +91,6 @@ export declare class Provider {
91
91
 
92
92
  export declare class ProviderFactory {}
93
93
 
94
- export declare class RawTrace {
95
- get trace(): Array<TracingMessage | TracingStep | TracingMessageResult>
96
- }
97
-
98
94
  export declare class Response {
99
95
  /** Returns the response data as a JSON string or a JSON object. */
100
96
  get data(): string | any
@@ -108,6 +104,12 @@ export declare class Response {
108
104
  * request's call itself.
109
105
  */
110
106
  callTraces(): Array<CallTrace>
107
+ /**
108
+ * Returns the raw traces of executed contracts. This may contain zero or
109
+ * more traces. Uses a function instead of a getter to avoid repeated
110
+ * expensive conversions.
111
+ */
112
+ traces(): Array<Array<TracingMessage | TracingStep | TracingMessageResult>>
111
113
  }
112
114
 
113
115
  export declare class ReturnData {
@@ -314,11 +316,6 @@ export declare enum CallKind {
314
316
  Create = 4,
315
317
  }
316
318
 
317
- export interface CallOutput {
318
- /** Return value */
319
- returnValue: Uint8Array
320
- }
321
-
322
319
  /** The result of executing a call override. */
323
320
  export interface CallOverrideResult {
324
321
  result: Uint8Array
@@ -493,13 +490,6 @@ export interface CounterExampleSequence {
493
490
  /** The instrumentation coverage library file name. */
494
491
  export declare const COVERAGE_LIBRARY_FILE_NAME: string
495
492
 
496
- export interface CreateOutput {
497
- /** Return value */
498
- returnValue: Uint8Array
499
- /** Optionally, a 160-bit address */
500
- address?: Uint8Array
501
- }
502
-
503
493
  export interface CustomErrorStackTraceEntry {
504
494
  type: StackTraceEntryType.CUSTOM_ERROR
505
495
  message: string
@@ -591,14 +581,6 @@ export interface ExecutionLog {
591
581
  data: Uint8Array
592
582
  }
593
583
 
594
- /** The result of executing a transaction. */
595
- export interface ExecutionResult {
596
- /** The transaction result */
597
- result: SuccessResult | RevertResult | HaltResult
598
- /** Optional contract address if the transaction created a new contract. */
599
- contractAddress?: Uint8Array
600
- }
601
-
602
584
  /** Represents the exit code of the EVM. */
603
585
  export declare enum ExitCode {
604
586
  /** Execution was successful. */
@@ -814,19 +796,6 @@ export declare const GENERIC_CHAIN_TYPE: string
814
796
 
815
797
  export declare function genericChainProviderFactory(): ProviderFactory
816
798
 
817
- /** The result when the EVM terminates due to an exceptional halt. */
818
- export interface HaltResult {
819
- /** The exceptional halt that occurred */
820
- reason: ExceptionalHalt
821
- /**
822
- * Halting will spend all the gas and will thus be equal to the specified
823
- * gas limit
824
- */
825
- gasUsed: bigint
826
- /** The logs */
827
- logs: Array<ExecutionLog>
828
- }
829
-
830
799
  /** Configuration for a hardfork activation */
831
800
  export interface HardforkActivation {
832
801
  /** The condition for the hardfork activation */
@@ -1341,6 +1310,15 @@ export interface ObservabilityConfig {
1341
1310
  * Defaults to `IncludeTraces.None`.
1342
1311
  */
1343
1312
  includeCallTraces?: IncludeTraces
1313
+ /**
1314
+ * How much of the stack each step of `Response.traces()` records.
1315
+ *
1316
+ * This will be overridden if `Provider.setVerboseTracing(true)` is called,
1317
+ * which records the full stack until it is disabled again.
1318
+ *
1319
+ * Defaults to `StackSnapshotType.None`.
1320
+ */
1321
+ recordStack?: StackSnapshotType
1344
1322
  }
1345
1323
 
1346
1324
  export declare const OP_CHAIN_TYPE: string
@@ -1442,10 +1420,24 @@ export interface ProviderConfig {
1442
1420
  /** The address of the coinbase */
1443
1421
  coinbase: Uint8Array
1444
1422
  /**
1445
- * The default transaction gas limit to use for RPC call and transaction
1446
- * requests that do not specify a `gas` value.
1423
+ * The gas limit of RPC call and transaction requests that do not specify
1424
+ * a `gas` value.
1425
+ *
1426
+ * When set, it is used as is. Creating the provider fails when it exceeds
1427
+ * the transaction gas bound of the configured hardfork and transaction gas
1428
+ * cap. A request at a block whose bound is lower fails like a request with
1429
+ * an explicit `gas` above that bound.
1430
+ *
1431
+ * When not set, it is derived from the hardfork of the request's block.
1432
+ * It is `2^32 - 1` from Amsterdam ([EIP-8037]), `2^24` from Osaka
1433
+ * ([EIP-7825]), and the block gas limit before. The block gas limit caps
1434
+ * each of these. Before Amsterdam, a configured `transactionGasCap`
1435
+ * replaces the hardfork's bound.
1436
+ *
1437
+ * [EIP-7825]: https://eips.ethereum.org/EIPS/eip-7825
1438
+ * [EIP-8037]: https://eips.ethereum.org/EIPS/eip-8037
1447
1439
  */
1448
- defaultTransactionGasLimit: bigint
1440
+ defaultTransactionGasLimit?: bigint
1449
1441
  /**
1450
1442
  * The gas estimation mode to use for `eth_estimateGas`. Defaults to
1451
1443
  * `GasEstimationMode::TopLevelSuccess` if not set.
@@ -1513,16 +1505,6 @@ export interface RevertErrorStackTraceEntry {
1513
1505
  isInvalidOpcodeError: boolean
1514
1506
  }
1515
1507
 
1516
- /** The result when the EVM terminates due to a revert. */
1517
- export interface RevertResult {
1518
- /** The amount of gas used */
1519
- gasUsed: bigint
1520
- /** The logs */
1521
- logs: Array<ExecutionLog>
1522
- /** The transaction output */
1523
- output: Uint8Array
1524
- }
1525
-
1526
1508
  /**
1527
1509
  * Derives the secp256k1 public key of the provided secret key, returning it
1528
1510
  * in uncompressed SEC1 form: 65 bytes, `0x04 || X || Y`.
@@ -1818,6 +1800,16 @@ export interface SourceReference {
1818
1800
  range: Array<number>
1819
1801
  }
1820
1802
 
1803
+ /** How much of the stack each step of a raw trace records. */
1804
+ export declare enum StackSnapshotType {
1805
+ /** No stack entries. */
1806
+ None = 0,
1807
+ /** The full stack. */
1808
+ Full = 1,
1809
+ /** Only the top entry of the stack. */
1810
+ Top = 2,
1811
+ }
1812
+
1821
1813
  /** The stack trace result */
1822
1814
  export interface StackTrace {
1823
1815
  /** Enum tag for JS. */
@@ -1902,20 +1894,6 @@ export declare enum SuccessReason {
1902
1894
  SelfDestruct = 2,
1903
1895
  }
1904
1896
 
1905
- /** The result when the EVM terminates successfully. */
1906
- export interface SuccessResult {
1907
- /** The reason for termination */
1908
- reason: SuccessReason
1909
- /** The amount of gas used */
1910
- gasUsed: bigint
1911
- /** The amount of gas refunded */
1912
- gasRefunded: bigint
1913
- /** The logs */
1914
- logs: Array<ExecutionLog>
1915
- /** The transaction output */
1916
- output: CallOutput | CreateOutput
1917
- }
1918
-
1919
1897
  /**
1920
1898
  * See [`edr_solidity_tests::result::SuiteResult`]
1921
1899
  *
@@ -1968,49 +1946,64 @@ export interface TracingConfigWithBuffers {
1968
1946
  ignoreContracts?: boolean
1969
1947
  }
1970
1948
 
1949
+ /** Matches Hardhat's `MinimalExecResult` interface. */
1950
+ export interface TracingExecResult {
1951
+ /** Whether execution succeeded */
1952
+ readonly success: boolean
1953
+ /** Gas used during execution */
1954
+ readonly executionGasUsed: bigint
1955
+ /** Address of the created contract. None if the create failed. */
1956
+ readonly contractAddress?: Uint8Array
1957
+ /** The reason for the exit (success or halt) */
1958
+ readonly reason?: SuccessReason | ExceptionalHalt
1959
+ /** The output data */
1960
+ readonly output?: Uint8Array
1961
+ }
1962
+
1963
+ /** Matches Hardhat's `MinimalMessage` interface. */
1971
1964
  export interface TracingMessage {
1972
1965
  /** Sender address */
1973
1966
  readonly caller: Uint8Array
1974
1967
  /** Recipient address. None if it is a Create message. */
1975
1968
  readonly to?: Uint8Array
1976
- /** Whether it's a static call */
1977
- readonly isStaticCall: boolean
1978
- /** Transaction gas limit */
1979
- readonly gasLimit: bigint
1980
- /** Depth of the message */
1981
- readonly depth: number
1982
- /** Input data of the message */
1983
- readonly data: Uint8Array
1984
- /** Value sent in the message */
1985
- readonly value: bigint
1986
1969
  /**
1987
1970
  * Address of the code that is being executed. Can be different from `to`
1988
1971
  * if a delegate call is being done.
1989
1972
  */
1990
1973
  readonly codeAddress?: Uint8Array
1991
- /** Code of the contract that is being executed. */
1992
- readonly code?: Uint8Array
1974
+ /** Value sent in the message */
1975
+ readonly value: bigint
1976
+ /** Input data of the message */
1977
+ readonly data: Uint8Array
1978
+ /** Transaction gas limit */
1979
+ readonly gasLimit: bigint
1980
+ /** Whether it's a static call */
1981
+ readonly isStaticCall: boolean
1993
1982
  }
1994
1983
 
1984
+ /** Matches Hardhat's `MinimalEVMResult` interface. */
1995
1985
  export interface TracingMessageResult {
1996
- /** Execution result */
1997
- readonly executionResult: ExecutionResult
1986
+ /** The execution result */
1987
+ readonly execResult: TracingExecResult
1988
+ }
1989
+
1990
+ /** Opcode information for a tracing step. */
1991
+ export interface TracingOpcode {
1992
+ /** The name of the opcode */
1993
+ readonly name: string
1998
1994
  }
1999
1995
 
1996
+ /** Matches Hardhat's `MinimalInterpreterStep` interface. */
2000
1997
  export interface TracingStep {
1998
+ /** The program counter */
1999
+ readonly pc: number
2001
2000
  /** Call depth */
2002
2001
  readonly depth: number
2003
- /** The program counter */
2004
- readonly pc: bigint
2005
- /** The executed op code */
2006
- readonly opcode: string
2007
- /**
2008
- * The entries on the stack. It only contains the top element unless
2009
- * verbose tracing is enabled. The vector is empty if there are no elements
2010
- * on the stack.
2011
- */
2002
+ /** The executed opcode */
2003
+ readonly opcode: TracingOpcode
2004
+ /** The stack entries, as many as `ObservabilityConfig.recordStack` records. */
2012
2005
  readonly stack: Array<bigint>
2013
- /** The memory at the step. None if verbose tracing is disabled. */
2006
+ /** The memory at the step. None unless verbose tracing is enabled. */
2014
2007
  readonly memory?: Uint8Array
2015
2008
  }
2016
2009
 
package/index.js CHANGED
@@ -89,8 +89,8 @@ function requireNative() {
89
89
  try {
90
90
  const binding = require('@nomicfoundation/edr-android-arm64')
91
91
  const bindingPackageVersion = require('@nomicfoundation/edr-android-arm64/package.json').version
92
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
93
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
92
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
93
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
94
  }
95
95
  return binding
96
96
  } catch (e) {
@@ -105,8 +105,8 @@ function requireNative() {
105
105
  try {
106
106
  const binding = require('@nomicfoundation/edr-android-arm-eabi')
107
107
  const bindingPackageVersion = require('@nomicfoundation/edr-android-arm-eabi/package.json').version
108
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
109
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
108
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
109
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
110
110
  }
111
111
  return binding
112
112
  } catch (e) {
@@ -126,8 +126,8 @@ function requireNative() {
126
126
  try {
127
127
  const binding = require('@nomicfoundation/edr-win32-x64-gnu')
128
128
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-gnu/package.json').version
129
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
130
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
129
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
130
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
131
  }
132
132
  return binding
133
133
  } catch (e) {
@@ -142,8 +142,8 @@ function requireNative() {
142
142
  try {
143
143
  const binding = require('@nomicfoundation/edr-win32-x64-msvc')
144
144
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-msvc/package.json').version
145
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
146
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
145
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
146
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
147
147
  }
148
148
  return binding
149
149
  } catch (e) {
@@ -159,8 +159,8 @@ function requireNative() {
159
159
  try {
160
160
  const binding = require('@nomicfoundation/edr-win32-ia32-msvc')
161
161
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-ia32-msvc/package.json').version
162
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
162
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
164
  }
165
165
  return binding
166
166
  } catch (e) {
@@ -175,8 +175,8 @@ function requireNative() {
175
175
  try {
176
176
  const binding = require('@nomicfoundation/edr-win32-arm64-msvc')
177
177
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-arm64-msvc/package.json').version
178
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
179
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
178
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
179
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
180
180
  }
181
181
  return binding
182
182
  } catch (e) {
@@ -194,8 +194,8 @@ function requireNative() {
194
194
  try {
195
195
  const binding = require('@nomicfoundation/edr-darwin-universal')
196
196
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-universal/package.json').version
197
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
198
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
197
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
198
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
199
  }
200
200
  return binding
201
201
  } catch (e) {
@@ -210,8 +210,8 @@ function requireNative() {
210
210
  try {
211
211
  const binding = require('@nomicfoundation/edr-darwin-x64')
212
212
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-x64/package.json').version
213
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
214
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
213
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
214
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
215
  }
216
216
  return binding
217
217
  } catch (e) {
@@ -226,8 +226,8 @@ function requireNative() {
226
226
  try {
227
227
  const binding = require('@nomicfoundation/edr-darwin-arm64')
228
228
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-arm64/package.json').version
229
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
230
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
229
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
230
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
231
231
  }
232
232
  return binding
233
233
  } catch (e) {
@@ -246,8 +246,8 @@ function requireNative() {
246
246
  try {
247
247
  const binding = require('@nomicfoundation/edr-freebsd-x64')
248
248
  const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-x64/package.json').version
249
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
250
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
249
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
250
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
251
  }
252
252
  return binding
253
253
  } catch (e) {
@@ -262,8 +262,8 @@ function requireNative() {
262
262
  try {
263
263
  const binding = require('@nomicfoundation/edr-freebsd-arm64')
264
264
  const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-arm64/package.json').version
265
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
265
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
267
267
  }
268
268
  return binding
269
269
  } catch (e) {
@@ -283,8 +283,8 @@ function requireNative() {
283
283
  try {
284
284
  const binding = require('@nomicfoundation/edr-linux-x64-musl')
285
285
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-musl/package.json').version
286
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
286
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
288
  }
289
289
  return binding
290
290
  } catch (e) {
@@ -299,8 +299,8 @@ function requireNative() {
299
299
  try {
300
300
  const binding = require('@nomicfoundation/edr-linux-x64-gnu')
301
301
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-gnu/package.json').version
302
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
303
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
302
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
303
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
304
304
  }
305
305
  return binding
306
306
  } catch (e) {
@@ -317,8 +317,8 @@ function requireNative() {
317
317
  try {
318
318
  const binding = require('@nomicfoundation/edr-linux-arm64-musl')
319
319
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-musl/package.json').version
320
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
321
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
320
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
321
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
322
  }
323
323
  return binding
324
324
  } catch (e) {
@@ -333,8 +333,8 @@ function requireNative() {
333
333
  try {
334
334
  const binding = require('@nomicfoundation/edr-linux-arm64-gnu')
335
335
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-gnu/package.json').version
336
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
337
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
336
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
337
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
338
338
  }
339
339
  return binding
340
340
  } catch (e) {
@@ -351,8 +351,8 @@ function requireNative() {
351
351
  try {
352
352
  const binding = require('@nomicfoundation/edr-linux-arm-musleabihf')
353
353
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-musleabihf/package.json').version
354
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
355
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
354
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
355
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
356
  }
357
357
  return binding
358
358
  } catch (e) {
@@ -367,8 +367,8 @@ function requireNative() {
367
367
  try {
368
368
  const binding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
369
369
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-gnueabihf/package.json').version
370
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
371
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
370
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
371
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
372
372
  }
373
373
  return binding
374
374
  } catch (e) {
@@ -385,8 +385,8 @@ function requireNative() {
385
385
  try {
386
386
  const binding = require('@nomicfoundation/edr-linux-loong64-musl')
387
387
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-musl/package.json').version
388
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
389
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
388
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
389
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
390
  }
391
391
  return binding
392
392
  } catch (e) {
@@ -401,8 +401,8 @@ function requireNative() {
401
401
  try {
402
402
  const binding = require('@nomicfoundation/edr-linux-loong64-gnu')
403
403
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-gnu/package.json').version
404
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
405
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
404
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
405
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
406
406
  }
407
407
  return binding
408
408
  } catch (e) {
@@ -419,8 +419,8 @@ function requireNative() {
419
419
  try {
420
420
  const binding = require('@nomicfoundation/edr-linux-riscv64-musl')
421
421
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-musl/package.json').version
422
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
423
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
422
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
423
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
424
  }
425
425
  return binding
426
426
  } catch (e) {
@@ -435,8 +435,8 @@ function requireNative() {
435
435
  try {
436
436
  const binding = require('@nomicfoundation/edr-linux-riscv64-gnu')
437
437
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-gnu/package.json').version
438
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
439
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
438
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
439
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
440
440
  }
441
441
  return binding
442
442
  } catch (e) {
@@ -452,8 +452,8 @@ function requireNative() {
452
452
  try {
453
453
  const binding = require('@nomicfoundation/edr-linux-ppc64-gnu')
454
454
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-ppc64-gnu/package.json').version
455
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
456
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
455
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
456
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
457
  }
458
458
  return binding
459
459
  } catch (e) {
@@ -468,8 +468,8 @@ function requireNative() {
468
468
  try {
469
469
  const binding = require('@nomicfoundation/edr-linux-s390x-gnu')
470
470
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-s390x-gnu/package.json').version
471
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
472
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
471
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
472
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
473
473
  }
474
474
  return binding
475
475
  } catch (e) {
@@ -488,8 +488,8 @@ function requireNative() {
488
488
  try {
489
489
  const binding = require('@nomicfoundation/edr-openharmony-arm64')
490
490
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm64/package.json').version
491
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
491
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
493
  }
494
494
  return binding
495
495
  } catch (e) {
@@ -504,8 +504,8 @@ function requireNative() {
504
504
  try {
505
505
  const binding = require('@nomicfoundation/edr-openharmony-x64')
506
506
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-x64/package.json').version
507
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
508
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
507
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
508
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
509
  }
510
510
  return binding
511
511
  } catch (e) {
@@ -520,8 +520,8 @@ function requireNative() {
520
520
  try {
521
521
  const binding = require('@nomicfoundation/edr-openharmony-arm')
522
522
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm/package.json').version
523
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
524
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
523
+ if (bindingPackageVersion !== '0.25.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
524
+ throw new Error(`Native binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
525
525
  }
526
526
  return binding
527
527
  } catch (e) {
@@ -661,8 +661,8 @@ if (!nativeBinding || forceWasi) {
661
661
  if (!candidateFailed) {
662
662
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
663
663
  const bindingPackageVersion = require('@nomicfoundation/edr-wasm32-wasi/package.json').version
664
- if (bindingPackageVersion !== '0.24.0') {
665
- throw new Error(`WASI binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
664
+ if (bindingPackageVersion !== '0.25.0') {
665
+ throw new Error(`WASI binding package version mismatch, expected 0.25.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
666
666
  }
667
667
  }
668
668
  wasiBinding = require('@nomicfoundation/edr-wasm32-wasi')
@@ -785,7 +785,6 @@ module.exports.Exit = nativeBinding.Exit
785
785
  module.exports.Precompile = nativeBinding.Precompile
786
786
  module.exports.Provider = nativeBinding.Provider
787
787
  module.exports.ProviderFactory = nativeBinding.ProviderFactory
788
- module.exports.RawTrace = nativeBinding.RawTrace
789
788
  module.exports.Response = nativeBinding.Response
790
789
  module.exports.ReturnData = nativeBinding.ReturnData
791
790
  module.exports.SolidityTestRunnerFactory = nativeBinding.SolidityTestRunnerFactory
@@ -834,6 +833,7 @@ module.exports.precompileP256Verify = nativeBinding.precompileP256Verify
834
833
  module.exports.printStackTrace = nativeBinding.printStackTrace
835
834
  module.exports.RECEIVE_FUNCTION_NAME = nativeBinding.RECEIVE_FUNCTION_NAME
836
835
  module.exports.secp256k1PublicKeyFromSecretKey = nativeBinding.secp256k1PublicKeyFromSecretKey
836
+ module.exports.StackSnapshotType = nativeBinding.StackSnapshotType
837
837
  module.exports.StackTraceEntryType = nativeBinding.StackTraceEntryType
838
838
  module.exports.stackTraceEntryTypeToString = nativeBinding.stackTraceEntryTypeToString
839
839
  module.exports.SuccessReason = nativeBinding.SuccessReason
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.24.0",
3
+ "version": "0.25.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.24.0",
63
- "@nomicfoundation/edr-darwin-x64": "0.24.0",
64
- "@nomicfoundation/edr-linux-arm64-gnu": "0.24.0",
65
- "@nomicfoundation/edr-linux-arm64-musl": "0.24.0",
66
- "@nomicfoundation/edr-linux-x64-gnu": "0.24.0",
67
- "@nomicfoundation/edr-linux-x64-musl": "0.24.0",
68
- "@nomicfoundation/edr-win32-x64-msvc": "0.24.0"
62
+ "@nomicfoundation/edr-darwin-arm64": "0.25.0",
63
+ "@nomicfoundation/edr-darwin-x64": "0.25.0",
64
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.25.0",
65
+ "@nomicfoundation/edr-linux-arm64-musl": "0.25.0",
66
+ "@nomicfoundation/edr-linux-x64-gnu": "0.25.0",
67
+ "@nomicfoundation/edr-linux-x64-musl": "0.25.0",
68
+ "@nomicfoundation/edr-win32-x64-msvc": "0.25.0"
69
69
  },
70
70
  "scripts": {
71
71
  "artifacts": "napi artifacts",