add callback to subscribe

This commit is contained in:
William
2025-01-23 21:15:55 +08:00
parent 42b7267c2c
commit a01275367e
17 changed files with 375 additions and 538 deletions
+13
View File
@@ -24,6 +24,19 @@ use solana_client::{
};
use solana_sdk::pubkey::ParsePubkeyError;
#[derive(Debug)]
#[allow(dead_code)]
pub struct AppError(anyhow::Error);
impl<E> From<E> for AppError
where
E: Into<anyhow::Error>,
{
fn from(err: E) -> Self {
Self(err.into())
}
}
#[derive(Debug)]
pub enum ClientError {
/// Bonding curve account was not found