@playmint/hardhat-cairo-type-hints
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

hardhat-cairo-type-hints

A plugin for hardhat which compiles your Cairo type hints for you.

How it Works

Extends Hardhat StarkNet compile to use Cairo type hints during compilation

Installation

Make sure to install Cairo type hints to your Python environment.

Install with npm:

npm i --save-dev @playmint/hardhat-cairo-type-hints

Then import in your hardhat.config file after Hardhat StarkNet compile:

import "@playmint/hardhat-starknet-compile";
import "@playmint/hardhat-cairo-type-hints";

How to use

Type hint artifacts are generated whenever a compile task runs, either:

  • run the compile task (npx hardhat compile), or
  • run the starknet-compile task (npx hardhat starknet-compile)

The artifacts created can be used with Stark-dot-net and other compatible code generators

Package Sidebar

Install

npm i @playmint/hardhat-cairo-type-hints

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

6.09 kB

Total Files

6

Last publish

Collaborators

  • lewdhog
  • hypnoshock-playmint
  • chrisfarms
  • 5p0rt5beard