TrueBitFoundation / truebit-os

[DEPRECATED] Interactive client
Apache License 2.0
82 stars 26 forks source link

Truffle or Web3 #38

Closed hswick closed 5 years ago

hswick commented 6 years ago

We are only using truffle for the contract abstraction in the logic of the app. But using web3 for the deploy scripts. This is inconsistent.

We have two options to achieve consistency

  1. Remove truffle contract dependency, and only use web3 contract abstraction. Pros

    • Easy to do
    • Easier to reason about
    • More customizable Cons
    • Truffle pros
    • More risk
  2. Switch project to Truffle project Pros

    • Familiar to new devs
    • Hosts a full feature set for deployment, migrations, testing Cons
    • Buggy with async/await
    • Less transparent