anvil_zksync_api_decl/namespaces/
evm.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use jsonrpsee::core::RpcResult;
use jsonrpsee::proc_macros::rpc;

/// API bindings for the `evm` namespace. Note that most of the methods are covered by aliases in
/// [`AnvilNamespace`]. This namespace exclusively contains other methods.
#[rpc(server, namespace = "evm")]
pub trait EvmNamespace {
    /// Force a single block to be mined.
    ///
    /// # Returns
    /// The string "0x0".
    #[method(name = "mine")]
    async fn mine(&self) -> RpcResult<String>;
}