Skip to content

Commit

Permalink
Maintenance (#80)
Browse files Browse the repository at this point in the history
* Cleaned up project

* Added reportContractsMD function

* Switched back to node

* Added prettier to deps

* Fixed bug with path

* Fixed tests

* Removed misleading error handling

* Fixed scripts

* Fixed workspaces

* Handle more connection errors

* Updated versions

* Updated Network constants

* Removed handling of network errors. Added caching mechanism

* Updated docs

* Updated CHANGELOG.md
  • Loading branch information
KyrylR authored Dec 10, 2024
1 parent aa1fa88 commit e0a7608
Show file tree
Hide file tree
Showing 39 changed files with 8,506 additions and 12,416 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

53 changes: 0 additions & 53 deletions .eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Version 2.1.11

* Added a caching mechanism to reduce the number of requests to the RPC provider.
* Removed handling of network errors due to the high instability of the current implementation of the network handler.
* Updated packages and replaced `require` with `await import` to load migration files.
* Updated the version of the eslint package to the latest one.
* Added the `reportContractsMD` function to the public reporter.
* Fixed a bug where migration files were missing when running the migration command from outside the project root.

## Version 2.1.10

* Added an ability to change signer during the migration
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ This plugin helps you deploy and verify the source code for your Solidity contra
- Enjoy full Typechain support for `Ethers-v6`, `Ethers-v5`, and `Truffle`.
- Leverage the "migration recovery mode" that automatically syncs up the deployment to the last failed transaction.
- Observe the real-time status of transactions being executed.
- Benefit from "reconnection spinner" if the network goes down during the deployment.
- Simplify the `libraries` usage via auto-linking mechanics.
- And much more.

Expand Down
61 changes: 61 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
const js = require("@eslint/js");

const typescript = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");

module.exports = [
js.configs.recommended,
{
ignores: ["dist/*.js", "*.md", "test/fixture-projects/**/*.*"],
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
},
plugins: {
"@typescript-eslint": typescript,
},
rules: {
"arrow-parens": "off",
"no-debugger": "warn",
"no-undef": "off",
"no-unused-var": "off",
"no-unused-vars": "off",
"no-warning-comments": [
"warn",
{
terms: ["hardcoded"],
location: "anywhere",
},
],
"no-return-await": "warn",
"object-curly-spacing": ["error", "always"],
"no-var": "error",
"comma-dangle": ["warn", "always-multiline"],
"linebreak-style": ["error", "unix"],
"generator-star-spacing": "off",
"no-tabs": "error",
"max-len": [
"warn",
{
code: 120,
comments: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
"no-console": [
"warn",
{
allow: ["warn", "error"],
},
],
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0, maxBOF: 0 }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "off",
},
},
];
Loading

0 comments on commit e0a7608

Please sign in to comment.