Giter Site home page Giter Site logo

w3f-grants-archive / verification-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowfork/snowbridge-experiments

0.0 1.0 0.0 1.88 MB

Solidity verification gas cost tests

License: Apache License 2.0

Solidity 24.28% JavaScript 1.73% Dockerfile 0.35% TypeScript 73.63%

verification-solidity's Introduction

Verification Solidity

Set up

The project uses Hardhat as a development environment. The docs can be found here. Hardhat doesn't require any globally installed node packages, and provides a modular task-based interface for setting up the development environment. See [hardhat plugins] for a list of open-source tools and integrations already available.

Requirements

  • Node (>= v14.0)
  • Yarn (See note below on package management)

Typescript is included as a dependency of the project, so you won't need it installed globally.

A note on node package managers

Due to some dependency conflicts over the version of typechain used by hardhat-typechain, I've had some difficulties with the npm package manager. Yarn seems to resolve the conflict without any workarounds, so I recommend using it instead for this project.

Running in Docker

The project includes a .devcontainer directory which can be used along with VSCode or GitHub Codespaces to create a fresh environment with everything already set up.

Install Dependencies

In order to install the required project dependencies, run:

yarn install

Testing

Waffle is injected into the runtime environment and provides a number of matchers based on chai. See the existing tests for an example of how to use it.

Ethers is also available as a property hre in the global scope when running tests.

yarn test

Tasks

Hardhat provides an integrated task-runner for adding on additional functionality to the build.

To find out which tasks are available, run npx hardhat.

Custom tasks are currently located in ./src/tasks/*.

verification-solidity's People

Contributors

hcaw avatar philipstanislaus avatar denalimarsh avatar musnit avatar

Watchers

James Cloos 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.