Skip to content

dex-backend v1.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jun 09:19

Features

  • add fdvAe, fdvUsd, volumeUsd fields (9a86f06)
  • add price change percentage (1718070)
  • add priceAe and priceUsd fields (c6ea21b)
  • add transactionHash to error table (82d60fc)
  • added new tables, added v2 importer and dbs (10b46d9)
  • adds sync algorithm to path calculator (cab8b70)
  • change eslint simple-import-sort from warn to error, improve comment (a3011a5)
  • explore: adds api descriptions for updated endpoints (af70592)
  • expose pair transactions count (dcdcfcb)
  • expose tvl usd (aa101db)
  • expose volumes for given timeframes (47da600)
  • fetches and exposes data for sender (b0c92c6)
  • history: actually returns history entries (57346bb)
  • history: adds aeprice and query for entries without (9b4dfdf)
  • history: adds history query by token (05b90c0)
  • history: finishes history price api (2327b8b)
  • history: moves usd calculation to the backend (51fedb2)
  • history: separates usd values by token (ae21fff)
  • implemented fetching of fiat price via coinmarketcap api (37e099a)
  • implemented validator v2 (d35b31c)
  • pairs: adds token filter to pair usd endpoint (d1dbbb7)
  • parse event and insert reserve and deltaReserve (7858329)
  • pr feedback: sync events with deltaReserves, code improvements, correct CronExpression for v2 importer (c38f495)
  • triggers history sync on new tx (138d45c)
  • update schema in preparation of event parsing, update comments (aa3bf17)

Bug Fixes

  • add not previously checked in forgotten migration (945fd25)
  • addresses type issues (4ae5393)
  • db v2 e2e test (3b27f2d)
  • eslint import order (9786ed1)
  • fix int-as-string param in mdw paginated calls (a148233)
  • history: also sort by log index (74237c3)
  • history: joins in decimals for proper price calculation (58abcb2)
  • linter (3d76c9d)
  • PairMint amount parsing (e560ef8)
  • pair: this being undefined during event based sync (634b760)
  • pair: this being undefined during factory event (932646b)
  • re-added task module to app module, added correct filter in importer v2 (6766a02)
  • removes .env file from repo (7daeb55)
  • strict-boolean-expressions eslint errors (dca0e53)
  • tasks service unit test (2b518c4)
  • usd value pattern regex (98f88e3)

CI / CD

  • fix tag in production deploy step (342f51e)

Refactorings

  • adds senderAccount to data model (cc01a9a)
  • adds senderAccount to database (873c66f)
  • adjust and fix worker related tests (204b799)
  • deleted worker directory (e4eff52)
  • feedback: db changes, move sliding window blocks to constant (4f2f9ae)
  • improve imports in main.ts (61eac3a)
  • improved type and variable naming consistency (86576b5)
  • include pair and tokens in getWithinHeightSorted (e3ff28c)
  • make private methods private, use square brackets accessor for tests (056304a)
  • move context to PairSyncService, create SdkClientService (10ad395)
  • move db logic to nest, create ApiModule (dc79a59)
  • move dto.ts to /api and rename to api.model.ts (c229813)
  • move worker and mdw websocket to nest services, rename worker to PairSyncService (e5a60d9)
  • pair: avoid parametrization of functions (b7f4cdd)
  • re-move tokenConditions into PairDbService (ec48d4d)
  • remove unnecessary type casting (d1e1426)
  • remove v1 history and rename v2 history to just history (9f13fec)
  • rename api files to reflect class name (b5908aa)
  • reorder and adjust privacy of functions in PairSyncService and MdwWsClientService (bb2c17f)
  • reorganize tests according to nest best practice (0540871)
  • simplify total reserve function (b782098)
  • updates query params from kebab to camel case (419dd0d)
  • use absolute import paths and sort imports with eslint (f85499b)
  • use decimal instead of bigint in db (89799a9)
  • use HttpService in MdwHttpClientService (dce7322)

Miscellaneous

  • add prettier for embedded sql (c2df26a)
  • adds todo (b5737b0)
  • adds todos for further fields (f74f96f)
  • adds todos for philipp (1c554a1)
  • cleanup api spec, round ae value to 18 decimals, db migrate instead of push (5c6b99e)
  • fixes mock ae value (5c34119)
  • removes a few console.log calls (ab14b04)
  • rename fdv to tvl as we aren't using total supply in calculation (cb79433)
  • wip (6f6380d)

Testing

  • add unit test for CoinmarketcapClient (d8f4d31)
  • add unit tests for validatorV2 (44d91a5)
  • e2e tests for v2 dbs (bbcd4a4)
  • feedback: introduce jest snapshots (ef61c86)
  • feedback: use it.skip() for commented out test (7924c41)
  • fix existing tests (c95d4e2)
  • fix task service unit test (604580a)
  • fixes all currently active tests (0fee94c)
  • improve robustness of CoinmarketcapClient spec (37c55e2)
  • include coinmarketcap API error in importer unit test (267bb7e)
  • re-organize mock data and utils (6152790)
  • unit tests for importerV2 (3846b84)