add stubs for missing eth_* rpc methods
This commit is contained in:
parent
fb2ea765d5
commit
191bae5cd4
@ -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> {
|
fn send_transaction(&self, params: Params) -> Result<Value, Error> {
|
||||||
from_params::<(TransactionRequest, )>(params)
|
from_params::<(TransactionRequest, )>(params)
|
||||||
.and_then(|(request, )| {
|
.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)))
|
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.
|
/// Eth filter rpc implementation.
|
||||||
|
Loading…
Reference in New Issue
Block a user