We have too many ways of sending transactions, and too many reimplementations of the same logic all over the place. The program deploy logic and stake-o-matic currently make the most use of the TPU client, so this merges their implementations into one place to be reused by both. Yay for consolidation!
12 lines
334 B
Rust
12 lines
334 B
Rust
//! Spinner creator
|
|
|
|
use indicatif::{ProgressBar, ProgressStyle};
|
|
|
|
pub(crate) fn new_progress_bar() -> ProgressBar {
|
|
let progress_bar = ProgressBar::new(42);
|
|
progress_bar
|
|
.set_style(ProgressStyle::default_spinner().template("{spinner:.green} {wide_msg}"));
|
|
progress_bar.enable_steady_tick(100);
|
|
progress_bar
|
|
}
|