Coder Social home page Coder Social logo

etherep-contracts's People

Contributors

mikeshultz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

asimkhan73301

etherep-contracts's Issues

Error on Truffle Migrate - Error: Error: TypeError: rs.setController is not a function

Error:

$ truffle migrate

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.


Starting migrations...
======================
> Network name:    'development'
> Network id:      1565049600687
> Block gas limit: 0x6691b7


2_deploy_etherep.js
===================

   Deploying 'RatingStore'
   -----------------------
   > transaction hash:    0x4b8da6ed423e360e9ddbc7a9de7163d665d95c087167fa87563c42ee4ed56362
   > Blocks: 0            Seconds: 0
   > contract address:    0xf763494fE934206253Fc433093a0a9432D72420c
   > block number:        1
   > block timestamp:     1565049621
   > account:             0x3A91B51F4D6dB9a525AA9751B3cb2c9c8aE16597
   > balance:             99.98004914
   > gas used:            997543
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.01995086 ETH


   Deploying 'Etherep'
   -------------------
   > transaction hash:    0xc93c41b3330dd13b0c1956cfc75738681bc898df6d862a1b34a57e06fe826263
   > Blocks: 0            Seconds: 0
   > contract address:    0xedCcDC5F9671E964c5cF9B2cE8C8256b42212D6D
   > block number:        2
   > block timestamp:     1565049622
   > account:             0x3A91B51F4D6dB9a525AA9751B3cb2c9c8aE16597
   > balance:             99.95761968
   > gas used:            1121473
   > gas price:           20 gwei
   > value sent:          0 ETH
   > total cost:          0.02242946 ETH

Error: Error: TypeError: rs.setController is not a function
    at Object.run (/usr/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.0.30 (core: 5.0.30)
Node v10.16.0

Make math more clear and documented

weight = (((senderCumulative / 5) * absRating) / 10) + multiplier;

Since senderCumulative is senderScore rounded to whole 100s here, the expression is equivalent to
(senderCumulative / 50 * absRating) + multiplier, ranging from 100 to 150. It's unclear where these exact calculations originate from and why were they chosen.

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.