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

Add retrieveBtcStatusV2ByAccount to ckbtc canister #503

Merged
merged 6 commits into from
Dec 14, 2023

Conversation

dskloetd
Copy link
Collaborator

Motivation

Changes

I want to use this to display BTC withdrawal transactions in nns-dapp as pending or failed when appropriate.

Tests

Unit tests added.
Tested manually in an nns-dapp branch.

Todos

  • Add entry to changelog (if necessary).

Copy link
Contributor

github-actions bot commented Dec 14, 2023

size-limit report 📦

Path Size
@dfinity/ckbtc 7.12 KB (+0.68% 🔺)
@dfinity/cmc 1.01 KB (0%)
@dfinity/ledger-icrc 2.93 KB (0%)
@dfinity/ledger-icp 14.95 KB (0%)
@dfinity/nns 34.58 KB (0%)
@dfinity/nns-proto 76.42 KB (0%)
@dfinity/sns 15.15 KB (0%)
@dfinity/utils 4.37 KB (0%)
@dfinity/ic-management 1.93 KB (0%)

@dskloetd dskloetd marked this pull request as ready for review December 14, 2023 08:41
Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

LGTM! Minor comment

* Returns the status of all BTC withdrawals for the user's main account.
*
* @param {bigint} transactionId The ID of the corresponding burn transaction.
* @param {boolean} certified query or update call
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add the return type and a short explanation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@dskloetd dskloetd enabled auto-merge (squash) December 14, 2023 09:24
@dskloetd dskloetd merged commit 493b01c into main Dec 14, 2023
11 checks passed
@dskloetd dskloetd deleted the kloet/retrieveBtcStatusV2ByAccount branch December 14, 2023 09:26
@dskloetd dskloetd mentioned this pull request Dec 14, 2023
1 task
github-merge-queue bot pushed a commit to dfinity/nns-dapp that referenced this pull request Dec 14, 2023
# Motivation

Use `retrieveBtcStatusV2ByAccount` added in
dfinity/ic-js#503

# Changes

Ran `npm run upgrade:next`

# Tests

Manually tested in a separate branch.

# Todos

- [ ] Add entry to changelog (if necessary).
not necessary
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