@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 +3 -1
- package/package.json +1 -1
- package/readme.md +2 -1
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
|
-
})
|
|
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
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.
|
|
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
|
----
|