-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from FhenixProtocol/v0.3.x
V0.3.x
- Loading branch information
Showing
51 changed files
with
7,702 additions
and
1,518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,7 @@ typings/ | |
# environment variables | ||
.env | ||
|
||
dist | ||
# ide files | ||
.idea | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{ | ||
"name": "fhenix-hardhat-plugin-root", | ||
"version": "0.3.0-alpha.2", | ||
"license": "MIT", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"format": "prettier --write --cache .", | ||
"lint": "pnpm -r --filter='./packages/*' run lint", | ||
"build": "pnpm -r --filter='./packages/*' run build", | ||
"test": "pnpm -r --filter='./packages/*' run test", | ||
"publish": "pnpm -r --filter='./packages/*' publish --no-git-checks" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/FhenixProtocol/fhenix-hardhat-plugin/" | ||
}, | ||
"private": true, | ||
"pnpm": { | ||
"overrides": { | ||
"flat@<5.0.1": ">=5.0.1", | ||
"debug@>=3.2.0 <3.2.7": ">=3.2.7", | ||
"minimatch@<3.0.5": ">=3.0.5" | ||
} | ||
} | ||
"name": "fhenix-hardhat-plugin-root", | ||
"version": "0.3.2", | ||
"license": "MIT", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"format": "prettier --write --cache .", | ||
"lint": "pnpm -r --filter='./packages/*' run lint", | ||
"build": "pnpm -r --filter='./packages/*' run build", | ||
"test": "pnpm -r --filter='./packages/*' run test", | ||
"publish": "pnpm -r --filter='./packages/*' publish --no-git-checks" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/FhenixProtocol/fhenix-hardhat-plugin/" | ||
}, | ||
"private": true, | ||
"pnpm": { | ||
"overrides": { | ||
"flat@<5.0.1": ">=5.0.1", | ||
"debug@>=3.2.0 <3.2.7": ">=3.2.7", | ||
"minimatch@<3.0.5": ">=3.0.5" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# folders | ||
artifacts | ||
cache | ||
contracts | ||
node_modules/ | ||
typechain-types | ||
# files | ||
**/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"prettier/prettier": [ | ||
"warn", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Fhenix-Hardhat-Docker Plugin [![NPM Package][npm-badge]][npm] [![Github Actions][gha-badge]][gha] [![License: MIT][license-badge]][license] | ||
|
||
[npm]: https://www.npmjs.org/package/fhenix-hardhat-docker | ||
[npm-badge]: https://img.shields.io/npm/v/fhenix-hardhat-plugin.svg | ||
[gha]: https://github.com/fhenixprotocol/fhenix-hardhat-plugin/actions | ||
[gha-badge]: https://github.com/fhenixprotocol/fhenix-hardhat-plugin/actions/workflows/test.yml/badge.svg | ||
[license]: https://opensource.org/licenses/MIT | ||
[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg | ||
|
||
## Usage | ||
|
||
- **`localfhenix:start`** To start a local dev environment using docker. By default, the instance will listen for rpc connections on port `42069` | ||
- **`localfhenix:stop`** Stops the docker container | ||
|
||
To start the container: | ||
|
||
```sh | ||
pnpm hardhat localfhenix:start | ||
``` | ||
|
||
If starting the instance was successful, you should see the message: `Started LocalFhenix successfully at 127.0.0.1:42069`. | ||
|
||
To stop the running container: | ||
|
||
```sh | ||
pnpm hardhat localfhenix:stop | ||
``` | ||
|
||
Which will result in `Successfully shut down LocalFhenix` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"image": "ghcr.io/fhenixprotocol/localfhenix:v0.3.0-alpha.1", | ||
"imageArm": "ghcr.io/fhenixprotocol/localfhenix:v0.3.0-alpha.1", | ||
"image": "ghcr.io/fhenixprotocol/localfhenix:v0.3.2", | ||
"imageArm": "ghcr.io/fhenixprotocol/localfhenix:v0.3.2", | ||
"container_name": "localfhenix_hh_plugin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import chalk from "chalk"; | ||
import fs from "fs"; | ||
import path from "path"; | ||
|
||
export const cleanDeployments = (): void => { | ||
console.log(chalk.green("Cleaning deployments..")); | ||
|
||
// Get the current working directory (root of the project that imported this package) | ||
const cwd = process.cwd(); | ||
const deploymentsPath = path.join(cwd, "deployments/localfhenix"); | ||
|
||
if (fs.existsSync(deploymentsPath)) { | ||
fs.rmSync(deploymentsPath, { recursive: true, force: true }); | ||
console.log(chalk.green("Successfully cleaned deployments directory")); | ||
} else { | ||
console.log(chalk.yellow(`No deployments found in ${deploymentsPath}`)); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
packages/fhenix-hardhat-docker/test/fixture-projects/localfhenix/runTask.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.