pub use wist_contracts::work::{OneShotWork, StandingWork};
pub mod v1;
pub use v1::*;
pub const CURRENT: &str = v1::API_VERSION;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn current_matches_the_live_wire_version() {
assert_eq!(CURRENT, "v1");
assert_eq!(CURRENT, v1::API_VERSION);
}
#[test]
fn domain_types_are_the_contracts_ones() {
#[allow(dead_code)]
fn assert_identity() {
fn standing(v: wist_contracts::work::StandingWork) -> StandingWork {
v
}
fn one_shot(v: wist_contracts::work::OneShotWork) -> OneShotWork {
v
}
let _ = (standing, one_shot);
}
assert_identity();
}
}