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

# svm venue: quantum

> 32 exports of the quantum venue integration in @eco-incorp/sauce/svm, including quantumSideBase, quantumOutScale, quantumOutVault, quantumInVault, quantumOutReserveOffset, fetchQuantumConfig.

Solana venue integration `quantum` under `svm/venues/quantum`.

<Note>
  Generated from the type declarations shipped in `@eco-incorp/sauce` 0.99.4. Each entry shows the package authors' JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see [architecture and deployments](/programmable-transactions/sauce/architecture-and-deployments).
</Note>

### `quantumSideBase`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

Side-struct base offset for a direction (zeroIn reads side1, oneIn reads side0).

```typescript theme={null}
export declare function quantumSideBase(direction: "zeroIn" | "oneIn"): number;
```

### `quantumOutScale`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

10^decimals of the direction's OUTPUT token.

```typescript theme={null}
export declare function quantumOutScale(cfg: QuantumPoolConfig): bigint;
```

### `quantumOutVault`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

The direction's output vault (whose live balance is the hard out cap).

```typescript theme={null}
export declare function quantumOutVault(cfg: QuantumPoolConfig): Address;
```

### `quantumInVault`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

The direction's input vault (the swap CPI's transfer destination).

```typescript theme={null}
export declare function quantumInVault(cfg: QuantumPoolConfig): Address;
```

### `quantumOutReserveOffset`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

Cached out-reserve offset for the direction (the second half of the out cap).

```typescript theme={null}
export declare function quantumOutReserveOffset(cfg: QuantumPoolConfig): number;
```

### `fetchQuantumConfig`

*Function* · `sdk/dist/svm/venues/quantum/index.d.ts`

Fetch + gate one Quantum pool and freeze both directions' walkable level
prefixes. Read-only against the loader.

```typescript theme={null}
export declare function fetchQuantumConfig(load: AccountLoader, pool: Address): Promise<QuantumPoolConfig>;
```

### `QUANTUM_PROGRAM_ID`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
QUANTUM_PROGRAM_ID: Address<"QuaNtZsgYRe5Z9Bk4LZ4cTD9tbkVoyCNf1R2BN9bBDv">
```

### `QUANTUM_GLOBAL`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

The program's single global config account (one for every pool). Lived in
this venue's ladder module until the merge-decomposition ladders moved out;
it is a program address, not decomposition state, so it stays here.

```typescript theme={null}
QUANTUM_GLOBAL: Address<"3JumrbigQRj9TqEuy5fKGPHsQ6zCTwqqfVGhFhyoEMqH">
```

### `QUANTUM_POOL_SIZE`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

Exact pool account size (all 27 live mainnet pools).

```typescript theme={null}
QUANTUM_POOL_SIZE = 2280
```

### `OFF_MINT0`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_MINT0 = 0
```

### `OFF_MINT1`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_MINT1 = 32
```

### `OFF_VAULT0`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_VAULT0 = 64
```

### `OFF_VAULT1`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_VAULT1 = 96
```

### `OFF_RESERVE0`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_RESERVE0 = 128
```

### `OFF_RESERVE1`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_RESERVE1 = 136
```

### `OFF_SIDE0`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_SIDE0 = 144
```

### `OFF_SIDE1`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_SIDE1 = 928
```

### `OFF_DEC0`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_DEC0 = 1760
```

### `OFF_DEC1`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_DEC1 = 1761
```

### `OFF_LEVEL_COUNT`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
OFF_LEVEL_COUNT = 1763
```

### `SIDE_LEVELS`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
SIDE_LEVELS = 0
```

### `SIDE_LEVEL_STRIDE`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
SIDE_LEVEL_STRIDE = 16
```

### `SIDE_EXPIRY`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
SIDE_EXPIRY = 256
```

### `SIDE_KINDS`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
SIDE_KINDS = 384
```

### `QUANTUM_LEVEL_SLOTS`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

Hard array bound inside a side struct (the venue's own index guard is \< 17).

```typescript theme={null}
QUANTUM_LEVEL_SLOTS = 16
```

### `EXPIRY_SCALE`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

expirySlot is stored scaled by 1e4; the venue divides before comparing (.text 0x1058).

```typescript theme={null}
EXPIRY_SCALE = 10000n
```

### `QUANTUM_MAX_LEVELS`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

Shipped levels per direction. 16 is the venue's own array bound; all but 5
of the 27 live pools publish 5. The walk is a bounded loop (not unrolled),
so this costs three 16-entry arrays of slot locals, not 16x the fragment.

```typescript theme={null}
QUANTUM_MAX_LEVELS = 16
```

### `QUANTUM_KIND_TRAPEZOID`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

Level kinds the fragment implements: 1 = trapezoid (every live pool side).

```typescript theme={null}
QUANTUM_KIND_TRAPEZOID = 1
```

### `QuantumLevel`

*Interface* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
export interface QuantumLevel {
    index: number;
}
```

### `QuantumWindow`

*Interface* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
export interface QuantumWindow {
    levels: QuantumLevel[];
}
```

### `QuantumPoolConfig`

*Interface* · `sdk/dist/svm/venues/quantum/index.d.ts`

```typescript theme={null}
export interface QuantumPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "zeroIn" | "oneIn";
    mint0: Address;
    mint1: Address;
    vault0: Address;
    vault1: Address;
    dec0: number;
    dec1: number;
    levelCount: number;
    windows: {
        zeroIn: QuantumWindow;
        oneIn: QuantumWindow;
    };
}
```

### `quantum`

*Variable* · `sdk/dist/svm/venues/quantum/index.d.ts`

Family facade for the recipe orchestrator (ladder-only - not in the v1 registry).

```typescript theme={null}
quantum: {
    slug: string;
    programId: Address<"QuaNtZsgYRe5Z9Bk4LZ4cTD9tbkVoyCNf1R2BN9bBDv">;
    tokenProgram: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
    fetchPoolConfig: typeof fetchQuantumConfig;
}
```
