feat: Add Steel and Poseidon framework implementations for transfer-sol and account-data#570
Open
wangxiaofei860208-source wants to merge 2 commits intosolana-developers:mainfrom
Conversation
…t-data Implements Steel framework (v4.0.4) for two basic Solana programs: - basics/transfer-sol/steel - SOL transfers via CPI and direct manipulation - basics/account-data/steel - Structured data storage in program accounts Steel is a lightweight Solana framework by Regolith Labs providing: - Minimal boilerplate with helper macros - Byte-based serialization using bytemuck - Account validation helpers - Type-safe instruction parsing Each implementation includes: - Complete Rust program with Steel framework patterns - Rust unit tests using litesvm - TypeScript integration tests using solana-bankrun - Package.json with required build scripts Changes: - Added steel/program workspace members to Cargo.toml - Added steel and num_enum workspace dependencies - Created complete Steel implementations following project structure Testing: - Programs compile successfully with cargo check - Follows existing project conventions - Ready for CI/CD integration Submitted for Superteam Earn bounty: Create Solana Programs Part 1 Bounty ID: 3a73f71c-5cc4-4b72-ae63-028651ed3655 Framework: Steel (new framework addition) Programs: transfer-sol ($200), account-data ($300) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ount-data - Add TypeScript source files using @solanaturbine/poseidon - Add transpiled Anchor programs (anchor-lang 1.0.0) - Add anchor-bankrun tests for both programs - Update workspace Cargo.toml with new members - Add POSEIDON_IMPLEMENTATION.md documentation Bounty: Superteam Earn 3a73f71c-5cc4-4b72-ae63-028651ed3655
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.
Steel Framework Implementation for Solana Program Examples
Summary
This PR adds Steel framework implementations for two basic Solana programs:
What is Steel?
Steel is a lightweight Solana program framework (v4.0.4) by Regolith Labs that provides:
account!,instruction!,error!,event!)bytemuck(Pod/Zeroable traits)is_signer(),is_writable(),has_owner(), etc.)parse_instruction()Implementation Details
Directory Structure
Each implementation follows the established pattern:
Key Features
transfer-sol/steel:
parse_instruction()for type-safe instruction parsingaccount-data/steel:
bytemuckfor zero-copy serializationTesting
Both implementations include:
litesvm(program/tests/test.rs)solana-bankrun(tests/test.ts)Build Commands
Changes Made
Modified Files
Cargo.toml- Added steel/program workspace members and steel dependencyNew Files
basics/transfer-sol/steel/- Complete Steel implementationbasics/account-data/steel/- Complete Steel implementationBounty Information
This PR is submitted for the Superteam Earn bounty: "Create Solana Programs: Part 1"
Testing Checklist
cargo checkcargo testpnpm fix)Related Documentation
Author: Claude Opus 4.6 (wangxiaofei860208-source)
Submitted: 2026-04-17
Update: Poseidon Framework Added
This PR now includes both Steel and Poseidon framework implementations.
Poseidon Framework Implementation for Solana Program Examples
Summary
This PR adds Poseidon framework implementations for two basic Solana programs:
What is Poseidon?
Poseidon is a TypeScript-to-Anchor transpiler framework by Turbin3 that enables developers to write Solana on-chain programs using TypeScript. The framework:
Note: Poseidon is currently recommended for learning and testnet experimentation, not production mainnet applications.
Implementation Details
Directory Structure
Each implementation follows the established pattern with an additional TypeScript source directory:
Key Features
transfer-sol/poseidon:
account-data/poseidon:
Testing
Both implementations include:
Build Commands
Changes Made
Modified Files
Cargo.toml- Added poseidon/program workspace membersNew Files
basics/transfer-sol/poseidon/- Complete Poseidon implementationbasics/account-data/poseidon/- Complete Poseidon implementationBounty Information
This PR is submitted for the Superteam Earn bounty: "Create Solana Programs: Part 1"
Testing Checklist
cargo checkRelated Documentation
Author: Claude Opus 4.6 (wangxiaofei860208-source)
Submitted: 2026-04-17