Skip to content
Proof of concept of provably fair dice game
JavaScript HTML CSS TSQL
Branch: master
Clone or download
karek314 readme
to do update
Latest commit daea34d Oct 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app-html client side fix Oct 21, 2019
dapp-src workaround for lisk-sdk bug 3 Oct 20, 2019
.gitattributes Initial commit Oct 8, 2019
LICENSE readme Oct 8, 2019
README.md readme Oct 23, 2019

README.md

ldice

Proof of concept of provably fair dice game made with lisk-sdk

Node.js 10.15.3+ Required

Postgreqsql install

sudo apt-get purge -y postgres* # remove all already installed postgres versions
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt install postgresql-10
pg_lsclusters
sudo pg_dropcluster --stop 10 main
sudo pg_createcluster --locale en_US.UTF-8 --start 10 main
sudo -u postgres createuser --createdb lisk

ldice install

git clone https://github.com/thepool-io/ldice
npm install
createdb lisk_test --owner lisk && psql -d lisk_test -c "alter user lisk with password 'password';"
sudo node index.js | npx bunyan -o short

Cleanup

dropdb lisk_test && createdb lisk_test --owner lisk && psql -d lisk_test -c "alter user lisk with password 'password';"

todo

-Native token rights to profit, from the treasury revenue (dividends)
-Extend treasury and betting to custom tokens
-Verify and debug undoAsset (current code totally untested)
-Proper client side application

-chain:blocks:change won't be called during sync (Urgent fix)
-Ensure that malicious delegate will fork
-undoAsset in case of drawing module failure

credits

Corbifex | Moosty

You can’t perform that action at this time.