@nomicfoundation/edr 0.12.0-next.29 → 0.12.0-next.30
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/index.d.ts +5 -0
- package/package.json +9 -8
- package/src/solidity_tests/config.rs +9 -0
package/index.d.ts
CHANGED
|
@@ -840,6 +840,11 @@ export interface FuzzConfigArgs {
|
|
|
840
840
|
* Defaults to true.
|
|
841
841
|
*/
|
|
842
842
|
includePushBytes?: boolean
|
|
843
|
+
/**
|
|
844
|
+
* Show `console.log` in fuzz test.
|
|
845
|
+
* Defaults to false.
|
|
846
|
+
*/
|
|
847
|
+
showLogs?: boolean
|
|
843
848
|
/**
|
|
844
849
|
* Optional timeout (in seconds) for each property test.
|
|
845
850
|
* Defaults to none (no timeout).
|
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.30",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@napi-rs/cli": "^2.18.4",
|
|
6
6
|
"@nomicfoundation/ethereumjs-util": "^9.0.4",
|
|
@@ -58,19 +58,20 @@
|
|
|
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.30",
|
|
62
|
+
"@nomicfoundation/edr-darwin-x64": "0.12.0-next.30",
|
|
63
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.30",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.30",
|
|
65
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.30",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.30",
|
|
67
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.30"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"artifacts": "napi artifacts",
|
|
71
71
|
"build": "pnpm run build:publish",
|
|
72
72
|
"build:debug": "bash ../../scripts/build_edr_napi.sh --features op",
|
|
73
73
|
"build:dev": "bash ../../scripts/build_edr_napi.sh --release --features op,test-mock",
|
|
74
|
+
"build:perf-js": "RUSTFLAGS='-Cforce-frame-pointers=yes' bash ../../scripts/build_edr_napi.sh --profile napi-publish --features op",
|
|
74
75
|
"build:publish": "bash ../../scripts/build_edr_napi.sh --profile napi-publish --features op",
|
|
75
76
|
"build:scenarios": "bash ../../scripts/build_edr_napi.sh --release --features op,scenarios",
|
|
76
77
|
"build:tracing": "bash ../../scripts/build_edr_napi.sh --release --features op,tracing",
|
|
@@ -392,6 +392,9 @@ pub struct FuzzConfigArgs {
|
|
|
392
392
|
/// The flag indicating whether to include push bytes values.
|
|
393
393
|
/// Defaults to true.
|
|
394
394
|
pub include_push_bytes: Option<bool>,
|
|
395
|
+
/// Show `console.log` in fuzz test.
|
|
396
|
+
/// Defaults to false.
|
|
397
|
+
pub show_logs: Option<bool>,
|
|
395
398
|
/// Optional timeout (in seconds) for each property test.
|
|
396
399
|
/// Defaults to none (no timeout).
|
|
397
400
|
pub timeout: Option<u32>,
|
|
@@ -410,6 +413,7 @@ impl TryFrom<FuzzConfigArgs> for FuzzConfig {
|
|
|
410
413
|
dictionary_weight,
|
|
411
414
|
include_storage,
|
|
412
415
|
include_push_bytes,
|
|
416
|
+
show_logs,
|
|
413
417
|
timeout,
|
|
414
418
|
} = value;
|
|
415
419
|
|
|
@@ -453,6 +457,10 @@ impl TryFrom<FuzzConfigArgs> for FuzzConfig {
|
|
|
453
457
|
fuzz.dictionary.include_push_bytes = include_push_bytes;
|
|
454
458
|
}
|
|
455
459
|
|
|
460
|
+
if let Some(show_logs) = show_logs {
|
|
461
|
+
fuzz.show_logs = show_logs;
|
|
462
|
+
}
|
|
463
|
+
|
|
456
464
|
Ok(fuzz)
|
|
457
465
|
}
|
|
458
466
|
}
|
|
@@ -528,6 +536,7 @@ impl InvariantConfigArgs {
|
|
|
528
536
|
failure_persist_file: _,
|
|
529
537
|
max_test_rejects: _,
|
|
530
538
|
seed: _,
|
|
539
|
+
show_logs: _,
|
|
531
540
|
timeout,
|
|
532
541
|
} = fuzz;
|
|
533
542
|
|