CronCats / croncat-rs

A Rust version of the CronCat agent.
GNU Affero General Public License v3.0
19 stars 5 forks source link

Use `cosm_orc` to get agent status using RPC #106

Closed mikedotexe closed 1 year ago

mikedotexe commented 1 year ago

This is the first step towards removing all queries to the CronCat manager contract that use gRPC.

Seeing as finding and setting up a gRPC node is difficult, and since we don't need gRPC signing for queries, this example will hopefully help us move away from gRPC entirely.

We can keep the code that sets up gRPC but let's not require it, and this means the "race" that happens to determine if connections work can be removed.

You can see from the funsies_remove_me_haha block that you can toy around and see the queries working.

codecov-commenter commented 1 year ago

Codecov Report

Merging #106 (84eaae4) into main (400cc9b) will not change coverage. The diff coverage is 0.00%.

@@          Coverage Diff          @@
##            main    #106   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         25      25           
  Lines       1109    1139   +30     
=====================================
- Misses      1109    1139   +30     
Impacted Files Coverage Δ
croncat/src/client/full_client.rs 0.00% <0.00%> (ø)
croncat/src/client/query_client.rs 0.00% <0.00%> (ø)
croncat/src/client/query_handlers/bank_query.rs 0.00% <ø> (ø)
croncat/src/client/query_handlers/wasm_query.rs 0.00% <ø> (ø)
croncat/src/grpc/querier.rs 0.00% <0.00%> (ø)
croncat/src/grpc/service.rs 0.00% <0.00%> (ø)
croncat/src/grpc/signer.rs 0.00% <ø> (ø)
croncat/src/system/mod.rs 0.00% <0.00%> (ø)
croncatd/src/main.rs 0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more