https://github.com/zeroxbrock/chance-games-suapp
Simple slot machine SUAPP built with suave-viem.
https://github.com/zeroxbrock/chance-games-suapp
Last synced: over 1 year ago
JSON representation
Simple slot machine SUAPP built with suave-viem.
- Host: GitHub
- URL: https://github.com/zeroxbrock/chance-games-suapp
- Owner: zeroXbrock
- Created: 2024-03-29T00:33:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T20:56:11.000Z (about 2 years ago)
- Last Synced: 2025-02-28T02:23:16.307Z (over 1 year ago)
- Language: Solidity
- Size: 1.8 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chance games
A decentralized slot machine built using securely-generated random numbers from SUAVE.
**System Dependencies:**
- [bun](https://bun.sh)
- [foundry](https://getfoundry.sh)
- [suave-geth devnet](https://github.com/flashbots/suave-geth/?tab=readme-ov-file#starting-a-local-devnet)
## Quickstart Example
1. Make sure you're running a suave-geth devnet on `http://localhost:8545`.
2. Build smart contracts & install dependencies from NPM:
```bash
forge build
bun install
```
3. Run the example:
```bash
bun run index.ts
```
This will deploy a new slot machine and initialize it with a pot of test ETH. Then we'll pull the slot machine a bunch of times and see if we can win any money.