Freelance Driving Smart Contract – 自由驾驶智能合约区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Freelance Driving Smart Contract – 自由驾驶智能合约区块链毕设代写 是一篇很好的国外资料

Freelance Driving Smart Contract

Group members:

  • Kun Y: kun.yu25@myhunter.cuny.edu

Purpose of Contract:

Operating a car-for-hire business has many benefits, which include being able to set your own hours and being your own boss. However, in the current climate, this usually involves a third-party middleman used to connect you to customers who can take a significant portion of the money. This smart contract and its associated smart contracts aims to solve that issue by facilating the connection of drivers and customers while only taking a small fee to pay for network costs. This way, the driver gets to keep close to all the money the client is paying for the car ride.

Logic

This contract helps reinforce trust between 2 parties by enforcing a down payment on the transaction amount to be paid when sending the request. The request can be retracted at any time before the driver accepts it for a refund of the down payment. Furthermore, for the driver to obtain the remaining portion of the transaction amount, acknowledgements of request completion must be recieved by both the driver and rider. The contract also has functionality that allows the driver to stop and start recieving requests mimicking a work day.

Tests

Truffle and truffle-assertions are used for this project for testing.
To run tests, first install dependencies:

npm install 

Then to run tests, in a seperate console window have a local ETH client running by:

npx ganache-cli 

Then to run tests, run:

npm run test 

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


自由驾驶智能合约坤玉25@我的猎人。纽约大学。埃杜在

Group members:

  • Kun Y: kun.yu25@myhunter.cuny.edu

Purpose of Contract:

经营租车业务有很多好处,其中包括可以自己设定时间和做自己的老板。然而,在目前的环境下,这通常涉及到第三方中间商,用于将您与客户联系起来,这些客户可以从中获得相当大的一部分资金。该智能合约及其相关的智能合约旨在通过促进司机和客户的连接,同时只收取少量费用来支付网络成本,从而解决这一问题。这样,司机就可以接近客户支付的所有车费。

Logic

本合同通过在发送请求时对要支付的交易金额强制执行首付款,有助于加强双方之间的信任。在司机接受要求退还首付款之前,该要求可随时撤回。此外,为了让驾驶员获得交易金额的剩余部分,驾驶员和附加人必须收到请求完成确认。该合同还具有允许驾驶员在模拟工作日的情况下停止和开始接收请求的功能。

Tests

Truffle和Truffle断言用于此项目进行测试。
若要运行测试,请首先安装依赖项:

npm install 

然后要运行测试,在单独的控制台窗口中让本地ETH客户端运行:

npx ganache-cli 

然后要运行测试,请运行:

npm run test 

我们使用可选的第三方分析Cookie来了解您是如何运行的使用GitHub.com网站所以我们可以制造更好的产品。了解更多。

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情