Git Product home page Git Product logo

lido-nestjs-modules's Introduction

Lido NestJS Modules

NestJS modules for Lido Finance projects.

Packages

Install

  1. yarn && yarn postinstall
  2. yarn typechain
  3. yarn build

Usage

  • yarn build — Build all packages
  • yarn lint — Run eslint across packages
  • yarn test — Run tests across packages
  • yarn test:package {package name} — Run tests for one package
  • yarn test:watch — Run tests in watch mode
  • yarn test:e2e — Run E2E tests (ensure $EL_RPC_URL env variable set)

Migrations

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.

lido-nestjs-modules's People

Contributors

alexandrmov avatar amuhar avatar avsetsin avatar diraiks avatar eddort avatar infloop avatar kolyasapphire avatar madlabman avatar sergeywh1te avatar solidovic avatar tarens2 avatar vp4242 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lido-nestjs-modules's Issues

fetch: Request timeouts

It would be handy to have a default timeout for requests which can be customised.

Can be done using an AbortController, signal from which is passed: fetch('http://example.com', { signal })

Need to fix error handling in extended-json-rpc-batch-provider

Got an error while connecting to Erigon node and fetching data for Registry library

/node_modules/@lido-nestjs/execution/dist/provider/extended-json-rpc-batch-provider.js:62
                const resultMap = batchResult.reduce((resultMap, payload) => {
                                              ^
TypeError: batchResult.reduce is not a function
    at _concurrencyLimiter.then.emit.action (/Users/anna_mukharram/Documents/Projects/lido/lido-no-keys-service/node_modules/@lido-nestjs/execution/dist/provider/extended-json-rpc-batch-provider.js:62:47)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.