Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 2.02 KB

File metadata and controls

98 lines (65 loc) · 2.02 KB

Contributing

This document describes the process of contributing to this project. It is intended for anyone considering opening an issue or pull request.

AI Assistance

Important

If you are using any kind of AI assistance to contribute to this project, it must be disclosed in the pull request.

If you are using any kind of AI assistance while contributing to this project, this must be disclosed in the pull request, along with the extent to which AI assistance was used. Trivial tab-completion doesn't need to be disclosed, as long as it is limited to single keywords or short phrases.

An example disclosure:

This PR was written primarily by Claude Code.

Or a more detailed disclosure:

I consulted ChatGPT to understand the codebase but the solution was fully authored manually by myself.

Quick start

If you'd like to contribute, report a bug, suggest a feature or you've implemented a feature you should open an issue or pull request.

Any contribution to the project is expected to contain code that is formatted, linted and that the existing tests still pass. Adding unit tests for new code is also welcome.

Dev environment

git clone https://github.com/flare-foundation/reward-scripts.git
cd reward-scripts
pnpm install

To compile TypeScript:

pnpm build

Linting and formatting

This project uses ESLint and Prettier with the Flare shared configurations.

Lint all source files:

pnpm lint:check

Lint and auto-fix:

pnpm lint:fix

Check formatting:

pnpm format:check

Format all source files:

pnpm format:fix

Testing

Run the test suite:

pnpm test

Run with coverage report:

pnpm test:coverage

Release process

The reward calculation outputs are committed directly to the repository on a per-epoch basis. There is no package release process.