【文件属性】:
文件名称:uber-ethereum:以太坊上的去中心化的uber样系统
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-15 05:48:41
nodejs ethereum solidity tcr web3
优步以太坊
以太坊上的去中心化的uber样系统
要运行单元测试,请克隆此存储库,然后运行:
$ npm install
$ npm test
定义令牌属性
您需要修改一个JSON文件( conf/config.json ):
{
" token " : {
" decimals " : " 5 " ,
" name " : " DriverToken " ,
" symbol " : " DRT " ,
" supply " : " 21000000 "
}
}
【文件预览】:
uber-ethereum-master
----.gitignore(41B)
----app()
--------javascripts()
--------index.html(962B)
----truffle-config.js(135B)
----package.json(1KB)
----webpack.config.js(605B)
----.travis.yml(297B)
----scripts()
--------build.sh(82B)
----README.md(695B)
----migrations()
--------2_deploy_contracts.js(1KB)
--------1_initial_migration.js(129B)
----contracts()
--------Registry.sol(6KB)
--------EIP20.sol(3KB)
--------MatchMaker.sol(3KB)
--------Migrations.sol(515B)
--------Voting.sol(7KB)
----truffle.js(181B)
----conf()
--------config.json(115B)
----test()
--------voter.js(2KB)
--------challenger.js(3KB)
--------driver.js(1KB)