https://github.com/controlcpluscontrolv/hardhat-yul
Needing compile Yul and Yul+, I thought I'd integrate my current scripts into a hardhat plugin. Loosely based off the Vyper plugin this one includes none of the safety checks, tests, or safety.
https://github.com/controlcpluscontrolv/hardhat-yul
Last synced: 6 months ago
JSON representation
Needing compile Yul and Yul+, I thought I'd integrate my current scripts into a hardhat plugin. Loosely based off the Vyper plugin this one includes none of the safety checks, tests, or safety.
- Host: GitHub
- URL: https://github.com/controlcpluscontrolv/hardhat-yul
- Owner: ControlCplusControlV
- License: mit
- Created: 2021-10-19T01:10:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T18:27:50.000Z (over 2 years ago)
- Last Synced: 2024-10-11T22:26:10.767Z (over 1 year ago)
- Language: TypeScript
- Size: 136 KB
- Stars: 28
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hardhat-yul
[](https://www.npmjs.com/package/@tovarishfin/hardhat-yul) [](https://hardhat.org)
[Hardhat](https://hardhat.org) plugin to develop smart contracts with Yul and/or Yul+.
## What
This plugin adds support for Yul and Yul+ to Hardhat. Once installed, Yul contracts can be compiled by running the `compile` task.
The Yul compiler is run using the [official solc compiler](https://github.com/ethereum/solc-js#readme).
The Yul+ compiler is run using the [Yul+ transpiler from FuelLabs](https://github.com/FuelLabs/yulp) before being passed to the Yul compiler.
## Installation
First, you need to install the plugin by running
```bash
npm install --save-dev @tovarishfin/hardhat-yul
```
And add the following statement to your `hardhat.config.js`:
```js
require("@tovarishfin/hardhat-yul");
```
Or, if you are using TypeScript, add this to your `hardhat.config.ts`:
```ts
import "@tovarishfin/hardhat-yul";
```
## Required plugins
No plugins dependencies.
## Tasks
This plugin creates no additional tasks.
## Environment extensions
This plugin does not extend the Hardhat Runtime Environment.
## Configuration
At the time, there are no configuration options. This might change in the future.
## Usage
There are no additional steps you need to take for this plugin to work.
### Additional notes
This is mainly working because of TovarishFin and his fork. I merged his work upstream so that the working plugin shows up because of SEO, but if you encounter issues with this plugin please defer to there