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

Make penpal-runtime's TrustedReserves more connfigurable #3564

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Mar 4, 2024

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

@bkontur bkontur added R0-silent Changes should not be mentioned in any release notes T10-tests This PR/Issue is related to tests. labels Mar 4, 2024
@acatangiu
Copy link
Contributor

Should coordinate with #3543 and make sure they are compatible

@acatangiu
Copy link
Contributor

Should coordinate with #3543 and make sure they are compatible

Ah, looks ok, should not be incompatible, sorry for the noise.

Fixes the snowbridge test by using the new Penpal config.

---------

Co-authored-by: claravanstaden <Cats 4 life!>
@bkontur bkontur requested a review from a team as a code owner March 6, 2024 09:17
@bkontur bkontur enabled auto-merge March 6, 2024 09:37
@bkontur bkontur added this pull request to the merge queue Mar 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 6, 2024
@bkontur bkontur enabled auto-merge March 6, 2024 21:10
@bkontur bkontur added this pull request to the merge queue Mar 6, 2024
Merged via the queue into master with commit 117a943 Mar 6, 2024
129 of 130 checks passed
@bkontur bkontur deleted the bko-penpal-customization branch March 6, 2024 23:13
bkontur added a commit that referenced this pull request Mar 8, 2024
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 added a commit that referenced this pull request Mar 8, 2024
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

# Conflicts:
#	Cargo.lock
#	cumulus/parachains/runtimes/testing/penpal/Cargo.toml
acatangiu pushed a commit that referenced this pull request Mar 8, 2024
…(patch for 1.7.0) (#3624)

Backport of #3564

Expected patches for (1.7.0):
- penpal-runtime `0.15.1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T10-tests This PR/Issue is related to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants