moved old rpc implementation to v1/ dir
This commit is contained in:
parent
61c64d264b
commit
856c348e3e
@ -50,7 +50,7 @@ fn setup_log(init: &String) {
|
||||
|
||||
#[cfg(feature = "rpc")]
|
||||
fn setup_rpc_server(client: Arc<Client>) {
|
||||
use rpc::*;
|
||||
use rpc::v1::*;
|
||||
|
||||
let mut server = HttpServer::new(1);
|
||||
server.add_delegate(Web3Client::new().to_delegate());
|
||||
|
@ -17,12 +17,7 @@ macro_rules! rpcerr {
|
||||
() => (Err(Error::internal_error()))
|
||||
}
|
||||
|
||||
pub mod traits;
|
||||
mod impls;
|
||||
mod types;
|
||||
|
||||
pub use self::traits::{Web3, Eth, EthFilter, Net};
|
||||
pub use self::impls::*;
|
||||
pub mod v1;
|
||||
|
||||
/// Http server.
|
||||
pub struct HttpServer {
|
||||
|
@ -6,8 +6,8 @@ use util::uint::*;
|
||||
use util::sha3::*;
|
||||
use ethcore::client::*;
|
||||
use ethcore::views::*;
|
||||
use traits::{Eth, EthFilter};
|
||||
use types::Block;
|
||||
use v1::traits::{Eth, EthFilter};
|
||||
use v1::types::Block;
|
||||
|
||||
/// Eth rpc implementation.
|
||||
pub struct EthClient {
|
@ -1,6 +1,6 @@
|
||||
//! Net rpc implementation.
|
||||
use jsonrpc_core::*;
|
||||
use traits::Net;
|
||||
use v1::traits::Net;
|
||||
|
||||
/// Net rpc implementation.
|
||||
pub struct NetClient;
|
@ -1,6 +1,6 @@
|
||||
//! Web3 rpc implementation.
|
||||
use jsonrpc_core::*;
|
||||
use traits::Web3;
|
||||
use v1::traits::Web3;
|
||||
|
||||
/// Web3 rpc implementation.
|
||||
pub struct Web3Client;
|
10
rpc/src/v1/mod.rs
Normal file
10
rpc/src/v1/mod.rs
Normal file
@ -0,0 +1,10 @@
|
||||
//! Ethcore rpc v1.
|
||||
//!
|
||||
//! Compliant with ethereum rpc.
|
||||
|
||||
pub mod traits;
|
||||
mod impls;
|
||||
mod types;
|
||||
|
||||
pub use self::traits::{Web3, Eth, EthFilter, Net};
|
||||
pub use self::impls::*;
|
Loading…
Reference in New Issue
Block a user