Blyx Nest Blyx language
Registry / Library
library · v0.1.0

ClaimClock

Evaluate activation and expiration bounds on previously verified claims.

Source repository · Package JSON

Use ClaimClock

use vendor::claimclock::claimclock;

Run the example

nest demo claimclock@0.1.0
blyxc native-run claimclock-demo/main.blyx
Example source and expected output
use vendor::claimclock::claimclock;

fn main() {
    let now = 100.0;
    let begins = 90.0;
    let expires = 110.0;
    let skew = 0.0;
    let result = claimclock_check(now, begins, expires, skew);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

1
0
0

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIP8841f7b814cbf0498aaa7ce96b6b3efe0d63e40f484f5429e33f637018f571704ce05c9801