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

Ignore: [sBTC] Feat: Peg out request & fulfillment wire formats #3510

Merged
merged 27 commits into from
Feb 17, 2023

Conversation

netrome
Copy link
Contributor

@netrome netrome commented Jan 19, 2023

Introducing wire formats for the peg out request and peg out fulfillment sBTC operations. This PR do not include any signature or sBTC validation for the peg out request. I have created #3514 for this.

I will point this PR to next once #3481 is merged.

@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #3510 (d923e63) into 3481-sbtc-peg-in-wire-formats (9d8675d) will increase coverage by 26.91%.
The diff coverage is n/a.

❗ Current head d923e63 differs from pull request most recent head 1f4594b. Consider uploading reports for the commit 1f4594b to get more accurate results

@@                        Coverage Diff                         @@
##           3481-sbtc-peg-in-wire-formats    #3510       +/-   ##
==================================================================
+ Coverage                          31.40%   58.31%   +26.91%     
==================================================================
  Files                                305        1      -304     
  Lines                             276271      571   -275700     
==================================================================
- Hits                               86760      333    -86427     
+ Misses                            189511      238   -189273     
Impacted Files Coverage Δ
clarity/src/vm/types/mod.rs
src/burnchains/burnchain.rs
src/chainstate/burn/db/processing.rs
src/chainstate/burn/db/sortdb.rs
src/chainstate/burn/mod.rs
src/chainstate/burn/operations/mod.rs
src/chainstate/burn/operations/peg_in.rs
src/chainstate/coordinator/tests.rs
src/net/mod.rs
...-node/src/burnchains/bitcoin_regtest_controller.rs
... and 294 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@igorsyl igorsyl added this to In progress in stacks-network - sBTC Project via automation Jan 19, 2023
@netrome netrome force-pushed the 3493-sbtc-peg-out-wire-format branch from 14cf605 to acfdecd Compare January 20, 2023 11:59
@netrome netrome self-assigned this Jan 20, 2023
@netrome netrome changed the title Draft: Feat: Peg out request & fulfillment wire formats Feat: Peg out request & fulfillment wire formats Jan 20, 2023
@netrome netrome marked this pull request as ready for review January 20, 2023 18:44
@netrome netrome force-pushed the 3481-sbtc-peg-in-wire-formats branch from 775576f to 945b8e7 Compare January 20, 2023 19:38
@netrome netrome force-pushed the 3493-sbtc-peg-out-wire-format branch from db54ddd to 3710e82 Compare January 20, 2023 19:38
@netrome netrome moved this from In progress to Review in progress in stacks-network - sBTC Project Jan 23, 2023
Copy link
Contributor

@sergey-shandar sergey-shandar left a comment

Choose a reason for hiding this comment

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

The only thing which I don't really like is forming SQL queries as strings. Usually, it's a sign of an anti-pattern. However, it's a problem of the base code rather than this PR.

stacks-network - sBTC Project automation moved this from Review in progress to Reviewer approved Jan 24, 2023
@netrome netrome force-pushed the 3493-sbtc-peg-out-wire-format branch 2 times, most recently from d923e63 to 2ef8209 Compare February 17, 2023 09:10
@netrome
Copy link
Contributor Author

netrome commented Feb 17, 2023

LGTM! Just one last small change and you're good to merge. Thanks for taking this on @netrome!

Awesome! I've updated & rebased the PR now. I will merge this one once CI passes, it looks like I'm authorized to do so now. Thank you for all the help! 🙏

Edit: I forgot to update the branch. I'm not authorized to merge into next. Please approve and merge #3577 instead.

…eg ops

Co-authored-by: Jude Nelson <judecn@gmail.com>
@netrome netrome force-pushed the 3493-sbtc-peg-out-wire-format branch from 2ef8209 to 1f4594b Compare February 17, 2023 11:32
@netrome netrome merged commit 3601d91 into 3481-sbtc-peg-in-wire-formats Feb 17, 2023
stacks-network - sBTC Project automation moved this from Reviewer approved to Done Feb 17, 2023
@netrome
Copy link
Contributor Author

netrome commented Feb 17, 2023

Oh, forgot to point to next... I'll open a new PR to fix it.

Edit: Please refer to #3577 for the final merge.

@netrome netrome changed the title [sBTC] Feat: Peg out request & fulfillment wire formats Ignore: [sBTC] Feat: Peg out request & fulfillment wire formats Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[sBTC] Peg-out wire format
4 participants