@nomicfoundation/edr 0.12.0-next.16 → 0.12.0-next.17
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/package.json +8 -8
- package/src/chains/l1.rs +1 -1
- package/src/chains/op.rs +1 -1
- package/src/mock/time.rs +1 -1
- package/src/result.rs +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.12.0-next.
|
|
3
|
+
"version": "0.12.0-next.17",
|
|
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.
|
|
62
|
-
"@nomicfoundation/edr-darwin-x64": "0.12.0-next.
|
|
63
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.
|
|
64
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.
|
|
65
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.
|
|
66
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.
|
|
67
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.
|
|
61
|
+
"@nomicfoundation/edr-darwin-arm64": "0.12.0-next.17",
|
|
62
|
+
"@nomicfoundation/edr-darwin-x64": "0.12.0-next.17",
|
|
63
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.17",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.17",
|
|
65
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.17",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.17",
|
|
67
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.17"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"artifacts": "napi artifacts",
|
package/src/chains/l1.rs
CHANGED
|
@@ -238,7 +238,7 @@ pub fn l1_hardfork_to_string(harfork: SpecId) -> &'static str {
|
|
|
238
238
|
/// The returned value will be updated after each network upgrade.
|
|
239
239
|
#[napi]
|
|
240
240
|
pub fn l1_hardfork_latest() -> SpecId {
|
|
241
|
-
SpecId::
|
|
241
|
+
SpecId::Osaka
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
macro_rules! export_spec_id {
|
package/src/chains/op.rs
CHANGED
|
@@ -136,7 +136,7 @@ pub fn op_hardfork_to_string(hardfork: OpHardfork) -> &'static str {
|
|
|
136
136
|
/// The returned value will be updated after each network upgrade.
|
|
137
137
|
#[napi(catch_unwind)]
|
|
138
138
|
pub fn op_latest_hardfork() -> OpHardfork {
|
|
139
|
-
OpHardfork::
|
|
139
|
+
OpHardfork::Isthmus
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
#[napi]
|
package/src/mock/time.rs
CHANGED
|
@@ -2,10 +2,10 @@ use std::sync::Arc;
|
|
|
2
2
|
|
|
3
3
|
use edr_chain_spec::ChainSpec;
|
|
4
4
|
use edr_chain_spec_block::BlockChainSpec;
|
|
5
|
+
use edr_chain_spec_rpc::RpcBlockChainSpec;
|
|
5
6
|
use edr_generic::GenericChainSpec;
|
|
6
7
|
use edr_napi_core::logger::Logger;
|
|
7
8
|
use edr_primitives::B256;
|
|
8
|
-
use edr_rpc_spec::RpcBlockChainSpec;
|
|
9
9
|
use napi::{bindgen_prelude::BigInt, tokio::runtime, Env, JsObject};
|
|
10
10
|
use napi_derive::napi;
|
|
11
11
|
|
package/src/result.rs
CHANGED
|
@@ -19,17 +19,17 @@ pub enum SuccessReason {
|
|
|
19
19
|
SelfDestruct,
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
impl From<
|
|
23
|
-
fn from(eval:
|
|
22
|
+
impl From<edr_chain_spec_evm::result::SuccessReason> for SuccessReason {
|
|
23
|
+
fn from(eval: edr_chain_spec_evm::result::SuccessReason) -> Self {
|
|
24
24
|
match eval {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
edr_chain_spec_evm::result::SuccessReason::Stop => Self::Stop,
|
|
26
|
+
edr_chain_spec_evm::result::SuccessReason::Return => Self::Return,
|
|
27
|
+
edr_chain_spec_evm::result::SuccessReason::SelfDestruct => Self::SelfDestruct,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
impl From<SuccessReason> for
|
|
32
|
+
impl From<SuccessReason> for edr_chain_spec_evm::result::SuccessReason {
|
|
33
33
|
fn from(value: SuccessReason) -> Self {
|
|
34
34
|
match value {
|
|
35
35
|
SuccessReason::Stop => Self::Stop,
|
|
@@ -159,7 +159,7 @@ impl From<&AfterMessage<EvmHaltReason>> for ExecutionResult {
|
|
|
159
159
|
} = value;
|
|
160
160
|
|
|
161
161
|
let result = match execution_result {
|
|
162
|
-
|
|
162
|
+
edr_chain_spec_evm::result::ExecutionResult::Success {
|
|
163
163
|
reason,
|
|
164
164
|
gas_used,
|
|
165
165
|
gas_refunded,
|
|
@@ -174,12 +174,12 @@ impl From<&AfterMessage<EvmHaltReason>> for ExecutionResult {
|
|
|
174
174
|
gas_refunded: BigInt::from(*gas_refunded),
|
|
175
175
|
logs,
|
|
176
176
|
output: match output {
|
|
177
|
-
|
|
177
|
+
edr_chain_spec_evm::result::Output::Call(return_value) => {
|
|
178
178
|
let return_value = Uint8Array::with_data_copied(return_value);
|
|
179
179
|
|
|
180
180
|
Either::A(CallOutput { return_value })
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
edr_chain_spec_evm::result::Output::Create(return_value, address) => {
|
|
183
183
|
let return_value = Uint8Array::with_data_copied(return_value);
|
|
184
184
|
|
|
185
185
|
Either::B(CreateOutput {
|
|
@@ -190,7 +190,7 @@ impl From<&AfterMessage<EvmHaltReason>> for ExecutionResult {
|
|
|
190
190
|
},
|
|
191
191
|
})
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
edr_chain_spec_evm::result::ExecutionResult::Revert { gas_used, output } => {
|
|
194
194
|
let output = Uint8Array::with_data_copied(output);
|
|
195
195
|
|
|
196
196
|
Either3::B(RevertResult {
|
|
@@ -198,7 +198,7 @@ impl From<&AfterMessage<EvmHaltReason>> for ExecutionResult {
|
|
|
198
198
|
output,
|
|
199
199
|
})
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
edr_chain_spec_evm::result::ExecutionResult::Halt { reason, gas_used } => {
|
|
202
202
|
Either3::C(HaltResult {
|
|
203
203
|
reason: ExceptionalHalt::from(reason.clone()),
|
|
204
204
|
gas_used: BigInt::from(*gas_used),
|