Added solana sdk and executor

This commit is contained in:
2026-08-05 04:39:54 +02:00
parent e6d7017b1a
commit 4b15dce8b8
4 changed files with 2256 additions and 0 deletions
Generated
+2245
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -4,3 +4,5 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
anyhow = "1.0.104"
solana-sdk = "4.1.0"
+7
View File
@@ -0,0 +1,7 @@
use solana_sdk::pubkey::Pubkey;
#[allow(async_fn_in_trait)]
pub trait Executor {
async fn buy(&self, token: Pubkey, amount: f64) -> anyhow::Result<()>;
async fn sell(&self, token: Pubkey, amount: f64) -> anyhow::Result<()>;
}
+2
View File
@@ -1,3 +1,5 @@
pub mod executor;
fn main() { fn main() {
println!("Hello, world!"); println!("Hello, world!");
} }