mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
docs: use ots_ prefix (#13498)
This commit is contained in:
@ -73,7 +73,7 @@ where
|
||||
+ TraceExt
|
||||
+ 'static,
|
||||
{
|
||||
/// Handler for `{ots,erigon}_getHeaderByNumber`
|
||||
/// Handler for `ots_getHeaderByNumber` and `erigon_getHeaderByNumber`
|
||||
async fn get_header_by_number(
|
||||
&self,
|
||||
block_number: u64,
|
||||
@ -185,7 +185,7 @@ where
|
||||
)
|
||||
}
|
||||
|
||||
/// Handler for `getBlockDetailsByHash`
|
||||
/// Handler for `ots_getBlockDetailsByHash`
|
||||
async fn get_block_details_by_hash(
|
||||
&self,
|
||||
block_hash: B256,
|
||||
@ -200,7 +200,7 @@ where
|
||||
)
|
||||
}
|
||||
|
||||
/// Handler for `getBlockTransactions`
|
||||
/// Handler for `ots_getBlockTransactions`
|
||||
async fn get_block_transactions(
|
||||
&self,
|
||||
block_number: u64,
|
||||
@ -290,7 +290,7 @@ where
|
||||
Ok(block)
|
||||
}
|
||||
|
||||
/// Handler for `searchTransactionsBefore`
|
||||
/// Handler for `ots_searchTransactionsBefore`
|
||||
async fn search_transactions_before(
|
||||
&self,
|
||||
_address: Address,
|
||||
@ -300,7 +300,7 @@ where
|
||||
Err(internal_rpc_err("unimplemented"))
|
||||
}
|
||||
|
||||
/// Handler for `searchTransactionsAfter`
|
||||
/// Handler for `ots_searchTransactionsAfter`
|
||||
async fn search_transactions_after(
|
||||
&self,
|
||||
_address: Address,
|
||||
@ -310,7 +310,7 @@ where
|
||||
Err(internal_rpc_err("unimplemented"))
|
||||
}
|
||||
|
||||
/// Handler for `getTransactionBySenderAndNonce`
|
||||
/// Handler for `ots_getTransactionBySenderAndNonce`
|
||||
async fn get_transaction_by_sender_and_nonce(
|
||||
&self,
|
||||
sender: Address,
|
||||
@ -324,7 +324,7 @@ where
|
||||
.map(|tx| tx.tx_hash()))
|
||||
}
|
||||
|
||||
/// Handler for `getContractCreator`
|
||||
/// Handler for `ots_getContractCreator`
|
||||
async fn get_contract_creator(&self, address: Address) -> RpcResult<Option<ContractCreator>> {
|
||||
if !self.has_code(address, None).await? {
|
||||
return Ok(None);
|
||||
|
||||
Reference in New Issue
Block a user