https://github.com/oasisprotocol/demo-oasisswag
https://github.com/oasisprotocol/demo-oasisswag
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oasisprotocol/demo-oasisswag
- Owner: oasisprotocol
- License: apache-2.0
- Created: 2023-11-16T18:53:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T18:55:45.000Z (over 1 year ago)
- Last Synced: 2025-01-12T22:14:43.062Z (over 1 year ago)
- Language: JavaScript
- Size: 3.58 MB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Confidential Oasis Swag Wheel
Random swag drawer/picker based on the user's Ethereum address. Uses Sapphire's
random number generator for initial confidential seed.
Demo: https://playground.oasis.io/oasisswag
To run backend tests locally:
```shell
yarn
yarn build
yarn test
```
To deploy backend on Sapphire Testnet and generate bindings for frontend:
```
yarn
yarn build
PRIVATE_KEY=0xYOUR_KEY_HERE npx hardhat run scripts/deploy.ts --network sapphire-testnet
```
To run the frontend locally:
```
cd frontend
yarn
yarn start
```
Open http://localhost:3000 in your browser and enjoy!