Skip to content

Commit 4e63c06

Browse files
committed
fix(hardhat): change workspace package name
1 parent 2fef872 commit 4e63c06

6 files changed

Lines changed: 77 additions & 85 deletions

File tree

package.json

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"scripts": {
1515
"prepare": "husky",
1616
"precommit": "lint-staged",
17-
"lint": "yarn workspace hardhat lint",
1817
"dev": "npm-run-all --parallel dapp:dev backend:dev hardhat:chain hardhat:deploy",
1918
"dapp:start": "yarn workspace dapp start",
2019
"dapp:dev": "yarn workspace dapp dev",
@@ -34,24 +33,24 @@
3433
"backend:dev": "yarn workspace backend start:dev",
3534
"backend:start": "yarn workspace backend start",
3635
"backend:build": "yarn workspace backend build",
37-
"hardhat:account": "yarn workspace hardhat account",
38-
"hardhat:account-import": "yarn workspace hardhat account:import",
39-
"hardhat:account-reveal": "yarn workspace hardhat account:reveal-pk",
40-
"hardhat:chain": "yarn workspace hardhat chain",
41-
"hardhat:check-types": "yarn workspace hardhat check-types",
42-
"hardhat:clean": "yarn workspace hardhat clean",
43-
"hardhat:compile": "yarn workspace hardhat compile",
44-
"hardhat:deploy": "yarn workspace hardhat deploy",
45-
"hardhat:flatten": "yarn workspace hardhat flatten",
46-
"hardhat:fork": "yarn workspace hardhat fork",
47-
"hardhat:format": "yarn workspace hardhat format",
48-
"hardhat:generate": "yarn workspace hardhat generate",
49-
"hardhat:hardhat-verify": "yarn workspace hardhat hardhat-verify",
50-
"hardhat:lint": "yarn workspace hardhat lint",
51-
"hardhat:lint-fix": "yarn workspace hardhat lint:fix",
52-
"hardhat:lint-staged": "yarn workspace hardhat lint-staged",
53-
"hardhat:test": "yarn workspace hardhat test",
54-
"hardhat:verify": "yarn workspace hardhat verify"
36+
"contracts:account": "yarn workspace @bee-funded/contracts account",
37+
"contracts:account-import": "yarn workspace @bee-funded/contracts account:import",
38+
"contracts:account-reveal": "yarn workspace @bee-funded/contracts account:reveal-pk",
39+
"contracts:chain": "yarn workspace @bee-funded/contracts chain",
40+
"contracts:check-types": "yarn workspace @bee-funded/contracts check-types",
41+
"contracts:clean": "yarn workspace @bee-funded/contracts clean",
42+
"contracts:compile": "yarn workspace @bee-funded/contracts compile",
43+
"contracts:deploy": "yarn workspace @bee-funded/contracts deploy",
44+
"contracts:flatten": "yarn workspace @bee-funded/contracts flatten",
45+
"contracts:fork": "yarn workspace @bee-funded/contracts fork",
46+
"contracts:format": "yarn workspace @bee-funded/contracts format",
47+
"contracts:generate": "yarn workspace @bee-funded/contracts generate",
48+
"contracts:hardhat-verify": "yarn workspace @bee-funded/contracts hardhat-verify",
49+
"contracts:lint": "yarn workspace @bee-funded/contracts lint",
50+
"contracts:lint-fix": "yarn workspace hardhat lint:fix",
51+
"contracts:lint-staged": "yarn workspace @bee-funded/contracts lint-staged",
52+
"contracts:test": "yarn workspace @bee-funded/contracts test",
53+
"contracts:verify": "yarn workspace @bee-funded/contracts verify"
5554
},
5655
"author": "Ianos Dorultan",
5756
"license": "MIT",

packages/hardhat/deploy/01_deploy_mocked_tokens.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from "hardhat/types";
22
import { DeployFunction } from "hardhat-deploy/types";
3-
import { Contract, ethers } from "ethers";
43

54
/**
65
* Deploys a hardhat named "BeeFunded" using the deployer account and

packages/hardhat/hardhat.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ const config: HardhatUserConfig = {
3636
},
3737
},
3838
},
39+
typechain: {
40+
outDir: "typechain-types",
41+
target: "ethers-v6",
42+
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
43+
dontOverrideCompile: false, // defaults to false
44+
},
3945
defaultNetwork: "localhost",
4046
namedAccounts: {
4147
deployer: {

packages/hardhat/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
2-
"name": "hardhat",
2+
"name": "@bee-funded/contracts",
33
"version": "0.0.1",
4+
"main": "typechain-types/index.ts",
5+
"types": "typechain-types/index.ts",
6+
"files": [
7+
"typechain-types"
8+
],
49
"scripts": {
510
"account": "hardhat run scripts/listAccount.ts",
611
"account:generate": "hardhat run scripts/generateAccount.ts",
@@ -38,7 +43,6 @@
3843
"@nomicfoundation/hardhat-ethers": "~3.0.8",
3944
"@nomicfoundation/hardhat-network-helpers": "~1.0.11",
4045
"@nomicfoundation/hardhat-verify": "~2.0.10",
41-
"@typechain/ethers-v5": "~11.1.2",
4246
"@typechain/hardhat": "~9.1.0",
4347
"@types/eslint": "~9.6.1",
4448
"@types/mocha": "~10.0.10",

packages/hardhat/test/BeeFunded.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import {
55
DonationManager,
66
MockERC1155,
77
MockERC20,
8+
MockERC721,
89
MockUSDC,
910
SubscriptionManager,
1011
TreasureManager,
1112
} from "../typechain-types";
1213
import { expect } from "chai";
1314
import { AbiCoder, HDNodeWallet, parseUnits, Signer } from "ethers";
1415
import { time } from "@nomicfoundation/hardhat-network-helpers";
15-
import { MockERC721 } from "../typechain-types/contracts/mocks/MockERC721.sol";
1616

1717
const AUTOMATION_UP_KEEP_ADDRESS = "0x86EFBD0b6736Bed994962f9797049422A3A8E8Ad";
1818

yarn.lock

Lines changed: 46 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,49 @@ __metadata:
657657
languageName: node
658658
linkType: hard
659659

660+
"@bee-funded/contracts@workspace:^, @bee-funded/contracts@workspace:packages/hardhat":
661+
version: 0.0.0-use.local
662+
resolution: "@bee-funded/contracts@workspace:packages/hardhat"
663+
dependencies:
664+
"@chainlink/contracts": ^1.4.0
665+
"@chainlink/contracts-ccip": ^1.6.0
666+
"@ethersproject/abi": ~5.7.0
667+
"@ethersproject/providers": ~5.7.2
668+
"@inquirer/password": ^4.0.2
669+
"@nomicfoundation/hardhat-chai-matchers": ~2.0.7
670+
"@nomicfoundation/hardhat-ethers": ~3.0.8
671+
"@nomicfoundation/hardhat-network-helpers": ~1.0.11
672+
"@nomicfoundation/hardhat-verify": ~2.0.10
673+
"@openzeppelin/contracts": ~5.0.2
674+
"@typechain/ethers-v6": ~0.5.1
675+
"@typechain/hardhat": ~9.1.0
676+
"@types/eslint": ~9.6.1
677+
"@types/mocha": ~10.0.10
678+
"@types/prettier": ~3.0.0
679+
"@types/qrcode": ~1.5.5
680+
"@typescript-eslint/eslint-plugin": ~8.27.0
681+
"@typescript-eslint/parser": ~8.27.0
682+
chai: ~4.5.0
683+
dotenv: ~16.4.5
684+
envfile: ~7.1.0
685+
eslint: ~9.23.0
686+
eslint-config-prettier: ~10.1.1
687+
eslint-plugin-prettier: ~5.2.4
688+
ethers: ~6.13.2
689+
hardhat: ~2.22.10
690+
hardhat-deploy: ~0.12.4
691+
hardhat-deploy-ethers: ~0.4.2
692+
hardhat-gas-reporter: ~2.2.1
693+
prettier: ^3.5.3
694+
prettier-plugin-solidity: ~1.4.1
695+
qrcode: ~1.5.4
696+
solidity-coverage: ~0.8.13
697+
ts-node: ~10.9.1
698+
typechain: ~8.3.2
699+
typescript: ^5.8.2
700+
languageName: unknown
701+
linkType: soft
702+
660703
"@chainlink/contracts-ccip@npm:^1.6.0":
661704
version: 1.6.0
662705
resolution: "@chainlink/contracts-ccip@npm:1.6.0"
@@ -6380,22 +6423,6 @@ __metadata:
63806423
languageName: node
63816424
linkType: hard
63826425

6383-
"@typechain/ethers-v5@npm:~11.1.2":
6384-
version: 11.1.2
6385-
resolution: "@typechain/ethers-v5@npm:11.1.2"
6386-
dependencies:
6387-
lodash: ^4.17.15
6388-
ts-essentials: ^7.0.1
6389-
peerDependencies:
6390-
"@ethersproject/abi": ^5.0.0
6391-
"@ethersproject/providers": ^5.0.0
6392-
ethers: ^5.1.3
6393-
typechain: ^8.3.2
6394-
typescript: ">=4.3.0"
6395-
checksum: 4f2d458306094c8e57bc0e05c86c1def210bd8b2cadd1062218cbc35fe3f6ac98aca08646c935a6fa5e57599be9fc0ddd2d4f7cf960fe28e27bf3ed58906c71f
6396-
languageName: node
6397-
linkType: hard
6398-
63996426
"@typechain/ethers-v6@npm:~0.5.1":
64006427
version: 0.5.1
64016428
resolution: "@typechain/ethers-v6@npm:0.5.1"
@@ -9109,6 +9136,7 @@ __metadata:
91099136
version: 0.0.0-use.local
91109137
resolution: "backend@workspace:packages/backend"
91119138
dependencies:
9139+
"@bee-funded/contracts": "workspace:^"
91129140
"@eslint/eslintrc": ^3.2.0
91139141
"@eslint/js": ^9.18.0
91149142
"@faker-js/faker": ^9.9.0
@@ -9145,7 +9173,7 @@ __metadata:
91459173
eslint: ^9.18.0
91469174
eslint-config-prettier: ^10.0.1
91479175
eslint-plugin-prettier: ^5.2.2
9148-
ethers: ^6.15.0
9176+
ethers: ^6.13.2
91499177
globals: ^16.0.0
91509178
jest: ^29.7.0
91519179
jest-mock: ^30.0.2
@@ -12647,7 +12675,7 @@ __metadata:
1264712675
languageName: node
1264812676
linkType: hard
1264912677

12650-
"ethers@npm:^6.15.0":
12678+
"ethers@npm:^6.13.2":
1265112679
version: 6.15.0
1265212680
resolution: "ethers@npm:6.15.0"
1265312681
dependencies:
@@ -14075,50 +14103,6 @@ __metadata:
1407514103
languageName: node
1407614104
linkType: hard
1407714105

14078-
"hardhat@workspace:packages/hardhat":
14079-
version: 0.0.0-use.local
14080-
resolution: "hardhat@workspace:packages/hardhat"
14081-
dependencies:
14082-
"@chainlink/contracts": ^1.4.0
14083-
"@chainlink/contracts-ccip": ^1.6.0
14084-
"@ethersproject/abi": ~5.7.0
14085-
"@ethersproject/providers": ~5.7.2
14086-
"@inquirer/password": ^4.0.2
14087-
"@nomicfoundation/hardhat-chai-matchers": ~2.0.7
14088-
"@nomicfoundation/hardhat-ethers": ~3.0.8
14089-
"@nomicfoundation/hardhat-network-helpers": ~1.0.11
14090-
"@nomicfoundation/hardhat-verify": ~2.0.10
14091-
"@openzeppelin/contracts": ~5.0.2
14092-
"@typechain/ethers-v5": ~11.1.2
14093-
"@typechain/ethers-v6": ~0.5.1
14094-
"@typechain/hardhat": ~9.1.0
14095-
"@types/eslint": ~9.6.1
14096-
"@types/mocha": ~10.0.10
14097-
"@types/prettier": ~3.0.0
14098-
"@types/qrcode": ~1.5.5
14099-
"@typescript-eslint/eslint-plugin": ~8.27.0
14100-
"@typescript-eslint/parser": ~8.27.0
14101-
chai: ~4.5.0
14102-
dotenv: ~16.4.5
14103-
envfile: ~7.1.0
14104-
eslint: ~9.23.0
14105-
eslint-config-prettier: ~10.1.1
14106-
eslint-plugin-prettier: ~5.2.4
14107-
ethers: ~6.13.2
14108-
hardhat: ~2.22.10
14109-
hardhat-deploy: ~0.12.4
14110-
hardhat-deploy-ethers: ~0.4.2
14111-
hardhat-gas-reporter: ~2.2.1
14112-
prettier: ^3.5.3
14113-
prettier-plugin-solidity: ~1.4.1
14114-
qrcode: ~1.5.4
14115-
solidity-coverage: ~0.8.13
14116-
ts-node: ~10.9.1
14117-
typechain: ~8.3.2
14118-
typescript: ^5.8.2
14119-
languageName: unknown
14120-
linkType: soft
14121-
1412214106
"has-ansi@npm:^2.0.0":
1412314107
version: 2.0.0
1412414108
resolution: "has-ansi@npm:2.0.0"

0 commit comments

Comments
 (0)