use crate::{
cdk::types::Principal,
dto::placement::binding::{PlacementBindingRegistryResponse, PlacementBindingStatusResponse},
ops::storage::placement::binding::PlacementBindingRegistryOps,
};
pub struct PlacementBindingQuery;
impl PlacementBindingQuery {
#[must_use]
pub fn lookup_key(pool: &str, key_value: &str) -> Option<Principal> {
PlacementBindingRegistryOps::lookup_key(pool, key_value)
}
#[must_use]
pub fn lookup_entry(pool: &str, key_value: &str) -> Option<PlacementBindingStatusResponse> {
PlacementBindingRegistryOps::lookup_entry(pool, key_value)
}
#[must_use]
pub fn registry() -> PlacementBindingRegistryResponse {
PlacementBindingRegistryOps::entries_response()
}
}