-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e068434
Showing
565 changed files
with
365,054 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
src/*.exe | ||
src/ketosisd | ||
src/build.h | ||
.*.swp | ||
*.*~* | ||
*.bak | ||
*.rej | ||
*.orig | ||
*.o | ||
*.patch | ||
|
||
#compilation and Qt preprocessor part | ||
*.qm | ||
Makefile* | ||
.qmake.stash | ||
ketosis-qt | ||
|
||
|
||
!src/leveldb*/Makefile | ||
!src/makefile* | ||
|
||
#resources cpp | ||
qrc_*.cpp | ||
|
||
#qt creator | ||
*.pro.user | ||
|
||
#mac specific | ||
.DS_Store | ||
build | ||
*.plist | ||
*.xcodeproj | ||
PortIndex* | ||
dist | ||
*.app | ||
*.dmg | ||
.idea | ||
*.iml |
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,22 @@ | ||
Copyright (c) 2017 KETOsis Developers | ||
Copyright (c) 2013-2014 NovaCoin Developers | ||
Copyright (c) 2011-2012 PPCoin Developers | ||
Copyright (c) 2009-2015 Bitcoin Developers | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,9 @@ | ||
Building KETOsis | ||
|
||
See doc/readme-qt.rst for instructions on building KETOsis QT, | ||
the intended-for-end-users, nice-graphical-interface, reference | ||
implementation of KETOsis. | ||
|
||
See doc/build-*.txt for instructions on building ketosisd, | ||
the intended-for-services, no-graphical-interface, reference | ||
implementation of KETOsis. |
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,93 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
stage('Copy To Windows Build Location') { | ||
steps { | ||
sh '''rm -rf /mnt/KETOsis-Master | ||
cp -a $WORKSPACE /mnt/KETOsis-Master | ||
cd /mnt | ||
cp compile-keto.sh KETOsis-Master/compile-keto.sh | ||
cd KETOsis-Master | ||
qmake | ||
make distclean | ||
''' | ||
} | ||
} | ||
stage('Leveldb builds') { | ||
parallel { | ||
stage('Linux') { | ||
steps { | ||
sh '''cd src/leveldb | ||
chmod +x build_detect_platform | ||
make libleveldb.a libmemenv.a | ||
cd ../../''' | ||
} | ||
} | ||
stage('Windows') { | ||
steps { | ||
sh '''cd /mnt/KETOsis-Master/ | ||
export PATH=/mnt/mxe/usr/bin:$PATH | ||
cd src/leveldb | ||
chmod +x build_detect_platform | ||
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a CC=/mnt/mxe/usr/bin/i686-w64-mingw32.static-gcc CXX=/mnt/mxe/usr/bin/i686-w64-mingw32.static-g++ | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
stage('Build Wallets') { | ||
parallel { | ||
stage('Linux QT') { | ||
steps { | ||
sh 'qmake && make -j5' | ||
} | ||
} | ||
stage('Linux Daemon') { | ||
steps { | ||
sh '''cd src/ | ||
make -j3 -f makefile.unix''' | ||
} | ||
} | ||
stage('Windows Wallet') { | ||
steps { | ||
sh '''export PATH=/mnt/mxe/usr/bin:$PATH | ||
cd /mnt/KETOsis-Master | ||
./compile-keto.sh''' | ||
} | ||
} | ||
} | ||
} | ||
stage('Create build Folder') { | ||
steps { | ||
sh '''cd /var/www/html/dir | ||
mkdir -p $JOB_NAME/$BUILD_NUMBER | ||
''' | ||
} | ||
} | ||
stage('Move Wallets') { | ||
parallel { | ||
stage('Move Linux QT') { | ||
steps { | ||
sh '''cp ketosis-qt /var/www/html/dir/$JOB_NAME/$BUILD_NUMBER/KETOsis-qt | ||
''' | ||
} | ||
} | ||
stage('Move Linux Daemon') { | ||
steps { | ||
sh 'cp src/ketosisd /var/www/html/dir/$JOB_NAME/$BUILD_NUMBER/ketosisd' | ||
} | ||
} | ||
stage('Move Windows QT') { | ||
steps { | ||
sh 'cp /mnt/KETOsis-Master/release/ketosis-qt.exe /var/www/html/dir/$JOB_NAME/$BUILD_NUMBER/KETOsis-qt.exe' | ||
} | ||
} | ||
} | ||
} | ||
stage('Delete Project Folder') { | ||
steps { | ||
cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, cleanupMatrixParent: true, deleteDirs: true) | ||
} | ||
} | ||
} | ||
} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 ketosis | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
README.md |
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,16 @@ | ||
KETOsis development tree | ||
|
||
KETOsis is a PoS-based cryptocurrency. | ||
Development process | ||
|
||
Developers work in their own trees, then submit pull requests when they think their feature or bug fix is ready. | ||
|
||
The patch will be accepted if there is broad consensus that it is a good thing. Developers should expect to rework and resubmit patches if they don't match the project's coding conventions (see coding.txt) or are controversial. | ||
|
||
The master branch is regularly built and tested, but is not guaranteed to be completely stable. Tags are regularly created to indicate new stable release versions of KETOsis. | ||
|
||
Feature branches are created when there are major new features being worked on by several people. | ||
|
||
From time to time a pull request will become outdated. If this occurs, and the pull is no longer automatically mergeable; a comment on the pull will be used to issue a warning of closure. The pull will be closed 15 days after the warning if action is not taken by the author. Pull requests closed in this manner will have their corresponding issue labeled 'stagnant'. | ||
|
||
Issues with no commits will be given a similar warning, and closed after 15 days from their last activity. Issues closed in this manner will be labeled 'stale'. |
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,60 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
date | ||
|
||
################################################################# | ||
# Update Ubuntu and install prerequisites for running KETOsis # | ||
################################################################# | ||
sudo apt-get update | ||
################################################################# | ||
# Build KETOsis from source # | ||
################################################################# | ||
NPROC=$(nproc) | ||
echo "nproc: $NPROC" | ||
################################################################# | ||
# Install all necessary packages for building KETOsis # | ||
################################################################# | ||
sudo apt-get install -y qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git | ||
sudo add-apt-repository -y ppa:bitcoin/bitcoin | ||
sudo apt-get update | ||
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev | ||
|
||
# By default, assume running within repo | ||
repo=$(pwd) | ||
file=$repo/src/ketosisd | ||
if [ ! -e "$file" ]; then | ||
# Now assume running outside and repo has been downloaded and named ketosis | ||
if [ ! -e "$repo/ketosis/build.sh" ]; then | ||
# if not, download the repo and name it ketosis | ||
git clone https://github.com/KETOsisDev/KETOsis-Master.git ketosis | ||
fi | ||
repo=$repo/ketosis | ||
file=$repo/src/ketosisd | ||
cd $repo/src/ | ||
fi | ||
make -j$NPROC -f makefile.unix | ||
|
||
cp $repo/src/ketosisd /usr/bin/ketosisd | ||
|
||
################################################################ | ||
# Configure to auto start at boot # | ||
################################################################ | ||
file=$HOME/.ketosis | ||
if [ ! -e "$file" ] | ||
then | ||
mkdir $HOME/.ketosis | ||
fi | ||
printf '%s\n%s\n%s\n%s\n' 'daemon=1' 'server=1' 'rpcuser=u' 'rpcpassword=p' | tee $HOME/.ketosis/ketosis.conf | ||
file=/etc/init.d/ketosis | ||
if [ ! -e "$file" ] | ||
then | ||
printf '%s\n%s\n' '#!/bin/sh' 'sudo ketosisd' | sudo tee /etc/init.d/ketosis | ||
sudo chmod +x /etc/init.d/ketosis | ||
sudo update-rc.d ketosis defaults | ||
fi | ||
|
||
/usr/bin/ketosisd | ||
echo "KETOsis has been setup successfully and is running..." | ||
|
Oops, something went wrong.