48 lines
3.1 KiB
Rust
48 lines
3.1 KiB
Rust
// file: crates/ksp-app-wallet-desk/src/constants.rs
|
|
// version: 9
|
|
|
|
//! Logging targets, domains and composite component identifiers owned by Wallet Desk.
|
|
|
|
/// Composite-local identifier for the Logging standard document.
|
|
pub(crate) const COMPOSITE_COMPONENT_ID_LOGGING: &str = "logging";
|
|
/// Composite-local identifier for the Off-chain Transport standard document.
|
|
pub(crate) const COMPOSITE_COMPONENT_ID_OFFCHAIN_TRANSPORT: &str = "offchain_transport";
|
|
/// Composite-local identifier for the HTTP Transport standard document.
|
|
pub(crate) const COMPOSITE_COMPONENT_ID_TRANSPORT: &str = "transport";
|
|
/// Composite-local identifier for the Wallet standard document.
|
|
pub(crate) const COMPOSITE_COMPONENT_ID_WALLET: &str = "wallet";
|
|
/// Structured domain used while bootstrapping Config and Logging.
|
|
pub(crate) const TRACING_DOMAIN_BOOTSTRAP: &str = "wallet.bootstrap";
|
|
/// Structured domain used by technical frontend events.
|
|
pub(crate) const TRACING_DOMAIN_FRONTEND: &str = "frontend";
|
|
/// Structured domain used by Wallet Desk Off-chain Transport and SOL/USD average operations.
|
|
pub(crate) const TRACING_DOMAIN_OFFCHAIN_TRANSPORT: &str = "wallet.offchain_transport";
|
|
/// Structured domain used by the Wallet Desk shell.
|
|
pub(crate) const TRACING_DOMAIN_SHELL: &str = "wallet.shell";
|
|
/// Structured domain used by Wallet Desk HTTP Transport and balance operations.
|
|
pub(crate) const TRACING_DOMAIN_TRANSPORT: &str = "wallet.transport";
|
|
/// Structured domain used while preparing Wallet filesystem roots.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_CONFIG: &str = "wallet.config";
|
|
/// Structured domain used by native-save-picker OWNER transfer export operations.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_EXPORT: &str = "wallet.export";
|
|
/// Structured domain used by native-picker Wallet transfer import operations.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_IMPORT: &str = "wallet.import";
|
|
/// Structured domain used while enumerating and inspecting locked Wallet files.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_INVENTORY: &str = "wallet.inventory";
|
|
/// Structured domain used by Config-owned Wallet password candidate operations.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_SECRET: &str = "wallet.secret";
|
|
/// Structured domain used by durable Wallet session, creation and unlock operations.
|
|
pub(crate) const TRACING_DOMAIN_WALLET_SESSION: &str = "wallet.session";
|
|
/// Structured domain used by Tauri window lifecycle operations.
|
|
pub(crate) const TRACING_DOMAIN_WINDOWS: &str = "desktop.window";
|
|
/// Owning target for backend events emitted by Wallet Desk.
|
|
pub(crate) const TRACING_TARGET: &str = "ksp-app-wallet-desk";
|
|
/// Owning target for generic frontend events emitted through the KSP bridge.
|
|
pub(crate) const TRACING_TARGET_FRONTEND: &str = "ksp-app-wallet-desk.frontend";
|
|
/// Owning target for main-window frontend events.
|
|
pub(crate) const TRACING_TARGET_FRONTEND_MAIN: &str = "ksp-app-wallet-desk.frontend.main";
|
|
/// Owning target for splash-window frontend events.
|
|
pub(crate) const TRACING_TARGET_FRONTEND_SPLASH: &str = "ksp-app-wallet-desk.frontend.splash";
|
|
/// Native Wallet filename suffix accepted by the Wallet Desk inventory.
|
|
pub(crate) const WALLET_FILE_SUFFIX: &str = ".kspwallet";
|