Open
Description
Got it running on localhost. Wondering where are the configs to change the start date for mint are? I see the stale-data-from-build-time.json file, but if I change the timestamps, nothing on the website changes. Overall, I'm confused about what to do with this stale data? I see we can change the contract name in settings.json, but I don't see any configs about the date, presale, supply, etc.?
I did notice from the README in config/i18n that if you add the param ?hero=0 that you can click through settings like saleOpen. But how does that saleOpen get set? Where do we add the dates for that?
There's this code in runtimeUtils.ts, but I don't know where d comes from.
const replacers = {
CURRENT_USER: (d: Data) => d.currentUser,
PRESALE_START: (d: Data) => formatDate(d.saleInfo.presale_start),
SALE_START: (d: Data) => formatDate(d.saleInfo.sale_start),
MINT_LIMIT: (d: Data) => d.remainingAllowance ?? 0,
MINT_PRICE: (d: Data) => formatCurrency(
NEAR.from(d.saleInfo.price).mul(NEAR.from('' + (d.numberToMint ?? 1))).toHuman().split(' ')[0]
),
MINT_RATE_LIMIT: (d: Data) => d.mintRateLimit,
INITIAL_COUNT: (d: Data) => formatNumber(d.saleInfo.token_final_supply),
REMAINING_COUNT: (d: Data) => formatNumber(d.tokensLeft),
} as const
Metadata
Metadata
Assignees
Labels
No labels