Skip to main content
Version: 0.8

Using Misti with Blueprint

Blueprint is a platform for compiling, testing, and deploying contracts on the TON blockchain. It is similar to Hardhat and Truffle for Ethereum.

The blueprint-misti plugin can be added to your Blueprint configuration. It adds the blueprint misti command, which runs the static analyzer over your selected Blueprint project.

This page describes how to use it.

Getting Started

  1. Install Soufflé to use all detectors provided by Misti.

  2. Add this plugin as a dependency to your Blueprint project:

yarn add @nowarp/blueprint-misti
  1. Add this configuration to blueprint.config.ts:
import { MistiPlugin } from '@nowarp/blueprint-misti';
export const config = {
plugins: [
new MistiPlugin(),
],
};

Usage

Run the following command:

yarn blueprint misti

This will run the analysis of the available project, if one exists, or display an interactive window to select a project:

img

You can also pass the supported CLI options for Misti, for example:

yarn blueprint misti --all-detectors /path/to/contracts

Or you can run analysis on a specific contract:

yarn blueprint misti path/to/my/contract.tact

CI Integration

You can integrate blueprint-misti into GitHub Actions by following the installation steps above and adding the following lines to your workflow configuration:

- name: Run Misti
run: yarn blueprint misti /path/to/contracts

For more information, see: Integrating Misti into CI/CD.

Getting Help

If you encounter any issues, feel free to reach out to us in the Misti discussion group or create an issue.