@cdr-kit/contracts/Conditions/TimeWindowCondition

TimeWindowCondition

Read access is allowed only during [startTs, endTs]. endTs == 0 means open-ended (release-on-date pattern). Block-based mode (blockBased: true) is preferred for short horizons.
address = 0x67911435F262e7e4EC4F7FEB4e868a67b9dd90b1

Config shape

PropTypeDefaultDescription
startTsrequireduint64Start timestamp (or block number if blockBased).
endTsrequireduint64End (0 = open-ended).
blockBasedrequiredbooltrue = interpret startTs/endTs as block.number; false = block.timestamp.

Agent presets

  • releaseOnDate(startTs)(startTs, 0, false) — open-ended after a date.
  • availableDuring(startTs, endTs)(startTs, endTs, false) — bounded window.
  • releaseAfterBlocks(blockNum)(0, blockNum, true) — block-based release.