Struct loki::sender::FaultyTransactionBuilder
source · pub struct FaultyTransactionBuilder {
block0_hash: Hash,
fees: LinearFee,
expiry_generator: BlockDateGenerator,
}
Fields§
§block0_hash: Hash
§fees: LinearFee
§expiry_generator: BlockDateGenerator
Implementations§
source§impl FaultyTransactionBuilder
impl FaultyTransactionBuilder
pub fn from_settings(settings: SettingsDto, block_date: BlockDate) -> Self
source§impl FaultyTransactionBuilder
impl FaultyTransactionBuilder
pub fn new( block0_hash: Hash, fees: LinearFee, expiry_generator: BlockDateGenerator ) -> Self
pub fn wrong_block0_hash(&self, from: &Wallet, to: &Wallet) -> Fragment
pub fn no_witnesses(&self, from: &Wallet, to: &Wallet) -> Fragment
pub fn no_input(&self, to: &Wallet) -> Fragment
pub fn no_output(&self, from: &Wallet) -> Fragment
pub fn unbalanced(&self, from: &Wallet, to: &Wallet) -> Fragment
pub fn empty(&self) -> Fragment
pub fn wrong_counter(&self, from: &Wallet, to: &Wallet) -> Fragment
fn transaction_to<F: Fn(&TransactionSignDataHash) -> Vec<Witness>>( &self, inputs: &[Input], outputs: &[OutputAddress], make_witnesses: F ) -> Fragment
Auto Trait Implementations§
impl RefUnwindSafe for FaultyTransactionBuilder
impl Send for FaultyTransactionBuilder
impl Sync for FaultyTransactionBuilder
impl Unpin for FaultyTransactionBuilder
impl UnwindSafe for FaultyTransactionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request