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 live staking data with geo-blocking support #11891

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    7f76045 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f123963 View commit details
    Browse the repository at this point in the history
  3. feat: update stakeSdkProvider to use new stakingApiService

    The stakeSdkProvider component has been updated to use the new stakingApiService from the @metamask/stake-sdk library.
    amitabh94 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    6725584 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    112b24a View commit details
    Browse the repository at this point in the history
  5. feat: add new hooks for staking functionality

    - Added usePooledStakes hook to fetch pooled stakes data from the staking API service
    - Added useStakingChain hook to check if the current chain is supported for staking
    - Added useStakingEligibility hook to fetch staking eligibility data from the staking API service
    - Added useVaultData hook to fetch vault data from the staking API service
    
    These hooks provide the necessary functionality for staking operations and data retrieval in the UI.
    amitabh94 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    acc9cd3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e590c39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fa222f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    998a252 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    308a0ad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    de7c77e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f9402a3 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9facb0b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a97dd45 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e36243c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a0e6eeb View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    06e3b21 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    39a258a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    fb5e82c View commit details
    Browse the repository at this point in the history
  19. feat: create useStakingEarnings hook for calculating staking earnings

    This commit adds a new hook called useStakingEarnings to calculate staking earnings. The hook utilizes the useVaultData, useBalance, and usePooledStakes hooks to fetch necessary data and perform calculations. It calculates the lifetime rewards in ETH and fiat, as well as the estimated annual earnings in ETH and fiat.
    amitabh94 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    b01efbe View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4a475de View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b648ff3 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    c79eea3 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    3d160de View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0904fc1 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f4b131c View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    43efac4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    be16874 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    3d3d7ce View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    7a7cf99 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    999619b View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    83b601a View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    a25906a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    2499275 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    57dc357 View commit details
    Browse the repository at this point in the history