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

Update launching-on-mainnet.md #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions guides/readme/9.-launching-on-mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ coverY: 0

You have thoroughly tested your contracts on testnet. The images and metadata reside on IPFS. You only need to change some values in `config.js` before launching on mainnet. 

* Change the RPC endpoint to the mainnet endpoint `rpcEndpoint: 'https://rpc.stargaze-apis.com/'`.
* Change `startTime` of the launch. i.e: 3pm EST on Friday, March 25, 2022, and format it to UTC: `startTime: '2022-03-25T19:00:00.000Z'`.
* Change account to your mainnet account.
* Change ACCOUNT INFO [i.e. `mnemonic` and public address `address`] to your mainnet account.
* Comment out testnet `rpcEndpoint`: `//rpcEndpoint: 'https://rpc.elgafar-1.stargaze-apis.com/'`
* Uncomment mainnet `rpcEndpoint`: `rpcEndpoint: 'https://rpc.stargaze-apis.com/'`
* Ensure `royaltyPaymentAddress` is updated to reflect a mainnet public address
* Change `startTime` of the launch. i.e: 3pm EST on Friday, March 25, 2022, and format it to UTC (https://www.timeanddate.com/worldclock/timezone/zulu): `startTime: '2022-03-25T19:00:00.000Z'`.
* 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` 
* Uncomment (remove `//` before the contract codes sg721CodeId, minterCodeId, whitelistCodeId) `CONTRACT CODE IDs: Mainnet` 

Now you're ready to deploy. 
Now you're ready to deploy.

To instantiate the contract on mainnet:
```bash
yarn minter
```
To verify your NFT collection successfully launched, take your new `minter` address and enter it at https://app.stargaze.zone/launchpad/. For example, https://app.stargaze.zone/launchpad/stars1vhu3a6pkftf2g58622zujmq3sdptz6rmd3sgcdh4upmfhfzrcdzs5mgujh.  

{% hint style="info" %}
Whitelist `start_time` and `end_time` should come before Public Mint `start_time`. Airdrops can be done irrespective of any `start_time`.\
Expand Down