Struct chain_impl_mockchain::testing::data::Wallet
source · pub struct Wallet {
alias: String,
account: AddressDataValue,
}
Fields§
§alias: String
§account: AddressDataValue
Implementations§
source§impl Wallet
impl Wallet
pub fn from_address_data_value_and_alias<S: Into<String>>( alias: S, account: AddressDataValue ) -> Self
pub fn from_address_data_value(account: AddressDataValue) -> Self
pub fn from_value(initial_value: Value) -> Self
pub fn new(alias: &str, initial_value: Value) -> Self
pub fn new_with_tokens( alias: &str, initial_value: Value, tokens: HashMap<TokenName, Value> ) -> Self
pub fn alias(&self) -> &str
pub fn value(&self) -> Value
pub fn public_key(&self) -> PublicKey<Ed25519>
pub fn private_key(&self) -> EitherEd25519SecretKey
pub fn make_output(&self) -> Output<Address>
pub fn make_output_with_value(&self, value: Value) -> Output<Address>
pub fn make_input_with_value(&self, value: Value) -> Input
pub fn as_account(&self) -> AddressDataValue
pub fn as_account_data(&self) -> AddressData
pub fn as_address(&self) -> Address
pub fn confirm_transaction(&mut self)
pub fn confirm_transaction_at_lane(&mut self, lane: usize)
pub fn make_witness( &mut self, block0_hash: &HeaderId, tad: TransactionAuthData<'_> ) -> Witness
pub fn make_witness_at_lane( &mut self, block0_hash: &HeaderId, lane: usize, tad: TransactionAuthData<'_> ) -> Witness
Trait Implementations§
source§impl From<WalletTemplate> for Wallet
impl From<WalletTemplate> for Wallet
source§fn from(template: WalletTemplate) -> Self
fn from(template: WalletTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnwindSafe for Wallet
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