TIME_CONSTANTS
constTIME_CONSTANTS:object
Defined in: packages/synapse-core/src/utils/constants.ts:4
Time and size constants
Type Declaration
Section titled “Type Declaration”DAYS_PER_MONTH
Section titled “DAYS_PER_MONTH”
readonlyDAYS_PER_MONTH:30n=30n
Number of days in a month (used for pricing calculations)
DEFAULT_LOCKUP_DAYS
Section titled “DEFAULT_LOCKUP_DAYS”
readonlyDEFAULT_LOCKUP_DAYS:30n=30n
Default lockup period in days
EPOCH_DURATION
Section titled “EPOCH_DURATION”
readonlyEPOCH_DURATION:30=30
Duration of each epoch in seconds on Filecoin
EPOCHS_PER_DAY
Section titled “EPOCHS_PER_DAY”
readonlyEPOCHS_PER_DAY:2880n=2880n
Number of epochs in a day (24 hours * 60 minutes * 2 epochs per minute)
EPOCHS_PER_MONTH
Section titled “EPOCHS_PER_MONTH”
readonlyEPOCHS_PER_MONTH:86400n=86400n
Number of epochs in a month (30 days)
PERMIT_DEADLINE_DURATION
Section titled “PERMIT_DEADLINE_DURATION”
readonlyPERMIT_DEADLINE_DURATION:3600=3600
Default expiry time for EIP-2612 permit signatures (in seconds) Permits are time-limited approvals that expire after this duration