52 lines
1.4 KiB
Rust
52 lines
1.4 KiB
Rust
/// Client name (Application name)
|
|
pub const CLIENT_NAME: &str = "Coop";
|
|
|
|
/// COOP's public key
|
|
pub const COOP_PUBKEY: &str = "npub1j3rz3ndl902lya6ywxvy5c983lxs8mpukqnx4pa4lt5wrykwl5ys7wpw3x";
|
|
|
|
/// App ID
|
|
pub const APP_ID: &str = "su.reya.coop";
|
|
|
|
/// Keyring name
|
|
pub const KEYRING: &str = "Coop Safe Storage";
|
|
|
|
/// Default timeout for subscription
|
|
pub const TIMEOUT: u64 = 2;
|
|
|
|
/// Default image cache size
|
|
pub const IMAGE_CACHE_SIZE: usize = 20;
|
|
|
|
/// Default delay for searching
|
|
pub const FIND_DELAY: u64 = 600;
|
|
|
|
/// Default limit for searching
|
|
pub const FIND_LIMIT: usize = 20;
|
|
|
|
/// Default subscription id for device gift wrap events
|
|
pub const DEVICE_GIFTWRAP: &str = "device-gift-wraps";
|
|
|
|
/// Default subscription id for user gift wrap events
|
|
pub const USER_GIFTWRAP: &str = "user-gift-wraps";
|
|
|
|
/// Default timeout for Nostr Connect
|
|
pub const NOSTR_CONNECT_TIMEOUT: u64 = 60;
|
|
|
|
/// Default Nostr Connect relay
|
|
pub const NOSTR_CONNECT_RELAY: &str = "wss://relay.nip46.com";
|
|
|
|
/// Default vertex relays
|
|
pub const WOT_RELAYS: [&str; 1] = ["wss://relay.vertexlab.io"];
|
|
|
|
/// Default search relays
|
|
pub const INDEXER_RELAYS: [&str; 1] = ["wss://indexer.coracle.social"];
|
|
|
|
/// Default search relays
|
|
pub const SEARCH_RELAYS: [&str; 2] = ["wss://antiprimal.net", "wss://search.nos.today"];
|
|
|
|
/// Default bootstrap relays
|
|
pub const BOOTSTRAP_RELAYS: [&str; 3] = [
|
|
"wss://relay.damus.io",
|
|
"wss://relay.primal.net",
|
|
"wss://user.kindpag.es",
|
|
];
|