Giter VIP home page Giter VIP logo

set-rebalancer-boilerplate's Introduction

Rebalancer Boilerplate

Install ๐Ÿ’ป

Before getting started, make sure you have yarn or npm:

$ brew install yarn
$ brew install npm

To setup, install packages and copy local .env:

$ cp .env.default .env
$ yarn install --ignore-engines

NOTE: Heroku does not allow for two types of lock files so only do yarn install vs npm install

Walk through the steps in the API Integration Walkthrough in order to:

  • Set up you wallet with mnemonic
  • Set up Infura
  • Set up your .env file

Running local instance:

$ yarn run start-dev

Running tests:

$ yarn test 

NOTE: If you run into issues with build/Release/scrypt not being found, run npm run fix-scrypt

set-rebalancer-boilerplate's People

Contributors

inje avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

set-rebalancer-boilerplate's Issues

Metamask error

I installed according to guidelines, and get the following error although Metamask is working and not "locked".

Unhandled Rejection (TypeError): Cannot read property 'accounts' of undefined
App.getAccount
src/App.js:102
99 |
100 | getAccount() {
101 | const { web3 } = this.state;

102 | if (web3.eth.accounts[0]) return web3.eth.accounts[0];
103 | throw new Error('Your MetaMask is locked. Unlock it to continue.');
104 | }
105 |
View compiled
App._callee$
src/App.js:58
55 | const naturalUnit = new BigNumber(10);
56 | const name = 'My Set';
57 | const symbol = 'MS';
58 | const account = this.getAccount();
59 | const txOpts = {
60 | from: account,
61 | gas: 4000000,

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.