Files
stacks-subnets/core-contracts
Brice Dobry 5002792022 feat: add block height to commit-block event
The event generated by a `commit-block` (on the L1) now includes the
block height for the block that is being committed, in the
`block-height` key of the event tuple. The target burnchain block height
now uses the key `target-burn-block-height`. This is useful for
debugging, making it easy to match the L1 transactions with the L2
blocks. Note that this field is not checked in the tests since it is
purely for convenience and could be left out of some implementations.
2023-04-19 16:39:15 -04:00
..
2022-03-22 14:15:28 -04:00
2022-12-16 15:03:22 -05: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