API ReferenceValidationFunction
expirationRules()
function expirationRules<P, Field>(field): ValidationRule<P>[];Rule factory: validates an expiration timestamp field.
- Sync: basic format check (must be a positive bigint)
- Sync: configured-value check (no RPC — reads from locConfig)
- Async: checks min/max LOC date bounds via contract read
Used by: createStaticLOC, createDynamicLOC, extendLOC.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
P | - | - |
Field extends string | keyof P & string | The exact string key of P validated by this factory. |
Parameters
| Parameter | Type |
|---|---|
field | Field |
Returns
ValidationRule<P>[]