-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to see latest non voting transactions (#98)
* Add function to see latest non-voting transactions * Nits
- Loading branch information
1 parent
8d429a0
commit ba5b50b
Showing
26 changed files
with
609 additions
and
91 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
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
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,31 @@ | ||
use super::utils::{GetLatestSignaturesRequest, GetNonPaginatedSignaturesResponse}; | ||
use sea_orm::DatabaseConnection; | ||
|
||
use super::{ | ||
super::error::PhotonApiError, | ||
utils::{search_for_signatures, Context, SignatureSearchType}, | ||
}; | ||
|
||
pub async fn get_latest_non_voting_signatures( | ||
conn: &DatabaseConnection, | ||
request: GetLatestSignaturesRequest, | ||
) -> Result<GetNonPaginatedSignaturesResponse, PhotonApiError> { | ||
let context = Context::extract(conn).await?; | ||
|
||
let signatures = search_for_signatures( | ||
conn, | ||
SignatureSearchType::Standard, | ||
None, | ||
false, | ||
request.cursor, | ||
request.limit, | ||
) | ||
.await?; | ||
|
||
Ok(GetNonPaginatedSignaturesResponse { | ||
value: super::utils::SignatureInfoList { | ||
items: signatures.items, | ||
}, | ||
context, | ||
}) | ||
} |
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.