Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buidler web3 1.2.2 #5

Open
wants to merge 3 commits into
base: feature/consensus
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ interacts/*

# NPM package generated files:
contract_build

cache/
artifacts/
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ branches:
git:
quiet: true
submodules: true
notifications:
email:
recipients:
- ci.report@ost.com
on_success: always
on_failure: always
node_js:
- "8"
before_install:
Expand All @@ -26,11 +20,15 @@ before_install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
install:
- npm run update
- yarn list web3
- yarn list web3-core
- yarn list web3-utils
- yarn list web3-core-promievent
before_script:
- ./tools/run_ganache_cli.sh </dev/null 1>/dev/null 2>&1 &
- sleep 10
script:
- npm run compile
- npm run test
- npm run test:integration
after_script:
- kill $(ps aux | grep 'ganache-cli' | awk '{print $2}')
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Consensus on computation
# E2E test of Web3.js

🚨 this is a research code base, not intended for production
Uses buidler and yarn's "resolutions" feature to set the specific version of Web3
used in Mosaic's truffle tests.

Consensus on computation, is a research project that captures the fundamental problem for mosaic-consensus and for consensus on High-Performance Computation done off-chain.
This toolset was chosen because it's the easiest way to swap an arbitrary
version of Web3 into a large project. Truffle is complex and ships as a webpack bundle.

Note: this repository is incomplete and not yet following the developer-guidelines while it is being built-out.
Also makes it a more straightforward to distinguish between problems at Truffle vs problems at Web3.

## Getting started
Mosaic was chosen because their test suite:
+ does not use migrations
+ large-ish: almost 300 unit tests, takes ~10 min
+ experienced a non-deterministic "sudden disconnection" bug that Truffle developers attributed
to Web3.

The real Mosaic project can be found [here](https://github.com/mosaicdao/mosaic-1)

## Install

```bash
git clone https://github.com/mosaicdao/mosaic-1 mosaic-1
git clone https://github.com/cgewecke/mosaic-1 mosaic-1
cd mosaic-1
npm run update
```
23 changes: 23 additions & 0 deletions buidler.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
usePlugin('@nomiclabs/buidler-truffle5');

module.exports = {
defaultNetwork: 'development',
networks: {
development: {
url: 'http://localhost:8545',
gas: 12000000,
gasPrice: 0x01,
},
},
solc: {
version: '0.5.13',
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: 'istanbul'
},
mocha: {
enableTimeouts: false
}
};
1 change: 1 addition & 0 deletions change.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fri Dec 13 12:56:33 PST 2019
5 changes: 0 additions & 5 deletions migrations/1_initial_migration.js

This file was deleted.

Loading