Open
Description
Currently we have two separate modules for reading state from cosmos sdk based chains:
https://github.com/unionlabs/union/tree/5f9b75ea6e035937a082097a33370783d7447ada/voyager/modules/state/cosmos-sdk
https://github.com/unionlabs/union/tree/5f9b75ea6e035937a082097a33370783d7447ada/voyager/modules/state/cosmos-sdk-union
These should be merged into one, switching the querying logic based on
union/lib/voyager-message/src/module.rs
Line 29 in 5f9b75e
The implementation should use a pattern similar to this:
union/voyager/modules/client/state-lens/ics23-smt/src/main.rs
Lines 35 to 68 in 59e0f77
using an enum like this:
pub enum SupportedIbcSpec {
IbcUnion,
IbcClassic,
}
and then match on this value in every method.