Giter Site home page Giter Site logo

oasis-hackathon's Introduction

To see how it works, head into the test directory. You will need to launch Ganache-cli with these parameters

ganache-cli --defaultBalanceEther 10000 --network-id 1337 --chain-id 1337 --deterministic

You will also need a node version ^12. I use nvm to manage multiple node versions at the same time. This is akin to how pyenv is used to manage different versions of Python

Install yarn globally

npm install -g yarn

First install the deps

run in root

yarn

Tests

To run the tests you'll need both the ethereum-bridge (yarn add -g ethereum-bridge) and the GSN cli (yarn add -g @opengsn/gsn)

Run them in two different terminals: To start ethereum-bridge

ethereum-bridge -H localhost:8545 -a 9 --dev

To start GSN

gsn start

Once GSN starts, copy the Forwarder and Paymaster addresses printed by the terminals and put them in your .env file.

Now you are ready to run the tests

yarn test

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.