@magicdust/draconis v0.0.1
Usage
Pre Requisites
Proceed with installing dependencies:
yarn installCompile
Compile the smart contracts with Hardhat:
$ yarn compileGenerate ABIs
Generate the smart contracts ABI files with Hardhat:
$ yarn abiTypeChain
Compile the smart contracts and generate TypeChain artifacts:
$ yarn typechainFormat code
Format the code:
$ yarn prettierLint Solidity
Lint the Solidity code:
$ yarn lint:solLint TypeScript
Lint the TypeScript code:
$ yarn lint:tsTest
Run the Mocha tests:
$ yarn testCoverage
Generate the code coverage report:
$ yarn coverageReport Gas
See the gas usage per unit test and average gas per method call:
$ REPORT_GAS=true yarn testClean
Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
$ yarn cleanDeploy
Deploy the contracts to Hardhat Network:
$ yarn deploySyntax Highlighting
If you use VSCode, you can enjoy syntax highlighting for your Solidity code via the vscode-solidity extension. The recommended approach to set the compiler version is to add the following fields to your VSCode user settings:
{
"solidity.compileUsingRemoteVersion": "v0.8.4+commit.c7e474f2",
"solidity.defaultCompiler": "remote"
}Where of course v0.8.4+commit.c7e474f2 can be replaced with any other version.
4 years ago