-
Notifications
You must be signed in to change notification settings - Fork 4
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
13 changed files
with
479 additions
and
876 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
use near_indexer_primitives::IndexerExecutionOutcomeWithReceipt; | ||
use readnode_primitives::{CollectingTransactionDetails, TransactionKey}; | ||
use std::collections::HashMap; | ||
|
||
#[async_trait::async_trait] | ||
impl crate::TxIndexerDbManager for crate::PostgresDBManager { | ||
async fn add_transaction( | ||
&self, | ||
transaction_hash: &str, | ||
tx_bytes: Vec<u8>, | ||
block_height: u64, | ||
signer_id: &str, | ||
) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn validate_saved_transaction_deserializable( | ||
&self, | ||
transaction_hash: &str, | ||
tx_bytes: &[u8], | ||
) -> anyhow::Result<bool> { | ||
todo!() | ||
} | ||
|
||
async fn add_receipt( | ||
&self, | ||
receipt_id: &str, | ||
parent_tx_hash: &str, | ||
block_height: u64, | ||
shard_id: u64, | ||
) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn update_meta(&self, indexer_id: &str, block_height: u64) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn cache_add_transaction( | ||
&self, | ||
transaction_details: CollectingTransactionDetails, | ||
) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn cache_add_receipt( | ||
&self, | ||
transaction_key: TransactionKey, | ||
indexer_execution_outcome_with_receipt: IndexerExecutionOutcomeWithReceipt, | ||
) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn get_transactions_to_cache( | ||
&self, | ||
start_block_height: u64, | ||
cache_restore_blocks_range: u64, | ||
max_db_parallel_queries: i64, | ||
) -> anyhow::Result<HashMap<TransactionKey, CollectingTransactionDetails>> { | ||
todo!() | ||
} | ||
|
||
async fn get_transaction_by_receipt_id( | ||
&self, | ||
receipt_id: &str, | ||
) -> anyhow::Result<CollectingTransactionDetails> { | ||
todo!() | ||
} | ||
|
||
async fn get_receipts_in_cache( | ||
&self, | ||
transaction_key: &TransactionKey, | ||
) -> anyhow::Result<Vec<IndexerExecutionOutcomeWithReceipt>> { | ||
todo!() | ||
} | ||
|
||
async fn cache_delete_transaction( | ||
&self, | ||
transaction_hash: &str, | ||
block_height: u64, | ||
) -> anyhow::Result<()> { | ||
todo!() | ||
} | ||
|
||
async fn get_last_processed_block_height(&self, indexer_id: &str) -> anyhow::Result<u64> { | ||
todo!() | ||
} | ||
} |
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 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
Oops, something went wrong.