Skip to content

feat: add solana chain module with json-rpc connector#25

Open
Ishant5436 wants to merge 1 commit into
kcolbchain:mainfrom
Ishant5436:feat/solana-module
Open

feat: add solana chain module with json-rpc connector#25
Ishant5436 wants to merge 1 commit into
kcolbchain:mainfrom
Ishant5436:feat/solana-module

Conversation

@Ishant5436

@Ishant5436 Ishant5436 commented Jun 6, 2026

Copy link
Copy Markdown

adds solana chain support via a raw json-rpc connector, avoiding the dependency conflicts between arka's existing crate versions and the solana-client/spl-* ecosystem.

fixes #22

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>
@abhicris

abhicris commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Welcome to kcolbchain, @Ishant5436 — glad you're here. 🌱

Here's what happens from this PR:

  1. Our automated review looks for obvious issues (tests, secrets, size) within a couple of hours.
  2. If it's clean and CI passes, we merge without back-and-forth.
  3. If we need changes, we'll leave a specific comment — not a generic nit. Push another commit and we re-review.

While you wait:

  • Run the repo's tests locally (see the repo README.md).
  • Keep the PR scoped to one concern — bigger PRs land slower.
  • Don't commit tokens or .env contents.

What happens after your first merge

Thanks for writing the code. We're building this to last.

@abhicris

abhicris commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

🤖 Audit verdict: safe

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.

@Ishant5436 Ishant5436 changed the title feat: add Solana chain module with JSON-RPC connector (Fixes #22) feat: add solana chain module with json-rpc connector Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

L2: Implement Solana chain module

2 participants