stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 667 forks source link

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

Open setzeus opened 1 year ago

setzeus commented 1 year ago

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):

StackerDB (only a boot contract, maybe .pox-4 can write):

setzeus commented 1 year ago

Going to keep two separate contracts for storage, one for stackerDB & one for sBTC.

setzeus commented 1 year ago

Latest update here: https://github.com/stacks-network/stacks-blockchain/tree/add-storage-contracts