9. Launching on mainnet
You have thoroughly tested your contracts on testnet. The images and metadata reside on IPFS. You only need to change some values in
config.jsbefore launching on mainnet.
- Change the RPC endpoint to the mainnet endpoint
startTimeof the launch. i.e: 3pm EST on Friday, March 25, 2022, and format it to UTC:
- Change account to your mainnet account.
- Comment out (add
//before all the contract codes)
CONTRACT CODE IDs: Castor Testnet
- uncomment (remove
//before the contract codes sg721CodeId, minterCodeId, whitelistCodeId)
CONTRACT CODE IDs: Mainnet
Now you're ready to deploy.
end_timeshould come before Public Mint
start_time. Airdrops can be done irrespective of any
start_time. Ex: You launch your minter contract to mainnet on 12/24/2022 with Whitelist starting on Christmas (12/25/2022) and Public Mint the day after (12/26/2022). You can airdrop on Christmas Eve (12/24/2022) or Christmas (12/25/2022) or during Public Mint. With great power comes great responsibility.
At any time, before whitelist, during whitelist sale, or during public sale you are able to use
mint_for(token_id, address)to do airdrops. If the special airdrop tokens are early token ids (i.e: 1, 2, 3, etc), then you want to deploy your contract early and give yourself enough time to run the airdrop and check the results.
Congratulations, you're officially a Stargaze Creator.