forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/juzix-kelvin/bcos
- Loading branch information
Showing
1,321 changed files
with
469 additions
and
36,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "accounttool", | ||
"version": "1.0.0", | ||
"description": "tools for nodejs \"", | ||
"main": "deploy.js", | ||
"scripts": { | ||
"test": "test" | ||
}, | ||
"keywords": [ | ||
"tools" | ||
], | ||
"author": "bcos", | ||
"license": "GPL-3.0", | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-preset-es2017": "^6.24.1", | ||
"bignumber": "^1.1.0", | ||
"bignumber.js": "^2.3.0", | ||
"bn.js":"^4.11.6", | ||
"crypto-js": "^3.1.6", | ||
"express": "^4.15.3", | ||
"keccak": "^1.2.0", | ||
"rlp": "^2.0.0", | ||
"secp256k1": "^3.2.5", | ||
"web3": "^0.17.0-alpha" | ||
}, | ||
"engines": { | ||
"node": ">=6.10.3", | ||
"npm": ">=3.10.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# | ||
# 一键安装脚本说明 | ||
#1 build.sh在centos和Ubuntu版本测试成功; | ||
#2 所有Linux发行版本请确保yum和git已安装,并能正常使用; | ||
#3 如遇到中途依赖库下载失败,一般和网络状况有关,请到https://github.com/bcosorg/lib找到相应的库,手动安装成功后,再执行此脚本 | ||
# | ||
|
||
#!/bin/sh | ||
|
||
#install nodejs | ||
sudo yum install -y nodejs | ||
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org | ||
sudo cnpm install -g babel-cli babel-preset-es2017 | ||
echo '{ "presets": ["es2017"] }' > ~/.babelrc | ||
|
||
|
||
#install solc | ||
wget https://github.com/ethereum/solidity/releases/download/v0.4.13/solc-static-linux | ||
sudo cp solc-static-linux /usr/bin/solc | ||
sudo chmod +x /usr/bin/solc | ||
|
||
#install console | ||
sudo cnpm install -g ethereum-console | ||
|
||
#install deps | ||
sudo yum -y install cmake3 | ||
sudo yum install -y openssl openssl-devel | ||
chmod +x scripts/install_deps.sh | ||
./scripts/install_deps.sh | ||
|
||
#build bcos | ||
mkdir -p build | ||
cd build/ | ||
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then | ||
cmake -DEVMJIT=OFF -DTESTS=OFF -DMINIUPNPC=OFF .. | ||
else | ||
cmake3 -DEVMJIT=OFF -DTESTS=OFF -DMINIUPNPC=OFF .. | ||
fi | ||
|
||
make -j2 | ||
|
||
make install | ||
|
||
cd .. | ||
cd ./tool | ||
cnpm install | ||
|
||
cd .. | ||
cd ./systemcontractv2 | ||
cnpm install | ||
|
||
if [ ! -f "/usr/local/bin/bcoseth" ]; then | ||
echo 'bcoseth build fail!' | ||
else | ||
echo 'bcoseth build succ! path: /usr/local/bin/bcoseth' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
{ | ||
"sealEngine": "PBFT", | ||
"systemproxyaddress":"0x0", | ||
"systemproxyaddressDfsFile":"", | ||
"systemproxyaddressDfsServer":"", | ||
"listenip":"127.0.0.1", | ||
"rpcport":"6801", | ||
"p2pport":"30303", | ||
"wallet":"keys.info", | ||
"keystoredir":"keystore/", | ||
"datadir":"", | ||
"vm":"interpreter", | ||
"networkid":"12345", | ||
"logverbosity":"4", | ||
"coverlog":"OFF", | ||
"eventlog":"ON", | ||
"logconf":"log.conf", | ||
"dfsNode":"de0fa385816b505799433e54b88788e21cb42092a6ff5bcaa2285d7ace906e5e6ce8ef2b30134ff276a5834d58721291acc5864e07e6d52469b79b28e699dfde", | ||
"dfsGroup":"group1", | ||
"dfsStorage":"filestorage", | ||
"params": { | ||
"accountStartNonce": "0x0", | ||
"maximumExtraDataSize": "0x0", | ||
"tieBreakingGas": false, | ||
"blockReward": "0x0", | ||
"networkID" : "0x0" | ||
}, | ||
"NodeextraInfo":[ | ||
{ | ||
"Nodeid":"de0fa385816b505799433e54b88788e21cb42092a6ff5bcaa2285d7ace906e5e6ce8ef2b30134ff276a5834d58721291acc5864e07e6d52469b79b28e699dfde", | ||
"Nodedesc": "node1", | ||
"Agencyinfo": "node1", | ||
"Peerip": "127.0.0.1", | ||
"Identitytype": 1, | ||
"Port":30303, | ||
"Idx":0 | ||
} | ||
] | ||
} | ||
{ | ||
"sealEngine": "PBFT", | ||
"systemproxyaddress":"0x0", | ||
"systemproxyaddressDfsFile":"", | ||
"systemproxyaddressDfsServer":"", | ||
"listenip":"127.0.0.1", | ||
"rpcport":"8545", | ||
"p2pport":"30303", | ||
"wallet":"/mydata/nodedata-1/keys.info", | ||
"keystoredir":"/mydata/nodedata-1/keystore/", | ||
"datadir":"/mydata/nodedata-1/data/", | ||
"vm":"interpreter", | ||
"networkid":"12345", | ||
"logverbosity":"4", | ||
"coverlog":"OFF", | ||
"eventlog":"ON", | ||
"logconf":"/mydata/nodedata-1/log.conf", | ||
"dfsNode":"de0fa385816b505799433e54b88788e21cb42092a6ff5bcaa2285d7ace906e5e6ce8ef2b30134ff276a5834d58721291acc5864e07e6d52469b79b28e699dfde", | ||
"dfsGroup":"group1", | ||
"dfsStorage":"filestorage", | ||
"params": { | ||
"accountStartNonce": "0x0", | ||
"maximumExtraDataSize": "0x0", | ||
"tieBreakingGas": false, | ||
"blockReward": "0x0", | ||
"networkID" : "0x0" | ||
}, | ||
"NodeextraInfo":[ | ||
{ | ||
"Nodeid":"de0fa385816b505799433e54b88788e21cb42092a6ff5bcaa2285d7ace906e5e6ce8ef2b30134ff276a5834d58721291acc5864e07e6d52469b79b28e699dfde", | ||
"Nodedesc": "node1", | ||
"Agencyinfo": "node1", | ||
"Peerip": "127.0.0.1", | ||
"Identitytype": 1, | ||
"Port":30303, | ||
"Idx":0 | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.