remove default implementations using rpc_unimplemented!()
This commit is contained in:
parent
b9f7ed9185
commit
fb2ea765d5
@ -21,115 +21,115 @@ use jsonrpc_core::*;
|
|||||||
/// Eth rpc interface.
|
/// Eth rpc interface.
|
||||||
pub trait Eth: Sized + Send + Sync + 'static {
|
pub trait Eth: Sized + Send + Sync + 'static {
|
||||||
/// Returns protocol version.
|
/// Returns protocol version.
|
||||||
fn protocol_version(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn protocol_version(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns an object with data about the sync status or false. (wtf?)
|
/// Returns an object with data about the sync status or false. (wtf?)
|
||||||
fn syncing(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn syncing(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of hashes per second that the node is mining with.
|
/// Returns the number of hashes per second that the node is mining with.
|
||||||
fn hashrate(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn hashrate(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns block author.
|
/// Returns block author.
|
||||||
fn author(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn author(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns true if client is actively mining new blocks.
|
/// Returns true if client is actively mining new blocks.
|
||||||
fn is_mining(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn is_mining(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns current gas_price.
|
/// Returns current gas_price.
|
||||||
fn gas_price(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn gas_price(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns accounts list.
|
/// Returns accounts list.
|
||||||
fn accounts(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn accounts(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns highest block number.
|
/// Returns highest block number.
|
||||||
fn block_number(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_number(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns balance of the given account.
|
/// Returns balance of the given account.
|
||||||
fn balance(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn balance(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns content of the storage at given address.
|
/// Returns content of the storage at given address.
|
||||||
fn storage_at(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn storage_at(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns block with given hash.
|
/// Returns block with given hash.
|
||||||
fn block_by_hash(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_by_hash(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns block with given number.
|
/// Returns block with given number.
|
||||||
fn block_by_number(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_by_number(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of transactions sent from given address at given time (block number).
|
/// Returns the number of transactions sent from given address at given time (block number).
|
||||||
fn transaction_count(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_count(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of transactions in a block with given hash.
|
/// Returns the number of transactions in a block with given hash.
|
||||||
fn block_transaction_count_by_hash(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_transaction_count_by_hash(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of transactions in a block with given block number.
|
/// Returns the number of transactions in a block with given block number.
|
||||||
fn block_transaction_count_by_number(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_transaction_count_by_number(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of uncles in a block with given hash.
|
/// Returns the number of uncles in a block with given hash.
|
||||||
fn block_uncles_count_by_hash(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_uncles_count_by_hash(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the number of uncles in a block with given block number.
|
/// Returns the number of uncles in a block with given block number.
|
||||||
fn block_uncles_count_by_number(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_uncles_count_by_number(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the code at given address at given time (block number).
|
/// Returns the code at given address at given time (block number).
|
||||||
fn code_at(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn code_at(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Signs the data with given address signature.
|
/// Signs the data with given address signature.
|
||||||
fn sign(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn sign(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sends transaction.
|
/// Sends transaction.
|
||||||
fn send_transaction(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn send_transaction(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sends signed transaction.
|
/// Sends signed transaction.
|
||||||
fn send_raw_transaction(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn send_raw_transaction(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Call contract.
|
/// Call contract.
|
||||||
fn call(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn call(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Estimate gas needed for execution of given contract.
|
/// Estimate gas needed for execution of given contract.
|
||||||
fn estimate_gas(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn estimate_gas(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Get transaction by it's hash.
|
/// Get transaction by it's hash.
|
||||||
fn transaction_by_hash(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_by_hash(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns transaction at given block hash and index.
|
/// Returns transaction at given block hash and index.
|
||||||
fn transaction_by_block_hash_and_index(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_by_block_hash_and_index(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns transaction by given block number and index.
|
/// Returns transaction by given block number and index.
|
||||||
fn transaction_by_block_number_and_index(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_by_block_number_and_index(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns transaction receipt.
|
/// Returns transaction receipt.
|
||||||
fn transaction_receipt(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_receipt(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns an uncles at given block and index.
|
/// Returns an uncles at given block and index.
|
||||||
fn uncle_by_block_hash_and_index(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn uncle_by_block_hash_and_index(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns an uncles at given block and index.
|
/// Returns an uncles at given block and index.
|
||||||
fn uncle_by_block_number_and_index(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn uncle_by_block_number_and_index(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns available compilers.
|
/// Returns available compilers.
|
||||||
fn compilers(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn compilers(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Compiles lll code.
|
/// Compiles lll code.
|
||||||
fn compile_lll(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn compile_lll(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Compiles solidity.
|
/// Compiles solidity.
|
||||||
fn compile_solidity(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn compile_solidity(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Compiles serpent.
|
/// Compiles serpent.
|
||||||
fn compile_serpent(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn compile_serpent(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns logs matching given filter object.
|
/// Returns logs matching given filter object.
|
||||||
fn logs(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn logs(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns the hash of the current block, the seedHash, and the boundary condition to be met.
|
/// Returns the hash of the current block, the seedHash, and the boundary condition to be met.
|
||||||
fn work(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn work(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Used for submitting a proof-of-work solution.
|
/// Used for submitting a proof-of-work solution.
|
||||||
fn submit_work(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn submit_work(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Used for submitting mining hashrate.
|
/// Used for submitting mining hashrate.
|
||||||
fn submit_hashrate(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn submit_hashrate(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
@ -179,22 +179,22 @@ pub trait Eth: Sized + Send + Sync + 'static {
|
|||||||
// TODO: do filters api properly
|
// TODO: do filters api properly
|
||||||
pub trait EthFilter: Sized + Send + Sync + 'static {
|
pub trait EthFilter: Sized + Send + Sync + 'static {
|
||||||
/// Returns id of new filter.
|
/// Returns id of new filter.
|
||||||
fn new_filter(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn new_filter(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns id of new block filter.
|
/// Returns id of new block filter.
|
||||||
fn new_block_filter(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn new_block_filter(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns id of new block filter.
|
/// Returns id of new block filter.
|
||||||
fn new_pending_transaction_filter(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn new_pending_transaction_filter(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns filter changes since last poll.
|
/// Returns filter changes since last poll.
|
||||||
fn filter_changes(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn filter_changes(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns all logs matching given filter (in a range 'from' - 'to').
|
/// Returns all logs matching given filter (in a range 'from' - 'to').
|
||||||
fn filter_logs(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn filter_logs(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Uninstalls filter.
|
/// Uninstalls filter.
|
||||||
fn uninstall_filter(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn uninstall_filter(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -22,55 +22,55 @@ use jsonrpc_core::*;
|
|||||||
pub trait Ethcore: Sized + Send + Sync + 'static {
|
pub trait Ethcore: Sized + Send + Sync + 'static {
|
||||||
|
|
||||||
/// Sets new minimal gas price for mined blocks.
|
/// Sets new minimal gas price for mined blocks.
|
||||||
fn set_min_gas_price(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn set_min_gas_price(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sets new gas floor target for mined blocks.
|
/// Sets new gas floor target for mined blocks.
|
||||||
fn set_gas_floor_target(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn set_gas_floor_target(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sets new extra data for mined blocks.
|
/// Sets new extra data for mined blocks.
|
||||||
fn set_extra_data(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn set_extra_data(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sets new author for mined block.
|
/// Sets new author for mined block.
|
||||||
fn set_author(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn set_author(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sets the limits for transaction queue.
|
/// Sets the limits for transaction queue.
|
||||||
fn set_transactions_limit(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn set_transactions_limit(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns current transactions limit.
|
/// Returns current transactions limit.
|
||||||
fn transactions_limit(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transactions_limit(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns mining extra data.
|
/// Returns mining extra data.
|
||||||
fn extra_data(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn extra_data(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns mining gas floor target.
|
/// Returns mining gas floor target.
|
||||||
fn gas_floor_target(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn gas_floor_target(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns minimal gas price for transaction to be included in queue.
|
/// Returns minimal gas price for transaction to be included in queue.
|
||||||
fn min_gas_price(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn min_gas_price(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns latest logs
|
/// Returns latest logs
|
||||||
fn dev_logs(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn dev_logs(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns logs levels
|
/// Returns logs levels
|
||||||
fn dev_logs_levels(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn dev_logs_levels(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns chain name
|
/// Returns chain name
|
||||||
fn net_chain(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn net_chain(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns max peers
|
/// Returns max peers
|
||||||
fn net_max_peers(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn net_max_peers(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns network port
|
/// Returns network port
|
||||||
fn net_port(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn net_port(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns rpc settings
|
/// Returns rpc settings
|
||||||
fn rpc_settings(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn rpc_settings(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns node name
|
/// Returns node name
|
||||||
fn node_name(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn node_name(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns default extra data
|
/// Returns default extra data
|
||||||
fn default_extra_data(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn default_extra_data(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
|
@ -21,14 +21,14 @@ use jsonrpc_core::*;
|
|||||||
/// Net rpc interface.
|
/// Net rpc interface.
|
||||||
pub trait Net: Sized + Send + Sync + 'static {
|
pub trait Net: Sized + Send + Sync + 'static {
|
||||||
/// Returns protocol version.
|
/// Returns protocol version.
|
||||||
fn version(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn version(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns number of peers connected to node.
|
/// Returns number of peers connected to node.
|
||||||
fn peer_count(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn peer_count(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns true if client is actively listening for network connections.
|
/// Returns true if client is actively listening for network connections.
|
||||||
/// Otherwise false.
|
/// Otherwise false.
|
||||||
fn is_listening(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn is_listening(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -22,16 +22,16 @@ use jsonrpc_core::*;
|
|||||||
pub trait Personal: Sized + Send + Sync + 'static {
|
pub trait Personal: Sized + Send + Sync + 'static {
|
||||||
|
|
||||||
/// Lists all stored accounts
|
/// Lists all stored accounts
|
||||||
fn accounts(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn accounts(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Creates new account (it becomes new current unlocked account)
|
/// Creates new account (it becomes new current unlocked account)
|
||||||
fn new_account(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn new_account(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Unlocks specified account for use (can only be one unlocked account at one moment)
|
/// Unlocks specified account for use (can only be one unlocked account at one moment)
|
||||||
fn unlock_account(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn unlock_account(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Sends transaction and signs it in single call. The account is not unlocked in such case.
|
/// Sends transaction and signs it in single call. The account is not unlocked in such case.
|
||||||
fn sign_and_send_transaction(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn sign_and_send_transaction(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -23,10 +23,10 @@ use jsonrpc_core::*;
|
|||||||
pub trait Rpc: Sized + Send + Sync + 'static {
|
pub trait Rpc: Sized + Send + Sync + 'static {
|
||||||
|
|
||||||
/// Returns supported modules for Geth 1.3.6
|
/// Returns supported modules for Geth 1.3.6
|
||||||
fn modules(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn modules(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns supported modules for Geth 1.4.0
|
/// Returns supported modules for Geth 1.4.0
|
||||||
fn rpc_modules(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn rpc_modules(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -21,16 +21,16 @@ use jsonrpc_core::*;
|
|||||||
/// Traces specific rpc interface.
|
/// Traces specific rpc interface.
|
||||||
pub trait Traces: Sized + Send + Sync + 'static {
|
pub trait Traces: Sized + Send + Sync + 'static {
|
||||||
/// Returns traces matching given filter.
|
/// Returns traces matching given filter.
|
||||||
fn filter(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn filter(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns transaction trace at given index.
|
/// Returns transaction trace at given index.
|
||||||
fn trace(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn trace(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns all traces of given transaction.
|
/// Returns all traces of given transaction.
|
||||||
fn transaction_traces(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn transaction_traces(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns all traces produced at given block.
|
/// Returns all traces produced at given block.
|
||||||
fn block_traces(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn block_traces(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -21,10 +21,10 @@ use jsonrpc_core::*;
|
|||||||
/// Web3 rpc interface.
|
/// Web3 rpc interface.
|
||||||
pub trait Web3: Sized + Send + Sync + 'static {
|
pub trait Web3: Sized + Send + Sync + 'static {
|
||||||
/// Returns current client version.
|
/// Returns current client version.
|
||||||
fn client_version(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn client_version(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Returns sha3 of the given data
|
/// Returns sha3 of the given data
|
||||||
fn sha3(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn sha3(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
Loading…
Reference in New Issue
Block a user