pub struct Wallet {
inner: Option<Wallet>,
template: WalletTemplate,
}
Expand description
wallet to utilise when testing jormungandr
This can be used for a faucet
Fields§
§inner: Option<Wallet>
§template: WalletTemplate
Implementations§
source§impl Wallet
impl Wallet
pub fn save_to<P: AsRef<Path>>(&self, dir: P) -> Result<()>
pub fn external(template: WalletTemplate) -> Self
pub fn generate_account<RNG>(template: WalletTemplate, rng: &mut RNG) -> Selfwhere RNG: CryptoRng + RngCore,
pub fn generate_utxo<RNG>(template: WalletTemplate, rng: &mut RNG) -> Selfwhere RNG: CryptoRng + RngCore,
pub fn has_alias(&self, alias: &WalletAlias) -> bool
pub fn address(&self) -> Result<Address, Error>
pub fn committee_id(&self) -> Result<CommitteeId, Error>
pub fn stake_key(&self) -> Option<UnspecifiedAccountIdentifier>
pub fn delegation_cert_for_block0( &self, valid_until: BlockDate, pool_id: PoolId ) -> Result<Initial, Error>
pub fn template(&self) -> &WalletTemplate
pub fn identifier(&self) -> Identifier
pub fn to_initial_fund(&self) -> Result<InitialUTxO, Error>
pub fn inner(&self) -> &Option<Inner>
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
§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