Thanks for helping out! 👍
Before you submit a PR, you'll want to make sure that:
- Any changes are tested.
- All tests pass. Run
yarn test
from the root of the repository to run all packages tests or runlerna run test --scope <package_name>
to run the tests for a single package. For example - The formatting is correct. Run
yarn run prettier
from the root of the repository oryarn run prettier --scope <package_name>
to run the formatting on a sinle package. For exampleyarn run prettier --scope @origin/marketplace
will format the code in the directory dapps/marketplace. - The linter passes. Run
yarn lint
from the root of the repository.
If this is a new feature, make sure you've discussed it with our #engineering channel on Discord.
We use NPM style, as automated by the prettier tool. 2 space indents, no semi-semicolons.
We use two space indents. Just copy the surrounding style and use your good judgement.
Both checksummed and lowercased ETH address are technically valid. In our codebase, we chose the convention to:
- Display ETH addresses in their checksummed format to the user.
- Store ETH addresses in their lowercased format. That includes local storage and back-end storage such as Database, ElasticSearch, etc...
- Use lowercased format when doing addresses comparisons.