PolyBread – 多头面包区块链毕设代写

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

PolyBread

PolyBread is a dApp on the Polygon network.

Installation

npm install or yarn install

Usage

to run the local EVM (Hardhat): npx hardhat node

to compile contracts (& generate typechain bindings): npx hardhat compile

to deploy contracts to EVM: npx hardhat run scripts/deploy.ts --network [hardhat || matic_testnet]

to run unit tests (mocha, defined in ./test directory): npx hardhat test

Project Structure

For conceptual project information, see whitepaper

This repo contains both the “backend” (hardhat solidity dev environment) and frontend (next.js)

  • Contracts

    • solidity contracts are located in ./contracts
    • contract artifacts are stored in ./artifacts
    • generated contract typechain bindings are stored in ./frontend/src/hardhat
  • Tests

    • unit tests are located in ./test and use mocha + chai for verbose testing.
    • contract interaction is imported from typechain. see ./test/SampleBread.ts for an example.

Frontend

Frontend of the dApp is located in ./frontend. It’s a React/Next.js app that was initially generated by create-react-app. Frontend is written in typescript and utilizes Chakra UI for UI components. Frontend implementation is loosely based on the Yearn team’s yGift repo, due to it being a great example of implementing a similiar stack.

Stack

  • Hardhat
  • [ethers.js]
  • [Hardhat-react]
  • [next.js]

Contributing

  • Ethereum developer resources: here
  • Smart contract best practices: here

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT


PolyBread

PolyBread是多边形网络上的一个dApp

安装

npm install或yarn install

使用

运行本地EVM(Hardhat):npx Hardhat节点

以编译合同;生成类型链绑定):npx hardhat compile

将契约部署到EVM:npx hardhat run scripts/deploy.ts–network[hardhat | | | matic_testnet]

运行单元测试(mocha,在./test目录中定义):npx hardhat test

项目结构

获取概念项目信息,参见白皮书

此回购包含“后端”(hardhat solidity dev environment)和前端(next.js)

  • 合同实体合同位于./Contracts合同工件存储在./artifacts生成的合同类型链绑定存储在./frontend/src/hardhat
  • 测试单元测试位于./test并使用mocha+chai进行详细测试。契约交互是从typechain导入的。有关示例,请参见./test/SampleBread.ts

前端

dApp的前端位于./frontend。它是一个React/Next.js应用程序,最初由create React app生成。前端是用typescript编写的,并利用Chakra UI作为UI组件。前端实现松散地基于earn团队的yGift repo,因为它是实现类似堆栈的一个很好的例子

堆栈

  • [ethers.js]
  • [Hardhat react]
  • [next.js]
  • 以太坊eth开发者资源:这里

贡献

  • 智能合约最佳实践:这里
  • Smart contract best practices: here

欢迎拉取请求。对于重大更改,请先打开一个问题来讨论您想要更改的内容

请确保根据需要更新测试

许可证

MIT

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情