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

Update system tests #647

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Update system tests #647

merged 3 commits into from
Jul 12, 2023

Conversation

r-czajkowski
Copy link
Contributor

@r-czajkowski r-czajkowski commented Jul 7, 2023

Request the redemption via the depositorBridgeHandle.requestRedemption
directly instead of requestRedemption function. After refactoring in
#632, the requestRedemption requests redemption via tBTC token
contract. In the current deposit scenario, we do not pass the vault
address so the depositor does not actually have any tBTC tokens so we
can't request redemption via requestRedemption fn with changes from
#632. We are going to add a new scenario where we pass the TBTC vault
address to the revealDeposit function to test the new mechanism of
requesting the redemption via tBTC token contract in follow-up work.

@r-czajkowski r-czajkowski requested a review from pdyraga July 7, 2023 07:00
@pdyraga
Copy link
Member

pdyraga commented Jul 10, 2023

Looks like we have a system test failure: https://github.com/keep-network/tbtc-v2/actions/runs/5484145856

@r-czajkowski
Copy link
Contributor Author

Looks like we have a system test failure: https://github.com/keep-network/tbtc-v2/actions/runs/5484145856

I ran this workflow before bumping the tbtc-v2.ts lib. Now, looks like we have an issue with the Electrum testnet server.

Request the redemption via the `depositorBridgeHandle.requestRedemption`
directly instead of  `requestRedemption` function. After refactoring in
`#632`, the `requestRedemption` requests redemption via tBTC token
contract. In the current deposit scenario, we do not pass the vault
address so the `depositor` does not actually have any tBTC tokens so we
can't request redemption via `requestRedemption` fn with changes from
`#632`. We are going to add a new scenario where we pass the TBTC vault
address to the `revealDeposit` function to test the new mechanism of
requesting the redemption via tBTC token contract in follow-up work.
Copy link
Member

@lukasz-zimnoch lukasz-zimnoch left a comment

Choose a reason for hiding this comment

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

@lukasz-zimnoch lukasz-zimnoch merged commit 55e2735 into main Jul 12, 2023
@lukasz-zimnoch lukasz-zimnoch deleted the update-system-test branch July 12, 2023 12:17
dimpar added a commit that referenced this pull request Aug 23, 2023
This PR adds additional system tests scenario in which deposit is
revealed with a vault.
This PR is a follow-up to
#647.

In the already existing scenario, the depositor revealed their deposit
without specifying the vault.
As a result the depositor had their blance increased in the Bank.

In the new scenario the depositor reveals their deposit and provides the
vault address.
As a result TBTC tokens are minted for the depositor.
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.

3 participants