-
Notifications
You must be signed in to change notification settings - Fork 0
Add Asset Hub Operations Example #54
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
Conversation
- Create AssetHubExample.ts demonstrating Asset Hub operations - Shows foreign asset queries, asset transfers, teleport assets, reserve transfers - Includes asset metadata and approval queries - Advanced level example with assets, xcm, transfers, and parachains categories - Registered the example in the example registry
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||
User description
This PR adds a comprehensive Asset Hub operations example to the PAPI Simulator.
Changes
Features Demonstrated
This example helps developers understand how to work with Polkadot's Asset Hub for cross-chain asset operations.
Closes #50
PR Type
Enhancement, Tests
Description
Add Asset Hub Operations example demonstrating foreign assets and XCM operations
Implement comprehensive error handling with retry logic in code runner
Add timeout management and error categorization for execution failures
Register new example in the example registry
Diagram Walkthrough
File Walkthrough
AssetHubExample.ts
Asset Hub operations example with XCM demonstrationssrc/lib/examples/AssetHubExample.ts
operations
and parachains
index.ts
Register Asset Hub example in registrysrc/lib/examples/index.ts
AssetHubExampleclassAssetHubExampleinstance in the example registryuseCodeRunner.ts
Implement retry logic and error categorizationsrc/lib/hooks/useCodeRunner.ts
CodeExecutionErrorcustom error class with error typecategorization (network, timeout, simulation, unknown)
attempts)
seconds)
messages