2022-08-05 22:22:23 +03:00
|
|
|
pub mod app;
|
2023-02-19 23:27:53 +03:00
|
|
|
pub mod admin_queries;
|
2023-02-19 23:36:54 +03:00
|
|
|
pub mod atomics;
|
2022-08-24 02:56:47 +03:00
|
|
|
pub mod block_number;
|
2022-08-05 22:22:23 +03:00
|
|
|
pub mod config;
|
|
|
|
pub mod frontend;
|
2023-01-26 08:24:09 +03:00
|
|
|
pub mod http_params;
|
2022-08-05 22:22:23 +03:00
|
|
|
pub mod jsonrpc;
|
2023-01-24 13:45:48 +03:00
|
|
|
pub mod pagerduty;
|
2023-01-26 08:24:09 +03:00
|
|
|
pub mod prometheus;
|
2022-08-24 02:13:56 +03:00
|
|
|
pub mod rpcs;
|
2023-01-26 08:24:09 +03:00
|
|
|
pub mod stats;
|
2022-10-31 23:05:58 +03:00
|
|
|
pub mod user_token;
|
2023-02-19 23:34:39 +03:00
|
|
|
|
|
|
|
use serde::Deserialize;
|
|
|
|
|
|
|
|
// Push some commonly used types here. Can establish a folder later on
|
|
|
|
/// Query params for our `post_login` handler.
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct PostLoginQuery {
|
|
|
|
/// While we are in alpha/beta, we require users to supply an invite code.
|
|
|
|
/// The invite code (if any) is set in the application's config.
|
|
|
|
/// This may eventually provide some sort of referral bonus.
|
|
|
|
invite_code: Option<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// JSON body to our `post_login` handler.
|
|
|
|
/// Currently only siwe logins that send an address, msg, and sig are allowed.
|
|
|
|
/// Email/password and other login methods are planned.
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct PostLogin {
|
|
|
|
sig: String,
|
|
|
|
msg: String,
|
|
|
|
}
|