Skip to content

Runtime for testing Bitcoin smart contracts #1145

@nud3l

Description

@nud3l

Is your feature request related to a problem? Please describe.
A key use case for building smart contracts on Interlay will be the ability to read trustlessly from Bitcoin via the BTC light client.

Developing Bitcoin smart contracts requires access to at least a basic runtime with the following functionalities deployed in addition to essential runtime pallets (tokens, ...).

  • Contracts pallet
  • BTC-relay
  • Sudo

Spinning up a test environment for Interlay is quite involved (https://github.com/interlay/interbtc-api/blob/master/docker-compose.yml).

I would like to simplify the effort to setup a development environment that provides access to the functionality listed above.

Describe the solution you'd like
Move the BTC relayer functionality to an off-chain worker so that anyone can setup a interlay or kintsugi runtime has to start a local substrate node. They can then chose to relay Bitcoin testnet blocks or run a local Bitcoin regtest network.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo ⏳

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions