Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.41 KB

CONTRIBUTING.md

File metadata and controls

91 lines (62 loc) · 2.41 KB

Contributing

Initial setup

# potentially you can user other node versions, but it's only tested on what's currently listed in nvmrc
nvm use
yarn install
# optional, but needed for running tests
cp .env.example .env

Running the interface

yarn dev

Build

# builds the app for usage on serverless & containered hosting platforms like vercel
yarn build
# builds the app as a static bundle to be hosted on ipfs
yarn build:static

Environment

# you can default enable testnets by setting the following environment variable
NEXT_PUBLIC_ENABLE_TESTNET=true
# you can disable staking & governance by altering
NEXT_PUBLIC_ENABLE_GOVERNANCE=true
NEXT_PUBLIC_ENABLE_STAKING=true

Test

The integration test suite runs against tenderly forks of various networks. To setup the local environment you need to add environment variables accordingly:

TENDERLY_KEY=<api key>
TENDERLY_ACCOUNT=<account name>
TENDERLY_PROJECT=<project name>

For running the integration test suite you need to run the app. You can either run again yarn dev which will be a bit more resource intensive as the app will be build on the fly or run against a static build via yarn build:static & yarn serve:static.

# open interactive cypress test suite
yarn test:open
# run all tests in headless mode
yarn test:headless
# test a selected markets in headless mode
yarn test:amm|main|polygon|avalanche

Token addition

To add a new token to the app, all you have to do is adding a svg token icon inside public/icons/tokens please make sure the svg name equals the lowercase onchain symbol. If you want a custom name to appear alongside the icon you can alter src/ui-config/reservePatches.ts accordingly.

Translations

Aave uses Crowdin for translation management.

Feel free to reach out to us on discord to become a translator!

We only update strings within the app. Everything else is downloaded from crowdin.

Crowdin Docs for installation of the cli

To upload strings

crowdin upload sources

To download strings

crowdin download

To add a new language first start an issue to check for public interest. If the community decides to go forward with your preferred language follow this pr to add support for a new language.