Skip to main content

index/variables/TIME_CONSTANTS.md

const TIME_CONSTANTS: object

Time constants for tests Shared between SDK tests and MCP server tests

These constants provide human-readable names for time duration values, eliminating magic numbers in test code and improving maintainability.

Usage:

import { TIME_CONSTANTS } from '@gala-chain/launchpad-sdk';

const expiryTime = Date.now() + TIME_CONSTANTS.ONE_WEEK_MS;

Type Declaration​

NameTypeDescription
ONE_DAY_MS864000001 day in milliseconds
ONE_HOUR_MS36000001 hour in milliseconds
ONE_MINUTE_MS600001 minute in milliseconds
ONE_MONTH_MS25920000001 month (30 days) in milliseconds
ONE_SECOND_MS10001 second in milliseconds
ONE_WEEK_MS6048000001 week in milliseconds