NestJS modules for Lido Finance projects.
yarn && yarn postinstall
yarn typechain
yarn build
yarn build
— Build all packagesyarn lint
— Run eslint across packagesyarn test
— Run tests across packagesyarn test:package {package name}
— Run tests for one packageyarn test:watch
— Run tests in watch modeyarn test:e2e
— Run E2E tests (ensure $EL_RPC_URL env variable set)
Database migration files should be placed in /packages/{package name}/src/migrations/
folder.
Migrations filenames should comply with the datetime pattern: MigrationYYYYMMDDhhmmss.ts
Where:
- YYYY - year (example: 2022)
- MM - month (example: 01)
- DD - day of month (example: 29)
- hh - hour in 24h format (example: 23)
- mm - minutes (example: 05)
- ss - seconds (example: 02)
Examples:
Migration20220301040302.ts
Migration20221129230502.ts
Please DO NOT edit migrations after they are created and pushed to NPM. If you want to change the migration, please make another one with the needed database schema transitions.