[Solutions Bounty] NFTrees – [解决方案赏金]NFTrees区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,[Solutions Bounty] NFTrees – [解决方案赏金]NFTrees区块链毕设代写 是一篇很好的国外资料

[Solutions Bounty] NFTrees

This project is developed as a participating solution in the Gitcoin Green NFT hackathon as a Solutions Bounty: https://gitcoin.co/issue/GreenNFT/GreenNFTs/1/100025260 Based on my idea regarding compensating the nature when minting NFTs which is explained in more detail here: https://github.com/levskarcheto96/-Awareness-Bounty-NFTrees

Description of the current functionality on the platform

Below I will guide you through each of the pages of the NFTrees platform in its current state. The information below is subject to changes as the platform evolves and new features are introduced:

Explore

Here you will find all the NFTs that have been minted on this platform under the big image. Below the list one can see statistics about how much ETH has been donated via minting of these NFTs as well as how that amount equals to number of trees planted. This is determined based on the equation $1 = 1 tree.

Create

Here you can create your brand new digital artwork. Currently accepted formats are .png, .jpg, .gif and .webp. Below we have an input field which corresponds to the donation amount that is to be provided to an authorized non-profit organization for planting trees all around the world. A minimum amount of 0.001 ETH is to be entered. From the dropdown one could choose from the list of authorized recipients. Currently the address that is used is for strictly testing purposes and does not have anything to do with the organization given. This is to be changed once this idea is communicated with a non-profit organization and they open a wallet address on the Ethereum network. The user can also specify a name and a description for the NFT and click on “Create Item” to mint their brand new NFT.

My Items

Once the user creates their NFT, they are automatically redirected to this page where they can see a list of their minted NFTs and how much they have donated to non-profit organizations, similarly to the statistics on the “Explore” page, however, here the data is related to the current wallet account’s NFTs.

About

Here you can find some FAQs regarding the platform and also regarding some of the future steps which are to be made.


Development

Blockchain part – Smart Contracts

Setup for local blockchain environment

Make sure to install Truffle and to have a local development Ethereum blockchain started (e.g. Ganache) and also a wallet provider such as MetaMask connected to that development blockchain. Then you can run the following commands to deploy the smart contracts and also test them.

npm install     # install dependencies such as truffle-assertions and @openzeppelin/contracts truffle migrate # build and deploy the smart contract LightsaberAuction - since it inherits from the LightsaberForge we do not need to deploy the other one truffle test    # run the tests

If at some point you would like to redeploy the contracts just run the command

truffle migrate --reset # build and redeploy the smart contract

Learn More

Check out the Truffle documentation.

Frontend part – React

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project’s frontend directory, you can run:

npm install     # install dependencies for frontend

Then:

npm start     # Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.


[解决方案赏金]NFTrees

本项目是作为Gitcoin绿色NFT hackathon的参与解决方案开发的,作为解决方案奖励:https://gitcoin.co/issue/GreenNFT/GreenNFTs/1/100025260 基于我关于在铸造NFT时补偿自然的想法,这里有更详细的解释:https://github.com/levskarcheto96/-Awareness-Bounty-NFTrees

平台上当前功能的描述

下面我将引导您浏览NFTrees平台当前状态下的每一页。随着平台的发展和新功能的引入,以下信息可能会发生变化:

探索

在这里,您将在大图像下找到所有在此平台上铸造的NFT。在下面的列表中,我们可以看到关于通过铸造这些NFT捐赠了多少ETH的统计数据,以及这个数量如何等于种植的树木数量。这是根据公式$1=1树确定的

创建

在这里,您可以创建全新的数字艺术品。目前接受的格式有.png、.jpg、.gif和.webp。下面是一个输入字段,对应于将提供给授权的非营利组织在世界各地植树的捐赠金额。最低金额为0.001 ETH。您可以从下拉列表中选择授权收件人。目前使用的地址仅用于严格的测试目的,与给定的组织无关。一旦这一想法与非营利组织沟通,并且他们在以太坊eth网络上打开了一个钱包地址,这一点就会改变。用户还可以指定NFT的名称和描述,并单击“createitem”创建他们的全新NFT

我的项目

一旦用户创建了他们的NFT,他们会自动重定向到此页面,在那里他们可以看到他们铸造的NFT的列表,以及他们向非营利组织捐赠了多少钱,类似于“探索”页面上的统计数据,但是,这里的数据与当前钱包帐户的NFT相关

关于

在这里,您可以找到一些有关该平台的常见问题解答,以及有关未来将要采取的一些步骤的常见问题解答


开发

区块链blockchain部分-智能合约

本地区块链blockchain环境设置

确保安装Truffle,并启动本地开发以太坊eth区块链blockchain(如Ganache),以及钱包提供商(如MetaMask)连接到该开发区块链blockchain。然后,您可以运行以下命令来部署智能合约并对其进行测试

npm install     # install dependencies such as truffle-assertions and @openzeppelin/contracts truffle migrate # build and deploy the smart contract LightsaberAuction - since it inherits from the LightsaberForge we do not need to deploy the other one truffle test    # run the tests

如果您想重新部署契约,只需运行命令

truffle migrate --reset # build and redeploy the smart contract

了解更多信息

查看Truffle文档

前端部分-React

创建React应用程序入门

这个项目是用Create-React-App引导的

可用脚本

在项目的前端目录中,您可以运行:

npm install     # install dependencies for frontend

然后:

npm start     # Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

了解更多信息

您可以在Create React App文档中了解更多信息

要了解React,请查看React文档

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情