@0xweb/hardhat 0.1.2 → 0.1.3

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.
package/lib/index.js CHANGED
@@ -157,7 +157,9 @@ async function getCompiledAbis(config, compileSolOutput) {
157
157
  name: artifactName,
158
158
  sourceFile: 'file://' + artifactPerFile.file.absolutePath
159
159
  };
160
- }).toArray();
160
+ })
161
+ .filter(x => x.sourceFile.includes('@openzeppelin') === false)
162
+ .toArray();
161
163
  }).toArray();
162
164
  }).toArray();
163
165
  let namesHash = (0, alot_1.default)(emitedArtifacts).toDictionary(x => x.name);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xweb/hardhat",
3
3
  "description": "Hardhat plugin for 0xweb",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",
package/readme.md CHANGED
@@ -59,7 +59,7 @@ import { HardhatProvider } from '@dequanto/hardhat/HardhatProvider'
59
59
 
60
60
  // automatically deploys the contract to hardhat chain
61
61
  const deployer = new HardhatProvider();
62
- const foo = await deployer.resolve(Foo);
62
+ const foo = await deployer.deployClass<Foo>(Foo, { arguments: [ 'Hello' ] });
63
63
 
64
64
  // write
65
65
  const tx = await foo.setName('Hello world')
@@ -95,5 +95,6 @@ const text = await foo.name();
95
95
 
96
96
  - `npx hardhat compile --source /foo/bar/qux` - compiles solidity files which are located outside the `/contracts` folder
97
97
  - `npx hardhat compile --artifacts /dist` - set custom folder for artifacts (ABI JSONs and TS contracts)
98
+ - `npx hardhat compile --watch` - Compile the sources and waits to recompile on changes
98
99
 
99
100
  ----