Compiling solana_rust_bot v0.1.0 (C:\solana_rust_bot)
error[E0433]: failed to resolve: use of undeclared type `Duration`
   --> src\bot.rs:151:22
    |
151 |             .timeout(Duration::from_secs(5))
    |                      ^^^^^^^^ use of undeclared type `Duration`
    |
help: consider importing one of these items
    |
1   + use std::time::Duration;
    |
1   + use chrono::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0433]: failed to resolve: use of undeclared type `Duration`
   --> src\bot.rs:152:32
    |
152 |             .pool_idle_timeout(Duration::from_secs(30))
    |                                ^^^^^^^^ use of undeclared type `Duration`
    |
help: consider importing one of these items
    |
1   + use std::time::Duration;
    |
1   + use chrono::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0433]: failed to resolve: use of undeclared type `Utc`
   --> src\money_printer.rs:134:34
    |
134 |             last_scan_time: Some(Utc::now()),
    |                                  ^^^ use of undeclared type `Utc`
    |
help: consider importing this struct
    |
1   + use chrono::Utc;
    |

error[E0412]: cannot find type `Config` in this scope
  --> src\price_feed.rs:10:17
   |
10 |     config: Arc<Config>,
   |                 ^^^^^^ not found in this scope
   |
help: consider importing one of these structs
   |
1  + use crate::config::Config;
   |
1  + use config::Config;
   |
1  + use solana_program::stake::config::Config;
   |
1  + use solana_sdk::stake::config::Config;
   |

error[E0412]: cannot find type `Config` in this scope
  --> src\price_feed.rs:22:31
   |
22 |     pub async fn new(config: &Config) -> Result<Self> {
   |                               ^^^^^^ not found in this scope
   |
help: consider importing one of these structs
   |
1  + use crate::config::Config;
   |
1  + use config::Config;
   |
1  + use solana_program::stake::config::Config;
   |
1  + use solana_sdk::stake::config::Config;
   |

error[E0603]: struct `Bot` is private
   --> src/main.rs:21:29
    |
21  |     let bot = Arc::new(bot::Bot::new().await?);
    |                             ^^^ private struct
    |
note: the struct `Bot` is defined here
   --> src\bot.rs:108:1
    |
108 | struct Bot {
    | ^^^^^^^^^^

warning: unused import: `solana_client::rpc_request::TokenAccountsFilter`
 --> src\bot.rs:1:5
  |
1 | use solana_client::rpc_request::TokenAccountsFilter;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused imports: `debug`, `info`, and `warn`
 --> src\bot.rs:2:11
  |
2 | use log::{debug, info, warn};
  |           ^^^^^  ^^^^  ^^^^

warning: unused import: `serde_json::json`
 --> src\bot.rs:6:5
  |
6 | use serde_json::json;
  |     ^^^^^^^^^^^^^^^^

warning: unused import: `pubkey::Pubkey`
 --> src\bot.rs:8:18
  |
8 | use solana_sdk::{pubkey::Pubkey, commitment_config::CommitmentConfig};
  |                  ^^^^^^^^^^^^^^

warning: unused imports: `AccountMeta` and `Instruction`
 --> src\bot.rs:9:31
  |
9 | use solana_sdk::instruction::{AccountMeta, Instruction};
  |                               ^^^^^^^^^^^  ^^^^^^^^^^^

warning: unused import: `solana_sdk::message::Message`
  --> src\bot.rs:10:5
   |
10 | use solana_sdk::message::Message;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `solana_sdk::transaction::Transaction`
  --> src\bot.rs:12:5
   |
12 | use solana_sdk::transaction::Transaction;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `connect_async` and `tungstenite::protocol::Message as WsMessage`
  --> src\bot.rs:17:25
   |
17 | use tokio_tungstenite::{connect_async, tungstenite::protocol::Message as WsMessage};
   |                         ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `chrono::Utc`
  --> src\bot.rs:19:5
   |
19 | use chrono::Utc;
   |     ^^^^^^^^^^^

warning: unused import: `config::Config as ConfigLoader`
 --> src\config.rs:2:5
  |
2 | use config::Config as ConfigLoader;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `PriceData`, `TokenMetadata`, and `TradeStatus`
 --> src\money_printer.rs:3:29
  |
3 |     price_feed::{PriceFeed, PriceData},
  |                             ^^^^^^^^^
...
6 |     types::{TokenMetadata, TradeStatus, STATE_FILE},
  |             ^^^^^^^^^^^^^  ^^^^^^^^^^^

warning: unused imports: `AccountMeta`, `Instruction`, `pubkey::Pubkey`, and `transaction::Transaction`
  --> src\money_printer.rs:14:19
   |
14 |     instruction::{AccountMeta, Instruction},
   |                   ^^^^^^^^^^^  ^^^^^^^^^^^
15 |     signature::{Keypair, read_keypair_file},
16 |     transaction::Transaction,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
17 |     pubkey::Pubkey,
   |     ^^^^^^^^^^^^^^

warning: unused import: `str::FromStr`
  --> src\money_printer.rs:19:11
   |
19 | use std::{str::FromStr, sync::Arc};
   |           ^^^^^^^^^^^^

warning: unused import: `tokio::sync::Mutex`
 --> src\price_feed.rs:4:5
  |
4 | use tokio::sync::Mutex;
  |     ^^^^^^^^^^^^^^^^^^

warning: unused import: `error`
 --> src\price_feed.rs:5:21
  |
5 | use tracing::{info, error};
  |                     ^^^^^

error[E0599]: no function or associated item named `load` found for struct `config::Config` in the current scope
  --> src\money_printer.rs:35:30
   |
35 |         let config = Config::load()?;
   |                              ^^^^ function or associated item not found in `Config`
   |
  ::: src\config.rs:5:1
   |
5  | pub struct Config {
   | ----------------- function or associated item `load` not found for this struct
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `load`, perhaps you need to implement one of them:
           candidate #1: `ctr::flavors::CtrFlavor`
           candidate #2: `dlopen2::symbor::api::SymBorApi`
           candidate #3: `dlopen2::wrapper::api::WrapperApi`

error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
   --> src\price_feed.rs:22:42
    |
22  |     pub async fn new(config: &Config) -> Result<Self> {
    |                                          ^^^^^^ ---- supplied 1 generic argument
    |                                          |
    |                                          expected 2 generic arguments
    |
note: enum defined here, with 2 generic parameters: `T`, `E`
   --> C:\Users\Orsen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\result.rs:527:10
    |
527 | pub enum Result<T, E> {
    |          ^^^^^^ -  -
help: add missing generic argument
    |
22  |     pub async fn new(config: &Config) -> Result<Self, E> {
    |                                                     +++

error[E0599]: no method named `bright_cyan` found for reference `&'static str` in the current scope
  --> src\money_printer.rs:77:55
   |
77 |         info!("{}", "🚀 Initializing Money Printer...".bright_cyan());
   |                                                        ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `Colorize` which provides `bright_cyan` is implemented but not in scope; perhaps you want to import it
   |
1  + use colored::Colorize;
   |
help: there is a method `on_bright_cyan` with a similar name
   |
77 |         info!("{}", "🚀 Initializing Money Printer...".on_bright_cyan());
   |                                                        ~~~~~~~~~~~~~~

error[E0599]: no method named `yellow` found for reference `&'static str` in the current scope
   --> src\money_printer.rs:103:59
    |
103 |         info!("{}", "💾 Saving state and shutting down...".yellow());
    |                                                            ^^^^^^
    |
    = help: items from traits can only be used if the trait is in scope
help: trait `Colorize` which provides `yellow` is implemented but not in scope; perhaps you want to import it
    |
1   + use colored::Colorize;
    |
help: there is a method `on_yellow` with a similar name
    |
103 |         info!("{}", "💾 Saving state and shutting down...".on_yellow());
    |                                                            ~~~~~~~~~

error[E0599]: no method named `pubkey` found for struct `Arc<Keypair>` in the current scope
   --> src\money_printer.rs:110:58
    |
110 |         let balance = self.rpc.get_balance(&self.keypair.pubkey())?;
    |                                                          ^^^^^^
    |
   ::: C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\solana-sdk-1.18.26\src\signer\mod.rs:72:8
    |
72  |     fn pubkey(&self) -> Pubkey {
    |        ------ the method is available for `Arc<Keypair>` here
    |
    = help: items from traits can only be used if the trait is in scope
help: trait `Signer` which provides `pubkey` is implemented but not in scope; perhaps you want to import it
    |
1   + use solana_sdk::signature::Signer;
    |
help: there is a method `try_pubkey` with a similar name
    |
110 |         let balance = self.rpc.get_balance(&self.keypair.try_pubkey())?;
    |                                                          ~~~~~~~~~~

error[E0599]: no method named `lock` found for struct `Arc<DashMap<std::string::String, trade::Trade>>` in the current scope
   --> src\money_printer.rs:119:52
    |
119 |         let mut active_trades = self.active_trades.lock().await;
    |                                                    ^^^^ method not found in `Arc<DashMap<String, Trade>>`

error[E0599]: no method named `lock` found for struct `Arc<DashMap<std::string::String, trade::Trade>>` in the current scope 
   --> src\money_printer.rs:128:48
    |
128 |         let active_trades = self.active_trades.lock().await;
    |                                                ^^^^ method not found in `Arc<DashMap<String, Trade>>`

error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
   --> src\price_feed.rs:30:52
    |
30  |     pub async fn fetch_price(&self, mint: &str) -> Result<PriceData> {
    |                                                    ^^^^^^ --------- supplied 1 generic argument
    |                                                    |
    |                                                    expected 2 generic arguments
    |
note: enum defined here, with 2 generic parameters: `T`, `E`
   --> C:\Users\Orsen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\result.rs:527:10
    |
527 | pub enum Result<T, E> {
    |          ^^^^^^ -  -
help: add missing generic argument
    |
30  |     pub async fn fetch_price(&self, mint: &str) -> Result<PriceData, E> {
    |                                                                    +++

error[E0599]: no method named `red` found for reference `&'static str` in the current scope
  --> src\money_printer.rs:90:71
   |
90 |                     Err(e) => error!("{} {}", "Market scanner error:".red(), e),
   |                                                                       ^^^
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `Colorize` which provides `red` is implemented but not in scope; perhaps you want to import it
   |
1  + use colored::Colorize;
   |
help: there is a method `on_red` with a similar name
   |
90 |                     Err(e) => error!("{} {}", "Market scanner error:".on_red(), e),
   |                                                                       ~~~~~~

error[E0599]: no method named `run` found for struct `Arc<Bot>` in the current scope
  --> src/main.rs:22:9
   |
22 |     bot.run().await?;
   |         ^^^ method not found in `Arc<Bot>`
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `run`, perhaps you need to implement one of them:
           candidate #1: `der_parser::ber::visit::Visit`
           candidate #2: `der_parser::ber::visit_mut::VisitMut`
           candidate #3: `flate2::zio::Ops`
           candidate #4: `zstd::stream::raw::Operation`

Some errors have detailed explanations: E0107, E0412, E0433, E0599, E0603.
For more information about an error, try `rustc --explain E0107`.
warning: `solana_rust_bot` (bin "solana_rust_bot") generated 15 warnings
error: could not compile `solana_rust_bot` (bin "solana_rust_bot") due to 16 previous errors; 15 warnings emitted