Skip to content

Latest commit

 

History

History
executable file
·
86 lines (54 loc) · 3.82 KB

README.md

File metadata and controls

executable file
·
86 lines (54 loc) · 3.82 KB

MOACMask Browser Extension for MOAC

Support

If you're a user seeking support, leave your feedbacks at our GIT site.

中文安装指南可以参考开发者博客

安装视频在(YOUTUBE)(https://www.youtube.com/watch?v=kyBJxpa9sA0&t=111s);

Introduction

In order to help users and developers access MOAC blockchain, we modified the MetaMask Project to make it work with MOAC blockchain. MOAC blockchain JSON-RPC is compatiable with Ethereum WEB3 in many methods but is quite different in Transaction Format. Major changes are as the followings:

  • Use moac-tx to replace the ethereumjs-tx for sign a raw transaction object;
  • Use moac-provider-engine to replace the web3-provider-enginer for sending a signed Transaction to MOAC network;
  • Use moac-link to provide outside link with MOAC explorer for displaying account info.
  • Connect with https://gateway.moac.io instead of infurno.io to provide online services.

MoacMask is a software for users to manage accounts, for sites to easily propose actions to users, and for users to coherently review actions before approving them. We build on this rapidly evolving set of protocols with the goal of empowering the most people to the greatest degree, and aspire to continuously evolve our offering to pursue that goal.

Developing Compatible Dapps

If you're a web dapp developer, we welcome you to join us to further develop this tool:

New Dapp Developers

Current Dapp Developers

  • If you have a Dapp on Ethereum, and you want to move to MOAC network, you can checkout our wiki website for more information.
  • At this moment, MOACMask only supports MotherChain Dapps, MicroChain supports is under developing.

Building locally

  • Install Node.js version 6.3.1 or later.
  • Install dependencies:
    • For node versions up to and including 9, install local dependencies with npm install.
    • For node versions 10 and later, install Yarn and use yarn install.
  • Install gulp globally with npm install -g gulp-cli.
  • Build the project to the ./dist/ folder with gulp build.
  • Optionally, to rebuild on file changes, run gulp dev.
  • To package .zip files for distribution, run gulp zip, or run the full build & zip with gulp dist.

Uncompressed builds can be found in /dist, compressed builds can be found in /builds once they're built.

Running Tests

Requires mocha installed. Run npm install -g mocha.

Then just run npm test.

You can also test with a continuously watching process, via npm run watch.

You can run the linter by itself with gulp lint.

Development

npm install
npm start

Build for Publishing

npm run dist

Writing Browser Tests

To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib.

Other Docs