This project provides a complete testing environment for XCM transfers between Frequency parachain and AssetHub using Chopsticks.
- Node.js (v16 or higher)
- npm or yarn
- Install dependencies:
npm install
- Start the XCM testing environment:
# Option 1: Using the XCM configuration (recommended)
npm run fork:xcm
# Option 2: Start chains individually
npm run fork:frequency # Terminal 1
npm run fork:asset-hub # Terminal 2
- Run the tests:
npm test
When the forks are running, you can connect to:
- Relay Chain (Polkadot): ws://localhost:8000
- AssetHub: ws://localhost:8001
- Frequency: ws://localhost:8002
The configuration includes pre-funded test accounts:
- Alice:
5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- Bob:
5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty
npm test
- Run all XCM testsnpm run fork:xcm
- Start XCM testing environment with relay + parachainsnpm run fork:frequency
- Start only Frequency parachain forknpm run fork:asset-hub
- Start only AssetHub fork
tests/networks.ts
- Wire up configurations for each chain
tests/xcm-utils.ts
- XCM utility functions and helperstests/xcm-transfer.test.ts
- XCM transfer test cases (in progress)
configs/frequency.yml
- Frequency parachain configurationconfigs/asset-hub.yml
- AssetHub configurationconfigs/xcm-setup.yml
- Multi-chain XCM testing configuration