Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/eth2util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pbkdf2.workspace = true
scrypt.workspace = true
unicode-normalization.workspace = true
zeroize.workspace = true
pluto-testutil.workspace = true
pluto-k1util.workspace = true
chrono.workspace = true
regex.workspace = true
Expand All @@ -41,8 +40,9 @@ reqwest = { workspace = true, features = ["json"] }
url.workspace = true

[dev-dependencies]
tempfile.workspace = true
assert-json-diff.workspace = true
pluto-testutil.workspace = true
tempfile.workspace = true
test-case.workspace = true
wiremock.workspace = true

Expand Down
13 changes: 11 additions & 2 deletions crates/testutil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,31 @@ serde_json.workspace = true

[dependencies]
anyhow.workspace = true
async-trait.workspace = true
bon.workspace = true
chrono.workspace = true
futures = { workspace = true }
hex.workspace = true
k256.workspace = true
pluto-core.workspace = true
pluto-crypto.workspace = true
pluto-eth2api.workspace = true
pluto-eth2util.workspace = true
pluto-ssz.workspace = true
rand.workspace = true
hex.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-util.workspace = true
tracing.workspace = true
tree_hash.workspace = true
wiremock.workspace = true

[dev-dependencies]
reqwest.workspace = true
assert-json-diff.workspace = true

[lints]
workspace = true
8 changes: 8 additions & 0 deletions crates/testutil/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ pub mod random;
/// Beacon node API mock utilities.
pub mod beaconmock;

/// Validator mock — drives validator-side duties against a [`BeaconMock`].
pub mod validatormock;

pub use beaconmock::{BeaconMock, MockState, Validator, ValidatorSet};
pub use random::{
random_deneb_versioned_attestation, random_eth2_signature, random_eth2_signature_bytes,
random_root, random_root_bytes, random_slot, random_v_idx,
};
pub use validatormock::{
ActiveValidators, EndpointMatch, Error as ValidatorMockError, MetaEpoch, MetaSlot,
Result as ValidatorMockResult, Sign, SignError, SignFunc, Signer, SpecMeta, SubmissionCapture,
active_validators,
};
Loading
Loading