Struct bee_block::semantic::ValidationContext
source · [−]pub struct ValidationContext<'a> {Show 14 fields
pub essence: &'a RegularTransactionEssence,
pub essence_hash: [u8; 32],
pub inputs_commitment: InputsCommitment,
pub unlocks: &'a Unlocks,
pub milestone_timestamp: u32,
pub input_amount: u64,
pub input_native_tokens: HashMap<TokenId, U256>,
pub input_chains: HashMap<ChainId, &'a Output>,
pub output_amount: u64,
pub output_native_tokens: HashMap<TokenId, U256>,
pub output_chains: HashMap<ChainId, &'a Output>,
pub unlocked_addresses: HashSet<Address>,
pub storage_deposit_returns: HashMap<Address, u64>,
pub simple_deposits: HashMap<Address, u64>,
}Expand description
Fields
essence: &'a RegularTransactionEssenceessence_hash: [u8; 32]inputs_commitment: InputsCommitmentunlocks: &'a Unlocksmilestone_timestamp: u32input_amount: u64input_native_tokens: HashMap<TokenId, U256>input_chains: HashMap<ChainId, &'a Output>output_amount: u64output_native_tokens: HashMap<TokenId, U256>output_chains: HashMap<ChainId, &'a Output>unlocked_addresses: HashSet<Address>storage_deposit_returns: HashMap<Address, u64>simple_deposits: HashMap<Address, u64>Implementations
sourceimpl<'a> ValidationContext<'a>
impl<'a> ValidationContext<'a>
sourcepub fn new(
transaction_id: &TransactionId,
essence: &'a RegularTransactionEssence,
inputs: impl Iterator<Item = (&'a OutputId, &'a Output)> + Clone,
unlocks: &'a Unlocks,
milestone_timestamp: u32
) -> Self
pub fn new(
transaction_id: &TransactionId,
essence: &'a RegularTransactionEssence,
inputs: impl Iterator<Item = (&'a OutputId, &'a Output)> + Clone,
unlocks: &'a Unlocks,
milestone_timestamp: u32
) -> Self
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValidationContext<'a>
impl<'a> Send for ValidationContext<'a>
impl<'a> Sync for ValidationContext<'a>
impl<'a> Unpin for ValidationContext<'a>
impl<'a> UnwindSafe for ValidationContext<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more