stacks-network / stacks-network/stacks-core

[clarity] sBTC-DB.clar | Port Over sBTC-registry.clar

Open
#3,977 2 comments 0 reactions 1 assignee View on GitHub

@setzeus is already working on this.

Since Sep 22, 2023.

clarity
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.