types.rs (1749B)
1 #![forbid(unsafe_code)] 2 3 pub type RadrootsNostrCoordinate = nostr::nips::nip01::Coordinate; 4 pub type RadrootsNostrEvent = nostr::Event; 5 pub type RadrootsNostrEventBuilder = nostr::EventBuilder; 6 pub type RadrootsNostrEventId = nostr::EventId; 7 pub type RadrootsNostrFilter = nostr::Filter; 8 pub type RadrootsNostrKind = nostr::Kind; 9 pub type RadrootsNostrKeys = nostr::Keys; 10 pub type RadrootsNostrMetadata = nostr::Metadata; 11 pub type RadrootsNostrPublicKey = nostr::PublicKey; 12 pub type RadrootsNostrRelayUrl = nostr::RelayUrl; 13 pub type RadrootsNostrSecretKey = nostr::SecretKey; 14 pub type RadrootsNostrSubscriptionId = nostr::SubscriptionId; 15 pub type RadrootsNostrTag = nostr::Tag; 16 pub type RadrootsNostrTagKind<'a> = nostr::TagKind<'a>; 17 pub type RadrootsNostrTagStandard = nostr::TagStandard; 18 pub type RadrootsNostrTimestamp = nostr::Timestamp; 19 pub type RadrootsNostrUrl = nostr::Url; 20 21 pub use nostr::nips::nip19::{ 22 FromBech32 as RadrootsNostrFromBech32, ToBech32 as RadrootsNostrToBech32, 23 }; 24 pub use nostr::secp256k1::SecretKey as RadrootsNostrSecp256k1SecretKey; 25 26 #[cfg(feature = "client")] 27 pub type RadrootsNostrMonitor = nostr_sdk::prelude::Monitor; 28 29 #[cfg(feature = "client")] 30 pub type RadrootsNostrMonitorNotification = nostr_sdk::prelude::MonitorNotification; 31 32 #[cfg(feature = "client")] 33 pub type RadrootsNostrOutput<T> = nostr_sdk::prelude::Output<T>; 34 35 #[cfg(feature = "client")] 36 pub type RadrootsNostrRelay = nostr_sdk::Relay; 37 38 #[cfg(feature = "client")] 39 pub type RadrootsNostrRelayPoolNotification = nostr_sdk::RelayPoolNotification; 40 41 #[cfg(feature = "client")] 42 pub type RadrootsNostrRelayStatus = nostr_sdk::RelayStatus; 43 44 #[cfg(feature = "client")] 45 pub type RadrootsNostrSubscribeAutoCloseOptions = nostr_sdk::SubscribeAutoCloseOptions;