Smart Contract Dependency Tracking

Implementation Details

Class Names

Model Name
Parameters Class
Data Class

ContractDependencyTracking

ContractDependencyQueryParams

ContractDependencyData

Import Statement

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.

Last updated