-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to resolve type URL /osmosis.gamm.v1beta1.MsgCreatePool #202
Comments
Looks like we are missing a few Gamm msg types. Will add them in based on this doc: |
Ok, we were only missing 1 msg from the doc above, and it wasn't "/osmosis.gamm.v1beta1.MsgCreatePool" I wil add "/osmosis.gamm.v1beta1.MsgCreatePool" as well, and I believe it is an older version of the "MsgCreateBalancerPool" msg that now exists. |
Here is the block we are having issues with: https://www.mintscan.io/osmosis/blocks/id/2697048 |
So it looks like the transaction in question just fails.... https://www.mintscan.io/osmosis/txs/F007D9DB5DE0EC7D6F71ED97925349ED1A5B2355628320AD51BDDCC2C32ED1E2 |
Ok, so this error is actually coming from Lens.... It seem like this msg type isn't even valid... not sure how that is possible though... Wondering if we need to make changes to lens so it can fail safer? In other words, if lens encounters a msg it doesn't know how to parse, rather than error out, just log and continue... or something... @KyleMoser might need a hand with this when you have time. |
@davidkonigsberg Sorry, I didn't even see this notification. I'm on a lot of GH repos (will clean up now that I noticed I'm buried with Cosmos repos I don't care about). The only reason I know of that lens would say a message type is invalid, is because the codec for the type isn't registered with lens. If you do a search for ModuleBasics in lens, that is where all of the message types should be registered. BTW, moving this issue to high priority |
@davidkonigsberg @KyleMoser is this still blocked |
@danbryan I havne't had a chance to dig into this more since @KyleMoser responded. I think I already checked to make sure lens had the module registered, but I will need to look again. I will move this ticket from blocked to TODO and will work on it once the other CSV parsers are completed. |
@KyleMoser I am finally looking at this again, and I don't think the issue is as simple as a missing module (although I may be wrong). To me, it looks like an incompatibility between the version of osmosis that created this block, and the version of osmosis that lens is using to decode the message.... although I'm really not sure. Would you have some time to pair on this? |
Looks like others have run into this issue: osmosis-labs/osmosis#1017 |
Looks like they closed it because of this PR: osmosis-labs/osmosis#1066 but that PR doesn’t actually fix it…. I feel like this is just broken…. not sure what we can do here unless we really hack together an alternate version that uses the old code and fails over to that if this doesn’t work…. to me that sounds like go import hell though, and I’m not even sure how I would go about doing it… Changing this ticket backed to blocked.... |
Curious, do we care about failed transactions outside of the fees? |
I don't think so... @KyleMoser ? |
If not, the next question would be, have we encoutered any |
Good question, not sure, I will see if I can find one. |
I have some experience with this one. If you follow the link here that David pointed out above, you will see that the Osmosis devs have changed the name from MsgCreatePool -> MsgCreateBalancerPool. What this does is break the chain's ability to decode old message types since type names are used in the process of decoding backend state to generate the proper message type. Essentially, since Osmosis deprecated the old type, the current version of Osmosis will never be able to properly decode its own state to return to us. Since we use the current version of Osmosis in Lens to decode the messages, this breaks. Either Osmosis will need to come to a conclusion to resolve this issue, or we will need to explore alternative methods of getting the message into the proper type. |
Can we import a map of osmosis versions to block-heights and make sure we are using the version that was used to create the block? |
In lens we just need to make a folder and put the old type in the folder.
Then register the type the same way all other types get registered (look at
ModuleBasics in lens to follow the flow)
…On Mon, Feb 27, 2023, 9:31 PM pharr117 ***@***.***> wrote:
I have some experience with this one. If you follow the link here
<osmosis-labs/osmosis#1017> that David pointed
out above, you will see that the Osmosis devs have changed the name from
MsgCreatePool -> MsgCreateBalancerPool.
What this does is break the chain's ability to decode old message types
since type names are used in the process of decoding backend state to
generate the proper message type.
Essentially, since Osmosis deprecated the old type, the current version of
Osmosis will never be able to properly decode its own state to return to
us. Since we use the current version of Osmosis in Lens to decode the
messages, this breaks.
Either Osmosis will need to come to a conclusion to resolve this issue, or
we will need to explore alternative methods of getting the message into the
proper type.
—
Reply to this email directly, view it on GitHub
<#202 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMM5HMXKAKHNIE2BXSNPC3WZVPP3ANCNFSM6AAAAAATNJVJWY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Chatted about this in the |
march 15th, @KyleMoser said
|
The indexer is implemented correctly (I believe), but the CSV parser needs work still. |
@pharr117 mind checking if this one can be closed out? |
Just reran the indexer on this block and it succeeds, closing. |
I got this error
with this compose file.
The text was updated successfully, but these errors were encountered: