Skip to content

pi0neerpat/nifty-chess-app

Repository files navigation

Welcome to nifty-chess 👋

License: MIT

A playful NFT game for collecting chess games. Made with <3 @ ETH Denver 2021

Tech stack

  • @redwoodjs for the React and Prisma database tooling
  • @oneclickdapp/ethereum-auth for wallet authentication docs
  • node-pgn2gif library adapted from pgn2gif. Every pgn is broken into JSON, and there is one pgn for each game, rather than for each tournament. We also hash the pgn to generate the NFT seed (which is used to generate the color) https://github.com/jschiarizzi/node_pgn2gif

Contracts

xDAI

NiftyChess Contract (proxy): 0xAe7ca55Ce4511C848ac4F9C0F26abD9ecaaee2c6 Blockscout explorer

Current Logic contract: 0x51fD8E034A8aE34C499F9EE869886f303FadF228

Bridge Mediator: 0x9d68A3490E0b0CBD9265A21b5bD307f6Ea7e769e Blockscout explorer

Mainnet

These contracts will be deployed soon.

Code + Developer stuff

Our smart contracts are adapted from the Nifty Ink contracts. See the contract source code here: http://remix.ethereum.org/?gist=b44c2c66212f701dc1ddab277cf7e8e7&call=fileManager//open//browser/niftyChess.sol. And use this ABI to interact with the contract: https://gist.github.com/jschiarizzi/0f12f4f7bc02bbfe3373f30d470e38a6

The UI was built with RedwoodJS. See notes.md for a complete walkthrough of how it was made.

Install

yarn install

copy .env.template to .env and add the required variables

Usage

yarn rw dev

Ngrok it

# In VM
yarn rw dev --fwd="--host=0.0.0.0"

# on host machine
./ngrok http 8910

New to Redwood?

  • Tutorial: getting started and complete overview guide.
  • Docs: using the Redwood Router, handling assets and files, list of command-line tools, and more.
  • Redwood Community: get help, share tips and tricks, and collaborate on everything about RedwoodJS.

Author

👤 Patrick Gallagher

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator