-
Notifications
You must be signed in to change notification settings - Fork 146
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
HydraDX -> Hydration rebrand #1923
Conversation
What is the key in the map taken from? Is it rpc.chain? If so should we add new chain to support the transition when we change this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test needs to be resolved. I am confused about your question can you link it to a specific line in the code.
I am talking all of the lines including hydradx as a key to something common/packages/hw-ledger/src/defaults.ts Line 21 in 37fa211
Is this all mapped first from the genesis hash to the I was wondering if it would be better to keep the hydradx as well as hydration for some transition period but then I don't know how all the consumers would handle the conflicts. Can you advise the best route forward here? I would like to get at least display names correct with breaking the least possible amount of things. |
What do you suggest here? It seems that there is a legacy ledger-substrate app which was never released for HydraDX but somehow the |
Hey sorry for the delay, things have been hectic and finally cooled down. In terms of the new
That being said - For the old common/packages/hw-ledger/src/Ledger.ts Line 134 in 7ef452b
For the extension - yes. For other apps I don't know. |
Question: What is the chain name that the hydra is now returning? I think on a branding sense in apps, we can totally change it to the new brand. I don't think that will have much affect. Most of the internals in apps, and the extension especially with ledger will use what is received by the chain or what is within these config files to confirm the integrity on connection. |
For the test, i believe you can adjust the naming here: It's a little annoying because it's another repo so apologies, but that will fix the tests. I would also test this by adjusting the values in the node_modules for the @substrate/ss58-registry package to ensure there are no mistakes and the tests pass before getting the PR merged in the other repo. |
Maybe I should rename display name here and duplicate this entry with "hydration" network key to be sure we don't break something? |
Makes sense to me! Just to be clear as well, the naming in the default files that contain info like the ledger slip44 or the genesis should reflect the chain name that is being returned by the chain itself. Little tip as well: Also if you would like to actually see what the effects would look like in apps or the extension etc - you can run |
Also no need to adjust the ss58 json file in |
@TarikGul can you please rerun the tests? The ss58 has been updated |
@jak-pan Thanks for pinging me, in order for the tests to pass you will need to pull in master. I updated the ss58-registry for you. |
Looks like it still failed but https://github.com/paritytech/ss58-registry/blob/0e88f87b185cdee829f624b88d3cfc47eaaf2161/ss58-registry.json#L547 this is updated in master |
Yea looks like we just need to patch that test since it is resolving the the value of the key |
packages/hw-ledger/src/defaults.ts
Outdated
@@ -18,7 +18,7 @@ export const ledgerApps: Record<string, string> = { | |||
enjin: 'Enjin', | |||
equilibrium: 'Equilibrium', | |||
genshiro: 'Genshiro', | |||
hydradx: 'HydraDX', | |||
hydradx: 'Hydration', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should actually revert this to HydraDX
, and write a comment above it saying this has been rebranded to Hydration
but because Ledger Supported Apps still has HydraDx
as the name, the value will remain as HydraDX
. I think this is okay because the following has been updated in the ss58-registry with the correct naming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our Ledger app was never released. Or is this something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is anything released it should be also renamed in ledger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I don't know how much that actually matters for the generic app, I would assume nothing at all actually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if you want to cross all your T's and dot all your i's it might be worth updating it in the ledger app as well. In the meantime I think it would be totally okay to write an exception in the test that caters to "Hydration"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah ok this looks like the support repo for the old "app" that was never released. I think this can safely be ignored. I'll update the test to pass.
@jak-pan Comment above which I think should solve this! |
Worked :) |
Okay so now that the ss58-registry is updated - we can move focus onto Apps now. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Companion polkadot-js/apps#10669