Skip to content

Commit

Permalink
more search tx fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Nov 27, 2024
1 parent 6cc67d6 commit db74639
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions tests/fixtures/search_transactions.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
use mina_mesh::models::{NetworkIdentifier, SearchTransactionsRequest};
use mina_mesh::models::{NetworkIdentifier, SearchTransactionsRequest, TransactionIdentifier};

use super::CompareGroup;

pub fn search_transactions<'a>() -> CompareGroup<'a> {
("/search/transactions", vec![Box::new(SearchTransactionsRequest {
network_identifier: Box::new(NetworkIdentifier::new("mina".to_string(), "devnet".to_string())),
address: Some("B62qkd6yYALkQMq2SFd5B57bJbGBMA2QuGtLPMzRhhnvexRtVRycZWP".to_string()),
limit: Some(5),
offset: Some(0),
..Default::default()
})])
("/search/transactions", vec![
Box::new(SearchTransactionsRequest {
network_identifier: Box::new(NetworkIdentifier::new("mina".to_string(), "devnet".to_string())),
address: Some("B62qkd6yYALkQMq2SFd5B57bJbGBMA2QuGtLPMzRhhnvexRtVRycZWP".to_string()),
limit: Some(5),
offset: Some(0),
..Default::default()
}),
Box::new(SearchTransactionsRequest {
network_identifier: Box::new(NetworkIdentifier::new("mina".to_string(), "devnet".to_string())),
max_block: Some(44),
status: Some("failed".to_string()),
limit: Some(5),
..Default::default()
}),
Box::new(SearchTransactionsRequest {
network_identifier: Box::new(NetworkIdentifier::new("mina".to_string(), "devnet".to_string())),
max_block: Some(44),
transaction_identifier: Some(Box::new(TransactionIdentifier::new(
// cspell:disable-next-line
"CkpYcKc2oGs8JUd4tmdGBsZXQCQVkayuyffEjrNWctX5Wuad3vVNe".to_string(),
))),
limit: Some(5),
..Default::default()
}),
])
}

0 comments on commit db74639

Please sign in to comment.