An open API service indexing awesome lists of open source software.

https://github.com/oasisprotocol/demo-oasisswag


https://github.com/oasisprotocol/demo-oasisswag

Last synced: 10 months ago
JSON representation

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!