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

Add E2E Test for Teleporting Assets Between LAOS and Asset Hub #829

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

magecnion
Copy link
Contributor

@magecnion magecnion commented Oct 22, 2024

PR Type

Tests, Enhancement


Description

  • Added a new E2E test for teleporting assets between LAOS and Asset Hub, including steps to create foreign assets and verify HRMP channels.
  • Enhanced utility functions to support multiple networks and added functions for HRMP channel operations.
  • Updated configurations for LAOS and Asset Hub nodes, including node URLs and parachain IDs.
  • Updated dependencies in package.json and ensured mocha exits after tests.
  • Modified GitHub Actions workflow to include Asset Hub setup.

Changes walkthrough 📝

Relevant files
Tests
3 files
mod.rs
Add assertions for zombinet sovereign accounts                     

xcm-simulator/src/tests/mod.rs

  • Added assertions for zombinet_para_id to check sovereign accounts.
  • Verified child and sibling account IDs for zombinet_para_id.
  • +10/-0   
    test-teleport-laos.ts
    Add E2E test for teleporting assets between LAOS and Asset Hub

    e2e-tests/tests/test-teleport-laos.ts

  • Introduced a new E2E test for teleporting assets between LAOS and
    Asset Hub.
  • Implemented steps to create a foreign asset in Asset Hub.
  • Added checks for HRMP channel status and asset creation events.
  • +230/-0 
    test-staking.ts
    Update staking test to use LAOS network API                           

    e2e-tests/tests/test-staking.ts

    • Updated staking test to use the LAOS network API.
    +2/-2     
    Enhancement
    2 files
    util.ts
    Enhance utility functions for E2E tests                                   

    e2e-tests/tests/util.ts

  • Added utility functions for block change and account funding.
  • Enhanced describeWithExistingNode to support multiple networks.
  • Introduced functions for HRMP channel operations.
  • +127/-13
    download_polkadot.sh
    Add polkadot-parachain download and setup instructions     

    zombienet/download_polkadot.sh

  • Added polkadot-parachain to the list of artifacts to download.
  • Provided environment variable setup for ZOMBIENET_ASSETHUB_COMMAND.
  • +5/-2     
    Configuration changes
    3 files
    config.ts
    Update configuration for LAOS and Asset Hub nodes               

    e2e-tests/tests/config.ts

  • Updated node URLs and parachain IDs for LAOS and Asset Hub.
  • Added configuration for Asset Hub and LAOS parachain IDs.
  • +5/-1     
    native.toml
    Update zombienet configuration for Asset Hub and logging 

    zombienet/native.toml

  • Updated relaychain and parachain node configurations.
  • Added Asset Hub parachain configuration.
  • Included logging arguments for nodes.
  • +37/-9   
    e2e.yml
    Update GitHub Actions workflow for Asset Hub setup             

    .github/workflows/e2e.yml

    • Added setup for ZOMBIENET_ASSETHUB_COMMAND in the workflow.
    +1/-0     
    Dependencies
    1 files
    package.json
    Update dependencies and test script in package.json           

    e2e-tests/package.json

  • Updated dependencies for @polkadot/api and related packages.
  • Modified test script to ensure mocha exits after tests.
  • +7/-4     
    Additional files (token-limit)
    1 files
    package-lock.json
    ...                                                                                                           

    e2e-tests/package-lock.json

    ...

    +3047/-456

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    @magecnion magecnion marked this pull request as ready for review October 23, 2024 15:36
    @magecnion
    Copy link
    Contributor Author

    /describe

    @github-actions github-actions bot changed the title Add E2E test for Create Foreign Asset from LAOS to Asset Hub Add E2E Test for Teleporting Assets Between LAOS and Asset Hub Oct 24, 2024
    Copy link

    PR Description updated to latest commit (527988a)

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    XCM allows for Sending and Receiving MERC Tokens to/from AssetHub in Zombienet
    4 participants