visual-identity/loom_js_test
dependabot[bot] 8bcdfb82cf Bump lodash from 4.17.10 to 4.17.14 in /loom_js_test
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.14)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-15 08:26:42 -04:00
..
scripts Added js demo from loom 2018-08-01 13:08:08 -04:00
src Added js demo from loom 2018-08-01 13:08:08 -04:00
.babelrc Added js demo from loom 2018-08-01 13:08:08 -04:00
.editorconfig Added js demo from loom 2018-08-01 13:08:08 -04:00
.env.test.example Added js demo from loom 2018-08-01 13:08:08 -04:00
.env.test.jenkins Added js demo from loom 2018-08-01 13:08:08 -04:00
.gitignore Added js demo from loom 2018-08-01 13:08:08 -04:00
.prettierignore Added js demo from loom 2018-08-01 13:08:08 -04:00
.prettierrc Added js demo from loom 2018-08-01 13:08:08 -04:00
README.md Added js demo from loom 2018-08-01 13:08:08 -04:00
package.json Added js demo from loom 2018-08-01 13:08:08 -04:00
tsconfig.json Added js demo from loom 2018-08-01 13:08:08 -04:00
tslint.json Added js demo from loom 2018-08-01 13:08:08 -04:00
webpack.e2e.test.config.js Added js demo from loom 2018-08-01 13:08:08 -04:00
yarn.lock Bump lodash from 4.17.10 to 4.17.14 in /loom_js_test 2019-07-15 08:26:42 -04:00

README.md

@rramos notes

This project in particular requires yarn, and also a specific version of loom for plasma. Again, I only made it able to run the first demo (demo.ts).

The process is as follows:

  1. nodejs must have been installed with nvm
  2. Install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install --no-install-recommends yarn
  1. Install plasma-loom
wget https://private.delegatecall.com/loom/linux/build-246/loom
chmod +x loom
  1. Create a loom.yml in the same directory that contains the line: PlasmaCashEnabled: true. This file may need additional information if youre going to use multiple nodes

  2. Execute ./loom init. In this step you may configure the genesis.json files for multiple nodes.

  3. In separate terminal, or as a background process, go to the contracts repo root folder, and execute embark simulator, and embark run to deploy the contracts

  4. Execute ./loom run to start the loom process. This might require more options if using multiple nodes. Can be launched as a background process too.

  5. Build and launch the demo.

yarn install
yarn build
yarn copy-contracts
yarn tape

This will execute the demo. If you want to execute it more than once, You need to start the simulator from scratch, because this demo assumes a specific chain state in ganache.

Loom.js Plasma Cash E2E Tests

NodeJS & browser tests for Loom Plama Cash implementation.

Development

The e2e test environment can be configured by changing .env.test (see .env.test.example for default values).

# build for NodeJS
yarn build
# build for Browser (TBD!)
yarn build:browser
# run e2e tests using NodeJS
yarn test
# auto-format source files
yarn format