add stubs for missing eth_* rpc methods

This commit is contained in:
Robert Habermeier 2016-05-28 15:25:37 +02:00
parent fb2ea765d5
commit 191bae5cd4
1 changed files with 22 additions and 0 deletions

View File

@ -494,6 +494,16 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM> where
})
}
fn sign(&self, params: Params) -> Result<Value, Error> {
from_params::<(Address, Bytes)>(params).and_then(|(addr, data)| {
let accounts = take_weak!(self.accounts);
match accounts.account_secret(&addr) {
Ok(secret) => rpc_unimplemented!(),
Err(_) => rpc_unimplemented!(),
}
})
}
fn send_transaction(&self, params: Params) -> Result<Value, Error> {
from_params::<(TransactionRequest, )>(params)
.and_then(|(request, )| {
@ -542,6 +552,18 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM> where
to_value(&r.map(|res| res.gas_used + res.refunded).unwrap_or(From::from(0)))
})
}
fn compile_lll(&self, _: params) -> Result<Value, Error> {
rpc_unimplemented!()
}
fn compile_serpent(&self, _: params) -> Result<Value, Error> {
rpc_unimplemented!()
}
fn compile_solidity(&self, _: params) -> Result<Value, Error> {
rpc_unimplemented!()
}
}
/// Eth filter rpc implementation.