Ferramentas de Dev

Mollusk

A lightweight SVM testing harness that executes Solana program instructions directly without spinning up a validator or simulated runtime. Mollusk loads a program's compiled SBF binary and processes individual instructions against a minimal account set, providing fast unit-test-level feedback. It supports both native and BPF programs, making it ideal for rapid iteration on instruction logic without the overhead of solana-test-validator or full Bankrun setup.

IDmollusk

Leitura rápida

Comece pela explicação mais curta e útil antes de aprofundar.

A lightweight SVM testing harness that executes Solana program instructions directly without spinning up a validator or simulated runtime. Mollusk loads a program's compiled SBF binary and processes individual instructions against a minimal account set, providing fast unit-test-level feedback. It supports both native and BPF programs, making it ideal for rapid iteration on instruction logic without the overhead of solana-test-validator or full Bankrun setup.

Modelo mental

Use primeiro a analogia curta para raciocinar melhor sobre o termo quando ele aparecer em código, docs ou prompts.

Pense nisso como uma ferramenta ou abstração que reduz atrito no workflow de desenvolvimento em Solana.

Contexto técnico

Coloque o termo dentro da camada de Solana em que ele vive para raciocinar melhor sobre ele.

Anchor, validators locais, explorers, SDKs e fluxos de teste.

Por que builders ligam para isso

Transforme o termo de vocabulário em algo operacional para produto e engenharia.

Este termo destrava conceitos adjacentes rapidamente, então funciona melhor quando você o trata como um ponto de conexão, não como definição isolada.

Handoff para IA

Handoff para IA

Use este bloco compacto quando quiser dar contexto aterrado para um agente ou assistente sem despejar a página inteira.

Mollusk (mollusk)
Categoria: Ferramentas de Dev
Definição: A lightweight SVM testing harness that executes Solana program instructions directly without spinning up a validator or simulated runtime. Mollusk loads a program's compiled SBF binary and processes individual instructions against a minimal account set, providing fast unit-test-level feedback. It supports both native and BPF programs, making it ideal for rapid iteration on instruction logic without the overhead of solana-test-validator or full Bankrun setup.
Relacionados: Testes (Programas Solana), LiteSVM, solana-program-test
Glossary Copilot

Faça perguntas de Solana com contexto aterrado sem sair do glossário.

Use contexto do glossário, relações entre termos, modelos mentais e builder paths para receber respostas estruturadas em vez de output genérico.

Explicar este código

Opcional: cole código Anchor, Solana ou Rust para o Copilot mapear primitivas de volta para termos do glossário.

Faça uma pergunta aterrada no glossário

Faça uma pergunta aterrada no glossário

O Copilot vai responder usando o termo atual, conceitos relacionados, modelos mentais e o grafo ao redor do glossário.

Grafo conceitual

Veja o termo como parte de uma rede, não como uma definição sem saída.

Esses ramos mostram quais conceitos esse termo toca diretamente e o que existe uma camada além deles.

Ramo

Testes (Programas Solana)

The process of validating Solana programs through unit tests, integration tests, and fuzz testing. Common approaches: Rust tests with solana-program-test or LiteSVM (fast, in-process), TypeScript tests with Bankrun or solana-test-validator (end-to-end), and fuzz testing with Trident. Best practice is testing both happy paths and attack vectors (missing signers, wrong owners).

Ramo

LiteSVM

A lightweight Solana VM for testing Rust programs. LiteSVM provides a minimal SVM environment that executes transactions without the overhead of a full validator. It supports account setup, program deployment, and transaction execution. Faster than solana-program-test and suitable for unit testing individual program instructions.

Ramo

solana-program-test

A Rust testing framework in the solana-sdk that provides a BanksClient for in-process program testing. Programs are loaded directly into a test Bank without a network. Supports adding accounts, advancing clock, and processing transactions. Slower than LiteSVM/Bankrun but provides the most accurate runtime behavior for Rust-only test suites.

Próximos conceitos para explorar

Continue a cadeia de aprendizado em vez de parar em uma única definição.

Estes são os próximos conceitos que valem abrir se você quiser que este termo faça mais sentido dentro de um workflow real de Solana.

Ferramentas de Dev

Testes (Programas Solana)

The process of validating Solana programs through unit tests, integration tests, and fuzz testing. Common approaches: Rust tests with solana-program-test or LiteSVM (fast, in-process), TypeScript tests with Bankrun or solana-test-validator (end-to-end), and fuzz testing with Trident. Best practice is testing both happy paths and attack vectors (missing signers, wrong owners).

Ferramentas de Dev

LiteSVM

A lightweight Solana VM for testing Rust programs. LiteSVM provides a minimal SVM environment that executes transactions without the overhead of a full validator. It supports account setup, program deployment, and transaction execution. Faster than solana-program-test and suitable for unit testing individual program instructions.

Ferramentas de Dev

solana-program-test

A Rust testing framework in the solana-sdk that provides a BanksClient for in-process program testing. Programs are loaded directly into a test Bank without a network. Supports adding accounts, advancing clock, and processing transactions. Slower than LiteSVM/Bankrun but provides the most accurate runtime behavior for Rust-only test suites.

Ferramentas de Dev

Multisig

An account controlled by multiple parties requiring M-of-N signatures to authorize actions. On Solana, multisig is implemented by programs like Squads rather than at the protocol level. Use cases: program upgrade authority (require 3-of-5 team members), treasury management, and DAO governance execution.

Comumente confundido com

Termos próximos em vocabulário, sigla ou vizinhança conceitual.

Essas entradas são fáceis de misturar quando você lê rápido, faz prompting em um LLM ou está entrando em uma nova camada de Solana.

Ferramentas de Devmultisig

Multisig

An account controlled by multiple parties requiring M-of-N signatures to authorize actions. On Solana, multisig is implemented by programs like Squads rather than at the protocol level. Use cases: program upgrade authority (require 3-of-5 team members), treasury management, and DAO governance execution.

Termos relacionados

Siga os conceitos que realmente dão contexto a este termo.

Entradas de glossário só ficam úteis quando estão conectadas. Esses links são o caminho mais curto para ideias adjacentes.

Ferramentas de Devtesting

Testes (Programas Solana)

The process of validating Solana programs through unit tests, integration tests, and fuzz testing. Common approaches: Rust tests with solana-program-test or LiteSVM (fast, in-process), TypeScript tests with Bankrun or solana-test-validator (end-to-end), and fuzz testing with Trident. Best practice is testing both happy paths and attack vectors (missing signers, wrong owners).

Ferramentas de Devlitesvm

LiteSVM

A lightweight Solana VM for testing Rust programs. LiteSVM provides a minimal SVM environment that executes transactions without the overhead of a full validator. It supports account setup, program deployment, and transaction execution. Faster than solana-program-test and suitable for unit testing individual program instructions.

Ferramentas de Devsolana-program-test

solana-program-test

A Rust testing framework in the solana-sdk that provides a BanksClient for in-process program testing. Programs are loaded directly into a test Bank without a network. Supports adding accounts, advancing clock, and processing transactions. Slower than LiteSVM/Bankrun but provides the most accurate runtime behavior for Rust-only test suites.

Mais na categoria

Permaneça na mesma camada e continue construindo contexto.

Essas entradas vivem ao lado do termo atual e ajudam a página a parecer parte de um grafo maior, não um beco sem saída.

Ferramentas de Dev

Framework Anchor

The most popular framework for building Solana programs in Rust. Anchor provides macros (#[program], #[account], #[derive(Accounts)]) that auto-generate boilerplate for account validation, serialization, discriminators, and error handling. It includes a CLI (anchor init/build/test/deploy), IDL generation, and TypeScript client generation. Reduces program code by ~80% compared to native development.

Ferramentas de Dev

#[account] Macro (Anchor)

The Anchor macro applied to structs to define on-chain account data layouts. `#[account]` auto-derives Borsh serialization, adds an 8-byte discriminator prefix (SHA-256 of 'account:<Name>'), and implements space calculation. Optional attributes: `#[account(zero_copy)]` for zero-copy deserialization of large accounts.

Ferramentas de Dev

#[derive(Accounts)] (Anchor)

The Anchor macro that defines the accounts struct for an instruction. Each field specifies an account with validation constraints. Account types include: `Account<'info, T>` (deserialized), `Signer<'info>` (must sign), `Program<'info, T>` (program reference), `SystemAccount<'info>`, and `UncheckedAccount<'info>` (no validation, use carefully).

Ferramentas de Dev

Anchor Constraints

Declarative validation rules on Anchor account fields. Key constraints: `#[account(mut)]` (writable), `#[account(init, payer=x, space=n)]` (create), `#[account(seeds=[...], bump)]` (PDA validation), `#[account(has_one=field)]` (field equality), `#[account(constraint = expr)]` (custom boolean), `#[account(close=target)]` (close and reclaim rent).