基于区块链的毕业设计Ethereum Locker – 以太坊储物柜

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Ethereum Locker – 以太坊储物柜 是一篇很好的国外资料

Ethereum Locker

This project allowing to lock ether for a certain time via a graphical interface

Table of Contents

Smart-contract Installation Instructions
Front Installation Instructions


Functional workflow


Ether Locking

  1. you canh connect your wallet to the interface for locking some ether for a choosen time
  2. you will receive a notification, where you can found the duration you enter and the amount lock.

Ether Withdraw

  1. When the duration is past, then you can click on the withdraw button for receiving back your ethers

Smart-contract

Installation

  1. First, go to the folder:
    cd blockchain
With truffle

Run the local Truffle blockchain: bash truffle develop

  • In Truffle development console execute this command to compile the contracts: compile
  • Then migrate them on the local blockchain:
    migrate
With ganache
  1. Open ganache and configure it for requesting port 7545

  2. Migrate contract at the folder’s root:

    truffle migrate
  3. you can now interact with the smart contract

Interacting with the smart contract

  1. configure the smart-contract deployment account in the App.js file at ./client/src/App.js in the constant : contractAddresse

  2. retrieve the smart contract address via the deployment interface and add it to this constant : contractAddresse


Front

  1. go in the client folder

    cd client
  2. Then install all dependencie

    npm install
  3. Run the project

    npm run start

Go to http://localhost:3000 to see your app


fix send value & solc version


以太坊eth储物柜

此项目允许通过图形界面将乙醚锁定一定时间

目录

智能合约安装说明
前端安装说明


功能工作流


以太锁

  1. 您可以将您的钱包连接到界面,以便在选定的时间内锁定一些乙醚
  2. 您将收到一个通知,您可以在其中找到您输入的持续时间和金额锁定

以太退出

  1. 当持续时间过去后,您可以单击“撤消”按钮,首先接收回您的以太网,转到Truffle development console中的文件夹:cd blockchain执行此命令以编译契约:compile然后在本地区块链blockchain上迁移它们:migrate打开ganache并将其配置为在文件夹根位置请求端口7545迁移契约:Truffle migrate现在,您可以与智能合约进行交互

智能合约

安装

  1. 在App.js文件的./client/src/App.js中的常量:contractAddresse
块菌

Run the local Truffle blockchain: bash truffle develop

  • 中配置智能合约部署帐户,通过部署接口检索智能合约地址,并将其添加到客户端文件夹中的常量:contractAddresse
  • 中cd client
使用ganache
  1. 然后安装所有dependencie npm install
  2. 运行项目npm Run start
  3. 在文件夹的根目录:

与智能合约交互

  1. 您现在可以与智能合约交互

  2. 在./client/src/App.js的App.js文件中的常量:contractAddresse中配置智能合约部署帐户


前端

  1. 通过部署接口检索智能合约地址,并将其添加到此常量:contractAddresse中

    cd client
  2. 转到客户端文件夹

    npm install
  3. 然后安装所有依赖项

    npm run start

运行项目


fix send value & solc version

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情