Skip to content

Feat/jvd/hardhat plugin #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3b9aa16
WIP: experimental Chainweb hardhat network support
larskuhtz Feb 7, 2025
9fec3e9
add hash as checksum to SPV proof mocks
larskuhtz Feb 11, 2025
11234e8
Await spv proofs to become available on target
larskuhtz Feb 11, 2025
f6ba66a
WIP: experimental Chainweb hardhat network support
larskuhtz Feb 7, 2025
0b22dca
add hash as checksum to SPV proof mocks
larskuhtz Feb 11, 2025
42f1e1a
Await spv proofs to become available on target
larskuhtz Feb 11, 2025
7e967d8
feat(hardhat-plugin): added plugin
javadkh2 Feb 11, 2025
ac0eccd
chore(plugin): structure folders
javadkh2 Feb 12, 2025
66a9f0a
Merge branch 'lars/hardhat-network' into feat/jvd/hardhat-plugin
javadkh2 Feb 12, 2025
6cfaedb
feat(plugin): EIP
javadkh2 Feb 12, 2025
b256ae2
fix: utils
javadkh2 Feb 12, 2025
dc25c50
fix(plugin): export all required functions
javadkh2 Feb 12, 2025
15930c5
Merge branch 'feat/jvd/plugin-refactored' into feat/jvd/hardhat-plugin
javadkh2 Feb 12, 2025
2258329
feat(plugin): start node inside plugin
javadkh2 Feb 12, 2025
9ab7e87
fix(plugin): add defaultNetwork
javadkh2 Feb 12, 2025
8d2d15f
feat(plugin): add default network
javadkh2 Feb 13, 2025
4547432
feat(plugin): use hardhat in-process client for chains
javadkh2 Feb 13, 2025
3012463
feat(plugin): add logging none | info | debug
javadkh2 Feb 13, 2025
cb55a32
feat(plugin): add logging none | info | debug
javadkh2 Feb 13, 2025
0c7c724
chore(plugin): clean up
javadkh2 Feb 13, 2025
d11bd97
chore(plugin): types
javadkh2 Feb 14, 2025
48e5278
plugin: add ts example
javadkh2 Feb 14, 2025
da760c2
feat(plugin): add supports for 3,10,20 chians + readme
javadkh2 Feb 15, 2025
52401ae
chore: lock file
javadkh2 Feb 15, 2025
8686f57
doc(plugin)
javadkh2 Feb 15, 2025
a946fa9
doc(plugin)
javadkh2 Feb 15, 2025
9541f29
doc(plugin)
javadkh2 Feb 15, 2025
db79027
Update README.md
Randynamic Feb 17, 2025
8317129
Update pnpm-workspace.yaml packages
javadkh2 Feb 17, 2025
2e9a7ab
Update skipped integration tests to match main
hswopeams Feb 18, 2025
02d023b
Add comments about switchChain and switchNetwork
hswopeams Feb 18, 2025
feab296
Clean up hardhat config file and add deploy.js script to make sure it…
hswopeams Feb 18, 2025
9280036
doc(plugin): update readme
javadkh2 Feb 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hardhat-kadena-plugin/packages/hardhat-kadena/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib
node_modules
15 changes: 15 additions & 0 deletions hardhat-kadena-plugin/packages/hardhat-kadena/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

const checkFiles = (files) => (config) => config.map((c) => ({ ...c, files }));

/** @type {import('eslint').Linter.Config[]} */
const config = [
pluginJs.configs.recommended,
{ languageOptions: { globals: globals.browser } },
// somehow this plugin want to scan all files, but we only want to scan the files in the files array
...tseslint.configs.recommended,
];

export default checkFiles(["src/**/*.{js,mjs,cjs,ts}"])(config);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "commonjs",
"main": "lib/cjs/index.js"
}
58 changes: 58 additions & 0 deletions hardhat-kadena-plugin/packages/hardhat-kadena/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "hardhat-kadena",
"version": "1.0.0",
"description": "Hardhat plugin for Kadena's Chainweb network",
"author": "Lars Kuhtz <[email protected]>",
"contributors": [
"Lars Kuhtz <[email protected]>",
"Javad Khalilian <[email protected]>"
],
"main": "lib/cjs/index.js",
"type": "module",
"types": "./lib/esm/index.d.ts",
"exports": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"types": "./lib/esm/index.d.ts"
},
"scripts": {
"build": "eslint && tsc && tsc -p tsconfig.cjs.json && cp ./package.cjs.json ./lib/cjs/package.json",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kadena-io/hardhat-kadena.git"
},
"keywords": [
"hardhat",
"kadena",
"chainweb",
"ethereum",
"hardhat-plugin"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/kadena-io/hardhat-kadena/issues"
},
"homepage": "https://github.com/kadena-io/hardhat-kadena#readme",
"dependencies": {
"@types/node": "^22.13.1",
"async-lock": "^1.4.1",
"ethers": "^6.1.0",
"hardhat-switch-network": "^1.2.0"
},
"devDependencies": {
"@eslint/js": "^9.20.0",
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"@types/async-lock": "^1.4.2",
"@types/mocha": "^10.0.10",
"chai": "^5.1.2",
"eslint": "^9.20.0",
"globals": "^15.14.0",
"hardhat": "^2.22.18",
"mocha": "^11.1.0",
"prettier": "^3.5.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0"
}
}
Loading