feat: extend ValidityWindow with Unix timestamp bounds

This commit is contained in:
moudyellaz
2026-03-31 13:46:08 +02:00
committed by Moudy
parent b8bb6913be
commit 5c592312f9
15 changed files with 288 additions and 103 deletions
@@ -1,8 +1,13 @@
use nssa_core::program::{
AccountPostState, ProgramInput, ProgramOutput, ValidityWindow, read_nssa_inputs,
AccountPostState, BlockId, ProgramInput, ProgramOutput, Timestamp, read_nssa_inputs,
};
type Instruction = ValidityWindow;
type Instruction = (
Option<BlockId>,
Option<BlockId>,
Option<Timestamp>,
Option<Timestamp>,
);
fn main() {
let (
@@ -24,6 +29,7 @@ fn main() {
vec![pre],
vec![AccountPostState::new(post)],
)
.with_validity_window(validity_window)
.try_with_validity_window(validity_window)
.unwrap()
.write();
}