Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 23 additions & 11 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,34 @@ import './tasks/generate_eip_712';
import './tasks/organize_test_files';
import './tasks/rename_entity';
import './tasks/scaffold_contract';
import '@nomicfoundation/hardhat-chai-matchers';
import '@nomicfoundation/hardhat-ethers';
import '@solidstate/hardhat-4byte-uploader';
import '@typechain/hardhat';
import 'hardhat-abi-exporter';
import 'hardhat-contract-sizer';
import HardhatEthers from '@nomicfoundation/hardhat-ethers';
import HardhatEthersChaiMatchers from '@nomicfoundation/hardhat-ethers-chai-matchers';
import HardhatTypechain from '@nomicfoundation/hardhat-typechain';
import HardhatAbiExporter from '@solidstate/hardhat-abi-exporter';
import HardhatContractSizer from '@solidstate/hardhat-contract-sizer';
import HardhatLicenseIdentifier from '@solidstate/hardhat-license-identifier';
import HardhatLinearization from '@solidstate/hardhat-linearization';
import HardhatSelectorUploader from '@solidstate/hardhat-selector-uploader';
import 'hardhat-exposed';
import 'hardhat-gas-reporter';
import 'hardhat-linearization';
import 'hardhat-spdx-license-identifier';
import { HardhatUserConfig } from 'hardhat/types';
import { type HardhatUserConfig } from 'hardhat/config';
import 'solidity-coverage';

const config: HardhatUserConfig = {
plugins: [
HardhatEthers,
HardhatEthersChaiMatchers,
HardhatTypechain,
HardhatAbiExporter,
HardhatContractSizer,
HardhatLicenseIdentifier,
HardhatLinearization,
HardhatSelectorUploader,
],

networks: {
hardhat: {
type: 'edr',
allowUnlimitedContractSize: true,
},
},
Expand All @@ -40,7 +52,7 @@ const config: HardhatUserConfig = {
clear: true,
flat: true,
// do not export internal or test ABIs, including those generated by hardhat-exposed
except: ['_.*', '.*Test$', '[$].*'],
except: [/_.*/, /.*Test$/, /[$].*/],
},

gasReporter: {
Expand All @@ -49,7 +61,7 @@ const config: HardhatUserConfig = {
outputFile: './gasreport.txt',
},

spdxLicenseIdentifier: {
licenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"license": "MIT",
"author": "Nick Barry",
"type": "module",
"scripts": {
"build": "pnpm clean && hardhat compile && lerna run build",
"clean": "hardhat clean && lerna run clean",
Expand All @@ -11,34 +12,36 @@
"test": "pnpm hardhat test"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.9",
"@nomicfoundation/hardhat-ethers": "^3.0.9",
"@nomicfoundation/hardhat-network-helpers": "^1.0.13",
"@solidstate/hardhat-4byte-uploader": "^1.2.3",
"@nomicfoundation/hardhat-ethers": "4.0.0-next.21",
"@nomicfoundation/hardhat-ethers-chai-matchers": "3.0.0-next.21",
"@nomicfoundation/hardhat-network-helpers": "3.0.0-next.21",
"@nomicfoundation/hardhat-typechain": "3.0.0-next.0",
"@solidstate/hardhat-abi-exporter": "3.0.0-next.2",
"@solidstate/hardhat-contract-sizer": "3.0.0-next.1",
"@solidstate/hardhat-license-identifier": "3.0.0-next.1",
"@solidstate/hardhat-linearization": "1.0.0-next.1",
"@solidstate/hardhat-selector-uploader": "2.0.0-next.0",
"@solidstate/library": "link:lib",
"@solidstate/spec": "link:spec",
"@solidstate/typechain-types": "link:typechain-types",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@tsconfig/node22": "^22.0.2",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^5.2.2",
"@types/delete-empty": "^3.0.5",
"@types/ejs": "^3.1.5",
"@types/git-diff": "^2.0.7",
"@types/mocha": "^10.0.10",
"@types/node": "^24.0.10",
"chai": "^4.5.0",
"chai": "^5.2.0",
"delete-empty": "^3.0.0",
"ejs": "^3.1.10",
"ethers": "^6.15.0",
"git-diff": "^2.0.6",
"hardhat": "^2.25.0",
"hardhat-abi-exporter": "^2.11.0",
"hardhat-contract-sizer": "^2.10.0",
"hardhat": "3.0.0-next.21",
"hardhat-exposed": "^0.3.19",
"hardhat-gas-reporter": "^2.3.0",
"hardhat-linearization": "^0.1.1",
"hardhat-spdx-license-identifier": "^2.3.1",
"husky": "^9.1.7",
"keccak256": "^1.0.6",
"knip": "^5.61.3",
Expand Down
13 changes: 0 additions & 13 deletions patches/@typechain__hardhat.patch

This file was deleted.

Loading