-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename anvil ext namespace to
anvil_zks
- Loading branch information
Showing
8 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
crates/api_decl/src/namespaces/anvil_ext.rs → crates/api_decl/src/namespaces/anvil_zks.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
//! This module extends the Anvil JSON-RPC API with anvil-zksync specific RPC methods. | ||
use jsonrpsee::core::RpcResult; | ||
use jsonrpsee::proc_macros::rpc; | ||
use zksync_types::{L1BatchNumber, H256}; | ||
|
||
#[rpc(server, namespace = "anvil")] | ||
pub trait AnvilExtNamespace { | ||
/// Custom namespace that contains anvil-zksync specific methods. | ||
#[rpc(server, namespace = "anvil_zks")] | ||
pub trait AnvilZksNamespace { | ||
#[method(name = "commitBatch")] | ||
async fn commit_batch(&self, batch_number: L1BatchNumber) -> RpcResult<H256>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
mod anvil; | ||
mod anvil_ext; | ||
mod anvil_zks; | ||
mod config; | ||
mod eth_test; | ||
mod evm; | ||
|
||
pub use self::{ | ||
anvil::AnvilNamespaceServer, anvil_ext::AnvilExtNamespaceServer, config::ConfigNamespaceServer, | ||
anvil::AnvilNamespaceServer, anvil_zks::AnvilZksNamespaceServer, config::ConfigNamespaceServer, | ||
eth_test::EthTestNamespaceServer, evm::EvmNamespaceServer, | ||
}; |
8 changes: 4 additions & 4 deletions
8
crates/api_server/src/impls/anvil_ext.rs → crates/api_server/src/impls/anvil_zks.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters