Skip to content
  1. Apr 04, 2024
    • Dominique's avatar
      feat: add metadata versions endpoints (#1424) · beb02ba1
      Dominique authored
      
      
      * feat: add metadata versions endpoints
      
      * updated docs
      
      * fix typo & renamed variables
      
      * made the metadata version check dynamic, replacing the specific check for versions 14 and 15
      - transaction material with metadata returns metadata regardless of the 'metadata' query param
      - updated docs
      
      * added changes from Tarik's review
      - throw an error if newer call is not available for older blocks
      - removed some comments left in node transaction spec file
      
      * Tarik's change on regExPattern check
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * added Tarik's suggestion also in transaction material
      
      * fix typo
      
      ---------
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      beb02ba1
  2. Mar 27, 2024
  3. Mar 22, 2024
  4. Mar 21, 2024
    • Dominique's avatar
      chore(release): 18.0.0 (#1417) · 5ddabc2e
      Dominique authored
      
      
      * chore(release): 18.0.0
      
      * Update CHANGELOG.md
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * replaced feat title
      
      ---------
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      v18.0.0
      5ddabc2e
    • Dominique's avatar
      feat: add in-transit XCM msgs in blocks endpoint (#1412) · 6028086e
      Dominique authored
      
      
      * feat: add in-transit XCM msgs in blocks endpoint
      
      * change responses structure & namings
      - added `IHorizontalMessageInRelayChain` interface
      - renamed `IHorizontalMessage` to `IHorizontalMessageInParachain`.
      - renamed `paraId` to `originParaId` in `IHorizontalMessageInParachain` and `IUpwardMessage` interface.
      - corrected `ISanitizedParachainInherentData`
      - updated tests
      
      * changed response structure of upward msgs (multiple upward from same originPara)
      - upward msgs response to be aligned with horizontal msgs response structure
      - added Tarik's suggestions
      
      * updated docs
      
      * docs fix in schemas based on Iker's finding
      
      * Iker's grammar correction
      
      Co-authored-by: default avatarIkerAlus <[email protected]>
      
      * rebuilt docs
      
      ---------
      
      Co-authored-by: default avatarIkerAlus <[email protected]>
      6028086e
  5. Mar 16, 2024
  6. Mar 01, 2024
  7. Feb 23, 2024
  8. Feb 07, 2024
  9. Feb 06, 2024
  10. Feb 01, 2024
  11. Jan 25, 2024
  12. Jan 24, 2024
  13. 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
  14. Jan 11, 2024
  15. Jan 10, 2024
  16. Jan 09, 2024
  17. Jan 05, 2024
  18. Dec 21, 2023
  19. Nov 29, 2023
  20. Nov 21, 2023
  21. Nov 16, 2023
  22. Oct 30, 2023
  23. Oct 23, 2023
  24. Oct 20, 2023
  25. Oct 10, 2023
  26. Oct 02, 2023
    • Cameron Marshall's avatar
      feat: add blocks raw extrinsics endpoint (#1334) · f486aa94
      Cameron Marshall authored
      * add fetchBlockRaw to block service
      
      * add unit test
      update latest e2e tests
      
      * feat: add endpoint that queries a block by hash and returns it along with the raw values of its extrinsic(s)
      
      * build docs
      
      * update inline doc
      
      * update number to 0xstring
      
      * update BlockRaw docs summary and description
      
      * update schema pattern
      
      * update docs
      f486aa94
  27. Sep 27, 2023
  28. Sep 11, 2023
  29. Sep 08, 2023
    • Dominique's avatar
      feat: add pallets/foreign-assets endpoint (#1314) · 450c6ead
      Dominique authored
      * feat: add pallets/foreign-assets endpoint
      - add controller, service & reponse type for foreign assets
      - update chain-config
      - update docs
      
      * fix: remove `asset-info` from endpoint & fix docs
      - In /pallets/foreign-assets/ endpoint removed `asset-info` since it is not necessary.
      - In the docs removed the array notation from the `200` response of multiple endpoints (including foreign assets) since there is no outer array in the result.
      
      * add name & symbol in human readable format
      - Added in the response the asset's name & symbol in human readable format.
      
      * Refactored the code that retrieves the metadata of the foreign asset
      - Retrieved metadata based on MultiLocation key obtained by asset info entries
      - Changed types in IForeignAssetInfo
      
      * test: added test & mock data
      - Added a test (tinkernet) for foreign asset
      - Added metadata & registry for Asset Hub Kusama
      
      * Update src/services/pallets/PalletsForeignAssetsService.ts
      
      Co-authore...
      450c6ead
  30. Sep 05, 2023
  31. Sep 01, 2023
  32. Aug 16, 2023
  33. Aug 14, 2023
    • Dominique's avatar
      fix: change error&error codes returned from /transaction/* related endpoints (#1312) · 797c4217
      Dominique authored
      * fix: change error&error codes returned from /transaction/* related endpoints
      
      * Revert back to using `extractCauseAndStack` & pass error code in `txErrorMiddleware`
      - Reverted to the previous error handling with `extractCauseAndStack`
      - Added the `code` in error thrown and passed it in the `txErrorMiddleware`
      - Reverted the changes to the test `.spec` files
      - Updated the mock files with the error code returned since now `err` also includes the `code`
      - Updated `ITxLegacyError`
      - Reverted changes in docs and rebuilt
      
      * fix: removed comment
      797c4217
  34. Jul 05, 2023