From 24a7e02f4fb5009dd50ec593ce95781404f2a234 Mon Sep 17 00:00:00 2001 From: Renato Dinhani <101204870+dinhani-cw@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:57:25 -0300 Subject: [PATCH] enha: more rpc-client categorization (#1542) --- src/eth/rpc/rpc_client_app.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/eth/rpc/rpc_client_app.rs b/src/eth/rpc/rpc_client_app.rs index 95ab3a06d..ccd416bb1 100644 --- a/src/eth/rpc/rpc_client_app.rs +++ b/src/eth/rpc/rpc_client_app.rs @@ -30,14 +30,35 @@ impl RpcClientApp { return RpcClientApp::Unknown; } let name = match name { + // Stratus + v if v.starts_with("stratus") => { + let v = v.trim_start_matches("stratus"); + format!("stratus::{}", v) + } + + // Acquiring + v if v == "authorizer" => format!("acquiring::{}", v), + + // Banking v if v.starts_with("banking") || v.starts_with("balance") => format!("banking::{}", v), + + // Issuing v if v.starts_with("issuing") || v.starts_with("infinitecard") => format!("issuing::{}", v), + + // Lending v if v.starts_with("lending") => format!("lending::{}", v), + + // Infra v if v == "blockscout" || v == "golani" || v == "tx-replayer" => format!("infra::{}", v), + + // User v if v.starts_with("user-") => { let v = v.trim_start_matches("user-"); format!("user::{}", v) } + v if v == "insomnia" => format!("user::{}", v), + + // Other v => format!("other::{}", v), }; RpcClientApp::Identified(name)