-
Notifications
You must be signed in to change notification settings - Fork 2
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: new command phase1 stake to BTC delegation #90
Merged
+2,238
−1,435
Merged
Changes from 20 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
580adf8
chore: init command draft
RafilxTenfen db1692a
chore: add get tx details from tx hash only
RafilxTenfen d76b933
chore: add initial impl to btc staking from phase 1
RafilxTenfen 7a53e09
Merge branch 'main' of github.com:babylonlabs-io/btc-staker into rafi…
RafilxTenfen ea40b9f
feat: add cli to create babylon create btc delegation from staking tx
RafilxTenfen 0374d0b
chore: add #90 to changelog
RafilxTenfen b41aa7a
chore: add stake command to CLI
RafilxTenfen 90d7a95
fix: lint
RafilxTenfen 0fe2886
chore: move cli and manager to separated file
RafilxTenfen 2021de6
chore: manager split btc data
RafilxTenfen 17ebc5d
chore: split func to generate covenant pk
RafilxTenfen 35ec159
chore: add staking of phase 1 test
RafilxTenfen 81b947b
fix: lint
RafilxTenfen 7c745dd
trytest: stuck at including finality provider to running chain
RafilxTenfen 323cdcf
chore: add last err to debug
RafilxTenfen f57a446
pass json serializable params
KonradStaniec 916d27d
chore: refactory send transaction to phase 1
RafilxTenfen 5dfe472
Merge branch 'rafilx/migrate-stk-to-phase2' of github.com:babylonlabs…
RafilxTenfen 75c02d3
Merge branch 'main' of github.com:babylonlabs-io/btc-staker into rafi…
RafilxTenfen fdc155e
chore: fix comment
RafilxTenfen 15cb74d
chore: address PR comments
RafilxTenfen ffff690
chore: rollback rand
RafilxTenfen 503c8a5
chore: use rand previous created
RafilxTenfen 4e7844f
Merge branch 'main' of github.com:babylonlabs-io/btc-staker into rafi…
RafilxTenfen 86b1da9
chore: add possible responde of BTC delegation to consumer
RafilxTenfen cb95513
chore: try to refactory to receive BTC delegation tx hash
RafilxTenfen 6bea332
chore: moved to use command
RafilxTenfen 0f0e989
chore: add todo
RafilxTenfen 8be6baf
chore: fix lint and allow nonamedreturns
RafilxTenfen 9958f45
chore: remove go routine of mine empty blocks
RafilxTenfen 417d18f
chore: add new field to transaction tracked of tx hash of btc delegation
RafilxTenfen 5eb2542
tryfix: get btc delegation tx hash
RafilxTenfen 28eae57
fix: lint removed unused func
RafilxTenfen cce90a9
chore: add goroutine to return the cmd request
RafilxTenfen 9f1f0ab
chore: address pr comment and simplified the stking tx migration
RafilxTenfen d0a1c86
chore: add btc del tx hash to delegation sent to babylon
RafilxTenfen 5e096b1
fix: lint removed unused func
RafilxTenfen a97cd8c
chore: removed txInclusionHeightFlag flag and getting the block heigh…
RafilxTenfen 0a2eb54
chore: rename BtcDelegationTxHash to BabylonBTCDelegationTxHash
RafilxTenfen 2c7964d
chore: update error msg
RafilxTenfen 325cc3e
fix: lint
RafilxTenfen f63aab8
chore: add back tx-inclusion-height as optional, if not set queries t…
RafilxTenfen 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
There are no files selected for viewing
This file contains 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wodner whether this param is necessary i.e we have staking tx hash, we can retrieve staking transaction from the btc chain and check its height and based on that chose the param.
Non-blocking comment it can be tackled as future improvement imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had modified to get the Block Height from the tx hash in the CLI command, but that also added one more call to service, it was done this way to avoid sending the whole global params to the service app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testing with CLI was not that nice, brought it back the flag, but let if as optional, if not set it will query the bitcoin to get the block height from the tx