0.5.0 • Published 2 years ago

@developerdao/hardhat-fe v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm version hardhat

Related DevDAO RFC

What

This plugin adds support for Fe to Hardhat. Once installed, Fe contracts can be compiled by running the compile task.

This plugin plans to generate the same artifact format as the built-in Solidity compiler, so that it can be used in conjunction with all other plugins.

The Fe compiler is run using the official binary releases.

Installation

First, you need to install the plugin by running

npm install --save-dev @developerdao/hardhat-fe

And add the following statement to your hardhat.config.js:

require("@developerdao/hardhat-fe");

Or, if you are using TypeScript, add this to your hardhat.config.ts:

import "@developerdao/hardhat-fe";

Required plugins

No plugins dependencies.

Tasks

This plugin creates no additional tasks.

Environment extensions

This plugin does not extend the Hardhat Runtime Environment.

Configuration

This plugin adds an optional fe entry to Hardhat's config, which lets you specify the Fe version to use.

This is an example of how to set it:

module.exports = {
  fe: {
    version: "0.19.1-alpha",
  },
};

Or you can use a customized compiler by specifying the path to the binary instead of downloading from official releases:

module.exports = {
  fe: {
    compilerPath: "absolute_path_to_fe_compiler_binary",
  },
};

Otherwise, if you leave the fe config entry blank, the plugin will use the default version of Fe compiler which currently is 0.19.1-alpha

Usage

There are no additional steps you need to take for this plugin to work.

Known issues

since Fe is still under heavy development

  • the abi file generated by Fe compiler does not contain deployedBytecode attribute
  • the abi file generated by Fe compiler does not contain stateMutability attribute, related issue

Development

npm install // install dependencies
npm run build // build before publish
npm run test // run tests
0.5.0

2 years ago

0.3.0

2 years ago

1.0.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago