-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
159 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
use jsonrpsee::core::RpcResult; | ||
use jsonrpsee::proc_macros::rpc; | ||
use katana_rpc_types::transaction::{TransactionsExecutionsPage, TransactionsPageCursor}; | ||
use katana_primitives::block::BlockIdOrTag; | ||
use katana_rpc_types::trace::TxExecutionInfo; | ||
|
||
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "saya"))] | ||
#[cfg_attr(feature = "client", rpc(client, server, namespace = "saya"))] | ||
pub trait SayaApi { | ||
/// Fetches the transaction execution info for all the transactions in the | ||
/// given block. | ||
/// | ||
/// # Arguments | ||
/// | ||
/// * `block_number` - The block number to get executions from. | ||
/// * `chunk_size` - The maximum number of transaction execution that should be returned. | ||
#[method(name = "getTransactionsExecutions")] | ||
async fn get_transactions_executions( | ||
/// Retrieves a list of transaction execution informations of a given block. | ||
#[method(name = "getTransactionExecutionsByBlock")] | ||
async fn transaction_executions_by_block( | ||
&self, | ||
cursor: TransactionsPageCursor, | ||
) -> RpcResult<TransactionsExecutionsPage>; | ||
block_id: BlockIdOrTag, | ||
) -> RpcResult<Vec<TxExecutionInfo>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.