use anyhow::Result; use cardano_tx_builder::{ Credential, Network, Utxo, BuildParameters, }; pub trait CardanoConnect { fn network(&self) -> Network; fn health(&self) -> impl std::future::Future> + Send; fn build_parameters(&self) -> impl std::future::Future + Send; fn utxos_at( &self, payment: &Credential, delegation: &Option, ) -> impl std::future::Future>> + Send; fn submit(&self, tx: Vec) -> impl std::future::Future> + Send; }