Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 401
feat(aggregation-mode): receipt endpoint in agg mode batcher#2188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
7e0f1a0a24e6debdea05cfe53ac34f48a7f770601d8c78c4126d8ab7b9abb7dd3adcf8fcb5426c987d7023ba2f479f9460ea802628a76723e68cbb50f1c0d9b67367dedfa55b33c8bb97e52fa8b79bd9f37ad00c555be5731230f1ad969e4d9847dfa88dd3dda5dce67d6425ee16d14c7d8e37accc95e4b29e4d715f1bc8dc4c9a025ad0f6d91c748f4e81436be7129e61073b1e7006b7ae7cae1ccd9d273a0ec226ed7a88e37e1faa714ac2305a4c13d985e8bca829b4a3da4c3017ebb4e2a766383138cf2be4949c440cfa23887File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2,6 +2,8 @@ use actix_multipart::form::{tempfile::TempFile, text::Text, MultipartForm}; | ||
| use serde::{Deserialize, Serialize}; | ||
| use serde_json::Value; | ||
| use crate::db::TaskStatus; | ||
| #[derive(Serialize, Deserialize)] | ||
| pub(super) struct AppResponse { | ||
| status: u16, | ||
| @@ -27,10 +29,14 @@ impl AppResponse { | ||
| } | ||
| } | ||
| /// Query parameters accepted by `GET /proof/merkle`, containing an optional proof id. | ||
| /// Query parameters accepted by `GET /receipts`. Requires an address, and accepts a nonce | ||
| /// and a limit for the amount of tasks included in the query (the maximum value is 100). | ||
| /// Note: The limit value will only be taken into account if nonce is None. | ||
| #[derive(Deserialize, Clone)] | ||
| pub(super) struct GetProofMerklePathQueryParams { | ||
| pub id: Option<String>, | ||
| pub(super) struct GetReceiptsQueryParams { | ||
MarcosNicolau marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| pub address: String, | ||
| pub nonce: Option<i64>, | ||
| pub limit: Option<i64>, | ||
| } | ||
| #[derive(Debug, MultipartForm)] | ||
| @@ -48,3 +54,11 @@ pub(super) struct SubmitProofRequestRisc0 { | ||
| pub _program_image_id_hex: Text<String>, | ||
| pub _signature_hex: Text<String>, | ||
| } | ||
| #[derive(Debug, Clone, sqlx::FromRow, sqlx::Type, serde::Serialize)] | ||
| pub struct GetReceiptsResponse { | ||
| pub status: TaskStatus, | ||
| pub merkle_path: Vec<String>, | ||
| pub nonce: i64, | ||
| pub address: String, | ||
| } | ||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will get removed after #2186 as it encapsulates all db tables in one common shared file