web3-proxy/web3_proxy/src/lib.rs

34 lines
947 B
Rust
Raw Normal View History

2022-08-05 22:22:23 +03:00
pub mod app;
pub mod app_stats;
2023-02-19 23:27:53 +03:00
pub mod admin_queries;
pub mod block_number;
2022-08-05 22:22:23 +03:00
pub mod config;
pub mod frontend;
pub mod jsonrpc;
2022-09-20 09:56:24 +03:00
pub mod metrics_frontend;
2023-01-24 13:45:48 +03:00
pub mod pagerduty;
2022-08-24 02:13:56 +03:00
pub mod rpcs;
2022-10-20 09:17:20 +03:00
pub mod user_queries;
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,
}