Some checks are pending
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run
Make NIP-4e a core feature, not an optional feature. Note: - The UI is broken and needs to be updated in a separate PR. Reviewed-on: #1
32 lines
911 B
Rust
32 lines
911 B
Rust
pub const CLIENT_NAME: &str = "Coop";
|
|
pub const APP_ID: &str = "su.reya.coop";
|
|
|
|
/// Bootstrap Relays.
|
|
pub const BOOTSTRAP_RELAYS: [&str; 4] = [
|
|
"wss://relay.damus.io",
|
|
"wss://relay.primal.net",
|
|
"wss://relay.nos.social",
|
|
"wss://user.kindpag.es",
|
|
];
|
|
|
|
/// Search Relays.
|
|
pub const SEARCH_RELAYS: [&str; 2] = ["wss://search.nos.today", "wss://relay.noswhere.com"];
|
|
|
|
/// Default relay for Nostr Connect
|
|
pub const NOSTR_CONNECT_RELAY: &str = "wss://relay.nsec.app";
|
|
|
|
/// Default retry count for fetching NIP-17 relays
|
|
pub const RELAY_RETRY: u64 = 2;
|
|
|
|
/// Default retry count for sending messages
|
|
pub const SEND_RETRY: u64 = 10;
|
|
|
|
/// Default timeout (in seconds) for Nostr Connect
|
|
pub const NOSTR_CONNECT_TIMEOUT: u64 = 200;
|
|
|
|
/// Default timeout (in seconds) for Nostr Connect (Bunker)
|
|
pub const BUNKER_TIMEOUT: u64 = 30;
|
|
|
|
/// Default width of the sidebar.
|
|
pub const DEFAULT_SIDEBAR_WIDTH: f32 = 240.;
|