Type Alias GlobalStateForProof

Source
pub type GlobalStateForProof = GlobalStateSkeleton<LedgerWithHash, CheckedSigned<Fp, CheckedAmount<Fp>>, CheckedSlot<Fp>>;

Aliased Type§

pub struct GlobalStateForProof {
    pub first_pass_ledger: LedgerWithHash,
    pub second_pass_ledger: LedgerWithHash,
    pub fee_excess: CheckedSigned<Fp256<FpParameters>, CheckedAmount<Fp256<FpParameters>>>,
    pub supply_increase: CheckedSigned<Fp256<FpParameters>, CheckedAmount<Fp256<FpParameters>>>,
    pub protocol_state: ProtocolStateView,
    pub block_global_slot: CheckedSlot<Fp256<FpParameters>>,
}

Fields§

§first_pass_ledger: LedgerWithHash§second_pass_ledger: LedgerWithHash§fee_excess: CheckedSigned<Fp256<FpParameters>, CheckedAmount<Fp256<FpParameters>>>§supply_increase: CheckedSigned<Fp256<FpParameters>, CheckedAmount<Fp256<FpParameters>>>§protocol_state: ProtocolStateView§block_global_slot: CheckedSlot<Fp256<FpParameters>>

Slot of block when the transaction is applied. NOTE: This is at least 1 slot after the protocol_state’s view, which is for the previous slot.

Trait Implementations§

Source§

impl GlobalStateInterface for GlobalStateForProof

Source§

type Ledger = LedgerWithHash

Source§

type W = Witness<Fp256<FpParameters>>

Source§

type Bool = CircuitVar<Boolean>

Source§

type SignedAmount = CheckedSigned<Fp256<FpParameters>, CheckedAmount<Fp256<FpParameters>>>

Source§

type GlobalSlotSinceGenesis = CheckedSlot<Fp256<FpParameters>>

Source§

fn first_pass_ledger(&self) -> Self::Ledger

Source§

fn set_first_pass_ledger( &mut self, should_update: Self::Bool, ledger: &Self::Ledger, w: &mut Self::W, )

Source§

fn second_pass_ledger(&self) -> Self::Ledger

Source§

fn set_second_pass_ledger( &mut self, should_update: Self::Bool, ledger: &Self::Ledger, w: &mut Self::W, )

Source§

fn fee_excess(&self) -> Self::SignedAmount

Source§

fn supply_increase(&self) -> Self::SignedAmount

Source§

fn set_fee_excess(&mut self, fee_excess: Self::SignedAmount)

Source§

fn set_supply_increase(&mut self, supply_increase: Self::SignedAmount)

Source§

fn block_global_slot(&self) -> Self::GlobalSlotSinceGenesis