Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Updates for tBTC 0.1.5 #115

Merged
merged 8 commits into from
Oct 9, 2019
Merged

Updates for tBTC 0.1.5 #115

merged 8 commits into from
Oct 9, 2019

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Oct 8, 2019

This PR updates the dApp code to reflect the latest changes to tBTC and Keep ECDSA projects:

It contains the latest artifacts of tBTC and Keep ECDSA deployed to the private testnet.

It introduces a workaround for a problem with MetaMask where subscriptions for events are not working correctly.

nkuba added 4 commits October 8, 2019 17:14
We're waiting for confirmations for the token to be ready to be minted.
tBTC is the application/system, TBTC is the token.
tBTC system no longer use KeepBridge contract and doesn't require
passing it's address to DepositFactory. Here we remove the artifact and
all references across the code.
We pulled a reference to TBTCConstants contract which will be used in
the dapp to get tBTC system parameters.
Deposit factory requires a funder bound to be transfered on new deposit
creation. Here we get the required value from TBTCConstants contract and
pass it on call to create new deposit.
@nkuba nkuba force-pushed the updates-recent-tbtc branch from ac58a0c to dca8ed4 Compare October 8, 2019 16:04
@nkuba nkuba marked this pull request as ready for review October 8, 2019 16:04
@nkuba
Copy link
Member Author

nkuba commented Oct 8, 2019

Tested the dApp locally against the system deployed in our private testnet. Deposit funding flow succeded.

@nkuba nkuba requested review from Shadowfiend, liamzebedee and taggartbg and removed request for Shadowfiend and liamzebedee October 8, 2019 16:06
@nkuba nkuba changed the title Updates for tBTC 1.0.5 Updates for tBTC 0.1.5 Oct 8, 2019
nkuba added 3 commits October 9, 2019 12:17
Updated contracts artifacts to latest versions deployed to private
testnet.
Introduced a workaround for a problem with MetaMask version >= 7.1.1
where subscription for emitted events doesn't work correctly. Here we
pull past events in a loop until we find one. This commit should be
reverted when problem on MetaMask is solved.
Added `return` statement before `resolve` promise function call to exit
from the function as soon as we hit this line. Without `return` code in
the function may still be executed.
@nkuba nkuba force-pushed the updates-recent-tbtc branch from dca8ed4 to bf7bca4 Compare October 9, 2019 10:43
Copy link
Contributor

@liamzebedee liamzebedee left a comment

Choose a reason for hiding this comment

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

Tested and works.

@liamzebedee liamzebedee merged commit 2181683 into master Oct 9, 2019
@mhluongo mhluongo deleted the updates-recent-tbtc branch July 15, 2020 12:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants