You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add the ability to query for gen txs from auth's rest. However, trying to decode into genutils.GenesisState causes an import cycle since all the files/types lie at the top level of the module.
Proposal
There is no keeper in this module, so I am not sure how this module will vary from the module spec. Maybe it follows everything, but just doesn't have an internal keeper folder?
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
I started this refactor on #4757. Although I don't know what's the import cycle you mentioned. Can you provide more context so that I can get the refactor to solve that issue too?
Yea, so when trying to add querying for gen txs I do the following:
Add ability to query gentxs using endpoint in x/auth/client/rest which calls genutils helper functions
x/genutils calls x/auth/
in module.go of x/auth it calls x/auth/client/rest
The main thing I am doing is, pulling genesis doc from tendermint, decoding the genesis doc using GenesisStateFromGenDoc then getting the genesis state using GetGenesisStateFromAppState. If these functions can't isolated from the dependency on x/auth then I can just implement the decoding, but I need access to the GenesisState type or I'd need to create a mock of it if it can't be isolated from the dependency on x/auth as well.
Summary
Update genutils to latest module spec.
Problem Definition
I am trying to add the ability to query for gen txs from auth's rest. However, trying to decode into
genutils.GenesisState
causes an import cycle since all the files/types lie at the top level of the module.Proposal
There is no keeper in this module, so I am not sure how this module will vary from the module spec. Maybe it follows everything, but just doesn't have an internal keeper folder?
For Admin Use
The text was updated successfully, but these errors were encountered: