mod bytes;
mod parse;
use console::{
network::prelude::*,
program::{FinalizeType, Register},
};
#[derive(Clone, PartialEq, Eq, Hash)]
pub struct Output<N: Network> {
register: Register<N>,
finalize_type: FinalizeType<N>,
}
impl<N: Network> Output<N> {
#[inline]
pub const fn register(&self) -> &Register<N> {
&self.register
}
#[inline]
pub const fn finalize_type(&self) -> &FinalizeType<N> {
&self.finalize_type
}
}
impl<N: Network> TypeName for Output<N> {
#[inline]
fn type_name() -> &'static str {
"output"
}
}
#[cfg(test)]
mod tests {
use super::*;
use console::network::Testnet3;
type CurrentNetwork = Testnet3;
#[test]
fn test_output_type_name() {
assert_eq!(Output::<CurrentNetwork>::type_name(), "output");
}
}