Skip to content

Conversation

@VladimirKlav
Copy link

Summary

This pull request adds support for deplAoying TRAIN Protocol HTLC (Hash Time-Locked Contract) functionality to the X1 dblockchain. X1 is a Solana SVM (Sealevdel Virtual Machine) fork, enabling seamless depl oyment of Solana-compatible Anchor programs with minimal configuration changes.

Changes

Configuration Updates

  • Anchor.toml: Updated cluster RPC endpoint to X1 testnet (https://rpc.testnet.x1.xyz)
    • Added [programs.x1-testnet] section with program ID placeholders for train_htlc and train_discovery
    • Configured provider wallet and test script settings for X1 deployment

Documentation

  • X1-DEPLOYMENT.md: Comprehensive deployment guide including:
    • Step-by-step setup and deployment instructions
    • X1 network configuration details (testnet and mainnet)
    • Build and deployment procedures
    • Verification steps using X1 explorer
    • Troubleshooting guide for common issues
    • Resources and support links
  • X1-INTEGRATION-SUMMARY.md: Integration overview documenting:
    • What has been done (configuration updates, documentation)
    • Repository structure and file changes
    • Technical details and SVM compatibility
    • Testing checklist and verification steps
    • Next steps for complete integration

Technical Details

Why X1 is Compatible

  • X1 is based on Solana's SVM (Sealevel Virtual Machine)
    • All Anchor framework code works without modification
    • Solana program libraries are fully compatible
    • HTLC logic remains identical across networks
    • Only cluster/RPC configuration differs from Solana mainnet

Network Configuration

What's Included

✅ X1 Tachyon testnet configuration
✅ Comprehensive deployment guide
✅ Integration summary and testing checklist
✅ Network-agnostic HTLC program code
✅ Ready for testnet deployment and testing

What's Next

  1. Testing Phase: Run anchor build and anchor test on X1 testnet
    1. Deployment: Deploy contracts and capture actual program IDs
    1. Verification: Test HTLC lock/redeem/refund operations
    1. Documentation: Update main README to reflect X1 support
    1. Mainnet Preparation: Prepare for X1 mainnet deployment

Testing Instructions

Refer to X1-DEPLOYMENT.md for detailed instructions on:

  • Building the contracts: anchor build
    • Testing locally: anchor test
    • Deploying to X1 testnet: anchor deploy
    • Verifying deployment on X1 explorer

Related Issues

Enables TRAIN Protocol deployment on X1 blockchain and expands cross-chain liquidity support.

Checklist

  • Configuration updated for X1 testnet
  • - [x] Comprehensive deployment documentation created
  • - [x] Integration summary and checklist documented
  • - [x] Code follows repository conventions
  • - [x] Changes tested locally (build verification)
  • - [ ] Deployed and tested on X1 testnet (to be completed)
  • - [ ] X1 support documented in main README

Haykhovhannisyan1 and others added 5 commits November 17, 2025 17:29
- Updated cluster RPC to X1 Tachyon testnet: https://rpc.testnet.x1.xyz
- Added [programs.x1-testnet] section with placeholder program IDs
- Configure anchor to work with X1 testnet environment
- Ready for deploying TRAIN HTLC contracts to X1
This document provides a comprehensive guide for deploying the TRAIN Protocol on the X1 blockchain, including prerequisites, setup steps, and verification processes.
This document summarizes the integration of TRAIN Protocol HTLC functionality to the X1 blockchain, including configuration updates, documentation created, and repository structure.
- Replaced all 'anchor' commands with 'npx anchor'
- Replaced all 'solana' commands with 'npx solana'
- Updated for Windows users with npm-based installations
- Works seamlessly with node_modules installation
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.

2 participants