# Smart Contract Dependency Tracking

**Implementation Details**

**Class Names**

| Model Name                 | Parameters Class              | Data Class             |
| -------------------------- | ----------------------------- | ---------------------- |
| ContractDependencyTracking | ContractDependencyQueryParams | ContractDependencyData |

**Import Statement**

```python
pythonCopyEditfrom satoshi_terminal.models.smart_contract_dependency_tracking import (
    ContractDependencyTracking,
    ContractDependencyQueryParams,
    ContractDependencyData,
)
```

***

**Parameters**

| Name              | Type                    | Description                                                 | Default | Optional |
| ----------------- | ----------------------- | ----------------------------------------------------------- | ------- | -------- |
| contract\_address | Union\[str, List\[str]] | Address(es) of smart contracts to analyze for dependencies. | None    | False    |
| dependency\_depth | int                     | Depth of dependency mapping for smart contracts.            | 3       | True     |
| include\_indirect | bool                    | Include indirect dependencies in the analysis.              | True    | True     |

***

**Data**

| Name                     | Type       | Description                                                |
| ------------------------ | ---------- | ---------------------------------------------------------- |
| contract\_address        | str        | Address of the contract analyzed.                          |
| dependency\_map          | dict       | Visual-ready map of contract dependencies.                 |
| critical\_dependencies   | List\[str] | List of critical dependencies and their risk levels.       |
| risk\_propagation\_score | float      | Estimated risk score based on dependency failures (0-100). |
| timestamp                | datetime   | Timestamp of the dependency analysis.                      |

***

**Key Features**

* **Visual Dependency Mapping:** Provides a clear visualization of smart contract interdependencies.
* **Risk Propagation Modeling:** Simulates the cascading effects of a dependency failure.
* **Depth Customization:** Allows users to define how deeply dependencies should be mapped.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.satoshiterminal.io/resources/copy-of-defi-analytics/governance-analytics/smart-contract-dependency-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
