dojo
dojo copied to clipboard
feat(katana): forked provider fetch remote non-state data
This PR adds the following functions to fetch non-state data from the fork network.
pub fn do_get_events(
&self,
filter: EventFilter,
continuation_token: Option<String>,
chunks_size: ChunkSize,
) -> Result<EventsPage, ForkedBackendError>
pub fn do_get_block_with_tx_hashes(
&self,
block_id: BlockIdOrTag,
) -> Result<starknet::core::types::MaybePendingBlockWithTxHashes, ForkedBackendError>
pub fn do_get_block_with_txs(
&self,
block_id: BlockIdOrTag,
) -> Result<starknet::core::types::MaybePendingBlockWithTxs, ForkedBackendError>
pub fn do_get_transaction_by_block_id_and_index(
&self,
block_id: BlockIdOrTag,
index: TxNumber,
) -> Result<Transaction, ForkedBackendError>
pub fn do_get_transaction_by_hash(
&self,
transaction_hash: TxHash
) -> Result<Transaction, ForkedBackendError>
pub fn do_get_transaction_receipt(
&self,
transaction_hash: TxHash
) -> Result<starknet::core::types::MaybePendingTransactionReceipt, ForkedBackendError>
Closes #1466 Closes DOJ-128