Hardhat Hackathon Boilerplate – Hardhat Hackathon样板区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Hardhat Hackathon Boilerplate – Hardhat Hackathon样板区块链毕设代写 是一篇很好的国外资料

Hardhat Hackathon Boilerplate

This repository contains a sample project that you can use as the starting point for your Ethereum project. It’s also a great fit for learning the basics of smart contract development.

This project is intended to be used with the Hardhat Beginners Tutorial, but you should be able to follow it by yourself by reading the README and exploring its contracts, tests, scripts and frontend directories.

Quick start

The first things you need to do are cloning this repository and installing its dependencies:

git clone https://github.com/nomiclabs/hardhat-hackathon-boilerplate.git cd hardhat-hackathon-boilerplate npm install

Once installed, let’s run Hardhat’s testing network:

npx hardhat node

Then, on a new terminal, go to the repository’s root folder and run this to deploy your contract:

npx hardhat run scripts/deploy.js --network localhost

Finally, we can run the frontend with:

cd frontend npm install npm start

Note: There’s an issue in ganache-core that can make the npm install step fail.

If you see npm ERR! code ENOLOCAL, try running npm ci instead of npm install.

Open http://localhost:3000/ to see your Dapp. You will need to have Metamask installed and listening to localhost 8545.

User Guide

You can find detailed instructions on using this repository and many tips in its documentation.

  • Project description (Token.sol)
  • Setting up the environment
  • Testing with Hardhat, Mocha and Waffle
  • Setting up Metamask
  • Hardhat’s full documentation

For a complete introduction to Hardhat, refer to this guide.

What’s Included?

Your environment will have everything you need to build a Dapp powered by Hardhat and React.

  • Hardhat: An Ethereum development task runner and testing network.
  • Mocha: A JavaScript test runner.
  • Chai: A JavaScript assertion library.
  • ethers.js: A JavaScript library for interacting with Ethereum.
  • Waffle: To have Ethereum-specific Chai assertions/mathers.
  • A sample frontend/Dapp: A Dapp which uses Create React App.

Troubleshooting

  • Invalid nonce errors: if you are seeing this error on the npx hardhat node console, try resetting your Metamask account. This will reset the account’s transaction history and also the nonce. Open Metamask, click on your account followed by Settings > Advanced > Reset Account.

Feedback, help and news

We’d love to have your feedback on this tutorial. Feel free to reach us through this repository or our Discord server.

Also you can follow us on Twitter.

Happy buidling!


Hardhat Hackathon样板文件

此存储库包含一个示例项目,您可以将其用作以太坊eth项目的起点。它也非常适合学习智能合约开发的基础知识

本项目旨在与Hardhat初学者教程一起使用,但您应该能够通过阅读自述文件并探索其合同、测试、脚本和前端目录来了解本项目

快速入门

您需要做的第一件事是克隆此存储库并安装其依赖项:

git clone https://github.com/nomiclabs/hardhat-hackathon-boilerplate.git cd hardhat-hackathon-boilerplate npm install

一旦安装,让我们运行Hardhat的测试网络:

npx hardhat node

然后,在新的终端上,转到存储库的根文件夹并运行此命令以部署您的合同:

npx hardhat run scripts/deploy.js --network localhost

最后,我们可以使用以下命令运行前端:

cd frontend npm install npm start

注意:ganache core中存在一个问题,可能导致npm安装步骤失败

如果你看到npm出错!代码为ENOLOCAL,请尝试运行npm ci而不是npm install

打开http://localhost:3000/ 去看你的Dapp。您需要安装Metamask并收听localhost 8545。

用户指南

您可以在其文档中找到有关使用此存储库的详细说明和许多提示

  • 项目描述(Token.sol)
  • 设置环境
  • 使用Hardhat、Mocha和华夫饼干进行测试
  • 设置元掩码
  • Hardhat的完整文档

有关安全帽的完整介绍,请参阅本指南

包括哪些内容

您的环境将具备构建由安全帽驱动的Dapp并做出反应所需的一切

  • Hardhat:以太坊eth开发任务运行者和测试网络
  • Mocha:JavaScript测试运行者
  • Chai:一个JavaScript断言库
  • ethers.js:用于与以太坊eth交互的JavaScript库
  • 华夫饼干:拥有以太坊eth特有的断言/数学
  • 示例前端/Dapp:使用Create-React应用程序的Dapp

故障排除

  • 无效的当前错误:如果您在npx hardhat节点控制台上看到此错误,请尝试重置元掩码帐户。这将重置帐户的交易历史记录以及当前状态。打开Metamask,单击您的帐户,然后单击设置>高级>重置帐户

反馈、帮助和新闻

我们很乐意收到您对本教程的反馈。请随时通过此存储库或Discord服务器与我们联系

你也可以在推特上关注我们

建房快乐

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Hardhat Hackathon Boilerplate – Hardhat Hackathon样板区块链毕设代写

提供最优质的资源集合

立即查看 了解详情