OutputSet

Trait OutputSet 

Source
pub trait OutputSet {
    // Required methods
    fn has_output(&self, output: &Output) -> bool;
    fn can_run_cat_tail(&self) -> bool;
    fn missing_singleton_output(&self) -> bool;

    // Provided methods
    fn find_amount(
        &self,
        puzzle_hash: Bytes32,
        output_constraints: &OutputConstraints,
    ) -> Option<u64> { ... }
    fn is_allowed(
        &self,
        output: &Output,
        output_constraints: &OutputConstraints,
    ) -> bool { ... }
}

Required Methods§

Provided Methods§

Source

fn find_amount( &self, puzzle_hash: Bytes32, output_constraints: &OutputConstraints, ) -> Option<u64>

Source

fn is_allowed( &self, output: &Output, output_constraints: &OutputConstraints, ) -> bool

Implementors§