Closed freak12techno closed 4 months ago
The changes encompass significant updates across various files within the codebase, including structural modifications to configuration, fetching, and RPC handling. Notably, new interfaces, structs, and methods are introduced for handling and validating configurations, querying, and managing consumer chains. The transformation enhances functionality and improves the flexibility of configurations and RPC interactions, notably shifting from tendermint.RPC
to tendermint.RPCWithConsumers
.
Files / Groups | Change Summary |
---|---|
.golangci.yml |
Adjusted linter configurations, enabling/disabling specific linters. |
pkg/app.go |
Modified App struct's RPCs map to use tendermint.RPCWithConsumers . |
pkg/config/chain.go , pkg/config/config.go |
Enhanced Chain struct with validation methods, updated fields and default values, added ConsumerChain . |
New Config Files (various) | Added chain_info.go , consumer_chain.go , denom_info.go , query.go , tracing.go with new structs/methods. |
Multiple Fetcher Files (pkg/fetchers/... ) |
Updated fetchers to use tendermint.RPCWithConsumers and revised method signatures and fields. |
Generator Files (pkg/generators/... ) |
Updated generators to handle slices of pointers to config.Chain rather than config.Chain directly. |
pkg/tendermint/rpc.go , pkg/tendermint/rpc_with_consumers.go , pkg/types/tendermint.go |
Revised RPC struct and added new RPCWithConsumers struct, updated method implementations and function signatures, added AssignedKeyResponse struct. |
🌈 In the realm where code does play,
Chains and queries find their way. 🌐
A rabbit hops, with bytes it weaves,
RPCs dance, and balance fetchers breathe!
Configs validated, warnings shine,
In this enchanted code define. ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
GetConsumerAssignedKey
method to the RPC struct for key management.Bug Fixes
tendermint.RPCWithConsumers
.Enhancements
RPC
struct to includeChainName
,ChainHost
, andChainQueries
for better context management.