assertions:assert-timestamp
Assert the current block timestamp, on-chain.
Syntax
Section titled “Syntax”assertions:assert-timestamp <operator> <expected> [message]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
operator | string | Comparison operator: ==, >, <, >=, <= |
expected | number | Expected block timestamp (unix seconds) |
[message] | string | Revert message when the assertion fails |
Examples
Section titled “Examples”load assertions
assertions:assert-timestamp >= 1893456000 "unlock period not reached"