[Work In Progress] Autonomous decentralized slot machines with transparent algorithm
Requirements:
- Ganache
- Python3
(>=3.10)
- Poetry
- Node.js (with npm)
- Web Browser with MetaMask installed and configured
- Clone or download the repository and cd into it.
git clone https://github.com/y0rgos/crypto-slots.git && cd crypto-slots
- Create virtual environment and install dependencies.
poetry install
- Start Ganache CLI (or GUI with host=
127.0.0.1:8545
, chainid=1337
, mnemonic=brownie
).
ganache-cli -m brownie
- Deploy contracts and run mock VRF operator.
chmod +x deploy.sh && ./deploy.sh
- Change directory to the Vue project.
cd clients/webui/crypto-slots
- Install the dependencies.
npm install
- Start the frontend
npm run dev
- Open a browser and go to localhost:5173
- Click Profile Icon > Settings > Advanced > Show test networks > On
- Now connect to
Localhost 8545
network - Click Profile Icon > Import Account > Add Private Key
0x804365e293b9fab9bd11bddd39082396d56d30779efbb3ffb0a6089027902c4a
- Frontend : VueJs
- Blockchain: EVM
- Smart Contract: Solidity
- Framework: Brownie
- Oracles: Chainlink VRF, Chainlink Price Feeds
You can read the math behind on math.xlsx
Copyright (C) 2022 y0rgos - All Rights Reserved