Feature/hk stx bitflow receiver v1#23
Open
unixwhisperer wants to merge 4 commits into
Open
Conversation
External-wallet flash-loan receiver that borrows STX from the live flashstack-stx-core, runs a real STX->stSTX->STX round-trip on the Bitflow stableswap, and repays principal+fee atomically. No protocol modifications. Combines hk-stx-real-receiver-v2 (contract-caller gate + absolute mainnet principals for external deploy) with the bitflow-arb-receiver-v4 round-trip. min-out=u1 on both legs; the repay-assert + core reserve check are the safety gates (objective is execution, not profit). Fee looked up dynamically. - contracts/hk-stx-bitflow-receiver-v1.clar receiver (clarinet check: 0/0) - scripts/deploy-hk-bitflow-receiver.mjs mainnet deploy (DRY_RUN aware) - scripts/execute-bitflow-flash-loan.mjs flash-loan executor + preflight - .gitignore: ignore mbegu/mbegu2 (mainnet seed-phrase files) Deployed to mainnet: SP3NZYZA88ENNF0FCR57KBGPFY5RAXWHXXVSB6FBW.hk-stx-bitflow-receiver-v1 deploy tx 7e5b3ec55357d119470aa79fe7d5e32c07922b7b7f2c975281cb8456f7dea567 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@unixwhisperer is attempting to deploy a commit to the matt glory's projects Team on Vercel. A member of the Team first needs to authorize it. |
…ting whitelist) Zero-context-loss project-state export: deployment info (SP3NZYZA88...hk-stx-bitflow-receiver-v1, tx 7e5b3ec5...), validation evidence, risk register, blocker (Matt whitelist), next actions, recovery prompt. Mirrors the Obsidian vault handoff and the Beads flashstack-session-resume-state memory. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Milestone 1 (Bitflow STX receiver) executed on mainnet (ok true, tx 865df576…639737). Post-M1 deliverables for Matt requests mattglory#3 and mattglory#2: - docs-feedback-report.md: external-developer documentation review (mattglory#3), every finding verified against contract source / live mainnet reads - sbtc-architecture-review.md: sBTC flash-loan architecture research (mattglory#2 precursor); STX-vs-sBTC core comparison, funding/risk analysis - project-docs/session-handoffs/hk-sbtc-real-receiver-v1-Design.md: sBTC receiver design proposal + ADR-S1…S7 (design only, no implementation) - project-docs/session-handoffs/Milestone-1-Completion-Report.md - scripts/seed-bitflow-receiver.mjs: receiver seed helper used in M1 - Update session handoff with M1 completion + post-M1 continuation
mattglory
reviewed
Jun 6, 2026
Owner
mattglory
left a comment
There was a problem hiding this comment.
Thanks Hillary — contract and docs review both approved. Two requests before merge: (1) please remove the .beads/ directory — it's your personal tooling and doesn't belong in the main repo. (2) The session handoff files under project-docs/session-handoffs/ are your internal working docs — happy to keep if you want them on record, but flag if you'd prefer they stay off main. Once cleaned up this is ready to merge. The docs-feedback-report findings are exactly what the protocol needs.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Type of Change
Related Issues
Fixes #
Related to #
Changes Made
Testing Performed
Manual Testing
clarinet checkclarinet consoleAutomated Testing
Test Commands Run
# List the commands you ran to test clarinet check clarinet console3Test Results
Checklist
Code Quality
Documentation
Testing
Security & Safety
Screenshots (if applicable)
Additional Context
Deployment Considerations