stacks-network / stacks-network/stacks-core
[clarity] sBTC-DB.clar | Port Over sBTC-registry.clar
@setzeus is already working on this.
Since Sep 22, 2023.
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 762
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 76
Description
As detailed in sister issues #3970 , #3958, & #3957, there is a clear need for a state-persistent contract that should keep track of some items from sBTC asset boot contract & some items from the previous StackerDB setup (please click into linked issues for more details on either requirement).
This issue is made for the Clarity working group to create a new sBTC-DB.clar contract not unsimilar to the sBTC-registry.clar contract found in sBTC-mini.
A few requirements of the data required includes:
sBTC (only .sBTC can write):
- Pending peg-in requests
- Pending peg-out requests
- Hand-offs
- Is-DKG-stale
StackerDB (only a boot contract, maybe .pox-4 can write):
- tuples of {signer: principal, slots: uint}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.