mod bytes;
mod parse;
use console::{network::prelude::*, program::PlaintextType};
#[derive(Clone, PartialEq, Eq)]
pub struct MapValue<N: Network> {
plaintext_type: PlaintextType<N>,
}
impl<N: Network> MapValue<N> {
#[inline]
pub const fn plaintext_type(&self) -> &PlaintextType<N> {
&self.plaintext_type
}
}
impl<N: Network> TypeName for MapValue<N> {
#[inline]
fn type_name() -> &'static str {
"value"
}
}
#[cfg(test)]
mod tests {
use super::*;
use console::network::MainnetV0;
type CurrentNetwork = MainnetV0;
#[test]
fn test_value_type_name() {
assert_eq!(MapValue::<CurrentNetwork>::type_name(), "value");
}
}