Solidity Template – 固体模板区块链毕设代写
区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Solidity Template – 固体模板区块链毕设代写 是一篇很好的国外资料
Solidity Template
My favourite setup for writing Solidity smart contracts.
- Buidler: compile and run the smart contracts on a local development network
- TypeChain: generate TypeScript types for smart contracts
- Ethers: renowned Ethereum library and wallet implementation
- Waffle: tooling for writing comprehensive smart contract tests
- Solhint: linter
- Solcover code coverage
- Prettier Plugin Solidity: code formatter
This is a GitHub template, which means you can reuse it as many times as you want. You can do that by clicking the “Use this template” button at the top of the page.
Usage
Pre Requisites
Before running any command, make sure to install dependencies:
$ yarn install
Compile
Compile the smart contracts with Buidler:
$ yarn compile
Build
Compile the smart contracts and generate TypeChain artifacts:
$ yarn build
Lint Solidity
Lint the Solidity code:
$ yarn lint:sol
Lint TypeScript
Lint the TypeScript code:
$ yarn lint:ts
Test
Run the Mocha tests:
$ yarn test
Coverage
Generate the code coverage report:
$ yarn coverage
Clean
Delete the smart contract artifacts, the coverage reports and the Buidler cache:
$ yarn clean
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products.
You can always update your selection by clicking Cookie Preferences at the bottom of the page. For more information, see our Privacy Statement.
Essential cookies
We use essential cookies to perform essential website functions, e.g. they’re used to log you in. Learn more
Always active
Analytics cookies
We use analytics cookies to understand how you use our websites so we can make them better, e.g. they’re used to gather information about the pages you visit and how many clicks you need to accomplish a task. Learn more
坚固性模板
我最喜欢的编写可靠智能合约的设置。
- 更漂亮的插件可靠性:代码格式化程序
- TypeChain: generate TypeScript types for smart contracts
- Ethers: renowned Ethereum library and wallet implementation
- Waffle: tooling for writing comprehensive smart contract tests
- Solhint: linter
- Solcover code coverage
- Prettier Plugin Solidity: code formatter
这是一个GitHub模板,这意味着您可以随意重用它。您可以通过单击页面顶部的“使用此模板”按钮来完成此操作。
使用
先决条件
在运行任何命令之前,请确保安装依赖项:
$ yarn install
编译
使用Buildler编译智能合约:
$ yarn compile
Lint Solidity
编译智能合约并生成类型链工件:
$ yarn build
Lint TypeScript
Lint实体代码:
$ yarn lint:sol
测试
Lint类型脚本代码:
$ yarn lint:ts
覆盖率
运行Mocha测试:
$ yarn test
干净
生成代码覆盖率报告:
$ yarn coverage
基本cookies
删除智能合约工件、覆盖率报告和Buidler缓存:
$ yarn clean
我们使用可选的第三方分析cookie来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。
您可以随时通过单击页面底部的Cookie首选项来更新您的选择。有关更多信息,请参阅我们的隐私声明。
始终激活
我们使用基本Cookie来执行基本的网站功能,例如,它们用于让您登录。了解更多
分析cookies
Analytics cookies
我们使用analytics Cookie来了解您如何使用我们的网站,以便我们能够使其变得更好,例如,它们用于收集有关您访问的页面以及完成一项任务需要多少次单击的信息。了解更多信息
部分转自网络,侵权联系删除区块链源码网
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Solidity Template – 固体模板区块链毕设代写