Skip to content
  1. Mar 01, 2024
    • Dominique's avatar
      chore(release): 17.5.2 (#1405) · f2b58bd9
      Dominique authored
      v17.5.2
      f2b58bd9
    • Tarik Gul's avatar
      fix: add more historic support for staking-payouts (#1397) · b1e84beb
      Tarik Gul authored
      
      
      * fix: add more historic support for staking-payouts
      
      * Update typings
      
      * update nit
      
      * historyDepth guard
      
      * added currentEra
      
      * first commit
      
      * updated deriveEraExposure
      
      * udpated blockinfo interface
      
      * updated payout calc
      
      * removed unused types
      
      * added eras block info
      
      * run linter
      
      * some linting
      
      * udpated points and rewards
      
      * undo
      
      * fixed all type errors
      
      * get era points at current era s end block
      
      * edgecase era 0
      
      * linting
      
      * era 0
      
      * disable depth for eras less than 518
      
      * removed extra blocks in erasBlockInfo json file
      
      * bug fix
      
      * typo
      
      * bug fix
      
      * fix era err msg
      
      * removed commented line
      
      * linting
      
      ---------
      
      Co-authored-by: default avatarbee344 <[email protected]>
      Co-authored-by: default avatarImod7 <[email protected]>
      b1e84beb
  2. Feb 28, 2024
  3. Feb 23, 2024
  4. Feb 22, 2024
  5. Feb 07, 2024
  6. Feb 06, 2024
  7. Feb 02, 2024
  8. Feb 01, 2024
  9. Jan 25, 2024
  10. Jan 24, 2024
  11. Jan 23, 2024
    • Dominique's avatar
      feat: add decoded XCM data in `blocks` endpoint (#1364) · 555817c8
      Dominique authored
      
      
      * feat: add decoded xcm data in blocks endpoint
      
      * add types to fix any lint errors
      
      * update copyright year
      
      * fix paraId filter for horizontal msgs
      
      * fix xcm decoding for moonbeam horizontal msg
      
      * add yarn.lock file
      
      * update docs
      
      * removed moonbeam package
      
      * adding back yarn.lock
      
      * changed variable to const
      
      * retrieved yarn.lock from master branch
      
      * added a test for decoding upward msg in polkadot block
      
      * added test for decoding horizontal msg in KAH block
      
      * updated cacheKey with query params of decodedXcmMsgs and paraId
      - updated docs in blocks controller comments
      
      * replaced mocked data of block 18207445 with those of block 18468942
      - in block 18468942 we have 2 upward msgs from two different parachains so with the same mocked data we can add 2 tests
      - added a test to check the query param paraId is working as expected
      
      * replaced mocked data of block 5831776 with those of block 3356195
      - in block 3356195 we have downward and horizontal msgs so with the same mocked data we can test two different directions
      
      * changed structure of decodedXcmMsgs response
      - changed structure of the decodedMsgs response so that it always returns three arrays (filled or empty), one for each direction.
      - removed an if statement as unnecessary in XCMDecoder
      - updated corresponding tests with the new structure of the response
      
      * reintroduced the if statement so that paraId query param works when connected to parachain
      
      * added test to check if query param paraId works correctly also in horizontal msgs
      
      * run linter
      
      * added the decodedXcmMsgs response for blockId endpoint
      - the response is a combination of Block and BlockXCM response with the use of allOf
      - added schema for Liquidity Pool because the swagger was complaining
      - changed the order of a hash field so that it aligns of it actually appears in the corresponding response
      
      * added decodedXcmMsgsArg and paraId in the options arg
      
      * added validation for paraId query param
      - changed type of paraId after validation
      - renamed boolean option for decodedXcmMsgs so it is shorter
      
      * XCMDecoder changes from Tarik's Amazing review
      - changes in imports
      - replaced class name with the keyword 'this'
      - replaced static with readonly for class properties
      - replaced static with private for class methods
      - changed specname to lowercase
      
      * reused mockApi's 'perClass' in the other mocked apis
      - added the 'type' keyword in more imports
      
      * run linter & refix imports
      
      * Update src/services/blocks/BlocksService.ts
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * fix on the perClass field
      
      ---------
      
      Co-authored-by: default avatarmarshacb <[email protected]>
      Co-authored-by: default avatarTarik Gul <[email protected]>
      555817c8
  12. Jan 18, 2024
  13. Jan 16, 2024
  14. Jan 12, 2024
  15. Jan 11, 2024
  16. Jan 10, 2024
  17. Jan 09, 2024
  18. Jan 05, 2024
  19. Jan 03, 2024
  20. Dec 21, 2023
  21. Dec 01, 2023
  22. Nov 29, 2023
  23. Nov 22, 2023
  24. Nov 21, 2023