From cc3bfc482965425ee6b6c96f1ef56616fd06185d Mon Sep 17 00:00:00 2001 From: AJ Taylor Date: Fri, 8 Nov 2024 13:28:08 -0700 Subject: [PATCH] update stablebond sdk --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- src/purchase.rs | 4 +--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1d42c4f..05e16c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1434,7 +1434,7 @@ dependencies = [ [[package]] name = "etherfuse-arb" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "base58", @@ -4702,9 +4702,9 @@ dependencies = [ [[package]] name = "stablebond-sdk" -version = "0.3.32" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038e2d89360532e35b1c5ffd80c07e859a3ff29713965850175368f64f3033fe" +checksum = "fb2f57f53d47dc894fe19bc6529d41311a9dab566bf3838d877e0dba25daa9cd" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index 7bb8410..b6a5f8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "etherfuse-arb" -version = "0.3.0" +version = "0.4.0" edition = "2021" license = "Apache-2.0" description = "A command line interface for transacting arbitrage opportunities on etherfuse." @@ -35,7 +35,7 @@ spl-associated-token-account = { version = "=2.3.0", features = [ ] } spl-token = { version = "^4.0.0", features = ["no-entrypoint"] } spl-token-2022 = { version = "^1.0.0", features = ["no-entrypoint"] } -stablebond-sdk = { version = "0.3.29", features = ["sdk", "serde"] } +stablebond-sdk = { version = "2.0.0", features = ["sdk", "serde"] } thiserror = "1.0.50" tokio = { version = "1.39.2", features = ["full"] } tokio-tungstenite = "0.16" diff --git a/src/purchase.rs b/src/purchase.rs index 4ae63ff..f519185 100644 --- a/src/purchase.rs +++ b/src/purchase.rs @@ -6,7 +6,7 @@ use spl_associated_token_account::{ }; use stablebond_sdk::{ accounts::{Bond, PaymentFeed}, - find_bond_pda, find_config_pda, find_issuance_pda, find_payment_feed_pda, find_payment_pda, + find_bond_pda, find_issuance_pda, find_payment_feed_pda, find_payment_pda, instructions::{PurchaseBond, PurchaseBondInstructionArgs}, }; @@ -39,7 +39,6 @@ impl Arber { } let ix = PurchaseBond { - config_account: find_config_pda().0, user_wallet: user_wallet.pubkey(), user_token_account: get_associated_token_address_with_program_id( &user_wallet.pubkey(), @@ -99,7 +98,6 @@ impl Arber { } let ix = PurchaseBond { - config_account: find_config_pda().0, user_wallet: user_wallet.pubkey(), user_token_account: get_associated_token_address_with_program_id( &user_wallet.pubkey(),