This document explains all you need to work on arch3.js
, i.e. modify it. It is not intended for users of arch3.js
.
Linux users are advised to install Docker following the rootless mode instructions.
- Install dependencies:
yarn install
- Install SDKs (to make IDE integration work):
yarn dlx @yarnpkg/sdks
The unit tests depends on a running local chain. To configure it, start the local chain using the setup script that creates all required wallets and contracts:
./scripts/start-local-node.sh
After the chain is up, run the tests in all packages using:
yarn test:all
To run tests for a single package, do:
yarn workspace @archwayhq/arch3-core test
After you modified a file, check if the linter is happy:
yarn lint:all
# or if you want linting plus automatic fixing
yarn lint:all:fix