pub struct FragmentFactory {
pub block0_hash: Hash,
pub fee: LinearFee,
pub witness_mode: WitnessMode,
}
Fields§
§block0_hash: Hash
§fee: LinearFee
§witness_mode: WitnessMode
Implementations§
source§impl FragmentFactory
impl FragmentFactory
pub fn from_ledger(test_ledger: &TestLedger) -> Self
pub fn new(block0_hash: Hash, fee: LinearFee) -> Self
pub fn witness_mode(self, witness_mode: WitnessMode) -> Self
pub fn transaction( &self, from: &Wallet, to: &Wallet, test_ledger: &mut TestLedger, funds: u64 ) -> Fragment
pub fn stake_pool_registration( &self, valid_until: BlockDate, funder: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn delegation( &self, valid_until: BlockDate, from: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn delegation_different_funder( &self, valid_until: BlockDate, funder: &Wallet, delegation: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn delegation_remove( &self, valid_until: BlockDate, from: &Wallet ) -> Fragment
pub fn delegation_to_many( &self, valid_until: BlockDate, from: &Wallet, distribution: &[(&StakePool, u8)] ) -> Fragment
pub fn owner_delegation( &self, valid_until: BlockDate, from: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn stake_pool_retire<'a>( &self, valid_until: BlockDate, owners: impl IntoIterator<Item = &'a Wallet>, stake_pool: &StakePool ) -> Fragment
pub fn stake_pool_update<'a>( &self, valid_until: BlockDate, owners: impl IntoIterator<Item = &'a Wallet>, stake_pool: &StakePool, update: StakePool ) -> Fragment
pub fn vote_plan( &self, valid_until: BlockDate, owner: &Wallet, vote_plan: VotePlan ) -> Fragment
pub fn vote_cast( &self, valid_until: BlockDate, owner: &Wallet, vote_cast: VoteCast ) -> Fragment
pub fn vote_tally( &self, valid_until: BlockDate, owner: &Wallet, vote_tally: VoteTally ) -> Fragment
pub fn update_proposal( &self, valid_until: BlockDate, owner: &Wallet, signer: &Wallet, update_proposal: UpdateProposal ) -> Fragment
pub fn update_vote( &self, valid_until: BlockDate, owner: &Wallet, signer: &Wallet, update_vote: UpdateVote ) -> Fragment
pub fn mint_token( &self, valid_until: BlockDate, owner: &Wallet, min_token: MintToken ) -> Fragment
fn transaction_with_cert<'a>( &self, valid_until: BlockDate, wallets: impl IntoIterator<Item = &'a Wallet>, certificate: &Certificate ) -> Fragment
Trait Implementations§
source§impl Clone for FragmentFactory
impl Clone for FragmentFactory
source§fn clone(&self) -> FragmentFactory
fn clone(&self) -> FragmentFactory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FragmentFactory
impl Send for FragmentFactory
impl Sync for FragmentFactory
impl Unpin for FragmentFactory
impl UnwindSafe for FragmentFactory
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