# base/contract-deployments architecture

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

- Interactive diagram: https://gitdiagram.com/base/contract-deployments
- Repository: https://github.com/base/contract-deployments

## Overview

This repository manages Base EVM contract operations rather than implementing the contracts: operators prepare, review, sign, and execute deployment, upgrade, and configuration tasks, with records retained for completed work. Reusable scripts cover bridge, funding, gas, ownership, safe, superchain, and verifier updates; one-off operations live in dated task directories. The README documents task setup and execution, while the sampled standby utility shows delay checks and archival behavior. Individual task implementations were not sampled, so their internal call relationships are not shown.

Main entry points: [`active/evm/tasks`](https://github.com/base/contract-deployments/tree/main/active/evm/tasks) (Active tasks), [`scripts/standby-task.py`](https://github.com/base/contract-deployments/blob/main/scripts/standby-task.py) (Standby task utility), [`active/evm/script/common/bridge`](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/bridge) (Bridge operations), [`active/evm/script/common/funding`](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/funding) (Funding operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["EVM operations"]
  node_active_tasks["Active tasks"]
  node_task_configs["Network configuration"]
  node_task_signatures["Task signatures"]
  node_task_records["Execution records"]
end

subgraph group_shared["Reusable scripts"]
  node_bridge_ops["Bridge operations"]
  node_funding_ops["Funding operations"]
  node_gas_ops["Gas operations"]
  node_ownership_ops["Ownership operations"]
  node_safe_ops["Safe management"]
  node_superchain_ops["Superchain operations"]
  node_verifier_ops["Verifier updates"]
end

subgraph group_lifecycle["Task lifecycle"]
  node_standby_tool["Standby task utility<br/>[standby-task.py]"]
  node_archive_tasks["Archived tasks"]
end

node_operator(("Operator"))
node_evm_networks(("EVM networks"))

node_operator -->|"prepares task"| node_active_tasks
node_active_tasks -->|"uses config"| node_task_configs
node_active_tasks -->|"creates signatures"| node_task_signatures
node_operator -->|"signs task"| node_task_signatures
node_operator -->|"executes task"| node_active_tasks
node_active_tasks -->|"retains records"| node_task_records
node_task_configs -->|"configures targets"| node_evm_networks
node_active_tasks -->|"uses scripts"| node_bridge_ops
node_active_tasks -->|"uses scripts"| node_funding_ops
node_active_tasks -->|"uses scripts"| node_gas_ops
node_active_tasks -.->|"uses scripts"| node_ownership_ops
node_active_tasks -->|"uses scripts"| node_safe_ops
node_active_tasks -->|"uses scripts"| node_superchain_ops
node_active_tasks -.->|"uses scripts"| node_verifier_ops
node_standby_tool -->|"archives tasks"| node_archive_tasks

click node_active_tasks "https://github.com/base/contract-deployments/tree/main/active/evm/tasks"
click node_task_configs "https://github.com/base/contract-deployments/tree/main/active/evm/tasks"
click node_task_signatures "https://github.com/base/contract-deployments/tree/main/active/evm/tasks"
click node_task_records "https://github.com/base/contract-deployments/tree/main/active/evm/tasks"
click node_bridge_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/bridge"
click node_funding_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/funding"
click node_gas_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/gas"
click node_ownership_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/ownership"
click node_safe_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/safe"
click node_superchain_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/superchain"
click node_verifier_ops "https://github.com/base/contract-deployments/tree/main/active/evm/script/common/verifier-update"
click node_standby_tool "https://github.com/base/contract-deployments/blob/main/scripts/standby-task.py"
click node_archive_tasks "https://github.com/base/contract-deployments/tree/main/archive/evm"

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_active_tasks,node_task_configs,node_task_signatures,node_task_records toneBlue
class node_bridge_ops,node_funding_ops,node_gas_ops,node_ownership_ops,node_safe_ops,node_superchain_ops,node_verifier_ops toneAmber
class node_standby_tool,node_archive_tasks toneMint
class node_operator,node_evm_networks toneIndigo
```

## Components

### EVM operations

- [Active tasks](https://github.com/base/contract-deployments/tree/main/active/evm/tasks): `active/evm/tasks`
- [Network configuration](https://github.com/base/contract-deployments/tree/main/active/evm/tasks): `active/evm/tasks`
- [Task signatures](https://github.com/base/contract-deployments/tree/main/active/evm/tasks): `active/evm/tasks`
- [Execution records](https://github.com/base/contract-deployments/tree/main/active/evm/tasks): `active/evm/tasks`

### Reusable scripts

- [Bridge operations](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/bridge): `active/evm/script/common/bridge`
- [Funding operations](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/funding): `active/evm/script/common/funding`
- [Gas operations](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/gas): `active/evm/script/common/gas`
- [Ownership operations](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/ownership): `active/evm/script/common/ownership`
- [Safe management](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/safe): `active/evm/script/common/safe`
- [Superchain operations](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/superchain): `active/evm/script/common/superchain`
- [Verifier updates](https://github.com/base/contract-deployments/tree/main/active/evm/script/common/verifier-update): `active/evm/script/common/verifier-update`

### Task lifecycle

- [Standby task utility](https://github.com/base/contract-deployments/blob/main/scripts/standby-task.py): `scripts/standby-task.py`
- [Archived tasks](https://github.com/base/contract-deployments/tree/main/archive/evm): `archive/evm`

### Other components

- **Operator**
- **EVM networks**

## Connections

- Operator → Active tasks: prepares task (evidence: `README.md`)
- Active tasks → Network configuration: uses config (evidence: `README.md`)
- Active tasks → Task signatures: creates signatures (evidence: `README.md`)
- Operator → Task signatures: signs task (evidence: `README.md`)
- Operator → Active tasks: executes task (evidence: `README.md`)
- Active tasks → Execution records: retains records (evidence: `README.md`)
- Network configuration → EVM networks: configures targets (evidence: `README.md`)
- Active tasks → Bridge operations: uses scripts (evidence: `README.md`)
- Active tasks → Funding operations: uses scripts (evidence: `README.md`)
- Active tasks → Gas operations: uses scripts (evidence: `README.md`)
- Active tasks → Ownership operations: uses scripts
- Active tasks → Safe management: uses scripts (evidence: `README.md`)
- Active tasks → Superchain operations: uses scripts (evidence: `README.md`)
- Active tasks → Verifier updates: uses scripts
- Standby task utility → Archived tasks: archives tasks (evidence: `scripts/standby-task.py`)
