Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the mint date? #21

Open
Shane-Neeley opened this issue May 17, 2022 · 0 comments
Open

How to change the mint date? #21

Shane-Neeley opened this issue May 17, 2022 · 0 comments

Comments

@Shane-Neeley
Copy link

Shane-Neeley commented May 17, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant