Skip to content
New issue

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

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

Already on GitHub? # to your account

Make penpal-runtime's TrustedReserves more connfigurable (#3564) (patch for 1.7.0) #3624

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Mar 8, 2024

Backport of #3564

Expected patches for (1.7.0):

  • penpal-runtime 0.15.1

The current `penpal` runtime utilizes the `EthereumLocation` parameter,
which is employed for XCM emulated integration tests concerning the
Rococo <> ETH bridge. It includes a hard-coded chainId for the Ethereum
testnet utilized in Rococo. The `EthereumLocation` serves the purpose of
aligning with the `TrustedReserves`. However, due to this hard-coded
configuration, reusing `penpal` for testing various environments such as
Kusama/Polkadot versus Ethereum bridge becomes unfeasible.

This PR introduces the capability to easily customize the asset location
for `TrustedReserves` without needing to know anything about Ethereum.


## TODO
- [x] fix integration tests with
`System::set_storage(CustomizableAssetFromSystemAssetHub::key(),
<whatever-location-is-needed>)` @claravanstaden
- [ ] ~~maybe add some helper function/macro to support `set_storage`
for other runtimes (that we could reuse)~~
- [ ] Release patch for: `penpal-runtime` + emulated crate with
`set_storage` support (if needed)
  - [ ] backport to 1.7.0
  - [ ] backport to 1.8.0

---------

Co-authored-by: Clara van Staden <claravanstaden64@gmail.com>
# Conflicts:
#	cumulus/parachains/runtimes/testing/penpal/Cargo.toml
@bkontur bkontur added the R0-silent Changes should not be mentioned in any release notes label Mar 8, 2024
@acatangiu acatangiu merged commit 33c605c into release-crates-io-v1.7.0 Mar 8, 2024
125 of 131 checks passed
@acatangiu acatangiu deleted the bko-patch-penpal-1.7.0 branch March 8, 2024 15:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants