CCIP v2.0.0 ITypeAndVersion API Reference
Summary
ITypeAndVersion defines a minimal interface that allows contracts to expose a human-readable identifier describing their type and version.
Many CCIP contracts implement this interface to enable:
- Onchain introspection
- Version verification by tooling
- Safer upgrade and deployment checks
Contract
@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol
Import
import {ITypeAndVersion} from "@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol";
Interface surface
interface ITypeAndVersion {
typeAndVersion
function typeAndVersion()
external
pure
returns (string memory);
Returns a descriptive string identifying the contract type and version.
}
Integration notes / expectations
- Implementations must return a deterministic string literal.
- The returned value must match the exact string declared in the contract (including suffixes such as
-dev). - This interface does not define events, errors, or state.