Typescript Solidity Dev Starter Kit – Typescript Solidity Dev初学者工具包区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Typescript Solidity Dev Starter Kit – Typescript Solidity Dev初学者工具包区块链毕设代写 是一篇很好的国外资料

Typescript Solidity Dev Starter Kit

This is a starter kit for developing, testing, and deploying smart contracts with a full Typescript environment. This stack uses Buidler as the platform layer to orchestrate all the tasks. Ethers is used for all Ethereum interactions and testing.

Blog Post

Using this Project

Clone this repository, then install the dependencies with npm install. Build everything with npm run build. https://buidler.dev has excellent docs, and can be used as reference for extending this project.

Available Functionality

Build Contracts

npm run compile

Generate TypeChain Typings

npm run build

Run Contract Tests

npm run test

Note: As is, the tests fail on purpose. This is to show the Solidity stack traces that Buidler enables!

Run Coverage Report for Tests

npm run coverage

Note: The branch coverage is 75 %.

Deploy to Ethereum

Create/modify network config in buidler.config.ts and add API key and private key, then run:

npx buidler run --network rinkeby scripts/deploy.ts

Verify on Etherscan

Add Etherscan API key to buidler.config.ts, then run:

npx buidler verify-contract --contract-name Counter --address <DEPLOYED ADDRESS>

Enhancement Wish List

  • Better migrations strategy (Buidler working on this)

PRs and feedback welcome!

More syntax fixes


使用此项目的Typescript Solidity Dev初学者工具包列出更好的迁移策略(Builder正在为此工作)

这是一个初学者工具包,用于在完整的Typescript环境中开发、测试和部署智能合约。这个堆栈使用Buidler作为平台层来编排所有任务。以太网用于所有以太坊eth交互和测试。

博客文章

Using this Project

克隆此存储库,然后使用npm install安装依赖项。用npm构建一切运行构建。https://buidler.dev有优秀的文档,可作为扩展本项目的参考。

Available Functionality

Build Contracts

npm run compile

Generate TypeChain Typings

npm run build

Run Contract Tests

npm run test

注意:测试是故意失败的。这是为了显示Buidler启用的可靠堆栈跟踪!

Run Coverage Report for Tests

npm运行覆盖率

注:分支机构覆盖率为75%。

Deploy to Ethereum

在中创建/修改网络配置buidler.config.ts并添加API密钥和私钥,然后运行:

npx builder run–network rinkeby脚本/部署.ts

Verify on Etherscan

将Etherscan API密钥添加到buidler.config.ts,然后运行:

npx builder verify contract–contract name Counter–address&lt;DEPLOYED address&gt;

Enhancement Wish List

  • Better migrations strategy (Buidler working on this)

PRs和反馈欢迎!

More syntax fixes

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/17741.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Typescript Solidity Dev Starter Kit – Typescript Solidity Dev初学者工具包区块链毕设代写

提供最优质的资源集合

立即查看 了解详情