Skip to content
  1. Sep 11, 2023
  2. 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-authored-by: default avatarTarik Gul <[email protected]>
      
      * Update src/services/pallets/PalletsForeignAssetsService.ts
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * Update src/services/pallets/PalletsForeignAssetsService.ts
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * Update src/services/pallets/PalletsForeignAssetsService.ts
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * Update src/services/pallets/PalletsForeignAssetsService.ts
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      
      * replaced type anyjson with codec
      
      * changed types in assetInfo & assetMetadata & copyright
      - Replaced types to avoid type casts based on Tarik's suggestion
      - Added the copyright in some files that was missing
      - Updated the copyright year in some of the files
      
      * removed storageKeyMultilocation & changed storageKey
      - Changed the copyright year in the files related to this PR
      
      * fix: changes to support a list of multiple foreign assets
      
      * Updated test to work with multiple foreign assets
      - Added the DOT asset in the test file (.spec)
      - Added the AssetInfo and AssetMetadata for the DOT asset in the mock data (metadata currently have empty & zero values because those are the values in Asset Hub right now - to be changed)
      - Added again the storageKeyMultilocation in TypeFactory since indexType is not included in InterfaceTypes (as defined in storageKey)
      
      * Changes types of foreignAssetInfo and foreignAssetMetadata
      - Replaced PalletAssetsAssetMetadata with AssetMetadata
      - Removed also Option from assetMetadata
      
      * fix typing on queried values, and return values
      
      * fix test
      
      * removed an unnecessary console.log
      
      ---------
      
      Co-authored-by: default avatarTarik Gul <[email protected]>
      Co-authored-by: default avatartarikgul <[email protected]>
      450c6ead
  3. Sep 05, 2023
  4. Sep 01, 2023
  5. Aug 26, 2023
    • Tarik Gul's avatar
      ci: add semantic title check, and cleanup actions (#1325) · 7098710b
      Tarik Gul authored
      * ci: add semantic title check
      
      * Update version
      
      * change action
      
      * apply name
      
      * semantic
      
      * change to main
      
      * cleanup ci
      
      * validate-pr
      
      * specify version
      
      * test seperate workflow
      
      * update
      
      * push event trigger on edited
      
      * cleanup small nits
      7098710b
  6. Aug 23, 2023
  7. Aug 22, 2023
  8. Aug 18, 2023
  9. Aug 16, 2023
  10. Aug 14, 2023
    • dependabot[bot]'s avatar
      chore: bump Swatinem/rust-cache from 2.6.0 to 2.6.1 (#1313) · 9fcda59e
      dependabot[bot] authored
      
      
      Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.0 to 2.6.1.
      - [Release notes](https://github.com/swatinem/rust-cache/releases)
      - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/swatinem/rust-cache/compare/b8a6852b4f997182bdea832df3f9e153038b5191...578b235f6e5f613f7727f1c17bd3305b4d4d4e1f)
      
      ---
      updated-dependencies:
      - dependency-name: Swatinem/rust-cache
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      9fcda59e
    • 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
  11. Aug 03, 2023
  12. Aug 02, 2023
  13. Jul 14, 2023
  14. Jul 12, 2023
  15. Jul 11, 2023
  16. Jul 05, 2023
  17. Jun 29, 2023
  18. Jun 26, 2023
  19. Jun 20, 2023
  20. Jun 13, 2023
  21. Jun 12, 2023
  22. Jun 08, 2023
  23. Jun 07, 2023
  24. May 31, 2023
  25. May 30, 2023
    • Dominique's avatar
      feat: add prometheus `metrics` endpoint in dedicated server & port (#1232) · a256790e
      Dominique authored
      
      
      * feat: add prometheus `metrics` endpoint in dedicated server & port
      - add separate express instance and port for prometheus metrics
      - expose the default prometheus metrics
      - add a custom metric of type `counter` that increments in every http error
      
      * fix lint errors by using an IIFE & adding void operator
      - remove the `return` keyword
      - add an IIFE inside the callback
      - add the `void` operator
      
      * update dep prom-client
      
      * add prometheus flags & fix for process.kill
      - add a prometheus flag that runs the prometheus server & enables the metrics endpoint
      - add a prometheus-port flag so that the user can choose a custom port to run the metrics endpoint
      - change the code in killAll so that there is no `Object is possibly undefined` error
      
      * code refactor, help page & README
      - add prometheus options and description under help flag
      - add `metricsApp` and increased `httpErrorCounter` only if prometheus flag is true
      - move logger and register inside functions
      - docs: add a section for prometheus in the README
      
      * remove jest unnecessary flags
      
      ---------
      
      Co-authored-by: default avatartarikgul <[email protected]>
      a256790e
  26. May 29, 2023
  27. May 26, 2023
    • Dominique's avatar
      Update pjs deps & fixes (#1285) · 110b01ad
      Dominique authored
      - Updated pjs api deps.
      - Updated code of `isFrozen` so that we support both past & future runtimes.
      - Removed one test from latest-e2e-tests of kusama because this pallet was removed.
      - Updated docs related to the `isFrozen` change.
      110b01ad
  28. May 23, 2023
  29. May 16, 2023
  30. May 08, 2023