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

Bitcoin withdrawals pt3 #742

Merged
merged 9 commits into from
Jan 15, 2025
Merged

Bitcoin withdrawals pt3 #742

merged 9 commits into from
Jan 15, 2025

Conversation

gndelia
Copy link
Contributor

@gndelia gndelia commented Jan 13, 2025

Description

PR Follow up of #740

This PR focuses on adding the workers who watch the past bitcoin withdrawals for the status change (for example: if a withdrawal wasn't completed, it should after some time specified by the vault, be marked as ready to be challenged to restore the hemi bitcoins). This also includes some UI changes in the Transaction History page

Description per commit

  • 4664d63 Implements the appropriate status and CTA for bitcoin withdrawals (updatin the prior implementation)

  • 92a2970 prevents getEvmTransactionReceipt to throw if the receipt was not found, returning null instead. There are some scenarios where we need this to be handled like this

  • 68d89dd moves a function to a common file as it is needed in a few different files (naming is hard)

  • 144976f adds a few small tests for isDeposit

  • 5412441 Makes a small update to the chain configuration for syncing.

  • 8061476 Adds a minor improvement on the typings for enabling logs for debug in workers

  • 1859fce adds a function that, given a withdrawal, gets the state (And any missing information, if any). This is used to watch bitcoin withdrawals by polling. Tests added too.

  • 5f194eb Uses the function in the commit above to create a worker whenever there are withdrawals that need to be tracked and tracks them.

  • Lastly, cae161e fixes the conflicts after rebasing with Added sorting and filters to Transaction History #741

Screenshots

See #740

image

Related issue(s)

Related #738
Related #345

Checklist

  • Manual testing passed.
  • Automated tests added, or N/A.
  • Documentation updated, or N/A.
  • Environment variables set in CI, or N/A.

@gndelia gndelia self-assigned this Jan 13, 2025
Base automatically changed from bitcoin-withdrawals-pt2 to main January 14, 2025 18:20
@gndelia gndelia marked this pull request as ready for review January 14, 2025 18:27
@gndelia gndelia requested a review from gabmontes as a code owner January 14, 2025 18:27
@gndelia gndelia force-pushed the bitcoin-withdrawals-pt3 branch from 0d169c9 to 51cdca7 Compare January 14, 2025 18:33
gabmontes
gabmontes previously approved these changes Jan 15, 2025
Copy link
Contributor

@gabmontes gabmontes left a comment

Choose a reason for hiding this comment

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

LGTM

@gndelia gndelia dismissed stale reviews from gabmontes and alvarengathomas via 5f194eb January 15, 2025 15:52
@gndelia gndelia force-pushed the bitcoin-withdrawals-pt3 branch from 51cdca7 to 5f194eb Compare January 15, 2025 15:52
@gndelia gndelia merged commit 0e9eb38 into main Jan 15, 2025
6 checks passed
@gndelia gndelia deleted the bitcoin-withdrawals-pt3 branch January 15, 2025 18:06
@gndelia gndelia mentioned this pull request Jan 16, 2025
4 tasks
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.

4 participants