Ethereum DApp for Tracking Items through Supply Chain – 以太坊DApp用于通过供应链跟踪项目区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Ethereum DApp for Tracking Items through Supply Chain – 以太坊DApp用于通过供应链跟踪项目区块链毕设代写 是一篇很好的国外资料

Ethereum DApp for Tracking Items through Supply Chain

Introduction

This project consists in a decentralized application (DApp) of a supply chain solution backed by the Ethereum platform. It has Solidity smart contracts that manage specific user permission controls as well as track and verify products authenticity. It demonstrates a commonly supply chain process between a buyer and a seller. The seller can add items to the inventory system stored in the blockchain and the buyer can purchase such items. the seller can mark an item as shipped and the buyer can mark an item as received as well.

The project has some UML diagrams (in the diagrams folder) as the activity diagram below to make it better to understand the flow of the product in the supply chain.

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

Important: The project was made with the versions below, since Truffle v5 comes with Solidity v0.5 with many changes concerning mutability and visibility.

  • Truffle v4.1.14 (core: 4.1.14)
  • Solidity v0.4.24 (solc-js)
  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)

Important: The project didn’t use any external libraries worth mentioning and also didn’t use IPFS to host the frontend part decentralized as well.

Getting Started

  1. Clone this repository.
  2. Install the dependencies with NodeJS and NPM.
  3. Test the application making calls to the contract on the Rinkeby Test Network.
  4. Take a look at the transactions happening on the Rinkeby Test Network at Etherscan explorer.

Dependencies

  1. Create an Ethereum account. Ethereum is a decentralized platform that runs smart contracts.
  2. Create an account and install the Metamask extension on your web browser.
  3. Create an Infura account to publish the contracts into the Rinkeby Test Network.
  4. Install Truffle CLI. Truffle is the most popular development framework for Ethereum.
  5. Use this passphrase with Ganache command as a suggestion “spirit supply whale amount human item harsh scare congress discover talent hamster”. Ganache is part of the Truffle suite that you can use to run a personal Ethereum blockchain.

Important: You will need your personal passphrase from your Ethereum account to publish into the Rinkeby Test Network, hence the .secret file in the truffle-config.js, even tough being a test network.

Instructions

  1. Install the dependencies:
  npm i   npm i -g truffle@4.1.14   npm i -g ganache-cli
  1. Turn on the Ganache suite so that you will have pre-defined accounts to test the contracts:
  ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster"

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

  1. Migrate, compile and test the contracts with truffle (on a separate console). It will use the previously up and running ganache locally blockchain.
  truffle migrate   truffle compile   truffle test

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

  1. Publish the contracts into the Rinkeby Test Network with your Infura key:
  truffle migrate --reset --network rinkeby
  1. Check out and test the DApp in the frontend with the command below. You can run on the ganache-cli window, since Ganache was only for testing purpose.
  npm run dev

Important: As a reminder, the frontend of the application will interact with the contract on the Rinkeby Test Network, not with the pre-built accounts and deployed contracts made by the Ganache suite, as you can see in the browser’s developer console.

Output

Here is an example of the smart contract in the blockchain and the transactions on Rinkeby:

Etherscan info:

  • Transaction ID: 0x6b3dc37663772515e0464098be314717e109ccdfb882725ce65432161d8e4404
  • Contract: 0xcf5a7edb0a5967acab9b81eb06c021b81b9ce1af

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

Update README.md


以太坊ethDApp,用于通过供应链跟踪项目

简介

该项目由以太坊eth平台支持的供应链解决方案的分散应用程序(DApp)组成。它拥有Solidity智能合约,可以管理特定的用户权限控制以及跟踪和验证产品的真实性。它展示了买方和卖方之间一个常见的供应链流程。卖方可以向区块链blockchain中存储的库存系统添加物品,买方可以购买这些物品。卖方可以将商品标记为已装运,买方也可以将商品标记为已收到

该项目有一些UML图(在diagrams文件夹中)作为下面的活动图,以便更好地理解产品在供应链中的流程

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

重要提示:由于Truffle v5配备了Solidity v0.5,并对可变性和可见性进行了许多更改,因此该项目采用了以下版本

  • Truffle v4.1.14(核心:4.1.14)
  • Solidity v0.4.24(solc js)
  • Ganache CLI v6.12.2(Ganache核心:2.13.2)

重要提示:该项目没有使用任何值得一提的外部库,也没有使用IPF托管前端部件

依赖项

  1. 克隆此存储库
  2. 使用NodeJS和NPM安装依赖项
  3. 在Rinkeby测试网络上调用合同来测试应用程序
  4. 在Etherscan explorer上查看Rinkeby测试网络上发生的事务

指令

  1. 创建帐户并在web浏览器上安装Metamask扩展
  2. 创建Infura帐户,将合同发布到Rinkeby测试网络
  3. 安装Truffle CLI。块菌是以太坊eth最流行的开发框架
  4. 将此密码短语与Ganache命令一起用作建议“精神供应鲸鱼数量人类物品严酷恐吓大会发现天才仓鼠”。Ganache是块菌套件的一部分,您可以使用它来运行个人以太坊eth区块链blockchain
  5. 安装依赖项:

重要提示:您需要从以太坊eth帐户获得您的个人密码才能发布到Rinkeby测试网络,因此在truffle-config.js中有.secret文件,即使是测试网络也很困难

输出

  1. 打开Ganache套件,这样您将拥有预定义的帐户来测试契约:
  npm i   npm i -g truffle@4.1.14   npm i -g ganache-cli
  1. 使用truffle迁移、编译和测试契约(在单独的控制台上)。它将使用先前在本地启动并运行的ganache区块链blockchain
  ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster"

Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

  1. 使用您的Infura密钥将合同发布到Rinkeby测试网络中:
  truffle migrate   truffle compile   truffle test

重要提示:应用程序前端将与Rinkeby测试网络上的契约交互,而不是与Ganache套件创建的预构建帐户和部署契约交互,正如您在浏览器的开发人员控制台中所看到的那样

  1. 使用下面的命令在前端签出并测试DApp。您可以在ganache cli窗口上运行,因为ganache仅用于测试目的
  truffle migrate --reset --network rinkeby
  1. 交易ID:0x6B3D3C37663772515E0464098BE314717E109CCDFB882725CE65432161D8E4404
  npm run dev

以下是区块链blockchain中的智能合约和Rinkeby上的交易示例:

Output

以太扫描信息:

<Ethereum DApp for Tracking Items through Supply Chain><Ethereum DApp for Tracking Items through Supply Chain>

<Ethereum DApp for Tracking Items through Supply Chain><Ethereum DApp for Tracking Items through Supply Chain>

以太坊ethDApp,用于通过供应链跟踪项目

简介

开始

依赖项

指令

输出

  • Truffle v4.1.14(核心:4.1.14)
  • Solidity v0.4.24(solc js)
  • Ganache CLI v6.12.2(Ganache核心:2.13.2)
  • 克隆此存储库
  • 使用NodeJS和NPM安装依赖项
  • 在Rinkeby测试网络上调用合同来测试应用程序
  • 在Etherscan explorer上查看Rinkeby测试网络上发生的事务
  • 创建以太坊eth帐户。以太坊eth是一个分散的平台,运行智能合约

  • 创建帐户并在web浏览器上安装Metamask扩展
  • 创建Infura帐户,将合同发布到Rinkeby测试网络
  • 安装Truffle CLI。块菌是以太坊eth最流行的开发框架
  • 将此密码短语与Ganache命令一起用作建议“精神供应鲸鱼数量人类物品严酷恐吓大会发现天才仓鼠”。Ganache是块菌套件的一部分,您可以使用它来运行个人以太坊eth区块链blockchain
  • 安装依赖项:
  • 打开Ganache套件,这样您将拥有预定义的帐户来测试契约:
  • 使用truffle迁移、编译和测试契约(在单独的控制台上)。它将使用先前在本地启动并运行的ganache区块链blockchain
  • 使用您的Infura密钥将合同发布到Rinkeby测试网络中:
  • 使用下面的命令在前端签出并测试DApp。您可以在ganache cli窗口上运行,因为ganache仅用于测试目的
  • 交易ID:0x6B3D3C37663772515E0464098BE314717E109CCDFB882725CE65432161D8E4404
  • 合同:0xcf5a7edb0a5967acab9b81eb06c021b81b9ce1af

    • Transaction ID: 0x6b3dc37663772515e0464098be314717e109ccdfb882725ce65432161d8e4404
    • Contract: 0xcf5a7edb0a5967acab9b81eb06c021b81b9ce1af

    Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

    <Ethereum DApp for Tracking Items through Supply Chain><Ethereum DApp for Tracking Items through Supply Chain>

    以太坊ethDApp,用于通过供应链跟踪项目

    简介

    开始

    依赖项

    指令

    输出

  • Truffle v4.1.14(核心:4.1.14)
  • Solidity v0.4.24(solc js)
  • Ganache CLI v6.12.2(Ganache核心:2.13.2)
  • 克隆此存储库
  • 使用NodeJS和NPM安装依赖项
  • 在Rinkeby测试网络上调用合同来测试应用程序
  • 在Etherscan explorer上查看Rinkeby测试网络上发生的事务
  • 创建以太坊eth帐户。以太坊eth是一个分散的平台,运行智能合约

  • 创建帐户并在web浏览器上安装Metamask扩展
  • 创建Infura帐户,将合同发布到Rinkeby测试网络
  • 安装Truffle CLI。块菌是以太坊eth最流行的开发框架
  • 将此密码短语与Ganache命令一起用作建议“精神供应鲸鱼数量人类物品严酷恐吓大会发现天才仓鼠”。Ganache是块菌套件的一部分,您可以使用它来运行个人以太坊eth区块链blockchain
  • 安装依赖项:
  • 打开Ganache套件,这样您将拥有预定义的帐户来测试契约:
  • 使用truffle迁移、编译和测试契约(在单独的控制台上)。它将使用先前在本地启动并运行的ganache区块链blockchain
  • 使用您的Infura密钥将合同发布到Rinkeby测试网络中:
  • 使用下面的命令在前端签出并测试DApp。您可以在ganache cli窗口上运行,因为ganache仅用于测试目的
  • 交易ID:0x6B3D3C37663772515E0464098BE314717E109CCDFB882725CE65432161D8E4404
  • 合同:0xcf5a7edb0a5967acab9b81eb06c021b81b9ce1af

    Ethereum DApp for Tracking Items through Supply Chain - <a href=以太坊ethDApp用于通过供应链跟踪项目”>

    Update README.md

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

    www.interchains.cc

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

    区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
    区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Ethereum DApp for Tracking Items through Supply Chain – 以太坊DApp用于通过供应链跟踪项目区块链毕设代写

    提供最优质的资源集合

    立即查看 了解详情