-
Notifications
You must be signed in to change notification settings - Fork 33
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
Need an upgrade for ibc-go proto #33
Comments
Hello, As you can see here, the memo field is missing:
Thank you! |
working on this now, will be using git submodules to get the latest. Had to make some updates to telescope for some new syntax that is popping up in here. |
tracking #35 |
some amino messages have changed, not sure if this is the correct version of the SDK - "type": "cosmos-sdk/MsgVote",
+ "type": "cosmos-sdk/v1/MsgVote", - "type": "cosmos-sdk/MsgDeposit",
+ "type": "cosmos-sdk/v1/MsgDeposit", - "type": "cosmos-sdk/MsgWithdrawValidatorCommission",
+ "type": "cosmos-sdk/MsgWithdrawValCommission", |
The new amino names seem correct. It matches both the osmosis sdk fork and upstream: This seems to have been introduced in November (cosmos/cosmos-sdk#13501) was the previous generation of osmojs older than that? |
ok cool, I've upgraded and published |
Thank you! But it seems that "memo" fields are still missing, or am I missing something? |
@DavideSegullo the memo seems to be there: https://github.com/osmosis-labs/osmojs/blob/osmojs%4015.2.0/packages/osmojs/src/codegen/ibc/applications/transfer/v2/packet.ts#L22 Are you using 15.2.0? how are you using it? |
Oh sorry, the linter probably hadn't updated and was still showing me the old type definitions, now it seems good, I'll give it a try! |
Everything seems okay to me, I even tested with transfer messages using the memo! |
Yup, thank you, guys! 🙏 |
We only saw that amino is not working with this message: it seems that the encoded message does not have the memo. But we do not know if it is an issue due to this implementation. |
My fault 😬 amino types are working. The signer called by I hope this could help! |
There seems to be a misalignment between the latest cosmos proto and the osmojs ones for the IBC transactions.
As you can see, the proto file available on the
cosmos
repo in theibc-go
folder includes the info for the IBC memo parameter:https://github.com/cosmos/ibc-go/blob/10324f5bf6840892cd7bba8a40231fc52a8b1745/proto/ibc/applications/transfer/v2/packet.proto#L5-L21
As you can see here:
osmojs/packages/osmojs/proto/ibc/applications/transfer/v2/packet.proto
Lines 5 to 19 in 59d389d
osmojs seems to be not yet updated 😬, nor at its last version:
osmojs/packages/osmojs/proto/ibc/applications/transfer/v2/packet.proto
Lines 5 to 19 in 59d389d
On the other hand, it seems that cosmjs already provide such a feature:
https://github.com/confio/cosmjs-types/blob/6e3448a046b86f4448d577a73edf8f2229e8ad61/src/ibc/applications/transfer/v2/packet.ts#L11-L26
Moreover, could you please construct the
MessageComposer
as you did for the IBC transfer message?The text was updated successfully, but these errors were encountered: