Skip to content

L2: Implement Solana chain module#33

Open
zjwjing wants to merge 3 commits into
kcolbchain:mainfrom
zjwjing:main
Open

L2: Implement Solana chain module#33
zjwjing wants to merge 3 commits into
kcolbchain:mainfrom
zjwjing:main

Conversation

@zjwjing

@zjwjing zjwjing commented Jun 18, 2026

Copy link
Copy Markdown

Description

Implements the Solana chain backend for Arka, supporting SOL transfers, SPL token transfers, and balance queries.

Closes #22

Changes

New Files

  • src/chains/solana.rs - Solana chain implementation
  • ests/solana_test.rs - Integration tests
  • examples/multi_chain_solana.rs - Multi-chain example

Features

SolanaChain

  • SOL balance queries
  • SPL token balance queries
  • SOL transfers
  • SPL token transfers
  • Account existence checks
  • Block height and slot queries

SolanaClient

  • High-level wallet operations
  • Auto-creates Associated Token Accounts
  • Simplified API for agent operations

Constants

  • Well-known program IDs (System, Token, Associated Token)
  • Chain IDs for mainnet, devnet, testnet

Testing

Tests require solana-test-validator:
�ash solana-test-validator cargo test --test solana_test

Wallet Address

ETH: 0x8971bC40f06e90015C5e92d247c96BfB65C24Cc7

@abhicris

Copy link
Copy Markdown
Contributor

Welcome to kcolbchain, @zjwjing — 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

Copy link
Copy Markdown
Contributor

🤖 Audit verdict: safe

Solana chain module adds legitimate RPC client functionality with no hardcoded secrets, properly parameterized fund transfers, or malicious payloads.

Audited by the kcolbchain PR pipeline. See pipeline docs.

@zjwjing zjwjing left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi maintainers,

I have completed all the requested changes and the PR is ready for review.

Please let me know if you need any additional modifications.

Thank you!

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