-
-
Notifications
You must be signed in to change notification settings - Fork 261
feat(cardano): add support for catalyst voting registration #794
feat(cardano): add support for catalyst voting registration #794
Conversation
e6fafaa
to
e4004f2
Compare
PR has been updated to correspond to updates made in trezor/trezor-firmware#1564. @szymonlesisz I've added re-exports for Cardano enums from |
@gabrielKerekes protobuf types are intentionally not exposed to public because of ambiguous names (like
and i dont know which way is better, any suggestions? |
I would prefer the first option - explicit export from "network file". This is also what I tried to do here, notice the exports at the bottom of However, when trying to import While writing this comment I tried one more thing - making the enum |
|
and i've noticed that test against 2-master FW (not released 2.3.7) are failing on Edit: fixed here is that correct? Edit 2: i missed that you are removing this param in this PR :) reverting my changes then |
Good point, I can try to update it tomorrow and if it would be wrong, you could update it then.
So this is resolved then or are the tests still failing? I tried running |
i've temporary narrow this test to fw 2.3.6 and marked it as related to this PR now im going to prepare this enum export and then you can rebase it and use it |
@gabrielKerekes i just found this article about exporting Edit: |
So we still don't have a good solution, right? If not, I could raise the issue internally with our TS people and maybe we would be able to figure something out. |
this needs to be done differently, no typescript magic is required here. Explanation:
i will do it today, dont worry :) |
@gabrielKerekes pls check this PR: #803, especially the second commit. How to test it locally:
javascript:
run it: typescript:
run it: |
Thanks for that PR - I've added a comment regarding the constants and just one small thing, otherwise it looks good and it works. However, sorry, I just need to clarify if I understand this correctly. So even in a TypeScript project importing connect the |
exactly, typescript types were added not so long ago only as a helper (also step forward to migration from flowtype to typescript) and they don't have influence on the runtime code, this is why you get |
Awesome, thanks for the explanation and resolution 👍 Please let me know when #803 will be ready so I can rebase this. |
merged, you can rebase now |
cda6146
to
d7fa169
Compare
Rebased. Should I also squash it at this point? |
@gabrielKerekes did you update protobuf messages using this readme? it's explained how to do it automatically
and yes, you can squash it, but i would like to ask you for split the commits to be more transparent to something like this:
|
No, I didn't update the protobuf messages, I wasn't aware of that README, but I noticed that you would always do some additional work on top of our PRs - so I suppose this is it, right? And sure, I will do that first thing tomorrow together with the splitting of commits. |
exactly, i'm always bumping those messages to be sure that nothing is missing. quick how-to (slightly different from the readme):
and that's it :) |
6e16651
to
195501f
Compare
195501f
to
95126ae
Compare
I've updated the protobuf messages and squashed the commits. If you have already reviewed the code, I've also made one more change during rebasing. I changed the type of |
great, now the only concern left is that |
This shouldn't be a problem since the However it's definitely worth mentioning this in the changelog along with the exported enums - I suppose that is managed by you? Or shall I update it? |
i will update changelog before the release |
I just heard from Yoroi guys and they also don't use
Great, thanks! |
Motivation: Update to support Catalyst voting registration.
metadata
field has been deprecated and replaced withauxiliaryData
- if a client sends inmetadata
an error is thrown telling the client to useauxiliaryData
instead. TheauxiliaryData
field can only be used with updated FW.I had to update the
legacyResults
in the tests to also support failing tests so that the above use-cases could be tested.Depends on trezor/trezor-firmware#1564.
Testing:
yarn test:integration -i cardanoSignTransaction -g -f 2.3.6
passes, also I tested it with the firmware built from the PR referenced above by manually updating the trezor-user-env docker container