A relay implementation for cross-chain message passing from Solana L1 to L2.
sol-bridge-relayer/
Main dependencies:
- solana-sdk: ~1.14.0
- solana-client: ~1.14.0
- solana-program: ~1.14.0
- tokio: 1.28 (Async runtime)
- anyhow: Error handling
- serde: Serialization support
- config: Configuration file handling
- NonceStatus: Store and track nonce values
- MessageType: Supported message types (Native/Token/NFT)
- Info: Cross-chain message information stored in PDA accounts
- Build instruction data using correct Anchor discriminator
- Construct transactions following Anchor program account ordering
- Ensure all addresses and paths in the configuration file are correct
- Wallet must have sufficient SOL for transaction fees
- Monitored accounts must have the correct data structure
- L2 program must be correctly deployed and accessible
- Add more error handling and retry mechanisms
- Support more types of cross-chain messages
- Add monitoring and logging system
- Optimize performance and resource usage