iota-sdk 1.0.1

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Documentation
// Copyright 2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

/// The default storage path.
pub const DEFAULT_STORAGE_PATH: &str = "./storage";

/// The default RocksDB storage path.
#[cfg(feature = "rocksdb")]
pub(crate) const ROCKSDB_FOLDERNAME: &str = "walletdb";

pub const fn default_storage_path() -> &'static str {
    #[cfg(feature = "rocksdb")]
    return ROCKSDB_FOLDERNAME;
    #[cfg(not(feature = "rocksdb"))]
    DEFAULT_STORAGE_PATH
}

pub(crate) const WALLET_INDEXATION_KEY: &str = "iota-wallet-account-manager";

pub(crate) const SECRET_MANAGER_KEY: &str = "secret_manager";

pub(crate) const ACCOUNTS_INDEXATION_KEY: &str = "iota-wallet-accounts";
pub(crate) const ACCOUNT_INDEXATION_KEY: &str = "iota-wallet-account-";

pub(crate) const ACCOUNT_SYNC_OPTIONS: &str = "sync-options";

pub(crate) const DATABASE_SCHEMA_VERSION: u8 = 1;
pub(crate) const DATABASE_SCHEMA_VERSION_KEY: &str = "database-schema-version";

#[cfg(feature = "participation")]
pub(crate) const PARTICIPATION_EVENTS: &str = "participation-events";
#[cfg(feature = "participation")]
pub(crate) const PARTICIPATION_CACHED_OUTPUTS: &str = "participation-cached-outputs";