Skip to content

Commit

Permalink
Add hre extender v2 (#204)
Browse files Browse the repository at this point in the history
* extract ethers from hardhat-tenderly-core

* modify build and clean command on tenderly-core

* add hre-extender-v1

* add hre-extender-v2
  • Loading branch information
dule-git authored Sep 23, 2024
1 parent 76d722e commit 75caa14
Show file tree
Hide file tree
Showing 19 changed files with 1,307 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/hre-extender-v2/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: [`${__dirname}/../../config/eslint/eslintrc.js`],
parserOptions: {
project: `${__dirname}/tsconfig.json`,
sourceType: "module"
},
};
80 changes: 80 additions & 0 deletions packages/hre-extender-v2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/dist
tsconfig.tsbuildinfo

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# next.js build output
.next

# TSC prod output. This has to be in sync with the to directories in ./src, and with npm script clean
/*.js
/*.js.map
/*.d.ts
/*.d.ts.map
/builtin-tasks
/common
/internal
/types
/utils

# Tests compilation output
/build-test/

!.eslintrc.js
.env
.idea
.vscode
17 changes: 17 additions & 0 deletions packages/hre-extender-v2/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
src/

.env

.editorconfig

tsconfig.json

tslint.json

.idea

logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
14 changes: 14 additions & 0 deletions packages/hre-extender-v2/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/dist
/node_modules
/build-test
/builtin-tasks
/common
/internal
/types
/utils
/*.d.ts
/*.d.ts.map
/*.js
/*.js.map
/.nyc_output
CHANGELOG.md
21 changes: 21 additions & 0 deletions packages/hre-extender-v2/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Tenderly

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
45 changes: 45 additions & 0 deletions packages/hre-extender-v2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "@tenderly/hre-extender-v2",
"author": "Tenderly",
"license": "MIT",
"homepage": "https://tenderly.co",
"description": "Package for overloading some of the HardhatRuntimeEnvironment components",
"version": "0.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/Tenderly/hardhat-tenderly.git"
},
"keywords": [
"ethereum",
"smart-contracts",
"hardhat",
"hardhat-plugin",
"tenderly"
],
"files": [
"dist/",
"LICENSE",
"README.md"
],
"scripts": {
"build": "rm -rf ./dist && rm -f tsconfig.tsbuildinfo && tsc --build .",
"clean": "rm -rf node_modules && rm -rf dist && rm -f tsconfig.tsbuildinfo",
"lint": "yarn run prettier --check && yarn run eslint",
"lint:fix": "yarn run prettier --write && yarn run eslint --fix",
"eslint": "eslint 'src/**/*.ts'",
"prettier": "prettier \"**/*.{js,md,json}\"",
"prepublishOnly": "yarn run build"
},
"devDependencies": {},
"dependencies": {
"hardhat": "^2.22.10",
"@ethersproject/bignumber": "^5.7.0",
"@nomicfoundation/hardhat-ignition": "^0.15.5",
"@nomicfoundation/hardhat-verify": "^2.0.8",
"@openzeppelin/hardhat-upgrades": "^3.0.1",
"@openzeppelin/upgrades-core": "^1.32.2",
"ethers": "^6.8.1"
}
}
Loading

0 comments on commit 75caa14

Please sign in to comment.