> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# الإعداد

> دوال Builder لإعداد LiteSVM في TypeScript

يعتمد LiteSVM على نمط البناء (Builder) في الإعداد. تُرجع جميع الدوال `LiteSVM`
لتمكين تسلسل الاستدعاءات.

## إعداد الاختبار النموذجي

```typescript
import { createClient, generateKeyPairSigner } from "@solana/kit";
import { litesvm } from "@solana/kit-plugin-litesvm";
import { signer } from "@solana/kit-plugin-signer";

const mySigner = await generateKeyPairSigner();
const client = createClient().use(signer(mySigner)).use(litesvm());

client.svm
  .withSigverify(false) // Skip signature verification (faster)
  .withBlockhashCheck(false) // Skip blockhash validation (simpler)
  .withTransactionHistory(100n); // Store last 100 transactions
```

يأتي عميل `litesvm()` محمّلًا مسبقًا بـ sysvars
والبرامج المدمجة (builtin) والبرامج المترجمة مسبقًا (precompiles)
والبرامج الافتراضية، لذا لا يتطلب الإعداد النموذجي سوى تغيير
الفحوصات التي تحتاج إليها.

## التوقيع وBlockhash

### withSigverify

```typescript
withSigverify(sigverify: boolean): LiteSVM
```

تفعيل التحقق من التوقيع أو تعطيله.

```typescript
// Disable for faster tests (default is enabled)
client.svm.withSigverify(false);

// Enable for production-like testing
client.svm.withSigverify(true);
```

<Info>
  تعطيل التحقق من التوقيع يجعل الاختبارات أسرع لكنه يقلل من واقعيتها.
</Info>

### withBlockhashCheck

```typescript
withBlockhashCheck(check: boolean): LiteSVM
```

تفعيل التحقق من انتهاء صلاحية blockhash أو تعطيله.

```typescript
// Disable for simpler tests
client.svm.withBlockhashCheck(false);
```

## البرامج وSysvars

تحمّل هذه الدوال البرامج وsysvars في الآلة الافتراضية (VM). يحتوي عميل `litesvm()`
على كل ذلك مسبقًا، لذا لا تحتاج إليها إلا لإعادة ضبط العميل أو لإعداد
نسخة `LiteSVM.default()` خالية من حزمة `litesvm`.

### withSysvars

```typescript
withSysvars(): LiteSVM
```

أعد ضبط Clock وRent وEpochSchedule وبقية sysvars إلى قيمها الافتراضية.
تتوفر sysvars بالفعل في العميل الجديد، لذا لا تحتاج إلى هذه الدالة إلا للتراجع
عن التغييرات. استدعاؤها بعد `setClock` أو `warpToSlot` يلغي الساعة التي ضبطتها.

```typescript
client.svm.setClock(myClock);
client.svm.withSysvars(); // the clock is back to its default
```

### withBuiltins

```typescript
withBuiltins(): LiteSVM
```

أضف البرامج المدمجة في بيئة التشغيل: System Program ومحمّلات BPF وVote
وCompute Budget.

```typescript
client.svm.withBuiltins();
```

### withPrecompiles

```typescript
withPrecompiles(): LiteSVM
```

أضف البرامج المترجمة مسبقًا للتحقق من التوقيعات: ed25519 وsecp256k1 وsecp256r1.

```typescript
client.svm.withPrecompiles();
```

### withDefaultPrograms

```typescript
withDefaultPrograms(): LiteSVM
```

أضف البرامج الافتراضية: Token وToken-2022 وAssociated Token Account وMemo
وStake وAddress Lookup Table.

```typescript
client.svm.withDefaultPrograms();
```

## حدود الموارد

### withLamports

```typescript
withLamports(lamports: bigint): LiteSVM
```

عيّن رصيد حساب الصنبور الداخلي الذي يسحب منه `airdrop()`.
تفشل عمليات airdrop التي تتجاوز هذا الرصيد.

```typescript
client.svm.withLamports(1_000_000_000n); // the faucet holds 1 SOL
```

### withLogBytesLimit

```typescript
withLogBytesLimit(limit?: bigint): LiteSVM
```

عيّن حد البايتات لمخرجات السجل.

```typescript
client.svm.withLogBytesLimit(10000n);
```

### withTransactionHistory

```typescript
withTransactionHistory(capacity: bigint): LiteSVM
```

فعّل تخزين سجل المعاملات.

```typescript
// Store last 100 transactions
client.svm.withTransactionHistory(100n);
```

## مجموعات الميزات

### withFeatureSet

```typescript
withFeatureSet(featureSet: FeatureSet): LiteSVM
```

اضبط مجموعة الميزات لاختبار إصدارات محددة من سولانا.
