Skip to content

TIME_CONSTANTS

const TIME_CONSTANTS: object

Defined in: packages/synapse-sdk/src/utils/constants.ts:95

Time and size constants

readonly DAYS_PER_MONTH: 30n = 30n

Number of days in a month (used for pricing calculations)

readonly DEFAULT_LOCKUP_DAYS: 30n = 30n

Default lockup period in days

readonly EPOCH_DURATION: 30 = 30

Duration of each epoch in seconds on Filecoin

readonly EPOCHS_PER_DAY: 2880n = 2880n

Number of epochs in a day (24 hours * 60 minutes * 2 epochs per minute)

readonly EPOCHS_PER_MONTH: 86400n = 86400n

Number of epochs in a month (30 days)