Skip to content
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

feat: add HW support for VP delegation #3243

Conversation

szymonmaslowski
Copy link
Contributor

This PR adds support for ledger devices. Trezor is on the way.

}).promise;
if (wallet.isHardwareWallet) {
const [{ id: stakePoolId }] = this.stores.staking.stakePools;
let dlegationData: {
Copy link

@mirceahasegan mirceahasegan Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo. Just nitpicking, it could be ignored 😄

-      let dlegationData: {
+      let delegationData: {

certificates = [
{
certificateType: 'register_reward_account',
rewardAccountPath: ['1852H', '1815H', '0H', '2', '0'],
Copy link

@mirceahasegan mirceahasegan Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry. I am unfamiliar with Daedalus. Is it a single account wallet? (i.e. account is always '0H')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's correct. Daedalus is a single-account wallet.

@szymonmaslowski szymonmaslowski force-pushed the feat/LW-11519-governance-voting-tab-hw branch from 081f4ee to f55834d Compare November 27, 2024 13:44
@szymonmaslowski szymonmaslowski force-pushed the feat/LW-11519-governance-voting-tab-hw branch from f55834d to 4d719d6 Compare November 27, 2024 15:19
@szymonmaslowski szymonmaslowski changed the title feat: add ledger support for VP delegation feat: add HW support for VP delegation Nov 27, 2024
@szymonmaslowski szymonmaslowski merged commit b4cdb15 into feat/LW-11519-governance-voting-tab Nov 27, 2024
3 of 5 checks passed
@szymonmaslowski szymonmaslowski deleted the feat/LW-11519-governance-voting-tab-hw branch November 27, 2024 15:27
DominikGuzei added a commit that referenced this pull request Nov 27, 2024
* feat: Add navigation with governance to voting page [LW-11519]

* feat: add delegate votes API call and integrate it with mobx voting store

* feat: Add governance voting form [LW-11519]

* feat: voting power delegation confirmation dialog

* chore: Add changelog entry [LW-11519]

* feat: useconstructTx endpoint to calculate fee and for HWs, fix validation in form, improve styling

* feat: Recognize and style voting transactions [LW-11519]

* feat: redirect the user to the wallet of coice after successfull VP delegation

* feat: add i18n to confirmation dialog and handle API error cases

* feat: Track successfully casted votes [LW-11519]

* feat: add final translations [LW-11519]

* fix: Catch send error for staking conway wallets which have not registered voting rights yet [LW-11518]

* feat: add HW support for VP delegation (#3243)

* feat: add ledger support for VP delegation

* feat: add trezor support for VP delegation

---------

Signed-off-by: Dominik Guzei <dominik.guzei@gmail.com>
Co-authored-by: Szymon Masłowski <szymon.maslowski@iohk.io>
Co-authored-by: Przemysław Włodek <przem.wlodek.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants