pdk-contracts-lib 1.9.1-alpha.2

PDK Contracts Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file

use std::time::Duration;

pub const CONTRACTS_FETCHING_INTERVAL: Duration = Duration::from_secs(15);
pub const PLATFORM_TIMEOUT_DURATION: Duration = Duration::from_secs(10);
pub const LOCK_TIMEOUT_DURATION: Duration = Duration::from_secs(15);

pub const PRIMARY_INACTIVE_TIMEOUT: Duration = Duration::from_secs(180);
pub const PRIMARY_BACKUP_INTERVAL: Duration = Duration::from_secs(60);
pub const CONTRACTS_CACHE_EXPIRATION: u32 = 2592000;
pub const ACCEPT_HASH_ALGORITHM_VALUE: &str = "sha256";