From 7f8f240da1025e4eec19f5d4c757ec10bbb88191 Mon Sep 17 00:00:00 2001 From: wood Date: Mon, 7 Jul 2025 01:19:12 +0800 Subject: [PATCH] update define --- src/swqos/define.rs | 51 ++++++++++++++++++++++++++++++++++----------- src/swqos/mod.rs | 7 ++++++- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/swqos/define.rs b/src/swqos/define.rs index 12ed37c..65bf5af 100755 --- a/src/swqos/define.rs +++ b/src/swqos/define.rs @@ -1,25 +1,52 @@ -pub const SWQOS_ENDPOINTS_JITO: [&str; 3] = [ - "https://ny.mainnet.block-engine.jito.wtf/api/v1/bundles", - "https://frankfurt.mainnet.block-engine.jito.wtf/api/v1/bundles", - "https://ams.block-engine.jito.wtf/api/v1/bundles", +// 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; 5] = [ +pub const SWQOS_ENDPOINTS_NEXTBLOCK: [&str; 8] = [ "http://ny.nextblock.io", "http://fra.nextblock.io", "http://slc.nextblock.io", - "http://tokyo.nextblock.io", - "http://london.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; 3] = [ - "http://ny1.0slot.trade", - "http://de1.0slot.trade", - "http://ams1.0slot.trade", +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; 3] = [ +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://ams1.nozomi.temporal.xyz", + "http://ams1.nozomi.temporal.xyz", + "http://ams1.nozomi.temporal.xyz", + "http://fra2.nozomi.temporal.xyz", ]; \ No newline at end of file diff --git a/src/swqos/mod.rs b/src/swqos/mod.rs index 98cfb3b..f486ff7 100755 --- a/src/swqos/mod.rs +++ b/src/swqos/mod.rs @@ -60,8 +60,13 @@ pub trait SwqosClientTrait { #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum SwqosRegion { NewYork, - Amsterdam, Frankfurt, + Amsterdam, + SLC, + Tokyo, + London, + LosAngeles, + Default, } #[derive(Debug, Clone)]