PNEW.digital – Decentralized Innovation Platform (Next.js UI & Solidity smart contract) – PNEW.digital-去中心化创新平台(Next.js UI&实体智能合约)区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,PNEW.digital – Decentralized Innovation Platform (Next.js UI & Solidity smart contract) – PNEW.digital-去中心化创新平台(Next.js UI&实体智能合约)区块链毕设代写 是一篇很好的国外资料

PNEW.digital – Decentralized Innovation Platform (Next.js UI & Solidity smart contract)

The PNEW.digital app is a fully-functioning decentralized innovation application that allows users to create campaigns, manage campaigns, fund campaigns, and approve requests on the ethereum blockchain.

Table of contents

  • General info
  • Screenshots
  • Technologies
  • Setup
  • Features
  • Status
  • Inspiration
  • Contact

General info

The purpose of this project is to help me to better understand Solidity, Ethereum, Next.js and to inspire people with valuable content.

Screenshots

PNEW.digital - Decentralized Innovation Platform (Next.js UI & Solidity smart contract) - PNEW.digital-去中心化创新平台(Next.js UI&实体智能合约)

Technologies

  • Solc – version 0.4.17
  • Truffle-hdwallet-provider – version 1.0.17
  • Web3 – version 1.4.0
  • Next – version 11.0.1
  • Next-routes – version 1.4.2
  • React – version 17.0.2
  • React-dom – version 17.0.2
  • Semantic-ui-css – version 2.4.1
  • Semantic-ui-react – version 2.0.3

Setup

Please use yarn install & yarn dev to run the application in your local environment. Please also setup an infura account to deploy your contract.

Code Examples

Examples of smart contract methods:

contract CampaignFactory {     address[] public deployedCampaigns;      function createCampaign(uint256 minimum) public {         address newCampaign = new Campaign(minimum, msg.sender);         deployedCampaigns.push(newCampaign);     }      function getDeployedCampaigns() public view returns (address[]) {         return deployedCampaigns;     } }  contract Campaign {     struct Request {         string description;         uint256 value;         address recipient;         bool complete;         uint256 approvalCount;         mapping(address => bool) approvals;     }      Request[] public requests;     address public manager;     uint256 public minimumContribution;     mapping(address => bool) public approvers;     uint256 public approversCount;      modifier restricted() {         require(msg.sender == manager);         _;     }      function Campaign(uint256 minimum, address creator) public {         manager = creator;         minimumContribution = minimum;     }      function contribute() public payable {         require(msg.value > minimumContribution);          approvers[msg.sender] = true;         approversCount++;     } }

Features

List of features ready and TODOs for future development

  • Campaign contract factory
  • Campaign overview page
  • New campaign page
  • Campaign management page (incl. funding & request creation)
  • Request management page

To-do list:

  • Further improve visual design
  • Test cases for frontend
  • Deploy frontend to Heroku
  • Connect platform to fancy URL

Status

Project is: wip

Inspiration

Thanks to Udemy for providing inspiring content.

Contact

Created by @pwagnerde – feel free to contact me!

Add readme file


PNEW.digital-去中心化创新平台(Next.js UI&Solidity智能合约)

PNEW.digital应用程序是一个功能齐全的分散式创新应用程序,允许用户在以太坊eth区块链blockchain上创建活动、管理活动、资助活动和批准请求

目录

  • 一般信息
  • 技术
  • 设置
  • 功能
  • 状态
  • 灵感
  • 联系人
  • Solc-版本0.4.17

一般信息

这个项目的目的是帮助我更好地理解Solidity、Ethereum、Next.js,并用有价值的内容激励人们

屏幕截图

PNEW.digital - Decentralized Innovation Platform (Next.js UI & Solidity smart contract) - PNEW.digital-去中心化创新平台(Next.js UI&实体智能合约)

技术

  • Truffle hdwallet provider-版本1.0.17
  • Web3-版本1.4.0
  • Next-版本11.0.1
  • Next routes-版本1.4.2
  • React-版本17.0.2
  • React dom-版本17.0.2
  • 语义ui css-版本2.4.1
  • 语义ui react-版本2.0.3
  • 活动合同工厂

设置

请使用纱线安装;在本地环境中运行应用程序。还请设置infura帐户以部署您的合同

代码示例

智能合约方法的示例:

contract CampaignFactory {     address[] public deployedCampaigns;      function createCampaign(uint256 minimum) public {         address newCampaign = new Campaign(minimum, msg.sender);         deployedCampaigns.push(newCampaign);     }      function getDeployedCampaigns() public view returns (address[]) {         return deployedCampaigns;     } }  contract Campaign {     struct Request {         string description;         uint256 value;         address recipient;         bool complete;         uint256 approvalCount;         mapping(address => bool) approvals;     }      Request[] public requests;     address public manager;     uint256 public minimumContribution;     mapping(address => bool) public approvers;     uint256 public approversCount;      modifier restricted() {         require(msg.sender == manager);         _;     }      function Campaign(uint256 minimum, address creator) public {         manager = creator;         minimumContribution = minimum;     }      function contribute() public payable {         require(msg.value > minimumContribution);          approvers[msg.sender] = true;         approversCount++;     } }

功能

为未来开发准备的功能和待办事项列表:

  • 活动概述页
  • 新活动页
  • 活动管理页(包括资金和;请求创建)
  • 请求管理页
  • 进一步改进可视化设计

项目是:wip

  • 前端测试用例
  • 部署前端到Heroku
  • 连接平台到fancy URL
  • Connect platform to fancy URL

状态

感谢Udemy提供了鼓舞人心的内容

灵感

由@pwagnerde创建-请随时与我联系

联系人

Created by @pwagnerde – feel free to contact me!

Add readme file

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » PNEW.digital – Decentralized Innovation Platform (Next.js UI & Solidity smart contract) – PNEW.digital-去中心化创新平台(Next.js UI&实体智能合约)区块链毕设代写

提供最优质的资源集合

立即查看 了解详情