awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
solana-foundation avatar

solana-foundation/anchor

0
View on GitHub↗
5,090 stars·1,938 forks·Rust·Apache-2.0·12 viewsanchor-lang.com↗

Anchor

Anchor is a framework for building, testing, and deploying Solana smart contracts. It provides a Rust domain-specific language (DSL) that uses macro‑based instruction dispatch and derive‑macro account validation to automate ownership checks, discriminator enforcement, and serialization before instruction execution. The framework also includes a CLI toolchain for scaffolding, compiling, and managing contracts across workspaces, a test harness that simulates program execution with account manipulation and compute unit benchmarking, and an IDL generator that emits a standardized JSON interface from source code.

What distinguishes Anchor is its integrated toolset for the full development lifecycle. The framework automatically generates type‑safe TypeScript and Rust client bindings from the interface description, enabling instruction sending and account querying without manual address derivation. It supports zero‑copy account data access for reading and writing large structures directly from serialized bytes, avoiding deserialization overhead. Cross‑program invocation is handled through macros that allow contracts to call instructions of other programs without adding third‑party dependencies. Testing capabilities include time manipulation, live account import from mainnet, and per‑instruction validation.

The framework also covers token and asset management, with utilities for creating and validating SPL token accounts, minting, transfers, and token extensions. Account management features include deterministic address derivation (PDAs), account closure with rent reclaim, schema migration, and dynamic space reallocation. Projects are structured around a workspace configuration file that manages contract IDs, provider URLs, and wallet paths, with reproducible builds pinned to a deterministic environment for on‑chain verification against source code.

Features

  • Smart Contract Development Frameworks - A comprehensive framework for building, testing, and deploying Solana programs with automatic account validation and client generation.
  • On-Chain Program Writing with DSL - Uses a Rust DSL with macros and account validation to define on-chain Solana smart contract logic.
  • Blockchain Instruction Dispatchers - Maps annotated module functions to on-chain instructions with automatic account constraints and error handling.
  • Contract Management - Provides a CLI toolchain for building, deploying, and managing Solana smart contracts across workspaces.
  • On-Chain Account - Defines on-chain Solana account data structures using derive macros for automated serialization and deserialization.
  • Account Constraint Validations - Checks account conditions at runtime to enforce business rules in Solana contracts.
  • CLI Development Tools - Provides a command-line toolchain for scaffolding, building, deploying, and managing Solana smart contracts.
  • Client Libraries - Provides generated client libraries for interacting with programs, sending instructions, and querying accounts.
  • Client SDK Generators - Generates typed TypeScript and Rust client code from a contract interface to send instructions and fetch accounts.
  • Contract Generation Interfaces - Automatically creates a standardized JSON file describing Solana smart contract instructions and accounts for client interaction.
  • Debugging and Inspection Tools - Provides interactive debugging and inspection tools for Solana program development.
  • Automated Test Execution - Automates building, deploying, and running tests with automatic blockchain lifecycle management.
  • Instruction Handler Modules - Provides a macro to mark modules as instruction handler containers for Solana programs.
  • Program Address Declarations - Ships a macro to declare a Solana program's on-chain address from a local keypair.
  • Solana Development DSLs - Provides a Rust DSL with macros to define Solana instruction handlers, account structs, and errors.
  • Account Validation Macros - Uses Rust derive macros to automatically validate account ownership and deserialization before instruction execution.
  • CLI Workspaces - Provides a CLI workspace for bootstrapping, building, testing, and deploying Solana smart contracts.
  • Workspace Configurations - Manages all contract IDs, provider URLs, and wallet paths through a single configuration file.
  • Smart Contract Deployment Pipelines - Builds, deploys, upgrades, and verifies Solana smart contracts through a versioned command-line workflow.
  • Smart Contract Compilers - Compiles Solana smart contract source code into deployable binary files for the target blockchain.
  • Smart Contract Structuring with Macros - Uses macros to organize all account validation, instruction dispatch, and error handling in Solana smart contracts.
  • Program Derived Address Derivations - Derives program-owned addresses deterministically for Solana account management.
  • Program Derived Address Signers - Derives deterministic addresses from seeds and bump, enabling programs to sign cross-program invocations for owned accounts.
  • Account Data Structure Definitions with Serialization - Defines the structure of data stored in custom Solana accounts with automatic owner, discriminator, and serialization.
  • Account Owner Validations - Verifies account ownership against expected Solana program IDs before execution.
  • Program Identifier Validations - Restricts instruction execution to accounts owned by designated Solana programs.
  • Transaction Signer Verifications - Checks that required accounts signed the transaction in Solana smart contracts.
  • Account Validation & Deserializers - Combines ownership checks and deserialization for Solana accounts automatically.
  • Deterministic Address Calculation - Computes deterministic on-chain addresses for program-derived accounts in Solana smart contracts.
  • Upgradeable Contract Deployment - Supports deploying new contract instances, upgrading existing ones, and verifying on-chain bytecode matches local builds.
  • Test Harnesses - Ships a simulated environment for running Solana program instructions with account manipulation and compute unit benchmarking.
  • Interface Definition Languages - Emits a standardized JSON interface from source code for typed client bindings and tooling.
  • Contract Invocation Handlers - Calls instructions of other Solana programs from within a contract using sealed macros for composability.
  • Account State Simulation - Runs local test suites with simulated accounts, time travel, and compute unit benchmarking.
  • Integration Test Suites - Runs integration test suites with automatic local blockchain setup and state migration scripts.
  • Test Environment Provisioning - Automates setup of local test nodes and simulation environments for Solana program testing.
  • IDL-Based Client Generators - Generates Rust client modules from program interface definitions for instruction building and account fetching.
  • Type-Safe Client Generators - Generates type-safe client code from smart contract interface definitions for TypeScript and Rust.
  • Automated Contract Testing Suites - Automates the full contract test lifecycle: start blockchain, deploy, run tests, and stop.
  • Type-Safe Clients - Creates typed clients from program interface definitions for type-safe instruction sending and account fetching.
  • Blockchain Compilation and Key Sync - Compiles source into bytecode, generates interface files, expands macros, and synchronizes contract keys.
  • Program Account Closures - Automates closure of program-owned accounts with rent refund and data cleanup in Solana.
  • Type-Based Fetchers - Provides a client library that fetches and deserializes accounts by type with pagination and filtering.
  • Cross-Contract Account Initializations - Enables account creation through cross-contract calls in Solana smart contracts.
  • Idempotent Account Initializations - Supports conditional initialization of Solana accounts to avoid overwrites.
  • Filtered Queries - Ships a client library that fetches and deserializes on-chain accounts with filtering and pagination.
  • Account Mutability Declarations - Enables saving state changes to Solana accounts by declaring them mutable.
  • Cross-Field Validators - Provides macros for cross-field key validation in account structs to enforce data consistency.
  • Account Data Structures - Defines data structures that programs read and write directly from Solana account memory, avoiding serialization overhead.
  • Mutable and Immutable Zero-Copy References - Provides both mutable and immutable zero-copy references for reading and modifying Solana account data directly from memory.
  • Token Extensions - Adds optional state and behavior to token mints and accounts through configurable extensions.
  • Mint Account Creations - Creates and initializes token mint accounts using generated keypairs or deterministic addresses.
  • Minting Mechanisms - Mints new tokens by invoking a token contract, increasing the total on-chain token supply.
  • Rust-to-JavaScript Mappings - Maps Rust program types to JavaScript equivalents for type-safe client-program communication.
  • Zero-Copy Deserialization - Reads and writes Solana account data directly from serialized bytes using Pod structs, avoiding heap allocation.
  • Byte-Level Account Data Access - Provides zero-copy access to large Solana account data structures, avoiding deserialization overhead and heap allocations.
  • IDL-Based Instances - Creates typed program instances from interface definitions for sending instructions and fetching accounts.
  • Contract Artifact Generators - Compiles source programs, expands macros, and manages metadata for deployment to a test network.
  • Built-in Solana Account Accessors - Provides automatic access to Solana’s built-in system accounts in instruction handlers.
  • Contract Deployment Scripts - Builds contract source and deploys to a local development blockchain, updating the on-chain address.
  • Contract Verification Tools - Compares local build and interface description against deployed contracts to confirm reproducibility.
  • Interface Definition Language Generators - Emits a standardized JSON interface description from Solana program source code for client tooling.
  • Custom Constraint Evaluations - Enables custom boolean constraint evaluation for account validation in Solana programs.
  • Executable Account Checks - Provides a macro to verify that an account is executable, confirming it is a smart contract.
  • Interface-Based Invocations - Builds and sends blockchain instructions using typed methods derived from program interface definitions.
  • Typed Method Builders - Builds, signs, and sends blockchain instructions using typed method builders from program interface definitions.
  • IDL-Based Address Resolutions - Generates client-friendly account addresses from Solana program interface descriptions.
  • Seeded Address Validations - Validates deterministic PDA addresses using seeds and bump in Solana instructions.
  • Cross-Contract Token Transfers - Transfers tokens between accounts by invoking a token contract using cross-contract calls.
  • Program Account Removals - Ships utilities to remove deployed contracts and recover their rent allocation on Solana.
  • SPL Token Account Management - Ships utilities for creating and validating SPL token accounts, mint accounts, and associated token accounts.
  • Token Account Creations - Create and initialize token accounts, including associated and derived accounts, to hold token balances.
  • Reproducible Build Environments - Builds contracts inside a pinned, deterministic environment to produce bytecode verifiable against source.
  • Reproducible Builds - Produces deterministic builds so deployed contracts can be verified against published source code.
  • Token Contract Interactions - Simplifies interaction with token contracts and extensions from within a smart contract.
  • Compute Usage Metrics - Measures and records compute unit consumption of program instructions for benchmarking.
  • Client-Side Contract Test Scripts - Executes client-side test scripts that invoke contract instructions for validation.
  • Direct Account Data Injections - Enables direct writing of account data in tests to bypass constraints and test edge cases.
  • Instruction Chain Testing - Enables sequential instruction chain testing with per-instruction validation in Solana programs.
  • Live Account Imports - Imports accounts from a live network into the test environment for realistic simulation.
  • Multi-Language Test Frameworks - Supports writing and running program logic tests in multiple programming languages.
  • Pre-Compiled Program Deployments - Deploys pre-compiled programs into test environments for instruction simulation.
  • Single Instruction Simulators - Simulates and validates single program instructions in a lightweight environment.
  • Time Simulation Utilities - Overwrites the system clock or advances time to test time-dependent logic in Solana programs.
  • Cross-Program Module Generators - Generates modules from program interfaces to enable cross-program calls without third-party dependencies.
  • Blockchain Infrastructure - Development framework for building secure Solana programs.
  • Frameworks and Libraries - Primary framework for developing secure Solana programs.

Star history

Star history chart for solana-foundation/anchorStar history chart for solana-foundation/anchor

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Anchor

These projects share indexed features with Anchor. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • nomicfoundation/hardhatNomicFoundation avatar

    NomicFoundation/hardhat

    8,489View on GitHub↗

    Hardhat is a smart contract development framework and EVM tooling suite designed for the full lifecycle of Ethereum and EVM-compatible applications. It serves as a development environment for compiling, testing, and deploying smart contracts, providing a local blockchain simulation and a programmable task runner. The framework is distinguished by its extensive simulation capabilities, including the ability to fork remote network state and manipulate block time or account balances. It features a hook-based plugin system that allows for the extension of core functionality and the creation of cu

    TypeScriptblockchaindappsdebugging
    View on GitHub↗8,489
  • openzeppelin/openzeppelin-contractsOpenZeppelin avatar

    OpenZeppelin/openzeppelin-contracts

    27,157View on GitHub↗

    OpenZeppelin Contracts is a library of modular, secure, and reusable smart contract components designed for the development of decentralized applications. It provides a foundational framework for building standard-compliant contracts, offering battle-tested implementations for token standards, access control, and common utility patterns. The project distinguishes itself through its comprehensive support for complex architectural patterns, including proxy-based upgradeability, role-based access control, and account abstraction. It enables developers to implement modular logic injection via hoo

    Solidityethereumevmsecurity
    View on GitHub↗27,157
  • foundry-rs/foundryfoundry-rs avatar

    foundry-rs/foundry

    10,125View on GitHub↗

    Foundry is an Ethereum smart contract development toolkit and blockchain simulator designed for compiling, testing, and deploying contracts for the Ethereum Virtual Machine. It provides a local environment for simulating blockchain state and forking live networks to execute code without modifying the actual chain. The project features a property-based fuzzing engine to identify edge-case failures in contract logic and a transaction debugger for analyzing detailed execution traces and gas consumption. It enables developers to mirror the state of a remote chain locally to test against real-worl

    Rustalloyblockchainbytecode
    View on GitHub↗10,125
  • mystenlabs/suiMystenLabs avatar

    MystenLabs/sui

    7,612View on GitHub↗

    Sui is a blockchain platform featuring an object-centric state model and resource-oriented smart contracts. It utilizes parallel transaction execution to increase network throughput and supports programmable transaction blocks that bundle multiple operations into single atomic units. The platform distinguishes itself with a capability-based access control system and zero-knowledge login mechanisms, enabling users to authenticate via identity providers without seed phrases. It also implements deterministic object addressing to allow predictable state lookups and supports the creation of soulbo

    Rustblockchaindistributed-ledger-technologymove
    View on GitHub↗7,612
Compare all 30 related projects→

Frequently asked questions

What does solana-foundation/anchor do?

Anchor is a framework for building, testing, and deploying Solana smart contracts. It provides a Rust domain-specific language (DSL) that uses macro‑based instruction dispatch and derive‑macro account validation to automate ownership checks, discriminator enforcement, and serialization before instruction execution. The framework also includes a CLI toolchain for scaffolding, compiling, and managing contracts across workspaces, a test harness that simulates program execution…

What are the main features of solana-foundation/anchor?

The main features of solana-foundation/anchor are: Smart Contract Development Frameworks, On-Chain Program Writing with DSL, Blockchain Instruction Dispatchers, Contract Management, On-Chain Account, Account Constraint Validations, CLI Development Tools, Client Libraries.

Which projects share features with solana-foundation/anchor?

Projects with overlapping indexed features include: nomicfoundation/hardhat — Hardhat is a smart contract development framework and EVM tooling suite designed for the full lifecycle of Ethereum… openzeppelin/openzeppelin-contracts — OpenZeppelin Contracts is a library of modular, secure, and reusable smart contract components designed for the… foundry-rs/foundry — Foundry is an Ethereum smart contract development toolkit and blockchain simulator designed for compiling, testing,… mystenlabs/sui — Sui is a blockchain platform featuring an object-centric state model and resource-oriented smart contracts. It… remix-project-org/remix-project — Remix is a comprehensive blockchain development environment and Ethereum smart contract IDE. It provides a complete… consensys-archive/truffle — Truffle is a development framework designed for the end-to-end lifecycle management of decentralized applications on…