Struct thor::cli::CliController
source · pub struct CliController {
pub(crate) wallets: WalletController,
pub(crate) client: JormungandrRest,
}
Fields§
§wallets: WalletController
§client: JormungandrRest
Implementations§
source§impl CliController
impl CliController
pub fn new() -> Result<Self, Error>
pub fn wallets(&self) -> &WalletController
pub fn wallets_mut(&mut self) -> &mut WalletController
pub fn new_from_client( client: JormungandrRest, config_manager: ConfigManager ) -> Result<Self, Error>
pub fn update_connection(&mut self, connection: Connection)
pub fn check_connection(&self) -> Result<(), Error>
pub fn refresh_state(&mut self) -> Result<(), Error>
pub fn account_state(&self) -> Result<AccountState, Error>
fn thor_wallet(&self, password: &str) -> Result<Wallet, Error>
pub fn secret_key(&self, password: &str) -> Result<SigningKey, Error>
pub fn secret_key_for_wallet_state( &self, password: &str, wallet_state: &WalletState ) -> Result<SigningKey, Error>
pub fn transaction( &mut self, password: &str, wait_for_transaction: bool, target: Address, ada: u64 ) -> Result<MemPoolCheck, Error>
pub fn confirm_tx(&mut self) -> Result<(), Error>
pub fn clear_txs(&mut self) -> Result<(), Error>
pub fn statuses(&self) -> Result<HashMap<FragmentId, FragmentStatus>, Error>
pub fn fragment_logs(&self) -> Result<HashMap<FragmentId, FragmentLog>, Error>
pub fn vote_plan_history( &self, vote_plan_id: VotePlanId ) -> Result<Option<Vec<u8>>, Error>
pub fn votes_history(&self) -> Result<Option<Vec<AccountVotes>>, Error>
pub fn save_config(&self) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for CliController
impl Send for CliController
impl Sync for CliController
impl Unpin for CliController
impl !UnwindSafe for CliController
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