mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 16:53:24 +08:00
Subnets Core Contracts
This directory contains the contracts published to the Stacks L1 to implement a subnet.
- subnet.clar: interface between the subnet and the L1
- multi-miner.clar: implements a multi-miner for the subnet
- helper/*: used for testing
Running Tests
To run the tests and generate a code coverage report:
clarinet test --coverage --import-map=./import_map.json --allow-net
To generate HTML from the code coverage report and view it:
mkdir coverage
cd coverage
genhtml ../coverage.lcov
# Open with your preferred browser
brave index.html