Added solana sdk and executor
This commit is contained in:
Generated
+2245
File diff suppressed because it is too large
Load Diff
@@ -4,3 +4,5 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
anyhow = "1.0.104"
|
||||||
|
solana-sdk = "4.1.0"
|
||||||
|
|||||||
@@ -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<()>;
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
pub mod executor;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user