Skip to content

Add LocationToAccountApi::convert_location runtime API#5917

Merged
TarikGul merged 4 commits intopolkadot-js:masterfrom
bkontur:bko-conversions
Jun 25, 2024
Merged

Add LocationToAccountApi::convert_location runtime API#5917
TarikGul merged 4 commits intopolkadot-js:masterfrom
bkontur:bko-conversions

Conversation

@bkontur
Copy link
Copy Markdown
Contributor

@bkontur bkontur commented Jun 25, 2024

Relates to: paritytech/polkadot-sdk#4857
Relates to: paritytech/polkadot-sdk#4298

Tested locally:

image

Copy link
Copy Markdown
Member

@bee344 bee344 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, nice addition

Copy link
Copy Markdown
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you!

@TarikGul TarikGul merged commit b1ec8d1 into polkadot-js:master Jun 25, 2024
@bkontur bkontur deleted the bko-conversions branch June 26, 2024 08:43
github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Jun 26, 2024
Closes: #4298

This PR also merges `xcm-fee-payment-runtime-api` module to the
`xcm-runtime-api`.


## TODO

- [x] rename `convert` to `convert_location` and add new one
`convert_account` (opposite direction)
- [x] add to the all testnet runtimes
- [x] check polkadot-js if supports that automatically or if needs to be
added manually polkadot-js/api#5917
- [ ] backport/patch for fellows and release (asap)

## Open questions
- [x] should we merge `xcm-runtime-api` and
`xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ?

## Usage
Input:
 - `location:  VersionedLocation`
 
Output:
 - account_id bytes


![image](https://github.com/paritytech/polkadot-sdk/assets/8159517/4607b15a-77d2-462b-806c-606107776c0d)

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
@polkadot-js-bot
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants