@nomicfoundation/edr 0.11.0 → 0.12.0-alpha.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/src/lib.rs CHANGED
@@ -1,23 +1,37 @@
1
- #![warn(missing_docs)]
1
+ // #![warn(missing_docs)]
2
2
 
3
- //! NAPI bindings for the EDR EVM
3
+ //! NAPI bindings for EDR's core types.
4
4
 
5
5
  #[global_allocator]
6
6
  static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
7
7
 
8
8
  mod account;
9
9
  mod block;
10
- mod call_override;
11
- mod cast;
12
- mod config;
13
- mod context;
10
+ /// Types for overriding a call.
11
+ pub mod call_override;
12
+ /// Types for casting N-API types to Rust types.
13
+ pub mod cast;
14
+ /// Supported chain types.
15
+ pub mod chains;
16
+ /// Types for configuration.
17
+ pub mod config;
18
+ /// Types related to an EDR N-API context.
19
+ pub mod context;
14
20
  mod debug_trace;
15
- mod log;
16
- mod logger;
17
- mod provider;
18
- mod result;
21
+ /// Types for EVM execution logs.
22
+ pub mod log;
23
+ /// Types for an RPC request logger.
24
+ pub mod logger;
25
+ /// Types for Ethereum RPC providers.
26
+ pub mod provider;
27
+ /// Types for EVM execution results.
28
+ pub mod result;
29
+ /// Types relating to benchmark scenarios.
19
30
  #[cfg(feature = "scenarios")]
20
- mod scenarios;
21
- mod subscribe;
22
- mod trace;
23
- mod withdrawal;
31
+ pub mod scenarios;
32
+ /// Types for subscribing to events.
33
+ pub mod subscription;
34
+ /// Types for EVM traces.
35
+ pub mod trace;
36
+ /// Types related to Ethereum withdrawals.
37
+ pub mod withdrawal;
package/src/log.rs CHANGED
@@ -1,4 +1,4 @@
1
- use napi::{bindgen_prelude::Buffer, Env, JsBuffer, JsBufferValue};
1
+ use napi::{Env, JsBuffer, JsBufferValue, bindgen_prelude::Buffer};
2
2
  use napi_derive::napi;
3
3
 
4
4
  /// Ethereum execution log.
@@ -10,7 +10,7 @@ pub struct ExecutionLog {
10
10
  }
11
11
 
12
12
  impl ExecutionLog {
13
- pub fn new(env: &Env, log: &edr_evm::Log) -> napi::Result<Self> {
13
+ pub fn new(env: &Env, log: &edr_eth::log::ExecutionLog) -> napi::Result<Self> {
14
14
  let topics = log
15
15
  .topics()
16
16
  .iter()