remove define

This commit is contained in:
wood
2025-07-07 01:30:57 +08:00
parent 0ca391ebe2
commit 9d30c5e9ad
3 changed files with 54 additions and 55 deletions
+53
View File
@@ -14,6 +14,59 @@ use base64::engine::general_purpose::{self, STANDARD};
use reqwest::Client;
use solana_sdk::transaction::VersionedTransaction;
// NewYork,
// Frankfurt,
// Amsterdam,
// SLC,
// Tokyo,
// London,
// LosAngeles,
// Default,
pub const SWQOS_ENDPOINTS_JITO: [&str; 8] = [
"https://ny.mainnet.block-engine.jito.wtf",
"https://frankfurt.mainnet.block-engine.jito.wtf",
"https://ams.block-engine.jito.wtf",
"https://slc.mainnet.block-engine.jito.wtf",
"https://tokyo.mainnet.block-engine.jito.wtf",
"https://london.mainnet.block-engine.jito.wtf",
"https://ny.mainnet.block-engine.jito.wtf",
"https://mainnet.block-engine.jito.wtf",
];
pub const SWQOS_ENDPOINTS_NEXTBLOCK: [&str; 8] = [
"http://ny.nextblock.io",
"http://fra.nextblock.io",
"http://slc.nextblock.io",
"http://slc.nextblock.io",
"http://tokyo.nextblock.io",
"http://london.nextblock.io",
"http://ny.nextblock.io",
"http://fra.nextblock.io",
];
pub const SWQOS_ENDPOINTS_ZERO_SLOT: [&str; 8] = [
"http://ny.0slot.trade",
"http://de.0slot.trade",
"http://ams.0slot.trade",
"http://ams.0slot.trade",
"http://jp.0slot.trade",
"http://jp.0slot.trade",
"http://la.0slot.trade",
"http://de.0slot.trade",
];
pub const SWQOS_ENDPOINTS_TEMPORAL: [&str; 8] = [
"http://ewr1.nozomi.temporal.xyz",
"http://fra2.nozomi.temporal.xyz",
"http://ams1.nozomi.temporal.xyz",
"http://ams1.nozomi.temporal.xyz",
"http://tyo1.nozomi.temporal.xyz",
"http://sgp1.nozomi.temporal.xyz",
"http://pit1.nozomi.temporal.xyz",
"http://fra2.nozomi.temporal.xyz",
];
pub trait FormatBase64VersionedTransaction {
fn to_base64_string(&self) -> String;
}