Imports Overview
Contracts can depend on other deployed contracts.
Two Patterns
- static import:
import currency - dynamic import:
importlib.import_module("con_example")
Important Restriction
This is contract import resolution, not Python package importing. Imports are resolved against deployed contracts in state.
Related Tools
importlib.import_module(...)importlib.enforce_interface(...)importlib.owner_of(...)