Defines a contract invariant condition function. Invariants check conditions that must hold true both before and after method execution.
The expected type of the input to the method.
The expected type of the output of the method.
The input to the method.
The output of the method.
A boolean indicating if the invariant holds true, or a Promise resolving to a boolean, or a ContractError/Promise of ContractError if it fails.
Defines a contract invariant condition function. Invariants check conditions that must hold true both before and after method execution.