Overview
AuthorizationTimeRecorder stores theblock.timestamp when a payment is authorized. This timestamp is used by time-based conditions like EscrowPeriod.
EscrowPeriod extends AuthorizationTimeRecorder and adds
ICondition implementation. For escrow enforcement, use EscrowPeriod directly instead of deploying AuthorizationTimeRecorder separately.State
Methods
When to Use
Use AuthorizationTimeRecorder directly only if you need authorization timestamps without escrow period enforcement. For most use cases, EscrowPeriod is the better choice since it includes this recorder plus time-lock condition logic.Gas
Cost: ~20k gas perrecord() call (one SSTORE for the timestamp).
