Thank you for your interest in contributing to Chain-Toolkit! We appreciate all contributions, big or small.
-
Fork the repository: Click the "Fork" button in the top-right corner of the repository page.
-
Clone your fork:
git clone https://github.com/niZmosis/chain-toolkit.git
-
Create a branch:
git checkout -b my-new-branch
-
Run the following command to set up the project:
pnpm setup:initial
-
Start watching all packages:
pnpm start
-
Make your changes:
- Follow the code style guidelines.
- Write clear commit messages.
-
Push your changes:
git push origin my-new-branch
-
Open a pull request: Go to the original repository and click "New pull request."
Check the TODO.md file to see the current list of tasks.
-
Add the Chain ID to chainIds.ts
-
Add the Network Config to networks
- Ensure to add the Network config to
getChainConfig
at the bottom of the file. - If adding a new network, export it in the barrel file.
- Ensure to add the Network config to
-
Add the Network Icon to images
-
Add the created Network Config to
getChainConfig
in chainConfigs -
Run Tests:
pnpm test:utils:networks
-
Update the compatibility table in the README.md README.md
- Keep items in alphabetical order where applicable.
Before committing, run
pnpm precommit
to preform all linting, formatting, docs, and tests.
If you have any questions or need help getting started, feel free to open an issue or contact us on [communication channel, e.g., Discord].