hirosystems/clarinet

sBTC support

hugocaillard opened this issue · 0 comments

Context

sBTC will be the next big milestone for Stacks after Nakamoto.
We want developers that build on top of sBTC to use Clarinet.
Clarinet could also be useful to be used for sBTC core team developer to tests (manually and automatically) sBTC.

For that, we want sBTC to be available and easy to use in the Simnet and the Devnet.
We could also provide accounts already founded with sBTC (just like we provide account loaded with STX).

Spec

We don't have an exact spec of what sBTC looks like in Clarinet, but here is what we know so far.
Check the sBTC repo for context https://github.com/stacks-network/sbtc.

The local env they have (a docker-compose that basically does the same job as the devnet) is also a good starting point)

Contracts:

  • Mock sBTC boot contract might be just enough for the simnet (and even devnet to some extent)
  • And later, the actual boot contracts for sBTC could be implemented in devnet to match the real behaviour

Devnet:
Additional docker containers

  • Third party tools (that could be added today, disabled by default) -- ready to do today

    • mempool api (and mempool.space frontend could be available as well)
    • electrum API
  • sBTC binaries

    • the sBTC bootstrap signer(s)
    • the Emily API (it alerts the signers to deposits that have been made, and tracks the status of the sBTC deposits and withdrawals)
    • the blocklist-client