To write a zkApp, we recommend using the zkApp CLI, which makes writing a zkApp easy by including SnarkyJS & providing project scaffolding, a test framework, and formatting.
SnarkyJS's documentation is available here.
See CHANGELOG.md for a list of changes between versions.
npm install
npm run build
./run src/examples/api_exploration.ts
npm install
npm run build:web
npm run serve:web
Then go to http://localhost:8000/
-
Unit tests
npm run test npm run test:unit
-
Integration tests
npm run test:integration
-
E2E tests
npm install npm run e2e:install npm run build:web npm run e2e:prepare-server npm run test:e2e npm run e2e:show-report
We appreciate any community contributions to SnarkyJS! Below are some steps that will help you get your changes in main as quickly as possible.
- Create a new issue for your proposed changes (or use an existing issue if a relevant one exists).
- Write an RFC in your issue outlining your proposed changes and motivation. Example Note: if you are proposing a smaller change your RFC will be smaller, and that's ok! :)
- One of the maintainers will review your RFC and work with you until it is approved.
- Fork the repository and implement your changes.
- Submit pull request and wait for code review :)