This contract is inspired as well as inherits a part of the Stargaze NFT launchpad code.
Artaverse contract is written for the artaverse project, the contract serves to create and manage NFTs. The set includes contracts:
- Minter: Minter Contract Customize CW721 according to the logic of the Artaverse project. It manages the config related to NFT episode in 1 collection: Base URI, NFT count, minted quantity, etc. and additional information for Royalty.
- Factory: Currently, Factory contract only has the simple task of managing the code_id of the related contracts deployed on the network. We can instantiate a minter contract via factory contract.
Details and implementations in the contract, please refer to each contract repository.
Artaverse contract uses cw721 to manage its NFTs, so the first thing you need to do is have a cw721 contract that is stored on the network. Let's build, store and save the codeid of the contract cw-nfts.
The next thing we need is the store Minter contract. Again, please save the codeid of the contract.
After store Factory contract, we need instantiate factory contract with 2 codeids obtained above.
InstantiateMsg
- Initialize config information for minter management.
pub struct InstantiateMsg {
/// code id of minter contract was stored
pub minter_code_id: u64,
/// code id of cw721 contract was stored
pub cw721_code_id: u64,
}
Now, the factory contract is ready to be used!