Skip to main content

Crate espresso_utils

Crate espresso_utils 

Source

Modules§

build_info
env_compat
logging
redact
Redaction of credentials embedded in provider URLs. L1 RPC providers put the API key in the path or query (https://host/v2/KEY), so the host is kept and everything after it dropped. A credential in the hostname is not redactable.
ser
shutdown
Graceful shutdown on OS termination signals.
test_utils

Macros§

build_info
impl_serde_from_string_or_integer
Deserialize a type from either a string or integer in human-readable encodings.
impl_to_fixed_bytes
Implement to_fixed_bytes for wrapped types

Functions§

commitment_to_u256
converting a keccak256-based structured commitment (32 bytes) into type U256
contract_send
send a transaction and wait for confirmation before returning the tx receipt and block included.
u256_to_commitment
converting a U256 value into a keccak256-based structured commitment (32 bytes)
wait_for_http
wait_for_rpc