Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add pallets/foreign-assets endpoint #1314

Merged
merged 21 commits into from
Sep 8, 2023
Merged

feat: add pallets/foreign-assets endpoint #1314

merged 21 commits into from
Sep 8, 2023

Commits on Aug 15, 2023

  1. feat: add pallets/foreign-assets endpoint

    - add controller, service & reponse type for foreign assets
    - update chain-config
    - update docs
    Imod7 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    e1aa255 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. 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.
    Imod7 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e682fbd View commit details
    Browse the repository at this point in the history
  2. add name & symbol in human readable format

    - Added in the response the asset's name & symbol in human readable format.
    Imod7 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e9ca2e4 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. 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
    Imod7 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    eb9628e View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. test: added test & mock data

    - Added a test (tinkernet) for foreign asset
    - Added metadata & registry for Asset Hub Kusama
    Imod7 committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    0683642 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into domi-foreign-assets

    - Resolved conflicts by keeping both changes
    - Reordered the pallets endpoints in docs so they are in alphabetical order (almost)
    - Rebuilt docs
    Imod7 committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    07fddc4 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Update src/services/pallets/PalletsForeignAssetsService.ts

    Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
    Imod7 and TarikGul committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    cc4b02b View commit details
    Browse the repository at this point in the history
  2. Update src/services/pallets/PalletsForeignAssetsService.ts

    Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
    Imod7 and TarikGul committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    2c418c7 View commit details
    Browse the repository at this point in the history
  3. Update src/services/pallets/PalletsForeignAssetsService.ts

    Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
    Imod7 and TarikGul committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    c8b6d7e View commit details
    Browse the repository at this point in the history
  4. Update src/services/pallets/PalletsForeignAssetsService.ts

    Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
    Imod7 and TarikGul committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    151396b View commit details
    Browse the repository at this point in the history
  5. Update src/services/pallets/PalletsForeignAssetsService.ts

    Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
    Imod7 and TarikGul committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    e87cede View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    34a04ec View commit details
    Browse the repository at this point in the history
  7. 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
    Imod7 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    dae423e View commit details
    Browse the repository at this point in the history
  8. removed storageKeyMultilocation & changed storageKey

    - Changed the copyright year in the files related to this PR
    Imod7 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    1df530f View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    8efc7f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. 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)
    Imod7 committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    20f967e View commit details
    Browse the repository at this point in the history
  2. Changes types of foreignAssetInfo and foreignAssetMetadata

    - Replaced PalletAssetsAssetMetadata with AssetMetadata
    - Removed also Option from assetMetadata
    Imod7 committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    ffb3d54 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2d49b26 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4dd1f3 View commit details
    Browse the repository at this point in the history
  5. fix test

    Imod7 committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    646083a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1ecc91b View commit details
    Browse the repository at this point in the history