A decentralized slot machine built using securely-generated random numbers from SUAVE.
System Dependencies:
-
Make sure you're running a suave-geth devnet on
http://localhost:8545
. -
Build smart contracts & install dependencies from NPM:
forge build bun install
-
Run the example:
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.