penumbra_fee::component

Trait StateWriteExt

Source
pub trait StateWriteExt: StateWrite {
    // Provided methods
    fn put_fee_params(&mut self, params: FeeParameters) { ... }
    fn take_accumulated_base_fees_and_tips(
        &mut self,
    ) -> OrdMap<Id, (Amount, Amount)> { ... }
    fn raw_accumulate_base_fee(&mut self, base_fee: Fee) { ... }
    fn raw_accumulate_tip(&mut self, tip_fee: Fee) { ... }
}
Available on crate feature component only.

Provided Methods§

Source

fn put_fee_params(&mut self, params: FeeParameters)

Writes the provided fee parameters to the JMT.

Source

fn take_accumulated_base_fees_and_tips( &mut self, ) -> OrdMap<Id, (Amount, Amount)>

Takes the accumulated base fees and tips for this block, resetting them to zero.

Source

fn raw_accumulate_base_fee(&mut self, base_fee: Fee)

Source

fn raw_accumulate_tip(&mut self, tip_fee: Fee)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§