Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/monetize

crates/monetize-server/src/shop_cloud.rs

//! **The words a sold estate's thin `SoldEstate` client shares with the shop** (K3, one shop
//! 2026-10-07; G16, ONE monetize 2026-10-10). The shop's own `ShopDoor` client that lived here
//! went in monetize v2.0 step 1 (A25 1.2): the ONE box never calls a sold estate's door as a
//! client of its own. The constants stay: gunnar-front's and holger-estate-front's thin
//! `shop_door` assert theirs equal these (`gunnar-front/tests/shop_pairing_contract.rs`).

use std::time::Duration;

/// How long the shop may take to lay a lost box again (create its disks and server, clone the
/// release medium, start it).
pub const RECHARGE_WITHIN: Duration = Duration::from_secs(30 * 60);
/// An in-place upgrade waits on the whole keep boot ([`monetize_cloud::lay::KEEP_BOOT_WITHIN`]).
pub const UPGRADE_WITHIN: Duration = monetize_cloud::lay::KEEP_BOOT_WITHIN;

/// The secret the estate's client key is fed as (64 hex, its seed).
pub const CLIENT_KEY_SECRET: &str = "shop_client_key";
/// How long a growth's cloud step may take at the shop (the provider's
/// detach, resize and attach of four disks).
pub const GROW_SET_WITHIN: Duration = Duration::from_secs(30 * 60);
/// How long a read may take.
pub const READ_WITHIN: Duration = Duration::from_secs(30);