Skip to content

[Clarity] TBD contract for keeping sbtc state #3958

Closed
@jferrant

Description

@jferrant

There should be a boot contract (.sbtc) that stores pending sBTC operations -- the miner node will be responsible for inserting them into the contract.

We should have read only functions to retrieve all pending transactions (peg-in, peg-out, handoff)
There should be a read only function to check current state (e.g., if we haves sBTC ops older than x amount of time...this is bad state, DKG has not been set within x amount of time, etc.).
There should be a write function (only writeable by the N signers for a given reward cycle N) to set DKG

Considering re-visiting / re-factoring / importing logic used in sbtc-registry: https://github.com/Trust-Machines/stacks-sbtc/blob/main/sbtc-mini/contracts/sbtc-registry.clar

Relates to #3948

Metadata

Metadata

Assignees

Labels

featureBrand new functionality. New pages, workflows, endpoints, etc.

Type

No type

Projects

Status

Status: ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions