Struct chain_impl_mockchain::testing::ledger::LedgerBuilder
source · pub struct LedgerBuilder {
cfg_builder: ConfigBuilder,
cfg_params: ConfigParams,
fragments: Vec<Fragment>,
certs: Vec<Fragment>,
faucets: Vec<AddressDataValue>,
utxo_declaration: Vec<UtxoDeclaration>,
}
Fields§
§cfg_builder: ConfigBuilder
§cfg_params: ConfigParams
§fragments: Vec<Fragment>
§certs: Vec<Fragment>
§faucets: Vec<AddressDataValue>
§utxo_declaration: Vec<UtxoDeclaration>
Implementations§
source§impl LedgerBuilder
impl LedgerBuilder
pub fn from_config(cfg_builder: ConfigBuilder) -> Self
pub fn fragment(self, f: Fragment) -> Self
pub fn fragments(self, f: &[Fragment]) -> Self
pub fn certs(self, f: &[Fragment]) -> Self
pub fn prefill_address(self, address: Address, value: Value) -> Self
pub fn prefill_output(self, output: Output<Address>) -> Self
pub fn prefill_outputs(self, outputs: &[Output<Address>]) -> Self
pub fn mint_tokens(self) -> Self
pub fn faucet_value(self, value: Value) -> Self
pub fn initial_fund(self, fund: &AddressDataValue) -> Self
pub fn initial_funds(self, funds: &[AddressDataValue]) -> Self
pub fn faucet(self, faucet: &AddressDataValue) -> Self
pub fn faucets_wallets(self, faucets: Vec<&Wallet>) -> Self
pub fn faucets(self, faucets: &[AddressDataValue]) -> Self
pub fn utxos(self, decls: &[UtxoDeclaration]) -> Self
pub fn build(self) -> Result<TestLedger, Error>
Trait Implementations§
source§impl Arbitrary for LedgerBuilder
impl Arbitrary for LedgerBuilder
source§impl Clone for LedgerBuilder
impl Clone for LedgerBuilder
source§fn clone(&self) -> LedgerBuilder
fn clone(&self) -> LedgerBuilder
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 LedgerBuilder
impl Send for LedgerBuilder
impl Sync for LedgerBuilder
impl Unpin for LedgerBuilder
impl UnwindSafe for LedgerBuilder
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