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: ckBTC get_withdrawal_account and retrieve_btc #292

Merged
merged 10 commits into from
Feb 15, 2023

Conversation

peterpeterparker
Copy link
Member

Motivation

Implement and propose the two functions required to convert ckBTC to BTC.

Changes

  • implement get_withdrawal_account and retrieve_btc

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.

A question on the return value of one of the methods.

packages/ckbtc/src/minter.canister.ts Show resolved Hide resolved
@peterpeterparker peterpeterparker merged commit cb101eb into main Feb 15, 2023
@peterpeterparker peterpeterparker deleted the feat/get-withdrawal-retrieve branch February 15, 2023 12:13
peterpeterparker added a commit to dfinity/nns-dapp that referenced this pull request Feb 20, 2023
# Motivation

This PR introduces the JS Api and Services layers to perform a conversion of ckBTC to BTC.

# Note

These services and API are provided without UI changes in this PR.

# PRs

- [x] dfinity/ic-js#292

# Changes

- implements APIs for `get_withdrawal_account` and `retrieve_btc`
- implement service logic that converts ckBTC to BTC
- create an interface `IcrcTransferTokensUserParams` for our internal call to transfer tokens function
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.

None yet

2 participants