This guide provides practical examples for interacting with the Revenue module, focusing on monitoring validator performance, treasury management, and parameter updates.
CosmWasm contracts can query validator performance through the Neutron bindings:
Copy
Ask AI
// Set up the messagelet msg = QueryRequest::Custom(RevenueQuery::ValidatorStats { val_oper_address: "neutronvaloper1...".to_string() });// Send the querylet result: ValidatorStatsResponse = deps.querier.query(&msg)?;