Skip to content

How to change the mint date? #21

Open
@Shane-Neeley

Description

@Shane-Neeley

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?

Screen Shot 2022-05-17 at 2 56 43 PM

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions