Struct chain_impl_mockchain::testing::data::address::AddressDataValue
source · pub struct AddressDataValue {
pub address_data: AddressData,
pub value: Value,
pub tokens: HashMap<TokenName, Value>,
}
Fields§
§address_data: AddressData
§value: Value
§tokens: HashMap<TokenName, Value>
Implementations§
source§impl AddressDataValue
impl AddressDataValue
pub fn new(address_data: AddressData, value: Value) -> Self
pub fn new_with_tokens( address_data: AddressData, value: Value, tokens: HashMap<TokenName, Value> ) -> Self
pub fn utxo(discrimination: Discrimination, value: Value) -> Self
pub fn account(discrimination: Discrimination, value: Value) -> Self
pub fn account_with_spending_counter( discrimination: Discrimination, spending_counter: u32, value: Value ) -> Self
pub fn delegation(discrimination: Discrimination, value: Value) -> Self
pub fn account_with_tokens( discrimination: Discrimination, value: Value, tokens: HashMap<TokenName, Value> ) -> Self
pub fn from_discrimination_and_kind_type( discrimination: Discrimination, kind: KindType, value: Value ) -> Self
pub fn to_id(&self) -> Identifier
pub fn public_key(&self) -> PublicKey<Ed25519>
pub fn private_key(&self) -> EitherEd25519SecretKey
pub fn make_input(&self, utxo: Option<Entry<'_, Address>>) -> Input
pub fn make_input_with_value( &self, utxo: Option<Entry<'_, Address>>, value: Value ) -> Input
pub fn make_output(&self) -> Output<Address>
pub fn make_output_with_value(&self, value: Value) -> Output<Address>
pub fn confirm_transaction(&mut self) -> Result<(), Error>
pub fn confirm_transaction_at_lane(&mut self, lane: usize) -> Result<(), Error>
pub fn make_witness( &mut self, block0_hash: &HeaderId, tad: TransactionAuthData<'_> ) -> Witness
pub fn make_witness_with_lane( &mut self, block0_hash: &HeaderId, lane: usize, tad: TransactionAuthData<'_> ) -> Witness
pub fn kind(&self) -> Kind
pub fn is_utxo(&self) -> bool
pub fn address(&self) -> Address
pub fn address_data(&self) -> AddressData
Trait Implementations§
source§impl Arbitrary for AddressDataValue
impl Arbitrary for AddressDataValue
source§impl Clone for AddressDataValue
impl Clone for AddressDataValue
source§fn clone(&self) -> AddressDataValue
fn clone(&self) -> AddressDataValue
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 moresource§impl Debug for AddressDataValue
impl Debug for AddressDataValue
source§impl From<AddressDataValue> for AddressData
impl From<AddressDataValue> for AddressData
source§fn from(value: AddressDataValue) -> Self
fn from(value: AddressDataValue) -> Self
Converts to this type from the input type.
source§impl PartialEq<AddressDataValue> for AddressDataValue
impl PartialEq<AddressDataValue> for AddressDataValue
source§fn eq(&self, other: &AddressDataValue) -> bool
fn eq(&self, other: &AddressDataValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddressDataValue
Auto Trait Implementations§
impl RefUnwindSafe for AddressDataValue
impl Send for AddressDataValue
impl Sync for AddressDataValue
impl Unpin for AddressDataValue
impl UnwindSafe for AddressDataValue
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