You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a shared contracts/sandbox/common_types/ crate that all sandbox contracts can import for shared primitives (e.g., a TimestampRange struct, a bps_to_amount helper). This reduces code duplication across contracts.
Acceptance Criteria
contracts/sandbox/common_types/Cargo.toml is created as a library crate
Defines at least: TimestampRange { start: u64, end: u64 } with a is_valid() method
Overview
Create a shared
contracts/sandbox/common_types/crate that all sandbox contracts can import for shared primitives (e.g., aTimestampRangestruct, abps_to_amounthelper). This reduces code duplication across contracts.Acceptance Criteria
contracts/sandbox/common_types/Cargo.tomlis created as a library crateTimestampRange { start: u64, end: u64 }with ais_valid()methodbps_to_amount(total: u128, bps: u32) -> u128helpercargo build