pub struct TestEnv { /* private fields */ }Expand description
Test environment with regtest Liquid node and servers
Use TestEnvBuilder to configure and build
Implementations§
Source§impl TestEnv
impl TestEnv
pub fn zmq_endpoint(&self) -> String
pub fn electrum_url(&self) -> String
pub fn esplora_url(&self) -> String
pub fn waterfalls_url(&self) -> String
pub fn registry_url(&self) -> String
pub fn elements_rpc_url(&self) -> String
pub fn elements_rpc_credentials(&self) -> (String, String)
pub fn elementsd_call(&self, cmd: &str, args: &[Value]) -> Value
pub fn elementsd_getnewaddress(&self) -> Address
pub fn elementsd_generate(&self, blocks: u32)
pub fn elementsd_sendtoaddress( &self, address: &Address, satoshi: u64, asset: Option<AssetId>, ) -> Txid
pub fn elementsd_issueasset(&self, satoshi: u64) -> AssetId
pub fn elementsd_height(&self) -> u64
Sourcepub fn elementsd_genesis_block_hash(&self) -> BlockHash
pub fn elementsd_genesis_block_hash(&self) -> BlockHash
Get the genesis block hash from the running elementsd node.
Could differ from the hardcoded one because parameters like -initialfreecoins
change the genesis hash.
pub fn elementsd_getpeginaddress(&self) -> (Address, String)
pub fn elementsd_raw_createpsbt(&self, inputs: Value, outputs: Value) -> String
pub fn elementsd_expected_next(&self, base64: &str) -> String
pub fn elementsd_walletprocesspsbt(&self, psbt: &str) -> String
pub fn elementsd_finalizepsbt(&self, psbt: &str) -> String
pub fn elementsd_sendrawtransaction(&self, tx: &str) -> String
pub fn elementsd_testmempoolaccept(&self, tx: &str) -> bool
pub fn bitcoind(&self) -> &BitcoinD
pub fn bitcoind_generate(&self, blocks: u32)
pub fn bitcoind_sendtoaddress(&self, address: &Address, satoshi: u64) -> Txid
pub fn bitcoind_getrawtransaction(&self, txid: Txid) -> Transaction
pub fn bitcoind_gettxoutproof(&self, txid: Txid) -> String
Auto Trait Implementations§
impl !Freeze for TestEnv
impl !RefUnwindSafe for TestEnv
impl Send for TestEnv
impl Sync for TestEnv
impl Unpin for TestEnv
impl UnsafeUnpin for TestEnv
impl !UnwindSafe for TestEnv
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more