feat: add solana chain module with json-rpc connector#25
Open
Ishant5436 wants to merge 1 commit into
Open
Conversation
Closes kcolbchain#22 - Added Chain::Solana variant with mainnet/devnet RPC defaults, LAMPORTS_PER_SOL native token, and Solscan explorer URL - Implemented SolanaChain connector backed by raw JSON-RPC (reqwest) to avoid dependency-version conflicts with solana-client / spl-* crates - Supports: balance queries, SOL transfers, SPL TransferChecked - ATA derivation (spl_ata) requires no external SPL crate dependency - Added unit tests: test_spl_ata_derivation, test_balance_local_validator (validator test auto-skips when solana-test-validator is not running) - Updated examples/multi_chain.rs to include Solana balance query - Updated README.md: Solana marked Supported, Cosmos remains Planned Co-authored-by: Ishant5436 <ishant.p@somaiya.edu>
Contributor
|
Welcome to kcolbchain, @Ishant5436 — glad you're here. 🌱 Here's what happens from this PR:
While you wait:
What happens after your first merge
Thanks for writing the code. We're building this to last. |
Contributor
|
🤖 Audit verdict: Well-implemented Solana chain module using standard JSON-RPC, no malicious code, legitimate dependencies, correct SPL instruction encoding, proper error handling, and no credential leakage. Audited by the kcolbchain PR pipeline. See pipeline docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds solana chain support via a raw json-rpc connector, avoiding the dependency conflicts between
arka's existing crate versions and thesolana-client/spl-*ecosystem.fixes #22