@nomicfoundation/edr 0.12.0-alpha.0 → 0.12.0-next.1
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/Cargo.toml +47 -16
- package/LICENSE +5 -1
- package/index.d.ts +794 -104
- package/index.js +31 -1
- package/package.json +20 -17
- package/src/account.rs +102 -55
- package/src/block.rs +2 -103
- package/src/call_override.rs +8 -8
- package/src/cast.rs +7 -29
- package/src/chains/generic.rs +1 -1
- package/src/chains/l1.rs +20 -18
- package/src/chains/op.rs +95 -38
- package/src/config.rs +305 -161
- package/src/context.rs +260 -21
- package/src/debug_trace.rs +2 -2
- package/src/instrument.rs +109 -0
- package/src/lib.rs +10 -0
- package/src/log.rs +12 -14
- package/src/logger.rs +28 -30
- package/src/mock.rs +68 -0
- package/src/precompile.rs +50 -0
- package/src/provider/response.rs +8 -5
- package/src/provider.rs +14 -8
- package/src/result.rs +18 -27
- package/src/scenarios.rs +2 -2
- package/src/serde.rs +57 -0
- package/src/solidity_tests/artifact.rs +184 -0
- package/src/solidity_tests/config.rs +725 -0
- package/src/solidity_tests/factory.rs +22 -0
- package/src/solidity_tests/l1.rs +68 -0
- package/src/solidity_tests/op.rs +69 -0
- package/src/solidity_tests/runner.rs +51 -0
- package/src/solidity_tests/test_results.rs +707 -0
- package/src/solidity_tests.rs +56 -0
- package/src/subscription.rs +1 -1
- package/src/trace/debug.rs +1 -1
- package/src/trace/exit.rs +4 -4
- package/src/trace/library_utils.rs +7 -2
- package/src/trace/return_data.rs +10 -10
- package/src/trace/solidity_stack_trace.rs +7 -5
- package/src/trace.rs +29 -38
- package/src/withdrawal.rs +3 -3
package/Cargo.toml
CHANGED
|
@@ -1,38 +1,71 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "edr_napi"
|
|
3
|
-
version =
|
|
3
|
+
version.workspace = true
|
|
4
4
|
edition.workspace = true
|
|
5
5
|
|
|
6
6
|
[lib]
|
|
7
7
|
crate-type = ["cdylib"]
|
|
8
8
|
|
|
9
9
|
[dependencies]
|
|
10
|
-
alloy-dyn-abi
|
|
11
|
-
alloy-json-abi
|
|
12
|
-
alloy-sol-types
|
|
13
|
-
|
|
10
|
+
alloy-dyn-abi.workspace = true
|
|
11
|
+
alloy-json-abi.workspace = true
|
|
12
|
+
alloy-sol-types.workspace = true
|
|
13
|
+
derive_more.workspace = true
|
|
14
|
+
derive-where.workspace = true
|
|
15
|
+
edr_coverage.workspace = true
|
|
16
|
+
edr_defaults = { path = "../edr_defaults" }
|
|
14
17
|
edr_eth = { path = "../edr_eth" }
|
|
15
18
|
edr_evm = { path = "../edr_evm" }
|
|
16
19
|
edr_generic = { path = "../edr_generic" }
|
|
20
|
+
edr_instrument = { path = "../edr_instrument" }
|
|
17
21
|
edr_napi_core = { path = "../edr_napi_core" }
|
|
18
22
|
edr_op = { path = "../edr_op", optional = true }
|
|
19
23
|
edr_provider = { path = "../edr_provider" }
|
|
20
24
|
edr_rpc_client = { path = "../edr_rpc_client" }
|
|
21
25
|
edr_scenarios = { version = "0.3.5", path = "../edr_scenarios", optional = true }
|
|
22
|
-
edr_solidity ={ version = "0.3.5", path = "../edr_solidity" }
|
|
23
|
-
k256 = { version = "0.13.1", default-features = false, features = [
|
|
24
|
-
|
|
26
|
+
edr_solidity = { version = "0.3.5", path = "../edr_solidity" }
|
|
27
|
+
k256 = { version = "0.13.1", default-features = false, features = [
|
|
28
|
+
"arithmetic",
|
|
29
|
+
"ecdsa",
|
|
30
|
+
"pkcs8",
|
|
31
|
+
] }
|
|
32
|
+
mimalloc = { version = "0.1.39", default-features = false, features = [
|
|
33
|
+
"local_dynamic_tls",
|
|
34
|
+
] }
|
|
25
35
|
# The `async` feature ensures that a tokio runtime is available
|
|
26
|
-
napi = { version = "2.16.17", default-features = false, features = [
|
|
36
|
+
napi = { version = "2.16.17", default-features = false, features = [
|
|
37
|
+
"async",
|
|
38
|
+
"error_anyhow",
|
|
39
|
+
"napi8",
|
|
40
|
+
"serde-json",
|
|
41
|
+
] }
|
|
27
42
|
napi-derive = "2.16.13"
|
|
28
43
|
rand = { version = "0.8.4", optional = true }
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
semver = "1.0.22"
|
|
45
|
+
serde.workspace = true
|
|
46
|
+
serde_json.workspace = true
|
|
31
47
|
static_assertions = "1.1.0"
|
|
32
48
|
strum = { version = "0.26.0", features = ["derive"] }
|
|
49
|
+
thiserror = { version = "1.0.37", default-features = false }
|
|
33
50
|
tracing = { version = "0.1.37", default-features = false, features = ["std"] }
|
|
34
|
-
tracing-flame = { version = "0.2.0", default-features = false, features = [
|
|
35
|
-
|
|
51
|
+
tracing-flame = { version = "0.2.0", default-features = false, features = [
|
|
52
|
+
"smallvec",
|
|
53
|
+
] }
|
|
54
|
+
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
|
|
55
|
+
"ansi",
|
|
56
|
+
"env-filter",
|
|
57
|
+
"fmt",
|
|
58
|
+
"parking_lot",
|
|
59
|
+
"smallvec",
|
|
60
|
+
"std",
|
|
61
|
+
] }
|
|
62
|
+
|
|
63
|
+
# Solidity tests
|
|
64
|
+
edr_solidity_tests.workspace = true
|
|
65
|
+
foundry-cheatcodes.workspace = true
|
|
66
|
+
foundry-compilers.workspace = true
|
|
67
|
+
edr_common.workspace = true
|
|
68
|
+
tempfile = "3.10.1"
|
|
36
69
|
|
|
37
70
|
[target.x86_64-unknown-linux-gnu.dependencies]
|
|
38
71
|
openssl-sys = { version = "0.9.93", features = ["vendored"] }
|
|
@@ -53,9 +86,7 @@ napi-build = "2.0.1"
|
|
|
53
86
|
op = ["dep:edr_op"]
|
|
54
87
|
scenarios = ["dep:edr_scenarios", "dep:rand"]
|
|
55
88
|
tracing = ["edr_evm/tracing", "edr_napi_core/tracing", "edr_provider/tracing"]
|
|
56
|
-
|
|
57
|
-
[profile.release]
|
|
58
|
-
lto = true
|
|
89
|
+
test-mock = []
|
|
59
90
|
|
|
60
91
|
[lints]
|
|
61
92
|
workspace = true
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 Nomic Foundation
|
|
3
|
+
Copyright (c) 2021 Nomic Foundation. The solidity tests feature of this work
|
|
4
|
+
is based on and modifies Foundry, which is licensed under the MIT license,
|
|
5
|
+
copyright (c) 2021 Georgios Konstantopoulos. Documentation for the solidity
|
|
6
|
+
tests feature is based on Foundry Book which is copyright (c) 2021 Oliver
|
|
7
|
+
Nordbjerg.
|
|
4
8
|
|
|
5
9
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
10
|
of this software and associated documentation files (the "Software"), to deal
|