@nextsmartchain/nextjs v1.0.1
NEXT Smart Chain SDK
This repository contains the nextjs client library and will help developers to move assets from Ethereum chain to NEXT Smart Chain, and withdraw from NEXT Smart Chain to Ethereum using fraud proofs.
Docs
https://maticnetwork.github.io/matic.js
Support
Our Discord is the best way to reach us ✨.
Contributors
You are very welcome to contribute, please see contributing guidelines - [Contribute].
Thank you to all the people who already contributed to matic.js!
Made with contributors-img.
Development
Setup
npm ciHow to debug
Write your code inside file test/debug.js and run below code
npm run debugAbove command will build the source code & install the builded version into test folder, which will be used by debug.js.
Lint
# To check lint errors
npm run lint
# To fix most common lint errors
# Note that it might not fix all errors, some need manual intervention
npm run lint:fixBuild code
npm run buildRun test
npm run testGenerate distribution files
npm run deployNPM publish
Before running publish script, make sure you have updated version properly.
Note that prepublishOnly script will be automatically called while publishing. It will check lint, clean dist/lib folders and build fresh distribution files before it executes npm publish.
npm publishLicense
MIT