Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (24 loc) · 2.1 KB

README.md

File metadata and controls

44 lines (24 loc) · 2.1 KB

We wish to improve the output of Buidler, and include Textile out of the box.

This is just a part of our contribution to the Ethonline hackathon.

Packages

This is a demo project that includes buidler-react as a plugin to generate the react component that is used to display some example content.

Here is the code for the buidler react plugin. Lerna will symlink this package to @symfoni/buidler-demo so we can use it there.

Here is the code for the buidler storage plugin. Lerna will symlink this package to @symfoni/buidler-demo so we can use it there.

Developing

  1. Install lerna globally npm i -g lerna
  2. Run yarn run bootstrap // This will install all packages and build

You need three processes running for the full development enviroment

  1. yarn run watch watches changes in buidler-react plugin. Lerna will then symlink this package to be used in buidler-demo.
  2. yarn run node runs up a blockchain node, generate typechain interfaces, compile and deploy smart-contracts then watch for changes in smart contracts and deploy them.
  3. yarn run frontend runs a dev-server for a create-react-application from packages/buidler-demo/frontend that is served on http://localhost:3000/ with hot-reloading. This will also reload when you change smart contracts

Publish a new NPM package

  1. yarn run pubish builds all packages and published them to npm with version bump.

Use a browser wallet to interact with Ethereum

  1. Use Metamask or some other wallet provider (https://metamask.io/).
  2. Use Mnemonic "shrug antique orange tragic direct drop abstract ring carry price anchor train".
  3. Set the Network to custom rpc at "http://127.0.0.1:8545/".

Demo should be working!