GithubHelp home page GithubHelp logo

kasner's Introduction

Kasner

Commit-reveal for quizzes.

Documentation ๐Ÿ“š

Smart contract documentation is here.

Developer Information and Tools ๐Ÿ‘ฉโ€๐Ÿ’ป

Install dependencies ๐Ÿ‘ทโ€โ™‚๏ธ

Note If you use nix, run nix develop to install all dependencies in PATH

You'll need to install nodejs >= 18.15.0. We use yarn but npm should work too. You'll also need to install foundry and solc. Assuming that's done, run yarn with no args:

yarn

Build the code ๐Ÿง

To compile the contracts:

yarn compile

Run tests ๐Ÿฆพ

To run both foundry and hardhat tests:

yarn test

Running the linter ๐Ÿงฝ

To run the linter in the default mode, where it will print all errors and not modify code, run:

yarn lint

Coverage ๐Ÿ”Ž

We use the solidity-coverage package to generate coverage reports for hardhat in coverage/ and forge coverage for foundry tests in coverage-foundry. You can generate the coverage reports locally by running:

yarn coverage
yarn hardhat coverage

The full reports can be viewed by opening the coverage/index.html and coverage-foundry/index.html files in a browser.

Deploy and interact ๐Ÿš€

Enter your private key interactively when prompted.

forge build

forge create -i --legacy --rpc-url https://polygon-mumbai.blockpi.network/v1/rpc/public contracts/Kasner.sol:Kasner```

Verify ๐Ÿ“„

To verify the source code with a network explorer, it's best to generate json metadata.

yarn hardhat solidity-json

Choose Standard-Json-Input in the explorer verification dialog and upload json from artifacts/solidity-json/contracts/.

kasner's People

Contributors

fetsorn avatar

Watchers

 avatar  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.