feat: add solo stacker test instructions#17
Merged
matteojug-stacks merged 7 commits intomainfrom Mar 30, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a self-contained “solo stackers” demo under tests/ to exercise sPoX against an sBTC devenv, including a TS-based stacking loop, shell helpers for environment setup, and a sample spox.toml config.
Changes:
- Add a solo-stacker TS demo (
tsx) that stack-stx / stack-extend loops for multiple accounts. - Add helper config + shell script to derive signers xonly key and deposit addresses and export required env vars.
- Add a small
tests/Node workspace (package.json+pnpm-lock.yaml) and documentation for running the demo.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/solo/spox.toml | Sample config for local sPoX + two monitored deposits (alice/bob) |
| tests/solo/populate_env.sh | Script to compute/export env vars used by sPoX and the demo stackers |
| tests/solo/demo.ts | TS stacking demo: stack/extend loop + info command |
| tests/common.ts | Shared TS utilities: logging, env parsing, wait-for-setup, signer client |
| tests/README.md | Step-by-step instructions to run devenv, fund accounts, run demo + sPoX |
| tests/package.json | Declares Node deps for running the TS demo via pnpm/tsx |
| tests/pnpm-lock.yaml | Lockfile for the tests/ Node dependencies |
| tests/.gitignore | Ignores node_modules/ under tests/ |
| tests/.env | Default env values for local Stacks RPC + reward cycle length |
Files not reviewed (1)
- tests/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
djordon
approved these changes
Mar 27, 2026
djordon-stacks
previously approved these changes
Mar 27, 2026
djordon-stacks
approved these changes
Mar 29, 2026
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.
Add instructions (and scripts) to test spox with solo stacker(s) using sBTC devenv.
Because of low PoX payments + high suggested fees in sBTC devenv, it currently require using devenv from stacks-sbtc/sbtc#1988.
Testing Information
Tested the instructions locally