GithubHelp home page GithubHelp logo

gaballard / tic-tac-toe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 222 KB

Solidity implementation of a basic Tic-Tac-Toe game

License: MIT License

Shell 3.63% JavaScript 0.39% Solidity 31.83% TypeScript 64.14%

tic-tac-toe's Introduction

The best Hardhat Typescript Template

Quickstart

  • yarn build clears cache and compiles smart contracts
  • yarn hardhat --network [network name] deploy --tags [tag(s)] runs the deploy scripts to the specified network with the specified tags
  • yarn hardhat test [test file(s)] runs the unit tests specified
  • yarn size reports the size of your compiled smart contracts in KB

Tech used

This is a template to do EVM smart contract development with all my favorite toolings and no fluff:

Typescript

Goes without saying, will make your developer experience so, so much better than vanilla JS

Typechain

Generates typings for your contracts after compiling automatically (in ./typechain)

Hardhat-deploy

Allows for more modular deployments. See their docs for more on how to unleash its power

Mocha, chai, chai-ethers, chai-as-promised

Allows for easy testing with improved compatability with asynchronous functions and smart contracts (reverts, BigNumber, etc.)

Hadhat-contract-sizer

Size matters on the blockchain. See their docs for configuration details, but you can simply run yarn size and you'll get a breakdown of how big each contract is.

Prettier

Configured for both your Solidity and Typescript code

.env parsing

In ./utils/config.ts you can configure your environment variables to have default values so things don't break midway through your script because you forgot an environment variable.

Hooks

Precommit

Via Husky, check styling

On PR

Check that contracts compile and tests pass

tic-tac-toe's People

Contributors

djh58 avatar gaballard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.