iota-sdk 2.0.0-beta.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

/// Amount at which outputs on a single address will get consolidated by default if consolidation is enabled
pub(crate) const DEFAULT_OUTPUT_CONSOLIDATION_THRESHOLD: usize = 100;
/// Amount at which outputs on a single address will get consolidated by default with a ledger secret_manager if
/// consolidation is enabled, needs to be smaller because the memory of the ledger nano s is limited
#[cfg(feature = "ledger_nano")]
pub(crate) const DEFAULT_LEDGER_OUTPUT_CONSOLIDATION_THRESHOLD: usize = 15;

/// Amount of API request that can be sent in parallel during syncing
pub(crate) const PARALLEL_REQUESTS_AMOUNT: usize = 500;

/// ms before the wallet actually syncs with the network, before it just returns the previous syncing result
/// this is done to prevent unnecessary simultaneous synchronizations
pub(crate) const MIN_SYNC_INTERVAL: u128 = 5;

// TODO Used to be one day in seconds, what now ?
// Default expiration slots for [ExpirationUnlockCondition] when sending native tokens,
pub(crate) const DEFAULT_EXPIRATION_SLOTS: u32 = 100;