Stargaze Tools is a set of tools to interact with launchpad v2 smart contracts on Stargaze.
Mainly focused towards NFT creators and developers to help launch and manage NFT collections. As use cases grow, more tools and scripts will be added.
- Validate NFT collections
- Marketplace functionality
- P2P trading functionality
- Governance tasks
git clone https://github.com/public-awesome/stargaze-tools
cd stargaze-tools
yarn install
yarn account
This outputs an address you can use to instantiate your minter contract.
Ask for funds from the #faucet
channel in Discord Stargaze.
$request [address]
Copy config.example.js
to config.js
.
Edit config.js
with your project configuration.
A minter is created from a factory contract.
yarn minter
yarn mint --for [token_id] [address]
[address]
can be any Cosmos address. It'll be converted automatically into a Stargaze address.
yarn mint --to [address]
This mints the next available token ID to the given address.
Mint num
NFTs to an address.
yarn mint --to [address] --batch [num]
Same as mint --to
but mints the next [num] tokens sequentially to the given address.
Instantiate a whitelist contract:
yarn whitelist
The output of the above command should give you a whitelist contract address. Edit config.js
and update the whitelist
field with this value. Next, set this address in your minter contract with:
yarn minter --whitelist [whitelist_address]
To add addresses to the whitelist, use:
yarn whitelist --add [stars1..., stars2..., etc.]
You can run queries against an instantiated sg721 contract with:
yarn query
For all possible queries, see the query types.
Test your contract. Make sure it's visible in launchpad. Try minting and viewing the NFT in your profile. https://testnet.publicawesome.dev/
https://www.youtube.com/watch?v=1gvDlBWKEUc by Meta-induction
https://www.youtube.com/watch?v=lw6w5zlRj14 by Cosmos Tutorials
https://asciinema.org/a/485818
A more comprehensive guide is available at Stargaze Docs.
You represent and warrant that you have, or have obtained, all rights, licenses, consents, permissions, power and/or authority necessary to grant the rights granted herein for any content that you create, submit, post, promote, or display on or through the Service. You represent and warrant that such content does not contain material subject to copyright, trademark, publicity rights, or other intellectual property rights, unless you have necessary permission or are otherwise legally entitled to post the material and to grant Stargaze Parties the license described above, and that the content does not violate any laws.
STARGAZE TOOLS IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in creating Stargaze Tools or smart contracts will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of Stargaze, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. Although Public Awesome, LLC and it's affiliates developed the initial code for Stargaze, it does not own or control the Stargaze network, which is run by a decentralized validator set.
By using this code you agree to the following terms and conditions.