Skip to content

Function: diffContracts()

ts
function diffContracts(before, after): ContractDiffResult;

Defined in: packages/core/src/introspection/ContractDiff.ts:108

Compute the semantic diff between two snapshots of a tool contract.

Parameters

ParameterTypeDescription
beforeToolContractPrevious contract snapshot
afterToolContractCurrent contract snapshot

Returns

ContractDiffResult

Classified, sorted list of deltas