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

Ledger support for unbond and withdraw #1158

Merged
merged 7 commits into from
Feb 2, 2024
Merged

Conversation

bobo-k2
Copy link
Contributor

@bobo-k2 bobo-k2 commented Jan 29, 2024

Pull Request Summary
Support for ledged users to unbond and withdraw their tokens. @Kahonnohak please update text.
image

Warning for Ledger native users
image

Check list

  • contains breaking changes
  • adds new feature
  • modifies existing feature (bug fix or improvements)
  • relies on other tasks
  • documentation changes
  • tested on mobile devices

Copy link

github-actions bot commented Jan 29, 2024

Visit the preview URL for this PR (updated for commit 9911966):

https://astar-apps--pr1158-feat-staking-v3-ledg-k45yelgl.web.app

(expires Thu, 08 Feb 2024 14:32:52 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db

@bobo-k2 bobo-k2 marked this pull request as ready for review January 29, 2024 16:06
src/i18n/en-US/index.ts Outdated Show resolved Hide resolved
@Kahonnohak
Copy link
Contributor

Hi @bobo-k2 for the UI message

How about message below (took same sentence from the docs) :
Your tokens are locked in dAppStaking V2. Please unbond and withdraw your tokens. dApp Staking V3 is temporally unavailable for those Ledger Astar Native App users, please move your funds to a soft wallet or a Ledger EVM account to be able to participate in dApp staking. (More information)

@bobo-k2
Copy link
Contributor Author

bobo-k2 commented Jan 30, 2024

Hi @bobo-k2 for the UI message

Updated in 3b5d7db

Copy link
Member

@impelcrypto impelcrypto left a comment

Choose a reason for hiding this comment

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

LGTM, please check my comments

eventAggregator.publish(
new ExtrinsicStatusMessage({
success: false,
message: 'Ledger is not supported on this network.',
Copy link
Member

Choose a reason for hiding this comment

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

Let's use i18 here

{{ $t('dappStaking.migrationSupport.yourTokensAreLocked') }}
{{ $t('stakingV3.migrationSupport.yourTokensAreLocked') }}
(<a
href="https://docs.astar.network/docs/learn/dapp-staking/dapp-staking-faq/#q-i-am-a-leger-astar-native-app-user-what-do-i-need-to-do"
Copy link
Member

Choose a reason for hiding this comment

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

Let's import the url from docsUrl at src/links.index

Copy link
Contributor

@Kahonnohak Kahonnohak left a comment

Choose a reason for hiding this comment

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

LGTM!

@bobo-k2
Copy link
Contributor Author

bobo-k2 commented Feb 1, 2024

LGTM, please check my comments

Thanks, a lot. The first think you commented was bug. I am not sure why I made that change. Fixed in d6711a6

@bobo-k2 bobo-k2 merged commit 04c5624 into main Feb 2, 2024
6 of 7 checks passed
@bobo-k2 bobo-k2 deleted the feat/staking-v3-ledger-native branch February 2, 2024 07:34
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.

5 participants