-
-
Notifications
You must be signed in to change notification settings - Fork 261
Cardano Shelley Update 1/3 #623
Cardano Shelley Update 1/3 #623
Conversation
The checks are failing due to old protobuf messages not having the new properties. As I have mentioned, I am not sure how to update them correctly. |
Maybe rebase on current develop please. It should contain latest protobuf messages. |
The messages I'm missing are the ones I am updating in this Trezor FW PR which has not yet been merged, so I'm not sure rebasing would help. |
important point: can we safely drop fields from protobufs? won't that cause compatibility issues? but wanted to check this |
Hi guys, do you think you could take a look at this draft of PR number 2 in our fork? I'm struggling with the nested types and I am not sure about the way I'm dealing with them in the code. I've only so far done However, I am not sure about the correctness of the code, since e.g |
Could you please let us know how we'll go about reviewing/merging this? Or what the next steps are? I've almost got the 2nd PR ready and the 3rd one will hopefully come shortly after. I can't create the next PRs without having a branch to PR against. |
I've got both the 2nd PR and the 3rd PR ready now. I can't move them to this repo, since they're based on this PR. It would probably also make sense to merge at least this and the 2nd PR into one PR since the Trezor FW August release will contain changes, which aren't compatible with this PR, but require the 2nd PR. The 3rd PR will maybe also be included in the August release, but that is not yet confirmed. I'll be waiting for instructions on what to do next. |
i'm on it, i've just created a branch with new protobuf messages and now i'm trying to run and debug your PR. |
@gabrielKerekes I'm pretty sure that its not possible :) It's failing here: you are sending So the first thing, those params needs to be passed to connect in some additional field ( EDIT: |
Oh, I suppose you are testing this PR against the Trezor release branch? Because this PR is paired with the first Trezor FW PR which didn't have |
it couldn't be merged into develop before firmware release, otherwise it will break entire Cardano implementation (it will NOT work with older FW and there is no new FW released yet) whats the point of merging this if it's not working? :) so should i test part 2 instead? |
The point was to have both repos in sync - although that didn't really work out. However, as I mentioned in an earlier comment, since Trezor FW PR1 and PR2 have been merged and will definitely be released together, we can close this PR and deal only with the 2nd one. |
@szymonlesisz the old FW is not working anyways because Cardano hard-forked 2 days ago. We need this to be released together with FW release on 5th August or even better before so we can test the wallet integration properly. |
ok, sorry was out of the pictrure with this cardano fork. so im skipping this and going straight to part 3. right? |
That depends on whether FW Part 3 will be squeezed into the release. But perhaps it might not be too much of a problem even if Connect has all 3 parts and FW has only the first two? |
tbh for me it would be better to have all the code in one PR. im aware that it would be probably a lot of code, but switching between different FW build makes it's harder to test. so could you pls create PR with 2 and 3 combined? |
I've just confirmed that it is present in new FW (freezed) |
I'll create it. I don't have much time though, so I will not combine the commits in any way. |
Combined PR - #638. I'm sorry, but I won't be available until monday, so hopefully you'll be able to do a review of it. |
closing in favour of #639 |
As mentioned earlier in #611, we are updating Cardano to support the new Shelley era.
Since it requires quite a lot of changes we are splitting it to (at least) 3 PRs on Trezor FW. We will do the same with Trezor Connect so they would stay in sync.
Trezor FW Issue
Trezor FW PR 1
I've tried to find all the files that require changes, but I am not sure I found all the places that need to be updated.
I've updated types, methods and tests for both CardanoSignTransaction and CardanoGetAddress. Tests pass and I've also tried running it with an app running on localhost. I've also updated the READMEs, but I will check those once more when this gets approved. (In the READMEs I mention a mainnet protocol magic value of 0. We don't know what this value will be yet, so this will be updated when we find out.)
I do have some questions regarding what should be updated:
messages-cardano.proto
from Trezor FW repo)cardanoSignTransaction.spec.js
andtests/__fixtures__/cardanoSignTransaction.js
have to be updated? Or is the.spec.js
osbolete now? (I'm going to be doing a lot more changes in the next PR and it would be simpler to edit just one - but it's not a big deal)src/ts/types/networks/cardano.d.ts
andsrc/js/types/networks/cardano.js
are very similar and I was wondering if you edit them manually or not)Please let me know if I have missed something major. Otherwise I'll be waiting for a normal review.
As also mentioned in the Trezor FW PR it is possible that some things will change in the following days, but it should only be minor changes.