dpp/state_transition/traits/
state_transition_multi_signed.rs

1use std::collections::BTreeMap;
2
3use crate::address_funds::{AddressWitness, PlatformAddress};
4use crate::fee::Credits;
5use crate::prelude::AddressNonce;
6
7pub trait StateTransitionWitnessSigned: Sized {
8    /// Get inputs
9    fn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
10    /// Get inputs as a mutable map
11    fn inputs_mut(&mut self) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
12    /// Set inputs
13    fn set_inputs(&mut self, inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>);
14
15    /// returns the witnesses as an array
16    fn witnesses(&self) -> &Vec<AddressWitness>;
17    /// set new witnesses
18    fn set_witnesses(&mut self, witnesses: Vec<AddressWitness>);
19}