forked from Near-Bridge-Lab/btc-bridge
-
Notifications
You must be signed in to change notification settings - Fork 3
Support BTC refund flow #28
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
Open
olga24912
wants to merge
52
commits into
omni-main
Choose a base branch
from
btc_refund
base: omni-main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
fa6f5ec
first draft
olga24912 eb63441
add standard refund diagram
olga24912 b5d9ed1
add refund requests tests
olga24912 edf58ef
add fail diagram
olga24912 b2b65ee
add refund tests
olga24912 bc73080
add psbt for refund
olga24912 3113f71
test already verify deposit
olga24912 c2a2cc9
fix tests
olga24912 211cfa0
fix tests: execute refund by user
olga24912 c0ca652
fix execute refund
olga24912 71ae63b
small fixes
olga24912 f8324d4
add no withdraw flow
olga24912 106268e
add check for no verify_withdraw for refund
olga24912 8f4f045
add verify_refund
olga24912 bc3ae0b
test race deposit flow
olga24912 e1fd99e
add tests refund after deposit fails
olga24912 1753f3c
add tests refund after deposit fails
olga24912 8d23beb
tests execute refund
olga24912 99206e4
execute refund test
olga24912 710d7d3
double request flow
olga24912 181b003
change deposit test
olga24912 afaa15c
add safe deposit tests
olga24912 fcb4f46
fix lint
olga24912 252f996
fix lint
olga24912 20a4767
fix CI
olga24912 0620f00
Merge branch 'omni-main' into btc_refund
olga24912 a1122b4
promise-result-checked
olga24912 c294518
fix lint
olga24912 1c9c272
fix tests
olga24912 5339354
add comments to public methods
olga24912 724da78
add option to provide gas fee
olga24912 33a97aa
rename
olga24912 fea99fd
hide refund_timelock_sec for zcash
olga24912 865019b
remove as slice
olga24912 2b6d4b0
use deposit amount for confirmations number
olga24912 f1880ee
reject refund by anyone
olga24912 403ff11
fix burn_amount
olga24912 28397dd
any refund address
olga24912 80027f9
fmt
olga24912 532eb0f
fix tests
olga24912 22d199e
fix comment
olga24912 e764521
reduce refund cost
olga24912 f1f3ed5
fmt
olga24912 fcd4312
remove checks in main function
olga24912 0e25e45
merge setters into one
olga24912 145d317
mark pendingBurn as unreacable for refund
olga24912 7099815
check update only one config field
olga24912 751c9c3
skip time check for DAO and Operator
olga24912 9545dbf
lint
olga24912 c2dfa1b
move check Role in execute refund
olga24912 0571333
new role RefundOperator
olga24912 4e71bbd
fmt
olga24912 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.