Thanks to visit codestin.com
Credit goes to github.com

Skip to content

priyanshpatel18/solana-programs

Repository files navigation

solana

SOLANA PROGRAMS

Repository Structure

Each program is organized in its own dedicated folder with a clear naming convention:

  • For Anchor framework programs: anchor-[programname]
  • For native Solana programs: native-[programname]
  • For general notation of framework programs: [framework]-[programname]

Programs Included

Program Framework Description
anchor-amm Anchor Automated Market Maker implementation with liquidity pools
anchor-collateral-stablecoin Anchor Collateralized stablecoin system with minting/burning mechanics
anchor-counter Anchor Simple counter program (ideal for beginners)
anchor-escrow Anchor Escrow service for secure token exchanges between parties
anchor-nft-marketplace Anchor NFT marketplace with listing, buying, and trading functionality
anchor-staking Anchor Token staking mechanism with rewards distribution
anchor-vault Anchor Secure token vault implementation for asset management
anchor-magicblock Anchor Realtime Transaction using Magicblock Ephemeral Rollups

Prerequisites

Before working with these programs, ensure you have the following installed:

Getting Started

  1. Clone the repository:
git clone https://github.com/4rjunc/solana-programs-list.git
cd solana-programs-list
  1. Set up your Solana environment:
solana config set --url localhost
solana-keygen new
  1. Navigate to individual program directories:
cd anchor-[programname]
  1. Follow specific program README.md instructions for detailed setup and usage.

Building Programs

For Anchor programs:

cd anchor-[programname]
anchor build

For native Solana programs:

cd native-[programname]
cargo build-sbf

Testing

Each program includes its own test suite. Refer to individual program documentation for specific testing instructions.

General testing approach:

# For Anchor programs
anchor test

# For native programs
cargo test-sbf

Deployment

To deploy programs to different Solana clusters:

# Deploy to devnet
anchor deploy --provider.cluster devnet

# Deploy to mainnet (use with caution)
anchor deploy --provider.cluster mainnet

Contributing

We welcome contributions! Please read our CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Resources

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published