StateTransitionAddressesFeeStrategy

Trait StateTransitionAddressesFeeStrategy 

Source
pub trait StateTransitionAddressesFeeStrategy {
    // Required methods
    fn fee_strategy(&self) -> &AddressFundsFeeStrategy;
    fn set_fee_strategy(&mut self, fee_strategy: AddressFundsFeeStrategy);
}
Expand description

Trait for state transitions that use an address-based fee strategy.

This trait provides access to the fee strategy for state transitions that deduct fees from input addresses or reduce output amounts.

Required Methods§

Source

fn fee_strategy(&self) -> &AddressFundsFeeStrategy

Get the fee strategy for this state transition.

The fee strategy defines how fees should be deducted from inputs or outputs when processing the state transition.

Source

fn set_fee_strategy(&mut self, fee_strategy: AddressFundsFeeStrategy)

Set the fee strategy for this state transition.

Implementors§