Skip to content

Commit

Permalink
enha: more rpc-client categorization (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhani-cw authored Jul 25, 2024
1 parent bb21e3a commit 24a7e02
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/eth/rpc/rpc_client_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 24a7e02

Please sign in to comment.