# cyreneai/zenoindex-evm architecture

> Architecture diagram of the GitHub repository cyreneai/zenoindex-evm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cyreneai/zenoindex-evm
- Repository: https://github.com/cyreneai/zenoindex-evm

## Overview

The repository is a Solidity library collection (OpenZeppelin Contracts), vendored alongside an EVM vault project; the sampled files do not include that vault’s runtime sources. The central sampled runtime-adjacent capability here is generating Solidity library sources from templates. The remaining sampled scripts are compiler-pragma utilities, which are maintenance tooling rather than product runtime. The graph is therefore intentionally limited to the documented generator templates and their visible formatting/options dependencies; unsampled generator orchestration is not inferred.

Main entry points: [`lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js`](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js) (StorageSlot template), [`lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js`](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js) (StorageSlot mock template), [`lib/openzeppelin-contracts/scripts/generate/templates/Slot.opts.js`](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/Slot.opts.js) (Slot type options), [`lib/openzeppelin-contracts/scripts/generate/format-lines.js`](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/format-lines.js) (Source formatter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Solidity generation"]
  node_slot_opts["Slot type options<br/>[Slot.opts.js]"]
  node_slot_generator["StorageSlot template<br/>[StorageSlot.js]"]
  node_mock_generator["StorageSlot mock template<br/>[StorageSlotMock.js]"]
  node_format["Source formatter<br/>[format-lines.js]"]
end

node_slot_generator -->|"uses types"| node_slot_opts
node_mock_generator -->|"uses types"| node_slot_opts
node_slot_generator -->|"formats source"| node_format
node_mock_generator -->|"formats source"| node_format

click node_slot_opts "https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/Slot.opts.js"
click node_slot_generator "https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js"
click node_mock_generator "https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js"
click node_format "https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/format-lines.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_slot_opts,node_slot_generator,node_mock_generator,node_format toneBlue
```

## Components

### Solidity generation

- [Slot type options](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/Slot.opts.js): `lib/openzeppelin-contracts/scripts/generate/templates/Slot.opts.js`
- [StorageSlot template](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js): `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js`
- [StorageSlot mock template](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js): `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js`
- [Source formatter](https://github.com/cyreneai/zenoindex-evm/blob/main/lib/openzeppelin-contracts/scripts/generate/format-lines.js): `lib/openzeppelin-contracts/scripts/generate/format-lines.js`

## Connections

- StorageSlot template → Slot type options: uses types (evidence: `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js`)
- StorageSlot mock template → Slot type options: uses types (evidence: `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js`)
- StorageSlot template → Source formatter: formats source (evidence: `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlot.js`)
- StorageSlot mock template → Source formatter: formats source (evidence: `lib/openzeppelin-contracts/scripts/generate/templates/StorageSlotMock.js`)
